Skip to content

A sample projet for automated UI testing leveraging Selenide, Junit 5, Allure and Maven

Notifications You must be signed in to change notification settings

anilkulkarni87/SelenideFramework

Repository files navigation

Selenide Automation

Scope:

- Can be updated when leveraging this framework for a project
- Google search
- Junit 5 parametrized test

Built With

  • Selenide - Selenide is a framework for test automation powered by Selenium WebDriver
  • Maven - Dependency Management
  • Junit5 - Test Framework for Java
  • Allure - Test Reporting Framework
  • Docker - For generating Emailable report.
  • Java Faker - For dynamic test data.

How to Execute

  • Step 1: To execute the test.

    • Test Class 1
      mvn clean test -Dtest=<Classname1> -Duser=<user> -Dproperty=sample.properties
    • Test Class 2
      mvn clean test -Dtest=<Classname2> -Duser=<user> -Dproperty=sample.properties
  • Step 2: To look at Test report.

mvn allure:serve

Allure Report

Image of Allure Report

What it does now:

Ability to search on Google iteratively be leveraging Junit 5 Parametrized test

Emailable Report

To get emailable version of the report, we need to run the below command.

docker run -p 4040:4040 -p 5050:5050 -e CHECK_RESULTS_EVERY_SECONDS=3 -e KEEP_HISTORY="TRUE" -v "$(pwd)/target/allure-results:/app/allure-results" frankescobar/allure-docker-service

Once the docker container is up and running :

  • To view the report navigate to: http://localhost:5050/emailable-report/render
  • To export the report navigate to: http://localhost:5050/emailable-report/export
  • Emailable Report Sample

Authors

  • Anil Kulkarni

TODO

-Use picocli/other libraries for arguments.
-Exception handling.
-Better Test Data handling. 

Releases

No releases published

Packages

No packages published