Hi Doug,

 

From previous tests that I have done, when I got those errors, it was due to Webtest not being able to parse certain _javascript_ on that page. On all occasions, the _javascript_ that it was trying to parse was I.E. specific and not supported by the W3C standard.

 

I guess the _javascript_ parser within Webtest follows the W3C standard.

 

I cannot seem to access the link that you provided, so I cannot look at the code to give you a specific reason on why it failed.

 

What I did to overcome the problem was to dynamically replace the offending code with W3C code by intercepting the Response before it got parsed by Webtest.

 

Hope this helps.

 

Regards,

Lawrence.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, 6 July 2006 1:34
To: [email protected]
Subject: [Webtest] REPOSTING: What component is throwing this error?

 

Hello,

 

I am new to WebTest and am already very interested in learning more but have run into a problem and have not been successful understanding which component is throwing the error. I have seen this same exact error from two different websites under test. Is this a _javascript_ error or webtest or ...?

 

The error:

 

BUILD FAILED
C:\webtest\doc\doc\samples\mywebsiteTest.xml:11: Canoo Webtest: R_1357.
Test failed.
Test step clickButton (C:\webtest\doc\doc\samples\mywebsiteTest.xml:43: )  named
 "Click the submit button" failed with message "Step[clickButton "Click the subm
it button" (6/12)]: Script error loading page executing webtest at: clickButton
TypeError: Cannot read property "options" from null (https://trading.mywebsite.c
om/common/StockOrderEntry.js#78)
Source code:
function () {
        [native code, arity=0]
}
"

Total time: 5 seconds

 

Can anyone shed any light on where I should start?

 

Thanks

Doug


Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free.

Reply via email to