Search code examples
testngtestng-eclipse

testng.xml not executing classes one by one


PhFramework.pizzas.bbqMeatFeast.cheesyBites.LargeTest should execute all tests before proceeding to PhFramework.pizzas.bbqMeatFeast.classicCrust.LargeTest

TestNG seems to be executing the first @Test within all the classes, if i execute only one Test Class at a time it works fine.

enter image description here

testng.xml code: the following will fail, but if i remove one of the classes it works. enter image description here

Please can somebody advice what could cause this issue?

thanks for your help


Solution

  • On line no 4 of your testng.xml, it should be:

    <suite name="Suite" parallel="tests" preserve-order="true">