I am using TestNG 6.9.9 and I want my emailable-report.html to have tests in the order they were executed. Looks like default behavior is the alphabetical order. Is there a way to order the tests with their end time (without having to generate the whole custom HTML report using IReporter)?
BTW, my testng-results.xml has the correct order (by execution time). Only the report has alphabetical order.
Thanks
Aparna
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Extend EmailableReporter2Here you basically extend the above mentioned class and just provide an overridden implementation of org.testng.reporters.EmailableReporter2#writeScenarioDetails(), inject your custom implementation as a listener and disable the default EmailableReporter2 that TestNG generates [ this is to ensure that you don't end up causing two reporters to step on each others shoes because both of them would be writing to the same file ]
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.