How to Run Cucumber TesNG in multibrowser with Parallel

24 Views Asked by At

Hook:

@Before(chrome) {initiate Chrome}

@before(firefox) {initiate ff}

Feature: @chrome @firefox Scenario 1 {Given, When Then}

Actual result: Chrome and FF browser trigger at same time but test run on ff and nothing happens on Chrome

TestRunner: CucumberOptions: extends AbbstractTestNG --> Returns super.scenarios.

Options Tried:

  1. Used Tags in Runner ex: Chrome --> In this case, all tests run on Chrome browser but also firefox opens whererever both tags are mentioned.

  2. I need to copy same scenario multiple times with different browser tag then it works.

0

There are 0 best solutions below