十五年测试老手,长期负责WEB\APP 项目测试,目前主要负责团队管理工作。

如何用命令行执行loadrunner的脚本

上一篇 / 下一篇  2011-11-19 20:51:44 / 个人分类:loadrunner

文章来源
  • 文章来源:【转载】
SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin51Testing软件测试网']D x2Y~5z J.^
cd %M_ROOT%
2lHdX-up[0wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose
3m!~O@.j~ vx051Testing软件测试网6QJqL-]?uBC;l
其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录51Testing软件测试网 s Mg*P Hq
D:\ceshi10\ScenarioNo1.lrs是脚本目录51Testing软件测试网}t{'\co ?4a&Y4z
DontClose 脚本运行完不关闭控制器,51Testing软件测试网,aQ@ H?
51Testing软件测试网$a~O} N6} x-Q
以上是批处理
?#Q8D8e0p6t+E0把批处理加到 windows的任务计划里,设置好运行时间,就可以了
B u M,jH2WD051Testing软件测试网 P/k9~| fc2U
This means the Controller can be started from a DOS batch (.bat) file (preferrably with a short name on a root drive):
  • 如何用命令行执行<a href=loadrunner的脚本 (转)" src="http://www.wilsonmar.com/img/cmd.gif" real_src="http://www.wilsonmar.com/img/cmd.gif">REM Start Controller:
    U!\i ~;I/iD-p*c\o0SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin51Testing软件测试网ln/C)gs6N8gm
    cd %M_ROOT%
    /B.q;h(U5O |*x A0wlrun.exe -TestPath D:\Dev\Dev1.lrs -port 8080 -Run -DontClose51Testing软件测试网;B$u,DR*`[ S
    pause Press Ctrl-Z to keep this window or

    c/f(Bit1G$Cl0 51Testing软件测试网2Q.?V8A C ]6G v'l

  • Including the-Runparameter is the same as manually pressing the "Start Scenario" automatically upon invocation. This is not a good idea because you may have to decide about collating the file from a previous run or want to change the output folder.

TAG: LoadRunner loadrunner

 

评分:0

我来说两句

Open Toolbar