-
This project demonstrates POM pattern and how it can be used in Selenium to automate any application. Maven is used as test framework. Also, I've implemented the API automation using Rest Assured.
-
For passing test data, and for separating test types UI, API etc Cucumber is utilized.
-
For reporting cucumber reports are used and reports can be found in the folder "target/cucumber-reports/advanced-reports/cucumber-html-reports/feature- overview.html". Also, there are different styles of reports inside "target" folder
-
For UI failed cases, screenshots can be found in folder "screenShots" folder.
-
Prerequisite: JDK 8 or above, and Maven 3.6 or above
-
To run the all the tests use the following command:
mvn clean install
Tests are divided and in ui and api, and tagged with @ui and @api in feature files.
If a user wants to run only API tests the command for that is :
mvn test -Dcucumber.filter.tags="@api"
If a user wants to run only ui tests the command for that is :
mvn test -Dcucumber.filter.tags="@ui"
-
A user can also directly run "src/test/java/runner/TestRunner.java" file to execute tests
-
Logs can be found as application.log inside the project
-
Notifications
You must be signed in to change notification settings - Fork 2
prit-misik/api-and-ui-automation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This project demonstrates how we can use Selenium Webdriver for web automation and Rest Assured for API automation in a single project
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published