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

上一篇 / 下一篇  2012-01-20 13:02:10 / 个人分类:lr

SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin51Testing软件测试网Cmt&{B r8Q"fBjy
cd %M_ROOT%51Testing软件测试网@7|i*Aj7^'\
wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose
)KP ]'lGSMO$P7204751Testing软件测试网pwIK*{4U1`_'m5g
其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录51Testing软件测试网sIbC:w^
D:\ceshi10\ScenarioNo1.lrs是脚本目录
d ]e5jtJ:yR72047DontClose 脚本运行完不关闭控制器,
+Tf a)pY72047
V5n"a$Xs"w'GiI'i72047以上是批处理
KG+MV8W[3G:}m72047把批处理加到 windows的任务计划里,设置好运行时间,就可以了51Testing软件测试网TV^fg S
51Testing软件测试网 BS0b1` V b6A
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:
    }r,r TR5pt4a7O72047SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin51Testing软件测试网#Uwk'R8\.zg
    cd %M_ROOT%
    x?)o9Bk|,Xh72047wlrun.exe -TestPath D:\Dev\Dev1.lrs -port 8080 -Run -DontClose51Testing软件测试网+nic%m[,E ~U
    pause Press Ctrl-Z to keep this window or

    2d[k2z)L`W72047

    2Oz1_} Kq?^4jz&\72047
  • 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:

 

评分:0

我来说两句

日历

« 2023-03-18  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 29960
  • 日志数: 104
  • 建立时间: 2011-10-10
  • 更新时间: 2012-04-12

RSS订阅

Open Toolbar