On Tuesday, April 9, 2013 9:08:24 AM UTC-7, watir webdriver wrote:

> Hi,
>
> I've to test JSON API using cucumber and watir webdriver.Are there any 
> links or docs available ?
>
> Thanks in-advance..
>

I would not test an API with Watir.   Watir is made for driving web 
browsers and interacting with a website as a user would, it is not designed 
or intended for API testing in any way shape or form.

What I've used for testing an API (in my case a REST based API) was

   Cucumber
    Rest-client gem  (for doing requests and dealing with responses)
    JSON-Spec gem (for validation steps)

The code I wrote was very similar to the example of API testing given in 
"The Cucumber Book" from Pragmatic Programmers

A recording of a presentation I gave on this about a year ago can be found 
here  https://github.com/watir/watir-bazaar/wiki/Presentations 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to