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

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

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

51Testing软件测试网u l Mn jx.uwR c
SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin51Testing软件测试网 e$I B%haA
cd %M_ROOT% 51Testing软件测试网0|(~"g7unoD+V'^
wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose 51Testing软件测试网:Dh pZ [/c5H(q,I
51Testing软件测试网VU'sQ NyF
其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录51Testing软件测试网'_ I6EhKn/R_P
D:\ceshi10\ScenarioNo1.lrs是脚本目录
$XR#\;e q3px0DontClose 脚本运行完不关闭控制器,
%j"l:l?a1P5Re0
%a3oq{+l.j]!X1ia)dtz0以上是批处理
r V'w8}!t2D5v3g0把批处理加到 windows的任务计划里,设置好运行时间,就可以了
51Testing软件测试网Y5bBN$OefZ
51Testing软件测试网gR'B;?u0xca
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软件测试网g6Q/Wq Yu@#Z&DIzH
    SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin 51Testing软件测试网FY(sZP] f
    cd %M_ROOT% 51Testing软件测试网s^(]rKD$w'ok
    wlrun.exe -TestPath D:\Dev\Dev1.lrs -port 8080 -Run -DontClose 51Testing软件测试网5A3JAC1U t4b}e
    pause Press Ctrl-Z to keep this window or

    z k_.c5G4c3e7m0 51Testing软件测试网P)v1u@!y$f-|Z

    -Qkt's}'XdLf0

  • 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.

X0\"R'f1P0L%Py/a051Testing软件测试网:d ` q0\4@G2N_1o r
测试者家园 2006-06-06 17:19 发表评论

)u/Re}1^kh(TZ051Testing软件测试网w kR{b#`0~6?
Link URL: http://www.cnblogs.com/tester2test/archive/2006/06/06/418877.html

TAG:

 

评分:0

我来说两句

日历

« 2024-06-07  
      1
2345678
9101112131415
16171819202122
23242526272829
30      

数据统计

  • 访问量: 273425
  • 日志数: 689
  • 建立时间: 2006-12-05
  • 更新时间: 2009-04-15

RSS订阅

Open Toolbar