Versions Compared

Key

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

...

Simply replace to chromedriver in the project with the new one from the link above.

...

Features

Create a feature

Create a new

...

feature file, with a name

...

fitting for the new feature, in the package of an existing service (e.g. features/ehealthbox).

...

For example:

Image Added

Edit a feature

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

Steps

Create/edit a step

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

Image Added


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

Some useful tips to work with step definitions can be found here.

Utilities

Create a utility

Edit a utility

FAQ

How to add a new service

to do

Write the feature you want to test in the newly created file. You can create one or more scenarios for this new feature. See the example below:

Code Block
languagegherkin
titleExample *.feature file
Feature: TS-407: eHealthBox info
  As a user
  I want to know my eHealthBox info
  In order to know how many messages are in standby

  Scenario: Verify the eHealthBox info
    Given user is logged in
    When user is on the box info page
    Then the box info is shown correctly

For each step in a scenario, there is should be a corresponding function in one of the steps of the existing service (e.g. steps/ehealthbox).
If there isn't a step matching your step yet, you should create a new function for it in one of the step.java files in one of the existing services.
Here is an example of such a function:

Code Block
languagegherkin
titleExample step function
@Given("user is logged in")
    public void user_is_logged_in() {
        //Instructions for the software vendor: Please write the UI support code here.
    }

...

How to add a new service

to do

Features

Create a feature

SImply create a new *.feature file, with a name fitting for the new feature, in the package of an existing service (e.g. features/ehealthbox). For example:

Image Removed

Edit a feature

A very good explanation of everything you can do with a feature file can be found on this Gherkin reference.

Steps

Create a step

Edit a step

Utilities

Create a utility

Edit a utility

...