Skip to content

This repo contains E2E solution for selenium test automation framwork

Notifications You must be signed in to change notification settings

beneite/Selenium_E2E_Automation_framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application URLs

Table of Contents

Project Architecture

projectArchitecture.png

How to run test from Target folder

  • Issue this command. mvn clean package -DskipTests. You should see docker-resources under target.
  • docker-resources should contain following directories. Ensure that files are present under these directories.
    • config
    • libs
    • test-data
    • test-suites
  • Go to docker-resources via command line. Then issue this command. One of them should work.
    • java -cp 'libs/*' org.testng.TestNG test-suites/flight-reservation.xml
    • java -cp libs/* org.testng.TestNG test-suites/flight-reservation.xml
    • java -cp "libs/*" org.testng.TestNG test-suites/flight-reservation.xml
  • Windows Users
    • Try in PS
    • Try in regular command prompt. (cmd)
  • Mac/Linux Users
    • Try via bash

Running Tests from target using env variables

TestNG parameters

  • Go to docker-resources via command line. Then issue this command. One of them should work.

  • Running a test suite

java -cp 'libs/*' org.testng.TestNG test-suites/flight-reservation.xml

  • Running a test suite with specific thread count

java -cp 'libs/*' org.testng.TestNG -threadcount 2 test-suites/flight-reservation.xml

  • TestNG by default creates test-output directory. You can change it with -d option.

java -cp 'libs/*' org.testng.TestNG -threadcount 2 -d result test-suites/flight-reservation.xml


System Properties

  • To pass the browser option

java -Dbrowser=chrome -cp 'libs/*' org.testng.TestNG test-suites/flight-reservation.xml

  • To run the tests using Selenium Grid

java -Dselenium.grid.enabled=true -Dselenium.grid.hubHost=localhost -cp 'libs/*' org.testng.TestNG test-suites/flight-reservation.xml

  • To run the tests using Selenium Grid with specific thread count

java -Dselenium.grid.enabled=true -Dselenium.grid.hubHost=localhost -cp 'libs/*' org.testng.TestNG test-suites/flight-reservation.xml -threadcount 2

Need to add the below things:

  • Log4j
  • extent report

About

This repo contains E2E solution for selenium test automation framwork

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published