Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A very good explanation of everything you can do with a feature file can be found here.

Steps

Create

...

a step file

You can write a new step in one of the existing step files or you can create a new java class for it in the steps package. For example:

Edit a step

A very good explanation of how step definitions work can be found here.

...

FAQ

How to add a new service

...

First of all, you have to create new packages for your new service:

  • Create a new package in the feature package (e.g. features/newservice).
  • Create a new package in the steps package (e.g. steps/newservice).
  • Create a new package in the utils package (e.g. utils/newservice).

When that is done, you can follow these steps in the following order:

  1. Create a new feature file.
  2. Edit your new feature file.
  3. Create a new step file.
  4. Write your step definitions.
  5. Create a new utility.
  6. Write validation code for your new utility.