[Webtest] Error in my first test
Moreno Crespo, Ana Isabel
webtest@lists.canoo.com
Mon, 16 Jan 2006 16:56:22 +0100
Sorry, please.
I've installed canoo in another pc (at home) and all test are =
succesfull.
I think that my problem is the proxy of my enterprise, can it be?
They said me than they can=B4t open it for my test, what can i do?
Thanks=20
-----Mensaje original-----
De: Marc Guillemot [mailto:mguillemot@yahoo.fr]=20
Enviado el: jueves, 12 de enero de 2006 19:20
Para: webtest@lists.canoo.com
Asunto: Re: [Webtest] Error in my first test
Please don't start a second discussion for the same problem.
The provided log doesn't provide aditional information. Have you really =
set
the log level to debug?
What js code does your page contain? Can you try to reduce the js in it =
to
find which part of the js code causes the problem?
Marc.
Moreno Crespo, Ana Isabel wrote:
> Hello.
>=20
> Thanks for your help
>=20
> I have done you said me and this is the result.
>=20
> C:\herramientas_test\Canoo\build\pruebas>webtest -buildfile=20
> simpletest.xml "java.exe" -Xms64M -Xmx256M -cp=20
> "C:\herramientas_test\Canoo\build\bin\..\lib\run
> time\ant-launcher.jar"
> -Dant.library.dir=3D"C:\herramientas_test\Canoo\build\bin\.
> .\lib\runtime" org.apache.tools.ant.launch.Launcher -lib=20
> "C:\herramientas_test\C=20
> =
anoo\build\bin\..\lib\build;C:\herramientas_test\Canoo\build\bin\..\li
> b\buil
> d\cl
> over.jar" -buildfile simpletest.xml
> Buildfile: simpletest.xml
> Trying to override old definition of task sleep
>=20
> main:
> [webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo =
Webtest:
> R_1115.
> [webtest] INFO (com.canoo.webtest.ant.WebtestTask) - No=20
> configuration defined , using default configuration.
> [webtest] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:=20
> null "[impli ct setup step]" (1/3)
> [webtest] INFO (com.canoo.webtest.steps.Setup) - Surfing with=20
> browser Mozilla /4.0 (compatible; MSIE 6.0b; Windows 98)
> [webtest] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:=20
> invoke "Efic az" (2/3)
> [webtest] INFO=20
> (com.canoo.webtest.steps.request.AbstractTargetAction) -
> -> go
> toTarget by URL: http://10.252.131.102:8081/eficaz
> [webtest] INFO (com.canoo.webtest.steps.request.TargetHelper) -=20
> getting respo nse for url: http://10.252.131.102:8081/eficaz
> [webtest] INFO (org.apache.commons.httpclient.HttpMethodDirector) =
-=20
> Redirect requested but followRedirects is disabled
> [webtest] ERROR (com.canoo.webtest.steps.request.TargetHelper) -=20
> ScriptExcepti
> on: enclosed exception was "null"
> [webtest] INFO (com.canoo.webtest.steps.Step) - Exception thrown=20
> from this cl
> ass: com.canoo.webtest.engine.StepFailedException
> [webtest] INFO (com.canoo.webtest.steps.Step) - Message was:=20
> Step[invoke "Efi caz" (2/3)]: Script error executing at: invoke
> [webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Test report=20
> successfully created.
>=20
> BUILD SUCCESSFUL
> Total time: 4 seconds
>=20
> <testresult endtime=3D"Thu Jan 12 11:31:45 CET 2006"
> =
location=3D"C:\herramientas_test\Canoo\build\pruebas\simpletest.xml:7:"
> starttime=3D"Thu Jan 12 11:31:42 CET 2006" successful=3D"no"
> testspecname=3D"myTest">
> - <config>
> <parameter name=3D"protocol" value=3D"http" />=20
> <parameter name=3D"summary" value=3D"yes" />=20
> <parameter name=3D"saveresponse" value=3D"yes" />=20
> <parameter name=3D"haltonerror" value=3D"no" />=20
> <parameter name=3D"resultfile" value=3D"results.xml" />=20
> <parameter name=3D"port" value=3D"80" />=20
> <parameter name=3D"failureproperty" value=3D"webtest.failure" />=20
> <parameter name=3D"showhtmlparseroutput" value=3D"yes" />=20
> <parameter name=3D"resultpath"
> value=3D"C:\herramientas_test\Canoo\build\pruebas\webtest-results" /> =
> <parameter name=3D"host" value=3D"localhost" />=20
> <parameter name=3D"haltonfailure" value=3D"no" />=20
> <parameter name=3D"basepath" value=3D"null" />=20
> <parameter name=3D"saveprefix" value=3D"response" />=20
> <parameter name=3D"errorproperty" value=3D"webtest.error" />=20
> </config>
> - <results>
> - <step>
> <parameter name=3D"description" value=3D"Eficaz" />=20
> <parameter name=3D"url" value=3D"http://10.252.131.102:8081/eficaz" =
/>=20
> <parameter name=3D"method" value=3D"GET" />=20
> <parameter name=3D"stepType" value=3D"invoke" />
> - <result>
> <failed duration=3D"2547" />=20
> </result>
> </step>
> <failure message=3D"com.canoo.webtest.engine.StepFailedException:
> Step[invoke "Eficaz" (2/3)]: Script error executing at: invoke, Step:
> InvokePage at =
C:\herramientas_test\Canoo\build\pruebas\simpletest.xml:11:
> with (description=3D"Eficaz", =
url=3D"http://10.252.131.102:8081/eficaz",
> method=3D"GET", stepType=3D"invoke")" />=20
> </results>
> </testresult>
> </summary>
>=20
> Please, help!!!
>=20
> -----Mensaje original-----
> De: Marc Guillemot [mailto:mguillemot@yahoo.fr] Enviado el: =
mi=E9rcoles,=20
> 11 de enero de 2006 22:50
> Para: webtest@lists.canoo.com
> Asunto: Re: [Webtest] Error in my first test
>=20
> Hi,
>=20
> it looks like your page contains js that isn't yet understood by=20
> htmlunit (the underlying "browser"). Can you set the log to the debug =
> level (normally in lib/log4j.properties) and post the log output as=20
> well as stack trace of the eception.
>=20
> Your use of setInputField and clickButton seems to be correct.
>=20
> Marc.
>=20
> Moreno Crespo, Ana Isabel wrote:
>=20
>>Hello.
>>
>>I have installed canoo and i=B4m creating my first test.
>>
>>It=B4s very simple:
>>
>><project name=3D"SimpleTest" basedir=3D"." default=3D"main">
>> <property name=3D"webtest.home"
>=20
> location=3D"C:\herramientas_test\Canoo\build"
>=20
>>/>
>> <import file=3D"${webtest.home}/lib/taskdef.xml" />
>>- <target name=3D"main">
>>- <webtest name=3D"myTest">
>>- <steps>
>> <invoke description=3D"Eficaz" =
url=3D"http://10.252.131.102:8081/eficaz"=20
>>/>
>> </steps>
>> </webtest>
>> </target>
>> </project>
>>
>>And my result is this
>>
>> [webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo =
Webtest:
>>R_1115.
>> [webtest] INFO (com.canoo.webtest.ant.WebtestTask) - No=20
>>configuration defined , using default configuration.
>> [webtest] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:=20
>>null "[impli ct setup step]" (1/3)
>> [webtest] INFO (com.canoo.webtest.steps.Setup) - Surfing with=20
>>browser Mozilla /4.0 (compatible; MSIE 6.0b; Windows 98)
>> [webtest] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:=20
>>invoke "Efic az" (2/3)
>> [webtest] INFO
>>(com.canoo.webtest.steps.request.AbstractTargetAction) -
>>-> go
>>toTarget by URL: http://10.252.131.102:8081/eficaz
>> [webtest] INFO (com.canoo.webtest.steps.request.TargetHelper) -=20
>>getting respo nse for url: http://10.252.131.102:8081/eficaz
>> [webtest] INFO (org.apache.commons.httpclient.HttpMethodDirector) =
-=20
>>Redirect requested but followRedirects is disabled
>> [webtest] ERROR (com.canoo.webtest.steps.request.TargetHelper) -=20
>>ScriptExcepti
>>on: enclosed exception was "null"
>> [webtest] INFO (com.canoo.webtest.steps.Step) - Exception thrown=20
>>from this cl
>>ass: com.canoo.webtest.engine.StepFailedException
>> [webtest] INFO (com.canoo.webtest.steps.Step) - Message was:=20
>>Step[invoke "Efi caz" (2/3)]: Script error executing at: invoke
>> [webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Test report=20
>>successfully created.
>>
>>BUILD SUCCESSFUL
>>Total time: 4 seconds
>>
>>What happen?
>>Please, i need your help!!
>>
>>If i want to write in a textbox and click in a button:
>>
>> <setInputField description=3D"Set the input field"
>> name=3D"login.username"
>> value=3D"as" />
>> <clickButton description=3D"Submit the simple form"
>> name=3D"login.buttonEntrar" />
>>
>>Is it correct?
>>
>>Thank you.
>>
>>_______________________________________________
>>WebTest mailing list
>>WebTest@lists.canoo.com
>>http://lists.canoo.com/mailman/listinfo/webtest
>>
>
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest