AW: problem with urlInvoke

Carsten Thielecke <Carsten.Thielecke-6cS/[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <EB6878BBD317E443AC45B6559E6FF9C00F12A121@SWEX001.resource.group.intl>
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: [email protected] [mailto:[email protected]] Im Auftrag von Enrico Donelli
Gesendet: Montag, 5. September 2011 12:35
An: [email protected]
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="myhost.it<http://myhost.it>"
                                               protocol="http"          >

and invoking

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

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

in the test report I read:

-> complete url

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


url

/preview/index?id=058a3967-632c-46e8-b536-3efac3cc8d31&highlight=Ryanair,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="&#35;{myurl}" description="anteprima documento" />



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


Thanks
Enrico




On Sep 2, 2011, at 6:26 PM, Josep García wrote:


Try:

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

as #{myurl} is expanded as a variable.

Cheers,
Josep
2011/9/2 Enrico Donelli <e.donelli-WZ+teLO/[email protected]<mailto:e.donelli-WZ+teLO/[email protected]>>
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="Extract link"
                                   xpath="//a[@title='Ryanair.com']/@href"
                                   property="myurl" />

                       <invoke url="${mybaseurl}#{myurl}"
                               description="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 only ${mybaseurl}

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

Thanks in advance
Enrico



_______________________________________________
WebTest mailing list
[email protected]<mailto:[email protected]>
http://lists.canoo.com/mailman/listinfo/webtest



--
[isotipo isigma]

Josep García Corral
Ingeniero de Software

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


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

---
Enrico Donelli
e.donelli-WZ+teLO/[email protected]<mailto:e.donelli-WZ+teLO/[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.