GithubHelp home page GithubHelp logo

java-junit-selenium's Introduction

Java, Junit and Selenium Test Automation Project

Description:

This project was developed based on the SauceDemo Website to ensure the BuyFlow of distinct users. Therefore, were created some E2E test cases related to positive and negative scenarios.

The tests are performed using a cross-browser approach and at that moment are considering the following browsers:

  • Google Chrome, Firefox and Microsoft Edge.

Any additional browser is possible to run, just adding it in the BaseTest class.

Getting Started

Dependencies

The stack used for that is Java (11.0.12 or higher), Maven(3.8.4 or higher), Docker (20.10.20 or higher), Junit 4 and Selenium 4.

However, to run the project it is only necessary to install Make and Docker.

How to Run

The automated tests are performed using Junit and Selenium Grid to run in a parallel and parameterized way and with all declared browsers. So, for that is just necessary to deploy selenium grid (http://localhost:4444/ui) to make available all these browsers in specific nodes. In addition, this docker-compose file will build the app based on the maven project and will run all tests.

To execute the docker-compose commands, just type:

make up

Test Results

To get all output files copy them from docker container to your machine:

docker cp <<docker_container>>:<<DOCKER_FOLDER>><<DIR_LOCAL_MACHINE>>

Example:

docker cp 4bebbe8a8632:/sample C:/test

The test report is generated in the following path: target/site/index.html and all screenshots are stored in src/test/resources/screenshots

Maintainers

Contributors names and contact info

If you have questions or suggestions, please contact the current maintainers: [email protected]

java-junit-selenium's People

Contributors

andredieguesrodrigues avatar

Watchers

 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.