Skip to content

Conversation

flexoid
Copy link

@flexoid flexoid commented Sep 23, 2016

Solves this [#51] issue

Test from updated README

If the value should be parsed before memorizing, "parsed" modifier can be used.
For example:

Response data:

[
  {
    "uuid": "ad796a4b",
    "url": "/entities/ad796a4b"
  }
]
Given I keep the JSON at "0/uuid" as parsed "UUID"

Now %{UUID} will be replaced with ad796a4b instead of "ad796a4b", so it can be interpolated into the string:

Then the JSON should be:
"""
[
  {
    "uuid": "%{UUID}",
    "url": "/entities/%{UUID}"
  }
]
"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant