This framework supports the API and UI automation through Selenium and Rest Assured library. Written in Java programming language and supports Extent Reporting. It is expected to supports running the test on Jenkins OR BrowserStack cloud.
- Selenium - Browser automation framework
- Rest Assured - API automation Library
- Java - Programming language
- Maven - Dependency management
- TestNG - Testing framework
- Extent Report - Reporting framework
- Selenium - Version 4 or higher
- Rest Assured - Version 4.4.0 or higher
- Java - Version 1.7 or higher
- TestNG Plugin - Latest
- Maven
- Jenkins
- Chrome/Edge browser installed - Any Version
- JAVA_HOME and MAVEN_HOME Environment variable configured
- Jenkins OR BrowserStack User ID and Access Key - Optional (If needs to run on BrowserStack)
- Download the zip or clone the Git repository.
- Unzip the zip file (if you downloaded one).
- Open the Eclipse and Import the Maven project
- Navigate to the .\resources folder and open the Config.properties file, change the details like User credentials, Environment name, and check the application details like URL, application credentials (Username, Password) and application test data.
- Keep the "platFormName" as "local" if you want to test on a local machine.
- In the same TestData.properties file, check the API details like Base URI, credentials like User ID, Token etc and change accordingly.
- Open the Jenkins UI and configure the project (if needs to be executed from Jenkins)
Right-click on the testNG.xml file and Run as TestNG Suite
Right-click on the Project name and Run as Maven Test
Access the Jenkins project and click on Build Now
######D. Using Browser Stack
######Execution Report Extent report HTML file 'ExtentReportResults.html' can be accessed from the test-output folder.
User can get the extent reports via email