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