문제

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

올바른 솔루션이 없습니다

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top