Re: thread-safety (was: related javascript files not fetched)

"Wolfgang Fahl" <[email protected]> Wed, 19 Aug 2009 12:47:42 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear Dan,

you wrote:
> One more thing: HttpUnitOptions.getScriptErrorMessages()
> is not at all friendly if you are running the tests
> multi-threaded.  It would be much better if these
> were stored on the WebConversation or WebClient.
> Also the settings (setExceptionsThrownOnScriptError,
> setExceptionsThrownOnErrorStatus, etc.) should be on
> the WC if possible.
Personally I agree and don't like this static handling.
The introduction of a new Dom based Java Scripting 
engine that is intended to supply much better JavaScript 
support has lead to a situation where the scripting 
Engine can be modified. The current delegation scheme is 
a bit clunky. It would be much better if the static part 
would only be the default and that each Conversation 
ond/or client would have it's own non static copy that 
can locally be modified for different behaviour. Feel 
free to supply a patch that cleans this up a bit. 

Better even would be to get the new Java Script engine 
up an running to pass all tests. Our first attempt to do 
this in April 2008 failed due to the limited 
availability of volunteers. Currently the development 
team only consists of Russell and me and we both are 
very limited in the amount of time we can spend on the 
project - e.g. I haven't been available to do anything 
decent for the project since November 2008 and I'm just 
trying to catch up a bit.

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