GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Java-Selenium-TestNG-Automation-Framework/README.md at master · shirishk/Java-Selenium-TestNG-Automation-Framework

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
42 lines (33 loc) · 2.83 KB
/

README.md

Copy path

File metadata and controls

42 lines (33 loc) · 2.83 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Introduction: Build Status Join the chat at https://gitter.im/shirishk/Java-Selenium-TestNG-Automation-Framework

This Test Automation Framework is created using Java + Selenium Web Driver + TestNG. Which can be used across different web based applications. In this approach, the endeavor is to build a lot of applications independent reusable keyword components so that they can directly used for another web application without spending any extra effort. With this framework in place, whenever we need to automate a web based application, we would not need to start from scratch, but use the application independent keyword components to the extent possible and create application specific components for the specific needs.

Prerequisites:

  • Java jdk-1.8 or higher
  • Apache Maven 3 or higher
  • Please refer for any help in Maven.
  • http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
  • http://www.tutorialspoint.com/maven/maven_environment_setup.htm

Environment:

  • There are 5 different environment configuration set up [dev, local, qa, stage, and prod]
  • Use -P[environment_id] to copy the respective properties file to //config/env.properties

Execution:

  • Clone the repository.
  • Open command prompt and go to web-test directory.
  • To run on local environment use command .....\Java-Selenium-TestNG-Automation-Framework> mvn clean test -Pdev

Logging:

  • log4j configured to capture the test execution logs
  • Configuration file is located at //config/log4j.xml
  • Execution log is captured in the //log/Automation_Execution.log

Screenshot:

  • Most of the time we think to Capture Screenshot in WebDriver when some kind of error or exception surfaces while practicing testing, to resolve the same the framework has a method.
  • getScreenshot() is used to indicates driver to capture a screenshot and store it in //screenshot/packageName directory.

Reporting:

  • The framework produce index.html report. It resides in the same 'target\surefire-reports' folder. This reports gives the link to all the different component of the TestNG reports like Groups & Reporter Output. On clicking these will display detailed descriptions of execution.
  • You can find emailable-report.html from target\surefire-reports to email the test reports. As this is a html report you can open it with browser.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.