Frage

I have a bunch of TestNG tests that run using a DataProvider as a bunch of parameters.

My Runner looks something like this:

   <methods>
     <include name="test1">
     <include name="test2">
   </methods>

So lets say if i have two parameters (param1 and param2) from the Dataprovider, the test executes in the following sequence:

test1 with param1
test1 with param2
test2 with param1
test2 with param2

Is there a way to make it run all test cases per parameter. i.e., the execution should be as follows:

test1 with param1 test2 with param1 test1 with param2 test2 with param2

Keine korrekte Lösung

Andere Tipps

I think you will need 2 data providers.. makes you program better to understand and easier to expand...

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top