...
It is a file which contains steps definitions. It contains source code which should be done within a test step. Parameters defined in feature files are passed to step definitions with regular expressions. To make them work correctly, you should configure methods for each step defined in Feature file. Each step is preceded by an annotation connected to step keywords defined in feature file (e.g. @Then, @When etc.).
Example step definition:
Code Block |
---|
@Given("I have a cucumber step") public void i_have_a_cucumber_step() throws Throwable { System.out.println("Step definition exact match"); |
...