You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I add more details in the report using world.attach()?
When a step is in error, I get the screenshot in the json file, and in the Html report (generated with Cucumber HTML Reporter).
Sometimes the step is in error when comparing an array of values with expect().
In this case I would like to get the results of the expect() in the report.
I tried to add text to JSON file with world.attach() in step body but no success.
How to implement world.attach() to add more text?
…on Android (thanks to @youssef-t for the solution)
- Fix#216 - ensure step exceptions and `expect` failure results are added as errors to the json report
- Scenarios can now have descriptions which also appear in the json reporter output
I think this is now doing what you want. The exceptions or expect failure reasons are now added to the json report. Please get the latest rc version 3.0.0-rc.16
Hi,
How can I add more details in the report using world.attach()?
When a step is in error, I get the screenshot in the json file, and in the Html report (generated with Cucumber HTML Reporter).
Sometimes the step is in error when comparing an array of values with expect().
In this case I would like to get the results of the expect() in the report.
I tried to add text to JSON file with world.attach() in step body but no success.
How to implement world.attach() to add more text?
Example step definition:
Note: the same question has been partially processed in this post.
#26 (comment)
Thanks for your help.
The text was updated successfully, but these errors were encountered: