> -----Original Message-----
> From: Marc Guillemot [mailto:[EMAIL PROTECTED]
> Sent: 24 February 2006 10:08
> To: [EMAIL PROTECTED]
> Subject: [Webtest] Re: question about config file
> 
> Patricia Hartnett <[EMAIL PROTECTED]> writes:
> >
> > Hello,
> >
> > I'm a newbie to Canoo so sorry if I'm asking a stupid
> > question.
> >
> > Is there a way to edit the config file, so that if a single step
fails
> > that Canoo still trys to complete the other steps ?
> >
> > Currently I'm working with a system whereby there is a single
> > javascript file which is being called by many of the web pages in
the
> site.
> > Unfortunately the javascript file (which is not used the majority of
the
> time)
> > is called incorrectly from the web pages causing problems for Canoo:
> >
> >
> >
> > [invoke] ERROR (com.gargoylesoftware.htmlunit.html.HtmlPage) - Error
> > loading javascript from [htt
> >
> > p://ws2.test.com/test/crew/common.js] status=[404
/gam/crew/common.js]
> >
> > [invoke] ERROR (com.gargoylesoftware.htmlunit.html.HtmlPage) - Error
> > loading javascript from [htt
> >
> > p:// ws2.test.com/test/crew/common.js]:
> >
> >  [invoke]
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException:
> > 404 /test/crew/common.js for http://ws2.test.com/test/crew/common.js
> >
> > Currently it's not feasible to remove every reference to this JS
> > file from the affected web pages.
> 
> you can try the unofficial config option ThrowExceptionOnScriptError:
> <config ...>
>   <option name="ThrowExceptionOnScriptError" value="false"/>
> </config>
> 
> The drawback with this option is that you won't detect anymore other
> javascript
> related problems that you application may have.
> 
> Marc.
> 
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest


Thank you very much for replying.

I tried as you suggested, but I got the following error message:
BUILD FAILED
C:\Canoo\webtests\mainTest.xml:17: The following error occurred while
executing this line:
C:\Canoo\webtests\UseCases\config.xml:12: Element type "config" must be
followed by either attribute
 specifications, ">" or "/>".

Total time: 0 seconds

So then I tried again, including the ThrowExceptionOnScriptError
instruction as ThrowExceptionOnScriptError="false", rather than 
<option name="ThrowExceptionOnScriptError" value="false"/>

BUILD FAILED
C:\Canoo\webtests\mainTest.xml:17: The following error occurred while
executing this line:
C:\Canoo\webtests\UseCases\defectTests.xml:16: The <config> type doesn't
support the "throwexceptiononscripterror" attribute.

Can you suggest anything please? I'm using Canoo Release class = 1.7,
build number = R_1200.

Thanks again, 

Trish.

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

Reply via email to