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

asked Sep 10, 2020 at 9:56

1 Answer 1

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

answered Sep 10, 2020 at 10:05
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.