1. Isha Training Solutions
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
2. How to do Parameterization using
TrueClient Protocol?
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
3. Parameterization is passing different values for each virtual user or iteration.
When you record an application using true client protocol in Loadrunner, the
script contains values such as username, password, account number etc.
Suppose if you want to pass different username, password and account
numbers for each iteration that login into the application, then you can use
parameterization.
What is Parameterization?
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
4. Steps to create Parameterization in Trueclient script:-
As we can see on below image, User is registering on Website with his personal
phone number. But in real time there will be number of users who will be
registering with their unique personal details including phone number, name,
address etc. So in that we case, we need to parameterize those value in our true
client script.
So let’s start with this approach which is very simple. As shown in below
screenshot, Select the value which you want to parameterize let’s say phone
number (See highlighted field below).
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
5. Figure 1.1 :Values highlighted for parameterization
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
6. Expand the steps as shown below. Go to
Arguments.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
7. Figure 1.2: Expand the Step.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
8. Select the value as a type of Java script value.
Icon Type
Literal string
JavaScript value
Parameter
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
9. Figure 1.3: Select JS in Parameter type.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
10. Figure 1.4: Diagram showing type JS selected in parameter.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
11. Right-click and select Replace with a Parameter.
Figure 1.5:Right click and select ‘Create new parameter for selection’.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
12. In the Enter Parameter Name dialog box, enter the parameter name.
If the parameter does not exist in the Parameter List, it is created and the
default parameter type is set to File.
You can go to the Parameter List to add or delete values for the specified
parameter.
By default, the original value is included in the list of values for the
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
13. Figure 1.6: provide parameter name and confirm.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
14. Once you click on Ok, it will create a JS function TC.getParam(“Phonenumber”)
in value. You can also type this JS function in value tab and select parameter type
as JS.
Figure 1.7: After confirming JS code in value will be displayed as
TC.getParam(“PhoneNumber”); .
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
15. Figure 1.8: Go to parameters > change the value as per the test.
As You can see Parameterization is done using trueclient protocol in loadrunner.
To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol
16. To Enroll For The Complete Course Follow The Link
http://ishatrainingsolutions.org/true-client-protocol/
Thank You