AW: [Webtest] problem with urlInvoke

Carsten Thielecke Carsten Thielecke <Carsten.Thielecke@sqs.com>
Mon, 5 Sep 2011 10:41:13 +0000


--_000_EB6878BBD317E443AC45B6559E6FF9C00F12A121SWEX001resource_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, Enrico,

are you using ANT 1.8 or higher?
Expansion for webtest properties does not work with ANT 1.8, try using ANT =
1.7.
Greetz
Carsten

Von: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] I=
m Auftrag von Enrico Donelli
Gesendet: Montag, 5. September 2011 12:35
An: webtest@lists.canoo.com
Betreff: Re: [Webtest] problem with urlInvoke

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

I also tried making a config step, like

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


and invoking

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

where myurl is "/preview/index?id=3D058a3967-632c-46e8-b536-3efac3cc8d31&hi=
ghlight=3DRyanair,Ryanair&iframe"

in the test report I read:

-> complete url

http://myhost.it/#{myurl}


url

/preview/index?id=3D058a3967-632c-46e8-b536-3efac3cc8d31&highlight=3DRyanai=
r,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:

<invoke url=3D"${mybaseurl}&#35;{myurl}"
                               description=3D"call preview" />

as #{myurl} is expanded as a variable.

Cheers,
Josep
2011/9/2 Enrico Donelli <e.donelli@myti.it<mailto:e.donelli@myti.it>>
Hi all,
I'm new to Canoo, and I'm stuck to a problem with urlInvoke

I use storeXPath to store a url, and I make something like

                       <storeXPath description=3D"Extract link"
                                   xpath=3D"//a[@title=3D'Ryanair.com']/@hr=
ef"
                                   property=3D"myurl" />

                       <invoke url=3D"${mybaseurl}#{myurl}"
                               description=3D"call preview" />

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 onl=
y ${mybaseurl}

Am I doing anything wrong?
I'm using the latest snapshot.

Thanks in advance
Enrico



_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com<mailto:WebTest@lists.canoo.com>
http://lists.canoo.com/mailman/listinfo/webtest



--
[isotipo isigma]

Josep Garc=EDa Corral
Ingeniero de Software

isigma, la referencia en firma electr=F3nica
Tel. +34 93 519 13 75
www.isigma.es<http://www.isigma.es/>


[logotipo portasigma]
=A1Prueba gratis la firma online! <http://www.portasigma.com/>

---
Enrico Donelli
e.donelli@myti.it<mailto:e.donelli@myti.it>


--_000_EB6878BBD317E443AC45B6559E6FF9C00F12A121SWEX001resource_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Trebuchet MS";
	panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.apple-tab-span
	{mso-style-name:apple-tab-span;}
span.E-MailFormatvorlage18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi, Enrico,<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">are you us=
ing ANT 1.8 or higher?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Expansion =
for webtest properties does not work with ANT 1.8, try using ANT 1.7.<o:p><=
/o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Greetz<o:p=
></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Carsten<o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp=
;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">Von:</span></b><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> webtest-a=
dmin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]
<b>Im Auftrag von </b>Enrico Donelli<br>
<b>Gesendet:</b> Montag, 5. September 2011 12:35<br>
<b>An:</b> webtest@lists.canoo.com<br>
<b>Betreff:</b> Re: [Webtest] problem with urlInvoke<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class=3D"MsoNormal">Thanks for the response.&nbsp;<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Unfortunately it doesn't work...<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">I also tried making a config step, like<o:p></o:p></=
p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<p class=3D"MsoNormal">&lt;config&nbsp;<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><span class=3D"apple-tab-span">&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&nbsp; &nbsp;host=3D&quot;<a href=3D"http://myhost.it">myhost.it</a>=
&quot;<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><span class=3D"apple-tab-span">&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>protocol=3D&quot;http&quot;<span class=3D"apple-tab-span">&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&gt;<o:p></o:p></p>
</div>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">and invoking&nbsp;<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">&lt;invoke url=3D&quot;#{myurl}&quot; description=3D=
&quot;anteprima documento&quot; /&gt;<o:p></o:p></p>
</div>
<div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">where myurl is &quot;/preview/index?id=3D058a3967-63=
2c-46e8-b536-3efac3cc8d31&amp;highlight=3DRyanair,Ryanair&amp;iframe&quot;<=
o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">in the test report I read:<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding=
=3D"0" style=3D"background:#F8F8F8;z-index:auto">
<tbody>
<tr>
<td nowrap=3D"" style=3D"padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.5pt;font-family:&quot=
;Arial&quot;,&quot;sans-serif&quot;">-&gt; complete url<o:p></o:p></span></=
b></p>
</td>
<td style=3D"padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;"><a href=3D"http://myhost.it/#{myurl}">htt=
p://myhost.it/#{myurl}</a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div>
<p class=3D"MsoNormal"><span style=3D"display:none"><o:p>&nbsp;</o:p></span=
></p>
<table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding=
=3D"0" style=3D"background:#F8F8F8;z-index:auto">
<tbody>
<tr>
<td nowrap=3D"" style=3D"padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.5pt;font-family:&quot=
;Arial&quot;,&quot;sans-serif&quot;">url<o:p></o:p></span></b></p>
</td>
<td style=3D"padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;font-family:&quot;Ar=
ial&quot;,&quot;sans-serif&quot;">/preview/index?id=3D058a3967-632c-46e8-b5=
36-3efac3cc8d31&amp;highlight=3DRyanair,Ryanair&amp;iframe<o:p></o:p></span=
></p>
</td>
</tr>
</tbody>
</table>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
<div>
<div>
<p class=3D"MsoNormal">but in the logs I see always:<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">INFO (com.canoo.webtest.steps.request.TargetHelper) =
- getting response for url:
<a href=3D"http://myhost.it/#{myurl}">http://myhost.it/#{myurl}</a><o:p></o=
:p></p>
</div>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">without parsing (it seems).<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Exactly the same with:<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">&lt;invoke url=3D&quot;&amp;#35;{myurl}&quot; descri=
ption=3D&quot;anteprima documento&quot; /&gt;<o:p></o:p></p>
</div>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class=3D"MsoNormal">I don't know what else to do ...<o:p></o:p></p>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Enrico<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class=3D"MsoNormal">On Sep 2, 2011, at 6:26 PM, Josep Garc=EDa wrote:<o:=
p></o:p></p>
</div>
<p class=3D"MsoNormal"><br>
<br>
<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">Try:<br>
<br>
&lt;invoke url=3D&quot;${mybaseurl}&amp;#35;{myurl}&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;description=3D&quot;call preview&quot; =
/&gt;<br>
<br>
as #{myurl} is expanded as a variable.<br>
<br>
Cheers,<br>
Josep<o:p></o:p></p>
<div>
<p class=3D"MsoNormal">2011/9/2 Enrico Donelli &lt;<a href=3D"mailto:e.done=
lli@myti.it">e.donelli@myti.it</a>&gt;<o:p></o:p></p>
<p class=3D"MsoNormal">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&quot;Extract link&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xpath=3D&quot;//a[@title=
=3D'Ryanair.com']/@href&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;property=3D&quot;myurl&qu=
ot; /&gt;<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp;&lt;invoke url=3D&quot;${mybaseurl}#{myurl}&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;description=3D&quot;call preview&quot; =
/&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 onl=
y ${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"_blan=
k">http://lists.canoo.com/mailman/listinfo/webtest</a><o:p></o:p></p>
</div>
<p class=3D"MsoNormal"><br>
<br clear=3D"all">
<br>
-- <o:p></o:p></p>
<table class=3D"MsoNormalTable" border=3D"0" cellpadding=3D"0" width=3D"100=
%" style=3D"width:100.0%;background:#EFEFEF;min-height: 72px">
<tbody>
<tr>
<td width=3D"19" valign=3D"top" style=3D"width:14.25pt;padding:1.5pt 1.5pt =
1.5pt 1.5pt">
<p class=3D"MsoNormal"><img border=3D"0" id=3D"_x0000_i1025" src=3D"http://=
www.isigma.es/images/escudo_H32.png" alt=3D"isotipo isigma"><o:p></o:p></p>=

</td>
<td width=3D"1190" valign=3D"top" style=3D"width:892.5pt;padding:1.5pt 1.5p=
t 1.5pt 1.5pt">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Trebuchet MS&quot;,&quot;sans-serif&quot;">Josep Garc=EDa Corral</span></b=
><span style=3D"font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;=
sans-serif&quot;">
<br>
Ingeniero de Software<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan=3D"2" valign=3D"top" style=3D"padding:1.5pt 1.5pt 1.5pt 1.5pt">=

<p class=3D"MsoNormal"><span style=3D"font-size:8.0pt;font-family:&quot;Tre=
buchet MS&quot;,&quot;sans-serif&quot;">isigma, la referencia en firma elec=
tr=F3nica<br>
Tel. &#43;34 93<span style=3D"color:black"> 519 13 75</span><br>
<a href=3D"http://www.isigma.es/" target=3D"_blank">www.isigma.es</a> <o:p>=
</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class=3D"MsoNormal"><br>
<a href=3D"http://www.portasigma.com/" target=3D"_blank"><span style=3D"fon=
t-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;text-decoration:no=
ne"><img border=3D"0" id=3D"_x0000_i1026" src=3D"http://www.portasigma.com/=
images/stories/logo-portasigma-mini.png" alt=3D"logotipo portasigma"></span=
><span style=3D"font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;=
"><br>
=A1Prueba gratis la firma online! </span></a><o:p></o:p></p>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<p class=3D"MsoNormal">---<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Enrico Donelli<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><a href=3D"mailto:e.donelli@myti.it">e.donelli@myti.=
it</a><o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>=

</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
<br clear=3Dall> =

</body>
</html>


--_000_EB6878BBD317E443AC45B6559E6FF9C00F12A121SWEX001resource_--