html-report icon indicating copy to clipboard operation
html-report copied to clipboard

Sorting order of Scenarios not retained in Spec display

Open DvagNic opened this issue 3 years ago • 3 comments

Expected behavior

Sorting order of Scenarios should be mirrored from the Spec file.

Actual behavior

Sorting order seems random. It does not sort all failed scenarios at the top, the scenarios seem to not follow any sorting order in the html display.

Steps to reproduce

  1. Run tests, access html report
  2. Click on a spec and look at scenarios

Gauge version

Gauge version: 1.4.0
Plugins
-------
html-report (4.1.0)
python (0.3.17)
screenshot (0.1.0)
xml-report (0.2.3)

Screenshot

screenshot

DvagNic avatar Aug 17 '21 09:08 DvagNic

Can you share the corresponding spec file and reports from different runs please? The order of steps should not change, since they have precedence, so the report should show the steps in the order they were executed!

sriv avatar Aug 19 '21 04:08 sriv

I confused scenarios and steps. I mean the order of scenarios in the html output. I will change the initial text and the title accordingly. Sorry for that.

DvagNic avatar Aug 19 '21 09:08 DvagNic

Ah, that makes sense. Thanks for clarifying.

sriv avatar Aug 20 '21 02:08 sriv