Hi,

 

My application has many javascript/Ajax functions that I am endeavoring to
test with Webtest.  Since most of these don't execute immediately, I have
been littering my tests with statements such as 

 

step.context.currentResponse.enclosingWindow.threadManager.joinAll(10000);

 

to ensure that testing proceeds AFTER the javascript has completed.
However, I find I must specify a large enough value to guarantee that the
javascript has completed, otherwise I get false failures.  So, I specify a
value like 10000 - but the problem is that all of these really add up, since
it appears that execution is halted for 10000, regardless of how long the
javascript actually executes.  Am I going about this the wrong way?  Is
there a better way to guarantee that javascript code is fully executed
before the next webtest step is executed?

 

Thanks,

 

Shawn Bradley

President, Sunergeo Systems, Inc.

www.sunergeosystems.com

 

 

Reply via email to