I am new in testing web services with json data format. I use watir for my automation. So just wanted to know if it can be done with Watir.
I am also looking for other options so all suggestions and links to tutorial are more then welcome.
I am new in testing web services with json data format. I use watir for my automation. So just wanted to know if it can be done with Watir.
I am also looking for other options so all suggestions and links to tutorial are more then welcome.
You could potentially do it, but it's not the approach I'd take.
I'd look at something like the combination of the Rest-client gem to generate requests and handle the responses, and json-spec to help with validation
'The Cucumber Book' has a chapter on API testing that comes close to this. They use a slightly different but very similar library (HTTParty), and I don't think they knew about json-spec or they would have used it, but then their validation steps are very rudimentary