我的地盘我做主! 博客:http://tester2test.cnblogs.com/   msn:win_soft@163.com

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

上一篇 / 下一篇  2007-06-07 14:30:40 / 个人分类:其他


I#]eI\5q0SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin51Testing软件测试网kl.n+ME{
cd %M_ROOT%
Lwv7M$h0wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose
b1v\f0cC051Testing软件测试网!zw|2?i+x?'K
其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录51Testing软件测试网y@KC"{
D:\ceshi10\ScenarioNo1.lrs是脚本目录
*u:r9ZN din*]0DontClose 脚本运行完不关闭控制器,51Testing软件测试网M4AWl0|+}1K
51Testing软件测试网9vTY0q-WM*u(N%R0fQ
以上是批处理51Testing软件测试网7v*Ao W)mk w
把批处理加到 windows的任务计划里,设置好运行时间,就可以了
51Testing软件测试网O D{ZW9{qpm6q6T E
51Testing软件测试网FzI M9CI#`
This means the Controller can be started from a DOS batch (.bat) file (preferrably with a short name on a root drive):
    REM Start Controller: 51Testing软件测试网5p9o[0c u7xjwl
    SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin 51Testing软件测试网%o sG&k!pl
    cd %M_ROOT% 51Testing软件测试网nj'GxXe MpY
    wlrun.exe -TestPath D:\Dev\Dev1.lrs -port 8080 -Run -DontClose 51Testing软件测试网'`h*B(mOpsL
    pause Press Ctrl-Z to keep this window or

    $E'~6N&_*yTP!pA(L0 

    1G"[ P9FJ-[ I;k0

    9gh~ w`v0

  • Including the -Run parameter 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.

U:RV~0lyU051Testing软件测试网2C@!W4o#n8N Px%j4o Pg
测试者家园 2006-06-06 17:19 发表评论
51Testing软件测试网8c _rMm?'k)t E
51Testing软件测试网+_+@mYr h-E
Link URL: http://www.cnblogs.com/tester2test/archive/2006/06/06/418877.html

TAG:

 

评分:0

我来说两句

Open Toolbar