Applitools Holiday Shopping Festival Hackathon

Automated visual validation testing using Applitools across several browsers and devices using Ultrafast Cloud solution from Applitools.

Table of Contents

  1. About the repository
  2. Demonstration
  3. Installation
  4. Execution using the terminal
  5. Execution using Eclipse IDE
  6. Test Execution Results
  7. Pixel based comparison demo

About the repository

  • This repository was created as part of Applitools Holiday Shopping Hackathon entry.
  • This assignment is created using Selenium webdriver available in Java binding to automate the browser actions.
  • TestNG is used as the testing framework.
  • It also uses Maven to manage dependencies effortlessly.
  • Structure:
    • Two packages:
      • applitools.HolidayShoppingHackathon
      • base
    • Two classes:
      • BaseTests.java
      • AllTests.java
    • resources directory
      • chromedriver
    • pom.xml
    • testng.xml

Demonstration

Ultrafast Cloud

Prerequisites & Installation

  • An account is created with Applitools. If you don't have one, you can create a free account from here.
  • Dependencies:
    • Java 10+ (I have used Java 11)
    • Maven 3.6.3
    • Chrome browser. I currently have v87 on my machine.
    • Chromedriver executable
  • The environment variable for APPLITOOLS_API_KEY is correctly set in your system path.
  • The chromedriver should be compatible with your browser version. Click here to understand what version is applicable to your machine and replace it with the one placed in the resources directory.

Execution (using the terminal)

  1. Clone the repository using the command git clone https://github.com/shwetaneelsharma/applitools-holiday-shopping-festival-hackathon.git.
  2. Open the terminal and navigate to the project directory.
  3. To run all the tests, execute the command mvn clean test -DsuiteXmlFile=testng.xml in your terminal.
  4. NOTE: Since chrome is configured to run in headless mode, you will not see a physical browser opening up.

Execution (using the IDE)

  1. Import the maven repository in the Eclipse IDE.
  2. If needed, change the project compliance and JRE to 10.
  3. Right click on testng.xml -> Run As -> TestNG Suite`.
  4. Here is the demo for your convenience Importing the project in Eclipse and setting the correct Java compliance

Test Execution Results

PART 1

Main Page Filtered Product Grid Product details
Test 1 Test 2 Test 3

PART 2

Main Page Filtered Product Grid Product details
Test 1 Test 2 Test 3

PART 3

Main Page Filtered Product Grid Product details
Test 1 Test 2 Test 3

Pixel based comparison demo using the Exact match level

Demonstration