Skip to content

Log and Screenshots are not following correct order as pushed to the scenario #390

@devqaio

Description

@devqaio

Describe the bug
As part of test, we push the logs and screenshots for a specific step in below order. The default out-of-box cucumber html report populates the details in that order

Log1
Screenshot1
Log2
Screenshot2

However, the generated report populates in below order
Log1
Log2
Screenshot1
Screenshot2

To Reproduce
Steps to reproduce the behavior:
Call below statements in step definition in multiple orders
ScenarioObject.log("MESSAGE : " + message);
ScenarioObject.attach(screenshot, "image/png", "");

Expected behavior
The scenario report will publish the entries in the order it was logged

Expected (From Cucumber Default HTML Report)

Image

Actual:

Image

Sample Json

1.json

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions