Back to Browse

How to do Parameterization in LoadRunner? | A Step by Step Guide in Web HTML protocol

4.4K views
Jun 1, 2022
7:10

How to do Parameterization in LoadRunner? | A Step by Step Guide For Beginners: If you are a beginner then you must know what is parameterization? Parameterization is a method to replace the hardcoded value like application URL, User Name, Password, etc. with a parameter that has different input values. Example: You recorded a login page of an application by providing the credentials USER1 and PASS1. When you replay the script, the same credentials are passed. Now, if you want to run a test with 5 different users (USER2, USER3, USER4, USER5, and USER6) then you need to replace the hardcoded value i.e. USER1 with a parameter (say p_userID). This parameter will have a list of all the given values and pass them at the time of the test execution. Hence a parameter is used to pass different input values in the script. How to do parameterization in LoadRunner? There are 2 methods to do parameterization in LoadRunner: When you do not have a predefined parameter list: 1. Go to the script. 2. Select the value (text) which you want to parameterize. 3. Right-click on the selected text. 4. Click the ‘Replace with Parameter’ option. 5. Click ‘Create New Parameter’ 6. ‘Select or Create Parameter’ pop-up will open then provide the value for the ‘Parameter name’ and ‘Parameter type’ field and click ‘Ok’ button. 7. Another pop-up will appear stating ‘Do you want to replace all occurrences of the string with parameter?’. Click ‘Yes’ to replace all the occurrences of the text. This will replace the parameterized value with the parameter name. 8. Set the scope of the replacement and click on the suitable option. ‘Find Next’ option identifies the next occurrence of the text. ‘Replace’ option replaces the highlighted text only whereas the ‘Replace All’ option replaces all the occurrences of the text as per the selected scope. Promo Music Credits: Track: Damascus Music by https://www.fiftysounds.com

Download

1 formats

Video Formats

360pmp410.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to do Parameterization in LoadRunner? | A Step by Step Guide in Web HTML protocol | NatokHD