Skip to content

maheshglm/selenium-cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Demo project is created using Java8, Cucumber, Junit to build a basic Automation framework. Maven as a build tool and using cucumber-jvm-parallel-plugin to run SCENARIOS in parallel. This framework supports Cross Browser + Parallel + Cucumber testing

=== Feature files & Runner

can be found in src\test\resources\features Cucumber Runner is created in src\test\java\com\pageobect\demo\CucumberRunner.java

=== To Execute a specific Feature or Scenario (in Sequential):

  1. Identify a tag of a specific Feature or Scenario

  2. Update Runner.java with the tag that captured in above step

  3. Run 'CucumberRunner.java' class

    or $ mvn clean test (will by default trigger CucumberRunner Test with predefined tag)

    or $ mvn clean test "-Dcucumber.options=--tags @tag1, @tag2..." (to trigger specific tags)

=== To Execute specific Scenarios in parallel:

  1. Identify a tag of a specific Feature or Scenario

  2. Navigate to SeleniumDemo directory in command line

  3. Run 'mvn clean test -Dparallel.tag.name=@tagname -Drunner.classes=**/ParallelIT.class'

    Ex: $ mvn clean test -Dparallel.tag.name=@select_flight -Drunner.classes=**/ParallelIT.class

=== Reports

Can be found in testout/reports folder.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published