[Webtest] 5. Re: config nested task (Marc Guillemot)
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Tue, 31 Jul 2007 03:16:16 -0700 (PDT)
Hi,
the Referer header field is now set by HtmlUnit, so you can try to pick a
snapshot (I think that relying on the Referer header is not the safer way to
write a webapp).
Marc.
Francisco Javier Martin Gutierrez wrote:
>
> Hi:
>
> I think that it is the real referer parameter because I listened it
> through
> a sniffer
> http://espinete:7783/saussv3x/SAUTareas.do?irFase=01&numExpediente=951&codTa
> rea=5841&numAsignacion=671
> Developers said to me that there were some parameters that are held by the
> browser (like numExpediente=951) after running an embedded script and
> before
> requesting the next page.
>
> <input type="hidden" name="numExpediente" value="951">
> <input type="hidden" name="codTarea" value="5841">
> <input type="hidden" name="numAsignacion" value="671">
>
> After hold them the browser sends the parameters within Referer to obtain
> the next response. So I need to configure Referer parameter along browser
> and server conversation.
> http://espinete:7783/saussv3x/SAUTareas.do?irFase=01&numExpediente=#{num
> Exp}&codTarea=#{codTarea}&numAsignacion=#{numAsig}
>
> There are any solution?
> Thank you.
>
> *********************************************
> 1. config nested task (Francisco Javier Martin Gutierrez)
> 5. Re: config nested task (Marc Guillemot)
>
> --__--__--
>
> Message: 1
> From: "Francisco Javier Martin Gutierrez"
> <francisco-javier.martin@thalesgroup.com>
> To: <webtest@lists.canoo.com>
> Date: Mon, 30 Jul 2007 12:40:31 +0200
> Organization: THALES
> Subject: [Webtest] config nested task
> Reply-To: webtest@lists.canoo.com
> Reply-To: <francisco-javier.martin@thalesgroup.com>
>
>
> Hello:
>
> I am in troubles with config task. I need to give the server some =
> parameters
> included in this step. So I need to reconfigure Referer parameter in a =
> web
> test but it doesn't seem to work ok. I think that I am not doing it ok. =
> The
> test script is:
>
> <target name=3D"main" depends=3D"">
> <webtest name=3D"Sauss2_005">
> &configV2x;
> <steps>
> &loginV2x;
> &RGT; =20
> &aperturaExp;
> ...
> </steps>
> <config description=3D"respuesta del host, reporting and
> logging"
> host=3D"espinete" port=3D"7783" protocol=3D"http"
> basepath=3D"saussv3x"
> summary=3D"true" saveresponse=3D"true"
> saveprefix=3D"SaussV3x"
> resultpath=3D"${webtest.home}/SAUSSv3x/results/${nombre}/${apellidos}"
> resultfile=3D"${nombre}-${apellidos}.xml"
> haltonerror=3D"true" autorefresh=3D"true"
> showhtmlparseroutput=3D"true"
> >
> <header name=3D"Accept" value=3D"image/gif,
> image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
> application/msword, application/vnd.ms-excel, =
> application/vnd.ms-powerpoint,
> */*\r\n" />=20
> <header name=3D"Accept-Language" value=3D"es" />
> <header name=3D"Content-Type"
> value=3D"application/x-www-form-urlencoded, application/x-javascript" /> =
>
> <header name=3D"Accept-Encoding" value=3D"gzip,
> deflate" />=20
> <header name=3D"Connection" value=3D"Keep-Alive"
> />
> <header name=3D"Cache-Control" value=3D"no-cache" />
> <header name=3D"Referer"
> value=3D"http://espinete:7783/saussv3x/SAUTareas.do?irFase=3D01&numEx=
> pedient
> e=3D#{numExp}&codTarea=3D#{codTarea}&numAsignacion=3D#{numAsig}\r=
> \n" />
>
> </config>
> <steps>
> ...
> ...=09
> </steps>
> </webtest>
> </target>
>
>
> Also I have tried:
>
>
> <target name=3D"main" depends=3D"">
> <webtest name=3D"Sauss2_005">
> &configV2x;
> <steps>
> &loginV2x;
> &RGT; =20
> &aperturaExp;
> ...
> </steps>
> <config description=3D"respuesta del host, reporting and
> logging"
> host=3D"espinete" port=3D"7783" protocol=3D"http"
> basepath=3D"saussv3x"
> summary=3D"true" saveresponse=3D"true"
> saveprefix=3D"SaussV3x"
> resultpath=3D"${webtest.home}/SAUSSv3x/results/${nombre}/${apellidos}"
> resultfile=3D"${nombre}-${apellidos}.xml"
> haltonerror=3D"true" autorefresh=3D"true"
> showhtmlparseroutput=3D"true"
> >
> <header name=3D"Accept" value=3D"image/gif,
> image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
> application/msword, application/vnd.ms-excel, =
> application/vnd.ms-powerpoint,
> */*\r\n" />=20
> <header name=3D"Accept-Language" value=3D"es" />
> <header name=3D"Content-Type"
> value=3D"application/x-www-form-urlencoded, application/x-javascript" /> =
>
> <header name=3D"Accept-Encoding" value=3D"gzip,
> deflate" />=20
> <header name=3D"Connection" value=3D"Keep-Alive"
> />
> <header name=3D"Cache-Control" value=3D"no-cache" />
> <header name=3D"Referer"
> value=3D"http://espinete:7783/saussv3x/SAUTareas.do?irFase=3D01&numEx=
> pedient
> e=3D#{numExp}&codTarea=3D#{codTarea}&numAsignacion=3D#{numAsig}\r=
> \n" />
>
> </config>
> <steps>
> ...
> ...=09
> </steps>
> </webtest>
> </target>
>
> And the output is: java.lang.NullPointerException
> Any idea is welcome. Thanks.
> --__--__--
>
> Message: 5
> Date: Mon, 30 Jul 2007 23:21:20 -0700 (PDT)
> From: Marc Guillemot <mguillemot@yahoo.fr>
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] config nested task
> Reply-To: webtest@lists.canoo.com
> Reply-To: Marc Guillemot <mguillemot@yahoo.fr>
>
>
> Hi,
>
> <config> is currently intended to be used only once, before <steps>.
>
> Is Referer the only information you need to have at this place of your
> steps? Is it the "real" Referer or do you need to falsify it?
>
> Marc.
>
>
> AVISO LEGAL: La informacion contenida en este mensaje y cualquier
> documento adjunto en el mismo es confidencial, puede estar legalmente
> protegida y esta dirigida solamente al destinatario. La publicacion, uso,
> distribucion, impresion o copia no autorizada del contenido de este
> mensaje, esta estrictamente prohibida y puede ser ilegal. Si Vd. ha
> recibido este mensaje por error, le rogamos destruya el mensaje y lo
> notifique al remitente o llame al telefono (+34) 91 556 92 62.
>
> DISCLAIMER: The information contained in this message and any attached
> document is confidential, covered by law and intended solely for the
> recipient. The distribution, print, publication, unauthorised copy and /
> or use of the message content is strictly forbidden and could be deemed
> illegal. If you are not the intended recipient of this message, we request
> that you destroy it and notify the sender either in writing or by calling
> ++34 91 556 92 62.
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context: http://www.nabble.com/5.-Re%3A-config-nested-task-%28Marc-Guillemot%29-tf4191399.html#a11921519
Sent from the WebTest mailing list archive at Nabble.com.