Groovy Script assertion count
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2016
06:21 AM
05-01-2016
06:21 AM
Groovy Script assertion count
Hi,
Can someone please guide me how to use count in groovy script assertion?
My response is as below:
I want to count occurrence of text "name", "lastName" etc from below response. I want to include it in script assertion and can not use json count match.
{
"created": {
"event": [{
"name": "Joe",
"lastName": "Matt"
}]
},
"notcreaed": {
"event": []
}
}
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2016
02:36 AM
05-02-2016
02:36 AM
Did similar one here, please check it out.
http://stackoverflow.com/questions/35623183/soapui-how-to-find-node-count-in-json-response/35626696#...
Regards,
Rao.
http://stackoverflow.com/questions/35623183/soapui-how-to-find-node-count-in-json-response/35626696#...
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2016
03:10 PM
05-05-2016
03:10 PM
Thanks a bunch.
