vendredi 9 février 2018

Randomizing TestNG Invocations

Similar to: Run TestNG tests in random order but different as this question does not include invocations.

TestNG randomizes the tests themselves but the invocations will all run in a row. For Example:

@Test(invocation=2) public void A{}
@Test(invocation=2) public void B{}

will either run AABB or BBAA but I was hoping to have them run in a truly random manner (ABAB, BABA, ect)

Is there anyway to accomplish this with TestNG, at the moment all I can think of is changing my tests to methods called by one test that controls the order but I hoping for something built in to TestNG that I overlooked.

Aucun commentaire:

Enregistrer un commentaire