I have below function files (Separate function files) in src / test / resources / feature / and I would like to run them in parallel. For example: one function file should be executed in chrome, and another should be executed in firefox, as the @Tags name is indicated.
Feature: Refund item @chrome Scenario: Jeff returns a faulty microwave Given Jeff has bought a microwave for $100 And he has a receipt When he returns the microwave Then Jeff should be refunded $100 Feature: Refund Money @firefox Scenario: Jeff returns the money Given Jeff has bought a microwave for $100 And he has a receipt When he returns the microwave Then Jeff should be refunded $100
Can anyone help me achieve this. I am using cucumber-java version 1.2.2 and AbstractTestNGCucumberTests, using as a runner. Also let me know how I can dynamically create a test runner using function files and running them in parallel.
source share