Is there any way by which I can control the ordering of the reports of the tests executed in a testng report.
Asked
Active
Viewed 161 times
-3
-
What language are your tests written in? – user1643723 Jan 14 '16 at 07:57
-
What is the report? What exactly you are testing? Make your question more explicit – Andersson Jan 14 '16 at 08:05
-
can you make your question more explicit, are you generating reports through testng.xml or are you talking about normal test reports? – Paras Jan 14 '16 at 08:24
-
Hello, @user1643723, I am using Java. – Sayom Jan 14 '16 at 09:11
-
@Andersson - The report is a surefire report that I am generating. – Sayom Jan 14 '16 at 09:11
-
@pArAs I am not generating it from testng.xml, rather I am using the Maven plugin report (surefire report) – Sayom Jan 14 '16 at 09:11
-
Possible duplicate of [How to run maven tests in a specific order?](http://stackoverflow.com/questions/24252705/how-to-run-maven-tests-in-a-specific-order) – user1643723 Jan 14 '16 at 11:54
1 Answers
1
Use priority
in your test e.g. @Test(priority=1)

Chandrashekhar Swami
- 1,742
- 23
- 39
-
as I am using Maven plugin report (surefire report), and not TestNG report, so even setting the priority is not working. – Sayom Jan 14 '16 at 09:16
-
as I am using Maven plugin report (surefire report), and not TestNG report, so even setting the priority is not working. – Sayom Jan 14 '16 at 09:16