Saving values/return values from steps for later use/steps #768
Unanswered
MichaelBarulin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This seems like a candidate for scenario outline, so that you can change the value to be different (e.g. +5, -5, 0) and create a new test automatically for each value where each row is substituting the value of changes so each step can reference the heading of the examples table to get the value for each test. I would suggest looking at scenario outlines in the documentation. Let me know if this isn't what you meant! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm looking for an idiomatic solution for passing values to later steps without relying on the return value of fixtures.
Consider the following case:
`Scenario:Change a value on a website
I'd like to avoid having a step specifically reading a value, and even if I did, it shouldn't cache the value since it could be used multiple times in a step, but at the same time calling it after an action it would return the new, modified value. In a regular test, one would simply save the value to a variable and compare it afterwards - what would be the best approach here for saving a value for future comparison?
Beta Was this translation helpful? Give feedback.
All reactions