[Webtest] REPOSTING: What component is throwing this error?

Lawrence Yi webtest@lists.canoo.com
Thu, 6 Jul 2006 09:40:00 +1000


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C6A08C.54A23520
Content-Type: text/plain

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: dlundin@aol.com [mailto:dlundin@aol.com] 
Sent: Thursday, 6 July 2006 1:34
To: webtest@lists.canoo.com
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 <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

  _____  

 
<http://pr.atwola.com/promoclk/100122638x1081283466x1074645346/aol?redir=htt
p%3A%2F%2Fwww%2Eaol%2Ecom> Check out AOL.com today. Breaking news, video
search, pictures, email and IM. All on demand. Always Free.


------_=_NextPart_001_01C6A08C.54A23520
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"City"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"\@SimSun";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hi =
Doug,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>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. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I guess the Javascript parser =
within
Webtest follows the W3C standard.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hope this =
helps.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><st1:City w:st=3D"on"><st1:place w:st=3D"on"><font =
size=3D2
  color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
  color:navy'>Lawrence</span></font></st1:place></st1:City><font =
size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>=


<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> =
dlundin@aol.com
[mailto:dlundin@aol.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, 6 July =
2006 1:34<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName =
w:st=3D"on">webtest@lists.canoo.com</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Webtest] =
REPOSTING: What
component is throwing this error?</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>Hello,<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>I am new to WebTest&nbsp;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 ...?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>The error:<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>BUILD FAILED<br>
C:\webtest\doc\doc\samples\mywebsiteTest.xml:11: Canoo Webtest: =
R_1357.<br>
Test failed.<br>
Test step clickButton (C:\webtest\doc\doc\samples\mywebsiteTest.xml:43: =
)&nbsp;
named<br>
&nbsp;&quot;Click the submit button&quot; failed with message
&quot;Step[clickButton &quot;Click the subm<br>
it button&quot; (6/12)]: Script error loading page executing webtest =
at:
clickButton<br>
TypeError: Cannot read property &quot;options&quot; from null (<a
href=3D"https://trading.mywebsite.c/" =
target=3D"_blank">https://trading.mywebsite.c</a><br>
om/common/StockOrderEntry.js#78)<br>
Source code:<br>
function () {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [native code, arity=3D0]<br>
}<br>
&quot;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>Total time: 5 seconds<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>Can anyone shed any light on where I should =
start?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>Thanks<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DVerdana><span =
style=3D'font-size:10.0pt;
font-family:Verdana'>Doug<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

<div class=3DMsoNormal align=3Dcenter =
style=3D'margin-top:7.5pt;text-align:center'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-top:7.5pt'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><a
href=3D"http://pr.atwola.com/promoclk/100122638x1081283466x1074645346/ao=
l?redir=3Dhttp%3A%2F%2Fwww%2Eaol%2Ecom"
target=3D"_blank"><b><span style=3D'font-weight:bold'>Check out AOL.com =
today</span></b></a>.
Breaking news, video search, pictures, email and IM. All on demand. =
Always
Free.<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C6A08C.54A23520--