A simple example of some BDD-style automated acceptance criteria.
The Following dependencies must be installed before writing and running your tests:
The project is initially composed by four packages. Considering this sample project has the root package equivalent to io.openbdt.junit, there are four other packages inside the root:
- features: Must contain all the feature classes to be tested.
- model: Inside this package, you should create the classes used by the business logic of your tests (e.g User, Account, ListItem, etc).
- pages: Classes that extend
PageObject
and actually are the pages that your test interact to. - steps: In this package, the creation of classes that implements all the feature test steps.
mvn clean verify
The reports will be generated in serenity-report
folder inside the project folder.