This is a starter project for my Web and REST API Test Automation projects. It uses Page Object Model with page objects containing action methods as well.
It also includes some demo test cases for automating sample test cases in Automationpractice.com
and GoREST API
- Selenide(Selenium wrapper - Web UI Testing)
- REST Assured(API Testing)
- JUnit(Test Orchestration)
- Allure(Reporting)
- Java Faker(Test Data Generation)
- Add the UI tests to the src/test/java directory under the ui.tests package
- Add the page objects to the src/test/java directory under the ui.pageobject package
- Add the API tests to the src/test/java directory under the api.tests package
- Add any helper methods and entities to be used in tests to to the src/main/java directory under the entities and util packages
Note: The files located within the demo.* package are sample ui & api tests and related test files. You can check those for help while creating tests
mvn test
Allure results are generated in the root directory under allure-results after test run. To open the allure results, you can use the mvn allure:serve
maven goal from command line.
You can also uncomment the serve
goal in the pom.xml under build/plugins/plugin/executions/execution/goals
to activate auto-serve and open the allure report after the test run in your default browser automatically.
- reports - contains allure results and screenshots
- src/main/java - Framework related classes
- entities - Entities and Enums for test classes
- util - Helper classes
- src/test/resource - properties and configuration files
- src/test/java - Test Classes
- api.tests - API Test Classes
- ui.tests - UI Test Classes
- ui.pageobjects - Pageobjects for UI Classes
- src/test/resource - Test Resources