5

How to Use Http request/JSON extractor(using Jmeter Variable) in Jmeter with Response assertion(using Jmeter Variable). better to provide with Example?

asked Feb 10, 2017 at 15:26

1 Answer 1

5

For example you have the following response:

JSON Response

And you need to extract John from it.

  1. Add JSON Extractor Post Processor
  2. Configure it as follows:

  3. That's it, you now have ${name} JMeter Variable with the value of John

    Variable from JSON Response

If now you want to validate its value you can add a Response Assertion and configure it like:

  • Apply to -> JMeter Variable -> name
  • Pattern Matching Rules: Equals
  • Patterns to Test: John

Response assertion for a JMeter Variable


answered Feb 10, 2017 at 16:11
1
  • Excellent.... !!. I hope this will help to other Jmeter learners as well. cheers..! Commented Feb 10, 2017 at 16:31

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.