I am writing some cucumber tests for my java project. My tests are working just fine, but there is a small warning appearing in my .feature file.
Below, I am passing an integer from the .feature file into my Step Definitions in a seperate java class
A yellow squiggly line appears under the below step in my .feature file:
Then the status code should be <StatusCode>
The warning message I receive is:
No definition found for
the status code should be
Here is my feature file examples table:
| StatusCode |
| 200 |
And below is my Step Definition:
@Then("^the status code should be (\\d+)$")
This error is preventing me from Ctrl + Clicking the 'Then' statement to bring me to the above Step Definition in my java class.
Does anyone have any suggestions about what may be going wrong?
Maybe this isn't the way you should be passing an integer through an examples table