[Webtest] Re: checking XHTML compatibility through webtest

Siegfried Goeschl siegfried.goeschl@it20one.at
Wed, 25 Apr 2007 12:54:07 +0200

Hi folks,

I added a post-testing step to validate my XHTML

<target name="webtest:verify-xml" description="validates the XML pages 
against the DTDs">
	<echo message="Validating the server XML responses ..."/>
   <xmlvalidate failonerror="yes">
     <fileset dir="${webtest.response.dir}" includes="**/wap*.html" />
       <dtd publicId="-//W3C//DTD XHTML Basic 1.0//EN"
       <dtd publicId="-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
location="${webtest.dtd.dir}/xhtml-mobile/xhtml-mobile10-flat.dtd" />
       <dtd publicId="-//WAPFORUM//DTD WML 2.0//EN"


Siegfried Goeschl

Pedro Pinto wrote:
> Hi,
> i once had a similar problem and the simplest solution i thought of was 
> saving the html response code in a ant property and then using another 
> webtest inside the same ant target to call up W3C online validator. This 
> isnt by far the best solution, but it worked...
>> thanks for your reply,
>>> If you have a "good" XHTML validator, it shouldn't be difficult to bind
>>> it with WebTest.
>> how to do that ? where to find information about that ?
>> I am trying to keep webtest as the default testing mechanism.. I know
>> I can use other tools for testing compatibility, but then I will adopt
>> different worlds in my project with maintenance side-effects ....
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest