LoadRunner Runtime Settings "Additional Attributes"

404 views
Skip to first unread message

Ltester

unread,
Jun 5, 2009, 6:31:47 PM6/5/09
to LoadRunner
How is this section used, i am not sure what is it for. can anyone
give an example of it
the user guide has very limited explanation on it. it is something
that has to do with the function
lr_get_attrib_string
can anyone give an example
all inputs are appreciated

Thanks

pablo martinez

unread,
Jun 5, 2009, 11:53:08 PM6/5/09
to LR-Loa...@googlegroups.com
it takes a value from an attribute that you define in the runtime settings, additional attributes

create a new test, add a dummy attribute there and try to get its value from the script

sometimes I use it for some parameters that I want to change easily on the controller without edit the parameters tables, just modifing the runtime settings (is it clear ? I'm re-reading my explanation and I doubt it)

Ltester

unread,
Jun 8, 2009, 2:20:50 PM6/8/09
to LoadRunner
No its not clear, please try to further explain it with some examples
if you got the time

Thanks

On Jun 5, 8:53 pm, pablo martinez <pablo.daniel.marti...@gmail.com>
wrote:
> > Thanks- Hide quoted text -
>
> - Show quoted text -

Manny Yamzon

unread,
Jun 8, 2009, 2:36:23 PM6/8/09
to LR-Loa...@googlegroups.com
You would normally use the Additional Attributes if you have if you script would possibly require a changes in one or many of your paramater(s), given an example that you wanted to control the number of percentage who can login as an existing user, so on your Additional attributes, you give the name and the value of that attribute.. say 70... that means you want your overall load to use 70% existing user. you'll use the lr_get_attrib_* function to pickup the value/or store it into another variable, you can now then write a condition like:
//create a parameter or a variable for random number first
if ( random number <= 70)
   then login as existing user
else
   register_user
Now, the attribute value is now inter-changeable in the controller as to whatever value you want it to use for a given load test run without going back to your script or edit the script.

shlomini

unread,
Jun 8, 2009, 2:36:44 PM6/8/09
to LoadRunner
Hi,

This is related to lr_vuser_get_attrib_* fucntion set.

It allows the user to generalize the script by using command line
parameters. In the past the capability to "feed" lr_get_attrib_string
function was available only from the group command line in the
Controller. We have added the capaiblity to feed these functions in
VuGen as well in order to ease the debug process as the script expects
to get values.

It can be useful for simple parameters that don't require varying data
during the scenario execution (e.g. Server Name). As mentioned in the
previous reply, it helps saving time when configuring the scenario as
you don't have to open the parameters file

Regards,
Shlomi
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages