I am trying to test REST APIs using JMeter. My lead told me to do load testing on each API using JMeter. Currently I am testing a Get API request, and I am getting the below JSON response body.
Now I have to pass this JSON body to another HTTP request and test the API.
My questions:
- How can I trim double quotation characters from the JSON response body?
- How can I get the values of ts and auth using split method like (ts=20190221004021 and auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0=)
I know I can use a Regular expression Extractor or BeanShell PreProcessor to do all the actions, but I don't know how to do it. Can anyone guide me how I can trim and split the JSON response?