[Webtest] String manipulations in a Canoo script

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Thu, 18 Sep 2008 10:08:36 +0200


Hi Delphine,

just for my curiosity: do you want to perform a request that wouldn't
exist in a "normal" usage of your app?

With a Groovy (or script) step, you can access the properties and
manipulate them as you want.

Cheers,
Marc.
-- 
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

Delphine Denis wrote:
> Dear all,
> I need to manipulate strings during my tests with Canoo, but I don't
> know how to do it...
> Are there functions, other than the one described on Canoo manual,
> available for this?
> 
> Here is the description of my need:
> 1 - with a storeRegExp, I put this in my parameter:
> http://www.myaddress.com/MailValidated.mj?messageParameter=3D1256396767020408271978290643663908810043511218181014152940
> 
> Here is my Canoo command:
> <storeRegEx text="http://www.myaddress.com/MailValidated.mj.*$"
> property="MyLink" />
> 
> 2 - Then I need to manipulate MyLink, in order to take of the '3D' I've
> got after '='.
> But I don't know how I could manipulate strings with Canoo...
> 
> Do you know how I could do that?
> 
> Many thanks to all
> Delphine
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>