I have Two Cucumber scenarios. On each sceanrio I want to use the same random_document
in my Steps class I have:
public class PatientCreateSteps {
private final String RANDOM_DOCUMENT='ABC'+RandomStringUtils.randomAlphabetic
....
#in the featurefile:
Scenario: Add patient documentation
@When ("StepsFromScenarioI)
.....
@Then("StepsFromScenarioI)
Scenario: Update patients documentaion
@When("StepsFromScenarioII)
Is it possible to change something to not generating new RANDOM_DOCUMENT in the second class?