It is advised to read the eHealthBox, consent, therapeutic link or therapeutic exclusion user manual first to gain a better understanding of the framework. |
This manual is meant for everyone that works on the development of the SOAP testing framework.
└───src ├───main │ ├───java │ └───resources │ └───config │ └───P12 │ └───acc └───test ├───java │ └───be │ └───imec │ └───hie │ ├───features │ │ ├───consent │ │ ├───ehealthbox │ │ ├───therapeuticExclusion │ │ └───therapeuticLink │ ├───runners │ ├───steps │ │ ├───consent │ │ ├───ehealthbox │ │ ├───therapeuticExclusion │ │ └───therapeuticLink │ └───utils │ ├───consent │ ├───ehealthbox │ ├───therapeuticExclusion │ └───therapeuticLink └───resources ├───attachments ├───testdata └───chromedriver.exe |
The chromedriver, found at src/test/resources/chromedriver.exe, has to be updated occasionally
to keep it up-to-date with the most recent version of Chrome.
The most recent version of chromedriver can be found here.
Replace to chromedriver in the project with the new one from the link above.
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:
A very good explanation of everything you can do with a feature file can be found here.
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:
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.
The utilities are java classes that are used to make writing the step definitions easier, used for test validation, etc...
Create a new java class, with a name fitting for the new utility, in the package of an existing service (e.g. utilities/ehealthbox). For example:
You can write utilities for anything you want in these files.
An example of how the validation of the tests works can be found in, for example, utils/ehealthbox/BoxInfo.java.
First of all, you have to create new packages for your new service:
When that is done, you can follow these steps in the following order: