Giter Site home page Giter Site logo

swapan1230 / selenium-page-object-model-junit-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reachbharathan/selenium-page-object-model-junit-java

0.0 2.0 0.0 4.44 MB

AccountDemo site sample automation repository in Page Object Pattern using jUnit in Java

License: GNU General Public License v3.0

Java 100.00%

selenium-page-object-model-junit-java's Introduction

Selenium - Page Object Model

This is a sample project to demonstrate what is page object model framework and how it can used in selenium (This is only one way of implementing page object framework ).

junit is used as test framework. Sample application used for automation is http://accountsdemo.herokuapp.com/.

Dependency

  1. Java
  2. Maven

###libraries used

  1. Selenium
  2. Junit
  3. log4j

Steps to clone execute the tests

git clone https://github.com/reachbharathan/Java-Junit-POM-AccountsDemo.git
cd Selenium-Page-Object-Model-Junit-Java
mvn clean test

How to use this repo

  1. First have a look into the http://accountsdemo.herokuapp.com/ repo and create a test account register the
  2. Go to testSuite1 folder and go through the each @test in the class by step order
  3. Then proceed to testSuite2 and go through the class by step order
  4. Right click and Run each @test from any of the ide like intelliJ or eclipse and understand the test scenario flow
  5. Execute mvn clean test site from root folder, index.html report will be generated in target folder
  6. The entire test suite can be executed from a single test runner file "TestRunner"

Note

  1. For ease of use i have used chrome driver, ensure to reference to correct path of the chrome driver in the properties file depending on the path and OS
  2. This is just a sample project feel free to add more tests and mocks if interested.

selenium-page-object-model-junit-java's People

Contributors

reachbharathan avatar

Watchers

James Cloos avatar Swapan Bhowmik 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.