[Webtest] problem with urlInvoke

Enrico Donelli Enrico Donelli <e.donelli@myti.it>
Mon, 5 Sep 2011 12:34:57 +0200


--Apple-Mail-1--243234614
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Thanks for the response.=20
Unfortunately it doesn't work...

I also tried making a config step, like

<config=20
			    host=3D"myhost.it"
				protocol=3D"http"	>

and invoking=20

<invoke url=3D"#{myurl}" description=3D"anteprima documento" />

where myurl is =
"/preview/index?id=3D058a3967-632c-46e8-b536-3efac3cc8d31&highlight=3DRyan=
air,Ryanair&iframe"

in the test report I read:

-> complete url	http://myhost.it/#{myurl}
url	=
/preview/index?id=3D058a3967-632c-46e8-b536-3efac3cc8d31&highlight=3DRyana=
ir,Ryanair&iframe

but in the logs I see always:

INFO (com.canoo.webtest.steps.request.TargetHelper) - getting response =
for url: http://myhost.it/#{myurl}

without parsing (it seems).

Exactly the same with:
<invoke url=3D"&#35;{myurl}" description=3D"anteprima documento" />



I don't know what else to do ...


Thanks
Enrico




On Sep 2, 2011, at 6:26 PM, Josep Garc=EDa wrote:

> Try:
>=20
> <invoke url=3D"${mybaseurl}&#35;{myurl}"
>                                description=3D"call preview" />
>=20
> as #{myurl} is expanded as a variable.
>=20
> Cheers,
> Josep
>=20
> 2011/9/2 Enrico Donelli <e.donelli@myti.it>
> Hi all,
> I'm new to Canoo, and I'm stuck to a problem with urlInvoke
>=20
> I use storeXPath to store a url, and I make something like
>=20
>                        <storeXPath description=3D"Extract link"
>                                    =
xpath=3D"//a[@title=3D'Ryanair.com']/@href"
>                                    property=3D"myurl" />
>=20
>                        <invoke url=3D"${mybaseurl}#{myurl}"
>                                description=3D"call preview" />
>=20
> the problem is that, even if in test report I see the correct url, the =
url called doesn't have the #{myurl} part: it seems that the url invoked =
is only ${mybaseurl}
>=20
> Am I doing anything wrong?
> I'm using the latest snapshot.
>=20
> Thanks in advance
> Enrico
>=20
>=20
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
>=20
>=20
> --=20
>=20
> Josep Garc=EDa Corral=20
> Ingeniero de Software
> isigma, la referencia en firma electr=F3nica
> Tel. +34 93 519 13 75
> www.isigma.es=20
>=20
> =20
> =A1Prueba gratis la firma online!=20

---
Enrico Donelli
e.donelli@myti.it





