Skip to content

lavanyam210/hawk_eye_mmt_e2e_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMT Automation - HeadSpin Hackathon

Web Automation Testing of one of the flows of Make My Trip site.

Pre-requisites

Note: This project makes use of some preview features of Java 14

Project Structure

The main directories / files in the project are as below:

  • tests: The directory for all tests
  • business_layer: An orchestration layer that contains all business logic and assertions
  • ui_layer: Directory that contains all pages or components where actual interactions with the elements take place. It also contains factory classes which return correct instances based on run time information.
  • resources: Resources that are required for the tests like test data, testNG.xml, etc.
  • helpers: Directory that contains helper classes like DriverHelper, RunHelper, etc.

Architecture diagram

Execution Diagram

User Journey that is Automated

  • Visit "Make My Trip" Page
  • Search Hotels
  • Select Hotel and Room
  • Fill in Details
  • Proceed to Checkout
  • Check Booking Summary

Run Test

Tests can be run on locally or on remote HeadSpin browsers. This is achieved by using different testNG.xml files and passing the required file_path as parameter. Please run the test commands from the project directory hawk_eye_mmt_e2e_test.
Note: Tests can be run in parallel.

Run tests locally:

mvn clean test -Dsurefire.suiteXmlFiles=src/test/resources/testng_local.xml

Run tests on HeadSpin browsers:

mvn clean test -Dsurefire.suiteXmlFiles=src/test/resources/testng_remote.xml

Video of a remote test run can be found here

Reports

Allure reports are generated after tests run:
Allure Report

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages