Search code examples
performanceperformance-testingloadrunnerparameterization

How to parameterize a variable value inside an URL/path in Load runner


Currently I am working in an application where I have to pass new value from a text file to the request path itself.In the below link I have to pass category ID values from text file.The request path is as following: /app1/hierarchy.save.action?category=11. Please suggest how to handle this.


Solution

  • Looks like you are new to loadrunner. Refer VUGEN Guide - Topic: Parametrization.

    Quick solution: Select the data to be parameterized(in your case it is 11) Right Click -> Replace with paramter -> Crete New Parameter Provide Parameter name and click OK.

    Note: This creates a file with parameter name in script folder. Press Ctrl+L to view or edit the parameter.