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
can be found in src\test\resources\features Cucumber Runner is created in src\test\java\com\pageobect\demo\CucumberRunner.java
-
Identify a tag of a specific Feature or Scenario
-
Update Runner.java with the tag that captured in above step
-
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)
-
Identify a tag of a specific Feature or Scenario
-
Navigate to SeleniumDemo directory in command line
-
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
Can be found in testout/reports folder.