Enter your email address:
Ex: 1st time i need to execute 1,3,5,7,9…
2nd time 2,4,6,8,…
3rd time 1,5,7,8,45,34,56,58,….
so like this every time it vary from set to set…
You can probably use the TestNG’s grouping feature which lets you to group the related @Test methods.
And to run specific @Test you can use include or exclude in TestNG.xml
For details you can refer the TestNG documentation :