[Webtest] testing JSON web services
Marc Guillemot <firstname.lastname@example.org>
Fri, 05 Sep 2008 09:07:44 +0200
I believe that WebTest can be very good to test webservices like SOAP or
REST applications as it allow to specify the http method.
I don't have any experience with testing JSON web services but I imagine
that this could be done as well. Invocation wouldn't be a problem but
the response would probably be considered as just text and you will only
have currently "poor" testing facilities to work on it. It would
probably make sense to parse it to obtain a JS object tree on which the
tests could be done.
What kind of tests do you exactly want to make on the obtained responses?
> I am currently about to do a new project to test JSON based web
> services. I was told to research a testing tool that can be used to test
> this web services. Since, I have been using webtest, I would really like
> to use the same tool to test this.
> Is it possible to use webtest for this purpose? I am completely new to
> test JSON web services and thus I don't know much about the requirement
> to test JSON web services.