commands for lr controller

Upload: ilaaaannnn

Post on 14-Apr-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Commands for LR Controller

    1/2

    Commands to work with Controller and Analyzer:

    Controller:

    1. Open LoadRunner Controller.Path_to_Wlrun.exe

    2. Open the LoadRunner Controller and do not execute it.Wlrun.exeTestPath scenario.lrs

    3. Open LoadRunner Controller scenario scenario.lrs,execute it, and save results todefault folder.

    Wlrun.exeRunTestPath scenario.lrs

    4. Open LoadRunner Controller scenario scenario.lrs, execute it, and save results tores_folder folder.

    Wlrun.exeRun -TestPath scenario.lrsResultName res_folder

    5. Open LoadRunner Controller scenario scenario.lrs,execute it, save results tores_folder folder, and after that start analysis on created results with default

    template.

    Wlrun.exeRunTestPath scenario.lrsResultName res_folderInvokeAnalysis

    6. Open LoadRunner Controller scenario scenario.lrs, execute it, save results tores_folder folder, and after that start Analysis on created results with default

    template. Repeat all the steps 10 times.

    set LR_HOME=C:\Program Files\Mercury\LoadRunner

    for /L %%i in (1,1,10) do "%LR_HOME%\bin\Wlrun.exe" -Run -TestPath

    "%LR_HOME%\scenario\scenario1.lrs" -ResultName C:\Temp\LR_Res\result%%i

    Analyzer:

    1. To start AnalysisAnalysisUI.exe (Mention the path of this .exe file)

  • 7/30/2019 Commands for LR Controller

    2/2

    2. To open *.lrr file (LoadRunner Result file) or *.lra file (LoadRunner Analysis file)Path_to_AnalysisUI.exeRESULTPATH path_to _lrr_or_lra_file

    3. To open *.lrr file or *.lra file and apply a specified templatepath_to_AnalysisUI.exe -RESULTPATH path_to_lrr_or_lra_file -TEMPLATENAME

    name_of_template