Why do you need to parameterize fields in your virtual user script?

Showing Answers 1 - 2 of 2 Answers

ashra

  • Mar 21st, 2005
 

Once a vuser script is recorded, it must then be parameterised. This involves extractingthe hard-coded values from within the script, and placing them in an external datatable. This allows a single vuser to be run many times, and to use different data oneach run. This provides a more realistic demand on the system, as it prevents the serverfrom caching the results of many transactions.Scripts can be parameterised in a variety of ways. Some parameters will be defined toact as global variables, specifying such things as the database name, while others willtake on a new value on every iteration of the vuser. LoadRunner is extremely flexiblein this respect, and can model most requirements that may be placed on the load test.

Suky

  • Jun 17th, 2005
 

To eliminate Caching and represent a real-lfe situation/user. 
 
If you us the same input as was originally recorded for you script the results will be scewed due to caching. 
Not having a variation in data used to drive your tests isn't true to life and hence would not be an effective test.

subbarao

  • Jul 31st, 2005
 

need for parameterisation is ,for eg. test for inserting a record in table, which is having a primery key field. the recorded vuser script tries to enter same record into the table for that many no of vusers. but failed due to integrity constraint. in that situation we definetly need parameterisation

  Was this answer useful?  Yes

vijay kumar paluri

  • Oct 4th, 2005
 

In Order to provide the End User data during the Run Time

  Was this answer useful?  Yes

psbabu

  • Dec 21st, 2005
 

ur right .but inorder to do parameterization we need values na.So, we have to cerate our own sample dat or we have to collect it form the database

  Was this answer useful?  Yes

vidyank

  • Feb 16th, 2006
 

parameters are like script variables.To perform script actions using different values we create parameters.

  Was this answer useful?  Yes

jitender

  • Feb 25th, 2006
 

To perform a transaction with multiple values we parameterized field in vuser script.

  Was this answer useful?  Yes

To easily create groups of simultaneous users from a single script that invoke differing response from the server.

To investigate response of the system to varying mixes of requests, e.g. 80% of the users querying the database, 15% updating a text field,, 5 % creating new records where the percentages are the parameters.

  Was this answer useful?  Yes

sindhu_gt

  • Mar 14th, 2014
 

Generally in real user beahaviour we have to do Perfromance Testing.Real users enters different input values in the fields of web applications.so in such a situation the Virtual users need to perform like real users.so we need to do parameterization in LoadRunner.Parameterization is nothing but dynamically changing the data and testing whether that is working perfectly or not.In LoadRunner Parameterization is very simple to do.select the value need to parameterize and right click select parameterize option it will open a window we need to import csv file. and types will be available we can select which one should match for that field.and the value colour changes to pink which tells that is parameterized value.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions