[ptt-users] Javascript exceptions causing test to run very slow

Dave Colwell dcolwell at emsystem.com
Wed Feb 13 13:30:43 PST 2008


I am new to PoshToTest and am running a proof of concept against my
application.  Using the testgen4web Firefox plug in, I create a test
which simply logs in and out of the application.  The dojo.js javascript
library is loaded as part of the interaction.  I receive no complaints
using Firefox, but get numerous
com.gargoylesoftware.htmlunit.ScriptException's regarding undefined
functions.  These appear to be valid complaints, yet do not hinder the
execution of my application in a browser.  The problem I have is that
the PushToTest Controller outputs the entire contents of the dojo.js
file for each exception, generating about 36,000 lines of output.  This
single functional test that should take about 15 seconds to execute
takes 10 minutes to complete before reporting "Test is successfull".

 

Ideas?  I'm wondering if turning the htmlunit log level to error would
do the trick, but can't find a configuration file.  I also noticed that
htmlunit has released version 1.14 which includes many javascript
improvements.  I did actually replace the 1.13 jar with the latest, but
experience the same results.

 

Thank you,

David

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20080213/a80b24cb/attachment.htm


More information about the Users mailing list