I have a web scenario where I need to use a token from one request in the next step. In my first step I have my request and the following:
Variables
Name: {token}
Value: regex: "token": "(.*)",
Example JSON:
{
"id": "1234",
"token:: "abcd",
"access: "true"
}
I get an error saying "cannot extract the value token from response"
I'm pretty sure I'm getting my regex wrong, with missing escaped quotes or something, but I've tried as many combinations as I can think of and I've validated that this is a valid PCRE regex expression.
Variables
Name: {token}
Value: regex: "token": "(.*)",
Example JSON:
{
"id": "1234",
"token:: "abcd",
"access: "true"
}
I get an error saying "cannot extract the value token from response"
I'm pretty sure I'm getting my regex wrong, with missing escaped quotes or something, but I've tried as many combinations as I can think of and I've validated that this is a valid PCRE regex expression.
Comment