1

For example, my query is $._data[?(@.label == 'IssueID' )].id now in place of 'IssueID' i want to use the jmeter variable like $._data[?(@.label == ${IssueID} )].id or $._data[?(@.label == '${IssueID}' )].id.

It returns only the default value of JSON Extractor not from the json.

Tried the above query with default value from JSON instead of Jmeter variable. It works fine there is no issue in query only think is i need to use Jmeter Variable in it

2

Both are wrong, you should be using the following syntax:

$._data[?(@.label == '${IssueID}' )].id

You basically need to replace the hard-coded value of IssueID with the equivalent JMeter Variable and the substitution will happen in the runtime.

You can observe JMeter Variables along with their respective values using Debug Sampler and View Results Tree listener combination

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.