[Webtest] Install webtest problem

Sanchez, Humberto A. (Utility Data Center) webtest@lists.canoo.com
Tue, 4 May 2004 23:22:29 -0400


Hello,

I kept having a webtest installTest.xml problem.  I kept getting the
error at the end of this e-mail

I had modified the above to use the http protocol but had the same
problem.  I saw the post by Neil on 15 April
http://lists.canoo.com/pipermail/webtest/2004q2/001741.html where he
said he changed=20

After some attempts at debugging, I eventually =3D
stumbled across a way to make it work.  In the <config> element of =3D
installTest.xml, change saveresponse=3D"false" to read =3D
saveresponse=3D"true".

This worked great for both the http and file protocols


Humberto



 =20
Humberto A. Sanchez II=20
UC Portal Software Architect=20
Utility Data Center Solutions Lab
Solutions and Velocity Software Business (SVSB)
3404 E. Harmony Road, MS 99=20
Fort Collins, CO 80528=20
WP 970 898 7005=20
FAX 970 898 2151=20
Mobile 970 222 9544 =20



Buildfile: installTest.xml

checkANT:

mayPrintANTError:

checkWebTest:
     [echo] base dir is
C:\nonsan1\3rd-party-sw\ulcwebtest\install\doc\samples
 [testSpec] ERROR (Step.java:333) - Cannot handle unexpected exception
in step InvokePage at  w
th (stepId=3D"get local file", url=3D"~hasii1", stepType=3D"invoke")
 [testSpec] java.lang.NullPointerException
 [testSpec]     at
com.canoo.webtest.engine.Context.setLastResponseForStep(Context.java:119
)
 [testSpec]     at
com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:119)
 [testSpec]     at
com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:153)
 [testSpec]     at
com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:37)
 [testSpec]     at com.canoo.webtest.steps.Step.execute(Step.java:99)
 [testSpec]     at
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
 [testSpec]     at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTas
k.ja
a:68)
 [testSpec]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
 [testSpec]     at org.apache.tools.ant.Task.perform(Task.java:341)
 [testSpec]     at org.apache.tools.ant.Target.execute(Target.java:309)
 [testSpec]     at
org.apache.tools.ant.Target.performTasks(Target.java:336)
 [testSpec]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
 [testSpec]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
 [testSpec]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
 [testSpec]     at org.apache.tools.ant.Main.start(Main.java:196)
 [testSpec]     at org.apache.tools.ant.Main.main(Main.java:235)