Is there any way to declare a variable in a feature file to then use in a cucumber test? Something like this:
myFile.feature
Given whenever a value is 50
myFile.java
@Given("^whenever a value is 50$")
public void testing(value) {
assertEqual(value, 50);
}
Honestly, I don't even know what this would look like. But I would love to not have to declare a value in both the feature file AND the Cucumber test. Thanks!