I have to admit I'm not the biggest fan of JMeter...but it is very useful for testing! I think the reason I don't really like it is because it is poorly documented on the internet. I was having trouble getting this to work as my HTTP response was returning a list of items and I wanted to check for a specific String of text within each element. So how did I finally manage to do this?
I used:
I used:
- Regular Expression Extractor (to check for the String of text)
- BSF Assertion (to manipulate the JSON object)
- Response Assertion (to check that the request was receiving the expected response)