The challenge is to write five (5) automated tests for both versions of the app:
- One suite using your preferred traditional functional testing approach
- Another suite which covers the same tests but uses visual AI testing with Applitools
-
Download and install Java 8 (e.g. jdk1.8.0_231) and maven (e.g. apache-maven-3.6.3).
-
Setup JAVA_HOME and MAVEN_HOME environment variables e.g. Guide and check them via commands:
echo %JAVA_HOME%
echo %MAVEN_HOME%
- Download and install Google Chrome browser v78.x.
If any other, then place chromedriver in resources/drivers/chromedriver folder and specify path to it in resources/test.properties file:
webdriver.chrome.driver = path/to/chromedriver
Main configuration file is located at resources/test.properties.
-
Clone repository to your PC.
-
Open repository.
-
Specify you API key in resources/test.properties file:
applitools.api.key=your-key-here
-
Specify in resources/test.properties file following values:
host=https://demo.applitools.com
default=https://demo.applitools.com
loginPage=/hackathonV2.html
default for V2 = /hackathonV2.html, for V1 = /hackathon.html
5.1. For Linux specify:
webdriver.chrome.driver=resources/drivers/chromedriver/chromedriver78Linux in resources/test.properties file
5.2. For Windows specify:
webdriver.chrome.driver=resources/drivers/chromedriver/chromedriver78Win64.exe in resources/test.properties file
-
Specify screen resolution in test.properties:
screen.width=1024
default=1024
screen.height=768
default=768 -
Run test framework:
- Run "startTraditionalTests.sh" script in terminal for TraditionalTests with Selenium + Java.
startTraditionalTests.sh
- Run "startVisualAITests.sh" script in terminal for VisualAITests.
startVisualAITests.sh
host=https://demo.applitools.com
loginPage=/hackathonV2.html
webdriver.chrome.driver=resources/drivers/chromedriver/chromedriver78Win64.exe
applitools.api.key=your-key-here
screen.width=1024
screen.height=768