Show List

LoadRunner command line execution

LoadRunner command line execution allows you to run LoadRunner scenarios and tests from the command line, without the need to use the LoadRunner Controller user interface. This can be useful for automating load testing processes, or for running tests in a continuous integration/continuous delivery (CI/CD) environment.

Here's an example of how to execute a LoadRunner scenario from the command line:

  • Open a command prompt or terminal window.

  • Navigate to the directory where LoadRunner is installed.

  • Run the following command to start the LoadRunner Command Line Execution tool:

Copy code
lr_cmd
  • To run a LoadRunner scenario, use the following command syntax:
php
Copy code
lr_cmd -run -scenario_file <scenario_file>

where <scenario_file> is the path to the scenario file you want to run.

  • For example, to run a scenario named "example_scenario.lrs", you would use the following command:
Copy code
lr_cmd -run -scenario_file example_scenario.lrs
  • The LoadRunner Command Line Execution tool will run the scenario according to the parameters defined in the scenario file, and generate results that can be analyzed to determine the performance of the application under load.

In general, LoadRunner command line execution is a powerful and flexible tool for automating load testing processes and for running tests in a CI/CD environment. By executing LoadRunner scenarios from the command line, you can simplify and streamline your load testing processes, and ensure that your tests are accurate and meaningful.


    Leave a Comment


  • captcha text