smartrics/RestFixture — Issue #12: Json verification from second node.
Author: manseta
Created: 2012-02-13 02:06:05+00:00
State: open

Hi,
First of all, thank you very much for creating superb fixture. I recently started using it for API testing. However, I came across an issue while verifying json code. Specially when more then two nodes are at the same level and would like to verify from second node.

For example, json ouput is in this format -- see this screenshot http://screencast.com/t/8jQ1pVhmeX

I would like to verify "id"... So far I tried following two method to verify but no luck.
a) jsonbody[1].permutations.search.results.id=="11643881"
b) jsonbody.permutations.search.results.id=="11643881"

Do you think, above is a correct syntext to verify id in my json response. So far, its not working for me.

Thanks for your help.
Best regards.