Converting a String into a Parameter

322 views
Skip to first unread message

Ltester

unread,
Feb 3, 2010, 3:23:36 AM2/3/10
to LoadRunner
how can i convert a string to parameter that i can use for correlation
basically, i have a function that decodes and encodes certain
alphabets in a URL
so i capture the correlation WCSParam_Diff1 into a string, feed the
string into the function, and then get the encoded result in a string
how do i get that result string to be converted to a parameter that i
can use instead of WCSParam_Diff1, as the result string is the same
but after getting encoded by the function

Thanks

Floris Kraak

unread,
Feb 3, 2010, 4:01:47 AM2/3/10
to lr-loa...@googlegroups.com

lr_save_string(stringname, "parameter");

Easy.
While you're at it though, have a look at
http://github.com/randakar/y-lib for more ways to manipulate
parameters.

Regards,
Floris
---
'What does it mean to say that one is 48% slower? That's like saying
that a squirrel is 48% juicier than an orange - maybe it's true, but
anybody who puts the two in a blender to compare them is kind of
sick.'
--- Linus Torvalds

James Pulley

unread,
Feb 3, 2010, 9:07:52 AM2/3/10
to lr-loa...@googlegroups.com
Covered in standard LoadRunner training materials. Please review. This
should also be reinforced during your mentoring phase associated with your
LoadRunner skills development.

This is typically covered in one of the sections which also covers manual
correlation.

Thanks

--
You received this message because you are subscribed to the Google
"LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Santosh

unread,
Feb 3, 2010, 12:27:41 PM2/3/10
to lr-loa...@googlegroups.com
Lr_save_string("old","new");

Sent from my iPhone

On Feb 3, 2010, at 9:07 AM, "James Pulley" <loadrunn...@jamespulley.com

Ltester

unread,
Feb 3, 2010, 1:17:21 PM2/3/10
to LoadRunner
Thank you all

On Feb 3, 9:27 am, Santosh <j.santosh.she...@gmail.com> wrote:
> Lr_save_string("old","new");
>
> Sent from my iPhone
>

> On Feb 3, 2010, at 9:07 AM, "James Pulley" <loadrunner-li...@jamespulley.com

> >http://groups.google.com/group/LR-LoadRunner?hl=en- Hide quoted text -
>
> - Show quoted text -

Ferretproof

unread,
Feb 18, 2010, 5:44:21 AM2/18/10
to LoadRunner
Besides lr_save_string(), you could also use lr_param_sprintf() for
more advanded ways to save a string (or other datatypes into a
parameter) but... only LR 9x.
Check it out in the LR-manual.

Cheers,
Ray
Have a look at http://github.com/randakar/y-lib for more ways to
manipulate parameters.

Reply all
Reply to author
Forward
0 new messages