9 messages in com.canoo.lists.webtestRE: [Webtest] Re: htmlunit + JS execu...
FromSent OnAttachments
Prashant25 Nov 2005 03:29 
Marc Guillemot25 Nov 2005 03:50 
Paul King25 Nov 2005 03:51 
Colin O'Brien28 Nov 2005 09:15 
Marc Guillemot28 Nov 2005 23:54 
Colin O'Brien29 Nov 2005 10:16 
Edgar P Dollin29 Nov 2005 10:18 
Marc Guillemot30 Nov 2005 00:09 
Colin O'Brien30 Nov 2005 06:45 
Subject:RE: [Webtest] Re: htmlunit + JS execution performance
From:Colin O'Brien (coli@capetechnologies.com)
Date:11/30/2005 06:45:01 AM
List:com.canoo.lists.webtest

Hi Marc,

I have sent the info to your private address. To be honest I'm not entirely sure what all the javascript does as it comes from a third party. There are js modules included in the page to allow dragging and dropping portlets on the web browser, there are some utilities for managing on screen charts, sliders, calendar widgets, maximise and minimise portlet decorator buttons etc...

Regards, Colin.

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Marc Guillemot Sent: 30 November 2005 08:10 To: webt@lists.canoo.com Subject: [Webtest] Re: htmlunit + JS execution performance

Hi Colin,

you can send it to me privately but I will only look at it quickly and I fear that more time is necessary to understand what happens.

Can you explain what your js is doing?

Marc.

Colin O'Brien wrote:

Hi Marc,

Would it be useful for you to see the webtest log output with logging set to debug for JS...? It's about 15k zipped...

Cheers, Colin.

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Marc Guillemot Sent: 29 November 2005 07:54 To: webt@lists.canoo.com Subject: Re: [Webtest] htmlunit + JS execution performance

Hi Colin,

can you tell a bit about what your js is doing? 5 to 20 secondes in a normal browser is quite a long time! Is it just js computation or are some server roundtrips involved?

Rhino can be configured to improve performance but this possibilities are not used (and not exposed) by htmlunit to be able to give better debug information (even if this should be improved too).

Marc.

Colin O'Brien wrote:

Hi All,

Has anyone out there had any experience with JavaScript taking an inordinately long time to execute with webtest...?

I have a number of tests where, when a button is clicked some JS is executed, more often than not with an 'onClick' function. In a browser

these

actions take perhaps between 5 to 20 seconds, however when I perform the same action with webtest it may take several minutes for the step to

execute

and move to the next one in the test case... Which now leaves me in the situation where I have test cases which take 20 - 30 minutes (1 in fact takes an hour!) to execute.

In order to keep things moving at a reasonable speed, I have kept JS execution disabled until right before I load the page where I really have

to

have JS execution turned on (the <enableJavaScript.../> step), this has reduced the execution overhead a little but if I have a test suite which takes hours to run just a dozen or so test cases I'm loosing any benefit

in

automating them in the first place...

Is there a parameter or config setting I can tweak to speed up the

execution

of JS (Hotspot or something...?)

The machine I'm running the tests from wouldn't be the 'beefiest' but I've tried the same test cases on a higher spec'd machine and the difference

was

only a minute or two...

Any and all ideas/suggestions as always greatly received...

Cheers, Colin.