swapi is the testing framework for test tasks:
- Find planet for people with id 3
- Find all peoples from space Droid
To simplify work with DTOs, Project Lombok library was used - so to properly work with framework in IDE, it's recommended to use lombok IDE plugin
swapi is based on maven project with:
- test framework -
tesng - API access framework -
restassured - reporter -
allure-maven-plugin
-
Navigate to project's root directory:
$ cd swapi/ -
Run the following maven command:
$ mvn clean test -Dtesting.suiteXmlFile=src/test/resources/swapi-testtask-regression-suite.xml
#####Allure reports Framework contains:
- Allure TesNG Adaptor dependency to collect all information about running tests and to have an ability to use framework annotations.
All information is saved in XML files in the directory:
./target/allure-resultsRun the build to get test results:mvn clean test - Allure Maven Plugin which generates Allure report from existing XML files during Maven build.
Generate the report:
HTML report will be generated into
mvn site./target/site/allure-maven-plugin