HtmlUnit supports this capability. See here:

http://markmail.org/message/dlrgsklatlnromog

So, it should be possible to hook this into WebTest
with a little Groovy code but I haven't had time to play
with this myself to show you what the code would look like.

Paul.

Niko Schmuck wrote:
Since webtest is such an absolute fantastic tool for testing (human-readable) web pages, I thought I also want to use it for testing the REST services of my grails web app (although I guess it was never intended to address this). Unfortunately it seems that the invoke step, doesn't like to use PUT and DELETE as HTTP methods? Why is there the restriction to GET and POST when invoke is executed, and are there any chances to enable the other HTTP methods in the future?

The current work around for me would be to mix in HTTP calls (with Apache Commons HTTP Client) in my WebTest for making the tests more complete. What I miss is, how to assign the webtest property value to a groovy variable. Is this possible and how?

Sorry, if this has been discussed already, but I did not find any related discussions ...

Thanks,
Niko
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to