参考:
https://motevich.blogspot.com/2007/10/loadrunner-analysis-report-command-line.html
[popexizhi:
pope用的是11.0,这个位置打开是如下:
这里
1.添加了要求的图表后;
2.再新建一个模板;
3.将其设置为默认模板(所有的模板都保存在%loadrunner_home%\Analemplates\htmlTest中)。
4. 之后在命令行运行如下:
>"C:\Program Files (x86)\HP\LoadRunner\bin\AnalysisUI.ex
ESULTPATH "F:\test_result\a_login_2_100_16_32.lrr"
即可
]
The next step is saving of the current report as a template:
Select menu item "Tools / Templates / Save As Template...".
As a result, "Save As Template" dlg will be shown:
I perform the following:
Click OK btn to save new template.
Close LoadRunner Analysis. Now we are ready to perform last action.
Start LoadRunner Analysis from command line:
"c:\Program Files\Mercury\LoadRunner\bin\AnalysisUI.exe" -RESULTPATH C:\Temp\30users\30users.lrr -TEMPLATENAME WinResTemplate
Tips on the example:
That's all! Execute the example command from command line.
You will see that:
So, custom HTML report is ready without tester's intervention! Next LoadRunner test can be started from command line.
https://motevich.blogspot.com/2007/10/loadrunner-analysis-report-command-line.html
[popexizhi:
pope用的是11.0,这个位置打开是如下:
这里
1.添加了要求的图表后;
2.再新建一个模板;
3.将其设置为默认模板(所有的模板都保存在%loadrunner_home%\Analemplates\htmlTest中)。
4. 之后在命令行运行如下:
>"C:\Program Files (x86)\HP\LoadRunner\bin\AnalysisUI.ex
ESULTPATH "F:\test_result\a_login_2_100_16_32.lrr"
即可
]
The next step is saving of the current report as a template:
Select menu item "Tools / Templates / Save As Template...".
As a result, "Save As Template" dlg will be shown:
I perform the following:- Uncheck "Automatically apply this template to a new session" checkbox.
This will allow to load default template when I start LoadRunner Analysis. Unchecked option suits me. - Check "Generate the following automatic HTML report" checkbox.
If checked, the HTML report will be generated automatically. This is what I need. - Check "Automatically save the session as" checkbox.
It should be checked to correctly automatically close Analysis. - Check "Automatically close Analysis after saving session" checkbox.
I recommend to enable this option. It will be irreplaceable, if you plan a batch processing - that's our case.
Click OK btn to save new template.Close LoadRunner Analysis. Now we are ready to perform last action.
Start LoadRunner Analysis from command line:
- To start only Analysys, execute the following command:
path_to_AnalysisUI.exe - To open *.lrr file (LoadRunner result file) or *.lra file (LoadRunner Analysis file), execute:
path_to_AnalysisUI.exe-RESULTPATH path_to_lrr_or_lra_file - To open *.lrr or *.lra file and apply a specified template, execute:
path_to_AnalysisUI.exe -RESULTPATH path_to_lrr_or_lra_file-TEMPLATENAME name_of_template
"c:\Program Files\Mercury\LoadRunner\bin\AnalysisUI.exe" -RESULTPATH C:\Temp\30users\30users.lrr -TEMPLATENAME WinResTemplate
Tips on the example:
- Since path to AnalysisUI.exe contains spaces, use quotes (")
- You have to specify name of template, not path!
That's all! Execute the example command from command line.
You will see that:
- Analysis will be loaded
- It will start processing lrr-file, which was produced by LoadRunner Controller.
- After it precesses lrr-file, Analysis will apply template. That means, needed graphs only will be created. We have specified these graphs above.
- Analysis will create HTML report
- HTML report will be saved in specified path (I used - %ResultDir%\Windows_Resources_Report.html)
- At the end, Analysis will be closed.
So, custom HTML report is ready without tester's intervention! Next LoadRunner test can be started from command line.
没有评论:
发表评论