Code Monkey home page Code Monkey logo

applitools_hackathon_2020's Introduction

Applitools Hackathon 2020

# Details

 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


# Setup / Pre-requisite

  • 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'


# Getting Started

  • Clone the repository

    git clone [email protected]:Ankit-Laddha/applitools_hackathon_2020.git
  • Modern tests are placed in package here: click to open

    • Tests for v1 and v2 version are identical. Hence I have disabled tests in V2.
  • Traditional tests are placed in package here: click to open

    • Tests for v1 and v2 version are also identical. Hence I have disabled tests in V2.

    • Important: I have tried to make v1 tests very exhaustive. For few locator differences present in v2 version, I have highlighted them with a comment in the v1 tests


# How to execute

  • 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"

#Open Reports

  • 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 files
      allure serve target/allure-results  
    • You can see the sample snapshot of html report by clicking here

applitools_hackathon_2020's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.