repeating test cases using testng in specific order TestA -> TestB -> TestC -> TestA -> TestD

前端 未结 1 1856
后悔当初
后悔当初 2021-01-26 16:54

I want to be able to execute test cases in this specific order where in each one is dependent on the previous one. Note that TestA and TestC is going to be executed again in thi

相关标签:
1条回答
  • 2021-01-26 17:39

    It is not possible to run the same test many times during one run.

    Instead, you can have:

    TestA -> TestB -> TestC -> TestD -> TestX -> TestY
    

    where TestD and TestY are just calling TestA and TestC methods.

    Then, you just have to configure dependency between methods: http://testng.org/doc/documentation-main.html#dependent-methods

    0 讨论(0)
提交回复
热议问题