Website under test:
v1: https://demo.applitools.com/gridHackathonV1.html
v2: https://demo.applitools.com/gridHackathonV2.html
Tool: Selenium Webdriver
Language: Kotlin
Test Runner: TestNG
Reporting: see open report section
-
Download following browsers on your local for our traditional tests:
Chrome V80+, Firefox v75.0+, Latest Edge Chromium
-
There is no need to configure drivers, framework will detect your browser version and download compatible driver to run the tests automatically
-
Set Applitools API Key environment variable
-
For unix shells:
export APPLITOOLS_API_KEY='YOUR_API_KEY'
-
For windows:
setx APPLITOOLS_API_KEY='YOUR_API_KEY'
-
-
Clone the repository
git clone [email protected]:Ankit-Laddha/applitools_hackathon_2020.git
-
Modern tests are placed in package here: click to open
-
Traditional tests are placed in package here: click to open
-
We will use maven commands to trigger our tests.
- To run modern tests against App version v1
./maven_runner.sh version="v1" tests="modern"
- To run modern tests against App version v2
./maven_runner.sh version="v2" tests="modern"
- To run traditional tests against App version v1
./maven_runner.sh version="v1" tests="traditional"
- To run traditional tests against App version v2
./maven_runner.sh version="v2" tests="traditional"
- To run modern tests against App version v1
- For Modern tests report, go to Applitools Dashboard
- For Traditional tests
- Report for run against v1, open Traditional-v1-TestResults.txt
- Report for run against v2, open Traditional-v2-TestResults.txt
- For Html report, open allure report using below command. Note this is just to pretty-view the failures.
For exact reason of failures do refer
.txt
filesallure serve target/allure-results
- You can see the sample snapshot of html report by clicking here