Want step result(status) added to Test State
See original GitHub issueCurrent behavior
Currently we don’t have test step result(status) stored in test state. We need it to be stored in test state to update the test results json based on the current test case passed or failed. By virtue of it, We are blocked from upgrading our cypress cucumber framework to latest version. We have this option in older cypress cucumber version => (window as any).testState.runTests[testState.currentScenario.name[testState.currentStep].status
Currently we have picklestep, pickle & pickles in test state. Do you think can we add step result(status whether current step passed or failed) or spec result to the test state?
Desired behavior
Test code to reproduce
Versions
- Cypress version:
- Preprocessor version:
- Node version:
Checklist
- I’ve read the FAQ.
- I’ve read Instructions for logging issues.
- I’m not using
cypress-cucumber-preprocessor@4.3.1(package name has changed and it is no longer the most recent version, see #689).
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How Does the Status Expression Work in TestStand? - NI
For a step in TestStand, the Status Expression sets the value of the property Step.Result.Status. This property is a string type and defines ......
Read more >Step results record - Product Documentation | ServiceNow
The Step Results record contains information about one step in a test result. You access specific step results from the Step Results related ......
Read more >Customizing Test and Step Execution Statuses | Zephyr ...
Zephyr Squad uses a number of statuses to indicate the current state of your test or test step execution. You can edit these...
Read more >How do you make a Sequence Call return Done? - narkive
To add Action and Test Sequences, you just select the Sequence Adapter Type, and add Action or Test sequences just like any other...
Read more >Share steps between test cases - Azure - Microsoft Learn
With the use of Shared Steps and Shared Parameters work items, you can minimize the creation of test steps and data that you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can you at least provide some information how did you resolve it? You know, be part of community, add some to community. 😉
@vojtech-cerveny I have got the test status in afterEach hook class via this.currentTest?.state. This gave me the spec status whether its Passed or Failed. 😃