[Webtest] Install webtest problem

webtest@lists.canoo.com webtest@lists.canoo.com
Wed, 5 May 2004 08:58:18 +0200


Hi Humberto,
Try to add the param 
saveresponse="true"
in the config step of installtest.xml, it seems to be an error in the install
file because everybody had this problem.
This line in the config seems to be need.

Good luke, Lezoul

Selon "Sanchez, Humberto A. (Utility Data Center)" <hasii@hp.com>:

> 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 
> 
> After some attempts at debugging, I eventually =
> stumbled across a way to make it work.  In the <config> element of =
> installTest.xml, change saveresponse="false" to read =
> saveresponse="true".
> 
> This worked great for both the http and file protocols
> 
> 
> Humberto
> 
> 
> 
>   
> Humberto A. Sanchez II 
> UC Portal Software Architect 
> Utility Data Center Solutions Lab
> Solutions and Velocity Software Business (SVSB)
> 3404 E. Harmony Road, MS 99 
> Fort Collins, CO 80528 
> WP 970 898 7005 
> FAX 970 898 2151 
> Mobile 970 222 9544  
> 
> 
> 
> 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="get local file", url="~hasii1", stepType="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)
> 
> 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 


--