--Apple-Mail-1--243234614
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>Thanks for the response.&nbsp;</div><div>Unfortunately it doesn't =
work...</div><div><br></div><div>I also tried making a config step, =
like</div><div><br></div><div><div>&lt;config&nbsp;</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">			=
</span> &nbsp; &nbsp;host=3D"<a =
href=3D"http://myhost.it">myhost.it</a>"</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">				=
</span>protocol=3D"http"<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	=
</span>&gt;</div></div><div><br></div><div>and =
invoking&nbsp;</div><div><br></div><div>&lt;invoke url=3D"#{myurl}" =
description=3D"anteprima documento" =
/&gt;</div><div><div><br></div><div>where myurl is =
"/preview/index?id=3D058a3967-632c-46e8-b536-3efac3cc8d31&amp;highlight=3D=
Ryanair,Ryanair&amp;iframe"</div><div><br></div><div>in the test report =
I read:</div><div><br></div><div><table cellpadding=3D"2" =
cellspacing=3D"0" style=3D"font-family: Arial, Helvetica, sans-serif; =
font-size: 14px; background-color: rgb(248, 248, 248); position: static; =
z-index: auto; "><tbody><tr><td class=3D"parameterName" =
style=3D"background-color: rgb(248, 248, 248); white-space: nowrap; =
font-weight: bold; ">-&gt; complete url</td><td class=3D"parameterValue" =
style=3D"background-color: rgb(248, 248, 248); "><a =
href=3D"http://myhost.it/#{myurl}">http://myhost.it/#{myurl}</a></td></tr>=
</tbody></table><div><table cellpadding=3D"2" cellspacing=3D"0" =
style=3D"font-family: Arial, Helvetica, sans-serif; font-size: 14px; =
background-color: rgb(248, 248, 248); position: static; z-index: auto; =
"><tbody><tr><td class=3D"parameterName" style=3D"background-color: =
rgb(248, 248, 248); white-space: nowrap; font-weight: bold; =
">url</td><td class=3D"parameterValue" style=3D"background-color: =
rgb(248, 248, 248); =
">/preview/index?id=3D058a3967-632c-46e8-b536-3efac3cc8d31&amp;highlight=3D=
Ryanair,Ryanair&amp;iframe</td></tr></tbody></table><div><br></div></div><=
/div><div><div>but in the logs I see =
always:</div><div><br></div><div>INFO =
(com.canoo.webtest.steps.request.TargetHelper) - getting response for =
url: <a =
href=3D"http://myhost.it/#{myurl}">http://myhost.it/#{myurl}</a></div></di=
v><div><br></div><div>without parsing (it =
seems).</div><div><br></div><div>Exactly the same =
with:</div><div>&lt;invoke url=3D"&amp;#35;{myurl}" =
description=3D"anteprima documento" =
/&gt;</div></div><div><br></div><div><br></div><div><br></div>I don't =
know what else to do =
...<div><br></div><div><br></div><div>Thanks</div><div>Enrico</div><div><b=
r></div><div><br></div><div><br></div><div><div><br><div><div>On Sep 2, =
2011, at 6:26 PM, Josep Garc=EDa wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">Try:<br><br>&lt;invoke =
url=3D"${mybaseurl}&amp;#35;{myurl}"<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;description=3D"call preview" =
/&gt;<br><br>as #{myurl} is expanded as a =
variable.<br><br>Cheers,<br>Josep<br><br><div style=3D"margin: 0pt;" =
name=3D"sig_d41d8cd98f"></div><div class=3D"gmail_quote">
2011/9/2 Enrico Donelli <span dir=3D"ltr">&lt;<a =
href=3D"mailto:e.donelli@myti.it">e.donelli@myti.it</a>&gt;</span><br><blo=
ckquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; =
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>
I'm new to Canoo, and I'm stuck to a problem with urlInvoke<br>
<br>
I use storeXPath to store a url, and I make something like<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;&lt;storeXPath description=3D"Extract link"<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;xpath=3D"//a[@title=3D'Ryanair.com']/@href"<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;property=3D"myurl" =
/&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp;&lt;invoke url=3D"${mybaseurl}#{myurl}"<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;description=3D"call preview" =
/&gt;<br>
<br>
the problem is that, even if in test report I see the correct url, the =
url called doesn't have the #{myurl} part: it seems that the url invoked =
is only ${mybaseurl}<br>
<br>
Am I doing anything wrong?<br>
I'm using the latest snapshot.<br>
<br>
Thanks in advance<br>
Enrico<br>
<br>
<br>
<br>
_______________________________________________<br>
WebTest mailing list<br>
<a href=3D"mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br>=

<a href=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
target=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</a><br>
</blockquote></div><br><br clear=3D"all"><br>-- <br><table =
style=3D"text-align: left; width: 100%; min-height: 72px; =
background-color: rgb(239, 239, 239);" border=3D"0" cellpadding=3D"2" =
cellspacing=3D"2"><tbody><tr><td style=3D"vertical-align: top; width: =
19px;">
<img style=3D"width: 26px; min-height: 32px;" alt=3D"isotipo isigma" =
src=3D"http://www.isigma.es/images/escudo_H32.png"><br>
      </td>
      <td style=3D"vertical-align: top; font-family: Trebuchet =
MS,sans-serif; font-size: 8pt; width: 1190px;"><font style=3D"font-size: =
10pt; font-weight: bold;">Josep Garc=EDa Corral</font>
      <br>Ingeniero de Software<br>
      </td>
    </tr>
    <tr>
      <td colspan=3D"2" rowspan=3D"1" style=3D"vertical-align: top; =
font-family: Trebuchet MS,sans-serif; font-size: 8pt;">isigma, la =
referencia en firma electr=F3nica<br>
Tel. +34 93<font style=3D"color: rgb(0, 0, 0);" color=3D"#888888"> 519 =
13 75</font><br>
      <a href=3D"http://www.isigma.es/" =
target=3D"_blank">www.isigma.es</a> <br>
      </td>
    </tr>
  </tbody>
</table>
<br>
<a href=3D"http://www.portasigma.com/" style=3D"vertical-align: top; =
font-family: Trebuchet MS,sans-serif;" target=3D"_blank">
<img =
src=3D"http://www.portasigma.com/images/stories/logo-portasigma-mini.png" =
alt=3D"logotipo portasigma"><br>
=A1Prueba gratis la firma online!
</a><br>
</blockquote></div><br><div>
<div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><div>---</div><div>Enrico =
Donelli</div><div><a =
href=3D"mailto:e.donelli@myti.it">e.donelli@myti.it</a></div><div><br></di=
v></div><br class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">
</div>
<br></div></div></body></html>=

--Apple-Mail-1--243234614--