GithubHelp home page GithubHelp logo

krishngx / java-selenium-testng-automation-framework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shirishk/java-selenium-testng-automation-framework

0.0 0.0 0.0 12.89 MB

Java + Selenium WebDriver + TestNG Framework

Java 24.30% HTML 59.78% CSS 9.56% JavaScript 6.37%

java-selenium-testng-automation-framework's Introduction

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:

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.

java-selenium-testng-automation-framework's People

Contributors

gitter-badger avatar shirishk avatar viszjag 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.