extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

v3 Report logs pass as skip in retry

Open saikrishna321 opened this issue 8 years ago • 12 comments

@anshooarora

i have retry on failure, so when my test fails the first time(Skip) and passed the next run ( Pass), report should consider it as Pass and not as Skipped

Refer the screenshot below screen shot 2016-11-09 at 6 23 10 pm

saikrishna321 avatar Nov 09 '16 12:11 saikrishna321

@anshooarora ping, this is giving a wrong test results report.. can you pls help

saikrishna321 avatar Nov 10 '16 04:11 saikrishna321

This is because SKIP has higher priority than PASS. There was an old discussion due to which I had set the priority like so, otherwise PASS always had higher priority.

anshooarora avatar Nov 10 '16 16:11 anshooarora

@anshooarora this is giving a wrong feel, the test case skipped the first time and passed the second time on re-run .

Looking at skip, it gives a wrong data on the dashboard and we panic seeing the reports on pipeline and when your on CI/CD which is very aggressive

Do you think we need to consider FATAL, FAIL, ERROR, WARNING, PASS, SKIP, INFO, WARNING ?

saikrishna321 avatar Nov 10 '16 17:11 saikrishna321

I will let this hierarchy remain but provide a way to setup your own hierarchy. Would that work?

anshooarora avatar Nov 10 '16 18:11 anshooarora

cheers , that works :-)

saikrishna321 avatar Nov 11 '16 00:11 saikrishna321

@anshooarora Can we have this in 3.0.1?

SrinivasanTarget avatar Nov 11 '16 05:11 SrinivasanTarget

@SrinivasanTarget yes

anshooarora avatar Nov 12 '16 23:11 anshooarora

@anshooarora any tests for this ? which would help on how to use it ..

saikrishna321 avatar Nov 13 '16 00:11 saikrishna321

@saikrishna321 - docs & tests coming soon..

quick usage:

List statusHierarchy = Arrays.asList(
                    Status.FATAL,
                    Status.FAIL,
                    Status.ERROR,
                    Status.WARNING,
                    Status.SKIP,
                    Status.PASS,
                    Status.DEBUG,
                    Status.INFO
);

extent.config().statusConfigurator().setStatusHierarchy(statusHierarchy);

anshooarora avatar Nov 13 '16 00:11 anshooarora

can this be used in current version or next release ?

saikrishna321 avatar Nov 13 '16 05:11 saikrishna321

3.0.1 onwards.

anshooarora avatar Nov 13 '16 05:11 anshooarora

Customizable status hierarchy is great. Thank you.

What do you think about letting the user to express status agregation algorithm for any group level (ie.: test groups and suites). It would be more flexible and customizable than simply using status hierarchy. Is this possible currently? Otherwise I don't know the impact of such feature on current code but please, consider it.

fragonib avatar Nov 09 '17 08:11 fragonib