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

Reply via email to