We are using BDD cucumber in katalon. More than one step definitions are being created for an application to be tested (multiple .groovy scripts will have step definitions). That means, one scenario will have multiple list of step definitions to be called. Test Data is available in Excel with key identifier as “Test Case Id”. Need to have “test case id” to be stored in a variable which need to be made available for all step definitions (which resides in multiple .groovy scripts), so that I have access to Test case id variable during run time for all step definitions which will be called by feature file.
In Simple, is there a way to keep common variable across step definitions ? Global Variable is there, we wanted to avoid global variables as it may have conflict when running multiple feature files in parallel test suite execution. Please advice if there is a possibility to have variable within feature file scope.