JSONpathcount for nodes with different name
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017
02:13 AM
04-19-2017
02:13 AM
JSONpathcount for nodes with different name
I want to get the count of nodes in JSON response in script assertion. nodes have different names as 0,1,2. Or else can i write a script assertion for the occurrence of one field in JSON response.
I am currently using $[*].Number.
And it gives me path not found error
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2017
02:31 AM
04-19-2017
02:31 AM
Please show the sample response that you are working with.
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2017
05:16 AM
04-20-2017
05:16 AM
I had made a small typo error. It works thank you 🙂
Instead of $[*].Number. i used $[*].number.
