I've been trying to figure out how to configure a simple JSON Path extractor (provided on jmeter-plugins) and where to put it (inside an Http sample, outside...)
As you can see, ${expiredaccesstokenerror} is empty.
In order to fill this variable, I'm trying to extract a vallue from body response:
As you can see I'm trying to extract from json body content like:
{
"error_description":"Access token expired",
"suberror":"expired_accesstoken",
"error":"invalid_grant"
}
So, I've set JSON extractor for extracting $.suberror
, however, it's always empty.
suberror":"(.*)",
, template=$1$
and match=1
. If it succeeds, definitely a problem with JSON extractor. If it also returns an empty value, then something else is a problem. – Kiril S.