Skip to content

When I grab the json result as a veriable in a Scenario,how can I use it in other Scenario #27

Open

Description

@Donghaopeng

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.

Activity

  1. hidroh commented on Jul 17, 2018

    @hidroh
    Owner

    Placeholders won't work inside triple quotes unfortunately.

  2. Donghaopeng commented on Jul 19, 2018

    @Donghaopeng
    Author

    @hidroh ,in the same Scenario, I just use this method:resolve(), it worked. But in the same Feature, diffrent Scenario,it can't work.

  3. biggianteye commented on Jul 23, 2018

    @biggianteye
    Contributor

    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.

  4. Donghaopeng commented on Sep 5, 2018

    @Donghaopeng
    Author

    Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions