Re: Ignoring external resources

"Wolfgang Fahl" <[email protected]> Thu, 20 Aug 2009 10:18:31 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear vic,

you wrote:
> I'm testing a site which contains external links to javascript files for 
> ad tracking, and sometimes the remote server does not respond, which 
> gives a timeout exception.
> 
> What I'd like to do is simply not download these javascript files, since 
> they are not actually needed and there is nothing I can do when the 
> remote server does not respond.
> 
> Is this possible ?
It is a feature that could certainly be built in. First 
you could switch off scripting all together which is 
already possible. On the other hand the getIncludeScript 
handling that was modified by me just a few days ago 
could not only silently fail as is possible by setting 
the setExceptionsThrownOnScriptError 
but you could add some functionality along the lines you 
are describing above. Please follow the FAQ as I have 
sent it around yesterday.

I'm looking forward to your patch + testcase.

Yours
  Wolfgang


BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop