Serenity BDD is an open source library that aims to make the idea of living documentation a reality. It also uses the test results to produce illustrated, narrative reports that document and describe what your application does and how it works.
This page explains how to setup the API testing framework built with Java and Serenity BDD.
Set an environment variable
BASE_URL (e.g. if testing locally set it to http://localhost:9000) or use the
export BASE_URL=http://localhost:9000 command.
Running the tests
To run all tests please navigate to
./api-tests path and execute the following command:
To run the Smoke tests independently, use:
To run the Functional tests independently, use:
To run tests by other tags and ignore tests that contain @Ignore tags use:
As a result of the test execution -
serenity-maven-plugin will automatically generate the test report -
To manually aggregate the Serenity report execute the following command under