Parallel Running using Testng.xml | Selenium Forum
M
Posted on 18/11/2016
Hi ,

I have three test cases ( three classes) , I ran them parallel using parallel="tests" in TextNg.xml. In the Extent report, the test cases are not in order. Test cases are listed as per the time when it got executed. Screenshots attached.

I want them listed in order in the Extent report. Please let me know, how can i do this?
I want the report in the following way while running the test parallel.
SmallPack
SmallPack
SmallPack
PalletBuild
PalletBuild
PalletBuild
PalletBuild
ReporcessFull
ReporcessFull
ReporcessFull
ReporcessFull

Note: If I am not using Parallel then there is no issue, the report is in order

M
Replied on 18/11/2016

i don't think it could be changed. but look at the java docs of extent reports you might find something.


M
Replied on 21/11/2016

I believe the below code orders the Report display
extent = new ExtentReports( System.getProperty("user.dir")+"\\report\\"+fileName, true, [b:2npui1ga]DisplayOrder.NEWEST_FIRST)[/b:2npui1ga];

it Looks , few more options are there , but getting error when i tried to use. Please find the attachment.

Responsive image

M
Replied on 22/11/2016

[quote:aqtgifzb]few more options are there , but getting error when i tried to use.[/quote:aqtgifzb]

what is the error when you tried to use it?