I am using JMeter to test a web application. The application returns JSON that looks like the following:
{"type":"8","id":"2093638401"}
{"type":"9","id":"20843301"}
{"type":"14","id":"20564501"}
I need to get a count based on type.
I have tried adding foreach controller with a regular expression extractor, but Im not sure I have done it correctly:
- Apply to: Main sample only
- Response field to check: Body
- Reference name: match_type
- Regular Expression: "type":"(\d)"
- Template: $1$
- Match no.: -1
Im new to JMeter so Im not sure if Im doing any of this correctly.
Thanks
[{"type":"8","id":"23324"},{"type":"42","id":"22224"}]
)? – fncomp