question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Want step result(status) added to Test State

See original GitHub issue

Current 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:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vojtech-cervenycommented, Dec 7, 2022

Can you at least provide some information how did you resolve it? You know, be part of community, add some to community. 😉

0reactions
sadhishskcommented, Dec 7, 2022

@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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found