Skip to content

A complete GUI Web Check example using Java, Cucumber, Junit and Selenium providing a real-world example.

Notifications You must be signed in to change notification settings

gunzpro21/SeleniumCucumberJunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is gone, and I'm too exhausted to configure the outdated versions of Chrome, Selenium, and Cucumber. This project has far too many problems. It was the final time I could run it with the project attached. I use playwright now; sorry, dumb selenium.

Don't hesitate to give me a ⭐ to make the project more popular.

Selenium Complete Example

  • This framework for automation in checking Website using Selenium, Cucumber and Junit 4. You can reach me.
  • The framework has following features:
  1. Modular Design
  2. Maven based framework
  3. Log4j2 enabled for logging
  4. Report Generation (Extent-reporting)
  5. Helper class to handle web component such as (Button, Wait,... etc)
  6. Using gherkin to develop feature files
  7. Centralized Configuration (Using Properties file)
  8. POM
  9. LOMBOK
  10. Page Factory
  11. Screen shot at the end of every scenario

⚠️ Note

What is automation in testing? The Web is abuzz with talk about “automated testing” and “test automation”. Automation comes with a tasty and digestible story: eliminate “manual testing”, and replace messy, complex humanity with reliable, fast, efficient robots! Testing can not be automated and automate all your test cases does not give you a full status of your product. Heuristics of GUI Automation Tools give you a better approach to automation. The Round Earth model guides you what you need to spend your effort for automation in testing.

What is BDD? You are trying to automate test cases with a supporting tool to write some tests with human natural language, BDD does not look like that. You should Learn about BDD, VisualTest and Approval Testing, it will help you what is BDD and how to use it correctly. Andy Knight has written a Better behavior-driven development: 4 rules for writing good Gherkin.

Required software

How to execute the tests

Runner:

  • You can open the RunnerTest on src\test\java\runners and change the feature you want to execute, but I recommend you run it by the command line. It enables us to run in different test execution strategies and, also in a pipeline, that is the repo purpose.

Command line:

mvn -Dtest=RunnerTest test

Cucumber Report

Over view: image Detail page: image Screeshot of a scenario: image

About

A complete GUI Web Check example using Java, Cucumber, Junit and Selenium providing a real-world example.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published