I personally use rspec and
https://github.com/chancancode/json_expressions to test REST apis.
This doesn't *quite* meet your requirement for non-developers, but it
just might. Check it out:

https://github.com/bobthecow/genghis/blob/master/spec/requests/api_spec.rb#L98-115

The benefit to this approach is how explicitly the json_expressions
library allows you to define your spec, while still allowing for
flexibility — sometimes you need to ensure that the result is exactly
what you expect, other times you just care that it has an Integer
here, and a String there. Sometimes you care about order or whether
there are extra items in the array, other times not so much... This is
my current preference for RESTful functional and integration testing.

If that approach won't do it for you, another option is using one of
the gherkin BDD frameworks. Then your QAfolk can write human-readable
specs, and developers can flesh out step definitions. For an example
of that, see the quickstart guide for Behat (the PHP implementation):

http://docs.behat.org/quick_intro.html

--j



On Wed, Nov 14, 2012 at 1:37 PM, Mac Newbold <[email protected]> wrote:
> Hi all,
>
> I've been trying to find some tools to choose from for doing automated
> regression/unit testing on a bunch of REST web services. I'm guessing some
> of you have already done this, are there any tools you could point me to?
>
> I'm envisioning something I can run somewhere that fires up a web client
> and hits the service with specified input and checks it against specified
> output. Writing the tests can potentially be in almost anything, but
> ideally our QA folks would be able to set up new tests without being
> developers themselves.
>
> Thanks,
> Mac
>
> --
> Mac Newbold
> [email protected]
> 801-694-6334
>  <http://www.codegreene.com>
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net



-- 
http://justinhileman.com

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to