Hiya,
I’m using gatling to load test a service I written which exposes JSON. The first request returns an object something like:
{
“id” 4"
}
The second request returns a list of elements, something like:
[
{
“type”:“NEW”,
“id”:1,
…
},
{
“type”:“NEW”,
“id”:4,
…
},
{
“type”:“DELETED”,
“id”:2,
…
},
{
“type”:“FINISHED”,
“id”:3,
…
}
]
I want to check that in the second request there’s an id with type “NEW” that matches the id returned by the first request. I don’t think any of the current checks documented in the verify section of the wiki can do this. How would you usually check this kind of functionality?
Thanks, Helen