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.
Francisco Javier Martin Gutierrez wrote:
>
>
> 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="main" depends="">
> <webtest name="Sauss2_005">
> &configV2x;
> <steps>
> &loginV2x;
> &RGT;
> &aperturaExp;
> ...
> </steps>
> <config description="respuesta del host, reporting and
> logging"
> host="espinete" port="7783" protocol="http"
> basepath="saussv3x"
> summary="true" saveresponse="true"
> saveprefix="SaussV3x"
> resultpath="${webtest.home}/SAUSSv3x/results/${nombre}/${apellidos}"
> resultfile="${nombre}-${apellidos}.xml"
> haltonerror="true" autorefresh="true"
> showhtmlparseroutput="true"
> >
> <header name="Accept" value="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" />
> <header name="Accept-Language" value="es" />
> <header name="Content-Type"
> value="application/x-www-form-urlencoded, application/x-javascript" />
> <header name="Accept-Encoding" value="gzip, deflate" />
> <header name="Connection" value="Keep-Alive"
> />
> <header name="Cache-Control" value="no-cache" />
> <header name="Referer"
> value="http://espinete:7783/saussv3x/SAUTareas.do?irFase=01&numExpedient
> e=#{numExp}&codTarea=#{codTarea}&numAsignacion=#{numAsig}\r\n" />
>
> </config>
> <steps>
> ...
> ...
> </steps>
> </webtest>
> </target>
>
>
> Also I have tried:
>
>
> <target name="main" depends="">
> <webtest name="Sauss2_005">
> &configV2x;
> <steps>
> &loginV2x;
> &RGT;
> &aperturaExp;
> ...
> </steps>
> <config description="respuesta del host, reporting and
> logging"
> host="espinete" port="7783" protocol="http"
> basepath="saussv3x"
> summary="true" saveresponse="true"
> saveprefix="SaussV3x"
> resultpath="${webtest.home}/SAUSSv3x/results/${nombre}/${apellidos}"
> resultfile="${nombre}-${apellidos}.xml"
> haltonerror="true" autorefresh="true"
> showhtmlparseroutput="true"
> >
> <header name="Accept" value="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" />
> <header name="Accept-Language" value="es" />
> <header name="Content-Type"
> value="application/x-www-form-urlencoded, application/x-javascript" />
> <header name="Accept-Encoding" value="gzip, deflate" />
> <header name="Connection" value="Keep-Alive"
> />
> <header name="Cache-Control" value="no-cache" />
> <header name="Referer"
> value="http://espinete:7783/saussv3x/SAUTareas.do?irFase=01&numExpedient
> e=#{numExp}&codTarea=#{codTarea}&numAsignacion=#{numAsig}\r\n" />
>
> </config>
> <steps>
> ...
> ...
> </steps>
> </webtest>
> </target>
>
> And the output is: java.lang.NullPointerException
> Any idea is welcome. Thanks.
>
>
> Francisco Javier Martín
> Desarrollo de Proyectos - Valladolid
> Security Solutions & Services Division
>
> Edif. Solar, Of. 13, 14, 15
> Parque Tecnológico Boecillo. 47151 Valladolid. España
> Tel.: 983 54 65 55 Fax: 983 54 66 09
>
>
> 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
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context:
http://www.nabble.com/config-nested-task-tf4169267.html#a11918807
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest