cucumber-api
cucumber-api copied to clipboard
When I grab the json result as a veriable in a Scenario,how can I use it in other Scenario
When I grab the json result as a veriable in a Scenario,how can I use it in other Scenario.
Scenario: One
...
Then I grab wallet address "$..address" as "company_address"
...
Scenario: Two
...
When I set JSON request body to:
"""
{
"company_address": "{company_address}"
"""
When I send a POST request to "{url}"
...
But,in the Scenario Two, company_address'value is not what I want.
Placeholders won't work inside triple quotes unfortunately.
@hidroh ,in the same Scenario, I just use this method:resolve(), it worked. But in the same Feature, diffrent Scenario,it can't work.
Placeholders won't work inside triple quotes unfortunately.
I have a quick and dirty version of this that I have been using which works for my needs. I'll put it in a PR to see if you think it might be worth adding.
Thanks very much.