[Httpunit-develop] Newbie: No web server, static html file testing question
Brought to you by:
russgold
From: Suhas K. <suh...@ya...> - 2004-01-26 21:51:24
|
Hi, I am trying to use HttpUnit to test html files that are generated from XSLT transformation. These HTML files are static and all within one directory. I want to make sure that I walk all the hyperlinks and make sure they are linked correctly. The machine I would be running these tests on would not have any web server running and these static HTML files are simply local on the filesystem and won't be accessible on any web server. If I change the example code, WebRequest request = new GetMethodWebRequest( "http://www.meterware.com" ); to, WebRequest request = new GetMethodWebRequest( "C:\\foobar.htm" ); I get following error, Exception: java.net.MalformedURLException: unknown protocol: c How do I go about testing hyperlinks in my html files using HttpUnit? Thanks, -Suhas --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! |