2 messages in com.canoo.lists.webtestRE: [Webtest] Getting html
FromSent OnAttachments
James Asher17 Jul 2003 11:41 
Brandon Moore17 Jul 2003 11:51 
Subject:RE: [Webtest] Getting html
From:Brandon Moore (bmo@commcode.com)
Date:07/17/2003 11:51:05 AM
List:com.canoo.lists.webtest

You can save the pages to files, either by setting the save attrtibute on the action, or setting saveresponse in the config. I don't know how you would run the pages through an online validator. I would probably use a script task (or some kind of foreach task, if you know of any) to make antcalls with some property set to each of the filenames, calling a target that used webtest to fill in that filename on the submit page and check the results. If you have a commandline version of the validator, you could probably run it with an exec task (and maybe a bit of shell script).

Another option would be to write a custom "validate" test step that would extract the text of the current page from the WebResponse (check the httpunit javadoc: method getText) and run the validation, if you don't like extra targets, script tags, and passing the page text through files.

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of James Asher Sent: Thursday, July 17, 2003 1:42 PM To: webt@lists.canoo.com Subject: [Webtest] Getting html

We have an application that has a registration process that creates dynamic pages with cookies. We'd like to be able to check the validity of the (x)html through the W3C's validator. We'd like to all have this as one ant task.

Is this a feasible project I could do using Canoo? I've never used Canoo and am looking into what it can and can't do. My biggest problem is getting the actual html from a page in the registration process at any one time.

Please let me know if this is feasible with canoo, if not, any other suggestions on "web-testing type applications" would be greatly appreciated.

Thanks.