Forum Discussion
rupert_anderson
Valued Contributor
Hi SD,
Ok, so basically if the count of those Report JSON documents goes above 500, then we capture 501+ etc.
OK, maybe we should work on it a step at a time.
1) First we can try to extract the report JSON documents from the response CDATA.
2) Then, we can use JSON Slurper to parse the JSON data into report objects.
3) Then we can try to extract just the report objects where the count is >500
In terms of the error you're getting, at first glance it looks like you're not running the script from a Script Assertion? The messsageExchange variable is only available to script run there:
rupert_anderson
9 years agoValued Contributor
Thats a nice JSON Slurper script example that Rao has provided, that should cover step 2 and part of step 3 :-)
Related Content
Recent Discussions
- 6 days agoruchisingh