I'm running my automation suite with Selenium and Java with ReportNG as a reporting tool. When my test-runs are over I am getting the reportNG report in ascending order.
I want the report in the order in which they have been executed.
How can I do/configure that?
Thanks in advance.
Firstly you have to add ReportNG source files to your project. You can find them at https://github.com/dwdyer/reportng
Then you need to edit TestResultComparator.class. Change compare method for this:
This will order your Test Methods chronologically.
After that edit TestClassComparator.class. Change compare method for this:
It will order your Test Classes chronologically.