Skip to content

dkovzan/applitools

Repository files navigation

Applitools hackaton

The challenge is to write five (5) automated tests for both versions of the app:

  1. One suite using your preferred traditional functional testing approach
  2. Another suite which covers the same tests but uses visual AI testing with Applitools

Preconditions:

  1. Download and install Java 8 (e.g. jdk1.8.0_231) and maven (e.g. apache-maven-3.6.3).

  2. Setup JAVA_HOME and MAVEN_HOME environment variables e.g. Guide and check them via commands:

echo %JAVA_HOME%
echo %MAVEN_HOME%
  1. 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

Steps to run:

Main configuration file is located at resources/test.properties.

  1. Clone repository to your PC.

  2. Open repository.

  3. Specify you API key in resources/test.properties file:
    applitools.api.key=your-key-here

  4. 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

  1. Specify screen resolution in test.properties:
    screen.width=1024
    default=1024
    screen.height=768
    default=768

  2. 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

Example of test.properties file for Windows with Chrome v78:

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

About

Applitools hackaton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published