[Webtest] How to decipher error output?

Scott Glaser Scott Glaser" <sglaser@yahoo-inc.com
Wed, 18 Jul 2007 12:54:42 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_00A1_01C7C93A.CF3C9A50
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

While running the following webtest script I get the below error. Any ideas
why I'm getting the assertion failure for the invoke step indicated? Since
I'm new to webtest I don't know how to generate more informative output to
debug the problem.
 
Scott
 
<project name="SimpleTest" basedir="." default="main">
 
  <property name="webtest.home" location="/home/sglaser/util/webtest-2.1" />
  <import file="${webtest.home}/lib/taskdef.xml"/>
 
  <target name="main">
    <webtest name="myTest">
      <config
        protocol="https"
        host="login11.marketingsolutions.yahoo.com"
        port="443"
        basepath="adui" />
      <steps>
        <invoke
          description="get login page"
          url="signin/loadSignin.do" />
        <verifyTitle
          description="verify title"
          text="New Sponsored Search Login" />
      </steps>
    </webtest>
  </target>
</project>
 
main:
   [invoke] java.lang.IllegalStateException: FAILED ASSERTION
   [invoke]     at org.mozilla.javascript.Kit.codeBug(Kit.java:477)
   [invoke]     at
org.mozilla.javascript.Interpreter.increaseICodeCapasity(Interpreter.java:17
07)
   [invoke]     at
org.mozilla.javascript.Interpreter.recordJump(Interpreter.java:1529)
   [invoke]     at
org.mozilla.javascript.Interpreter.addGoto(Interpreter.java:1459)
   [invoke]     at
org.mozilla.javascript.Interpreter.visitStatement(Interpreter.java:722)
   ...

BUILD FAILED
/home/sglaser/util/webtest-2.1/doc/samples/SimpleTest.xml:7: Canoo Webtest:
R_1393.
Test failed.
Test step invoke
(/home/sglaser/util/webtest-2.1/doc/samples/SimpleTest.xml:16: )  named "get
login   page" failed with message "Step[invoke "get login page" (1/2)]:
Script error loading page executing   webtest at: invoke FAILED ASSERTION

------=_NextPart_000_00A1_01C7C93A.CF3C9A50
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D578305817-18072007>While =
running the=20
following webtest script I get the below error. Any ideas why I'm =
getting the=20
assertion failure for the invoke step indicated? Since I'm new to =
webtest I=20
don't know how to generate more informative output to debug the=20
problem.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D578305817-18072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D578305817-18072007>
<DIV><FONT size=3D+0><SPAN class=3D578305817-18072007><FONT face=3DArial =

size=3D2>Scott</FONT></SPAN></FONT></DIV>
<DIV><FONT size=3D+0><SPAN class=3D578305817-18072007><FONT face=3DArial =

size=3D2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=3D+0><SPAN class=3D578305817-18072007><FONT face=3DArial =

size=3D2>&lt;project name=3D"SimpleTest" basedir=3D"."=20
default=3D"main"&gt;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D+0><SPAN class=3D578305817-18072007><FONT face=3DArial =
size=3D2>&nbsp;=20
&lt;property name=3D"webtest.home" =
location=3D"/home/sglaser/util/webtest-2.1"=20
/&gt;<BR>&nbsp; &lt;import=20
file=3D"${webtest.home}/lib/taskdef.xml"/&gt;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D+0><SPAN class=3D578305817-18072007><FONT face=3DArial =
size=3D2>&nbsp;=20
&lt;target name=3D"main"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;webtest=20
name=3D"myTest"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;config<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
protocol=3D"https"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
host=3D"login11.marketingsolutions.yahoo.com"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
port=3D"443"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
basepath=3D"adui"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;invoke<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
description=3D"get login=20
page"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
url=3D"signin/loadSignin.do" =
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;verifyTitle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
description=3D"verify=20
title"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
text=3D"New=20
Sponsored Search Login" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/steps&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<BR>&nbsp;=20
&lt;/target&gt;<BR>&lt;/project&gt;</FONT></SPAN></FONT></SPAN></FONT></D=
IV></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D578305817-18072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>main:<BR>&nbsp;&nbsp; [invoke]=20
java.lang.IllegalStateException: FAILED ASSERTION<BR>&nbsp;&nbsp;=20
[invoke]&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.mozilla.javascript.Kit.codeBug(Kit.java:477)<BR>&nbsp;&nbsp;=20
[invoke]&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.mozilla.javascript.Interpreter.increaseICodeCapasity(Interpreter.java=
:1707)<BR>&nbsp;&nbsp;=20
[invoke]&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.mozilla.javascript.Interpreter.recordJump(Interpreter.java:1529)<BR>&=
nbsp;&nbsp;=20
[invoke]&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.mozilla.javascript.Interpreter.addGoto(Interpreter.java:1459)<BR>&nbs=
p;&nbsp;=20
[invoke]&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.mozilla.javascript.Interpreter.visitStatement(Interpreter.java:722)</=
FONT></DIV>
<DIV><SPAN class=3D578305817-18072007></SPAN><FONT face=3DArial =
size=3D2>&nbsp;<SPAN=20
class=3D578305817-18072007>&nbsp; ...</SPAN><BR><BR>BUILD=20
FAILED<BR>/home/sglaser/util/webtest-2.1/doc/samples/SimpleTest.xml:7: =
Canoo=20
Webtest: R_1393.<BR>Test failed.<BR>Test step invoke=20
(/home/sglaser/util/webtest-2.1/doc/samples/SimpleTest.xml:16: )&nbsp; =
named=20
"get login&nbsp;&nbsp; page" failed with message "Step[invoke "get login =
page"=20
(1/2)]: Script error loading page executing&nbsp;&nbsp; webtest at: =
invoke=20
FAILED ASSERTION</FONT><FONT =
size=3D+0></DIV></FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_00A1_01C7C93A.CF3C9A50--