[Webtest] Extension question

Dierk Koenig webtest@lists.canoo.com
Thu, 24 Jul 2003 10:27:03 +0200


with regex, you can cut out starting from the dot.

with xpath, you can use the xpath substring/index functions
(or even "translate(a,b)" in this case :-))
You can lookup the possible xpath functions with the links provided on the
webtest site. You will also find a link to the xpath explorer. This is also
worth a try.

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Ferguson, Steve (DIS)
> Sent: Mittwoch, 23. Juli 2003 17:59
> To: 'webtest@lists.canoo.com'
> Subject: RE: [Webtest] Extension question
>
>
> Great! I see how to get a link into an xpath variable. How would I convert
> the url in this variable from say https://aaa.com to http://bbb.com ? Any
> hints? Thanks.
>
> Steve
>
>
> -----Original Message-----
> From: Dierk Koenig [mailto:dierk.koenig@canoo.com]
> Sent: Wednesday, July 23, 2003 1:13 AM
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] Extension question
>
>
> Hi Steve,
>
> you can use <storeregex/> or <storexpath/> to extract your url into
> a dynamic property.
> You can use this property in a trailing <invoke/> to connect to your page.
>
> cheers
> Mittie
>
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of Ferguson, Steve (DIS)
> > Sent: Mittwoch, 23. Juli 2003 0:41
> > To: 'webtest@lists.canoo.com'
> > Subject: [Webtest] Extension question
> >
> >
> > Hi all,
> >
> >    I am interested in being able to convert or map the URL to which a
> > clicklink will send a request. Is this possible? If so how? So
> if I had a
> > page like :
> >
> > ...
> > 	<A href="https://someserver.com/somelink.html">thelink</A>
> > ...
> >
> > 	and I wanted to map that link via clicklink to
> > http://someotherserver.com/somelink.html how might I accomplish this?
> >
> >
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>