如何用命令行执行loadrunner的脚本
上一篇 /
下一篇 2012-01-20 13:02:10
/ 个人分类:lr
SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin
51Testing软件测试网Cmt&{B r8Q"fBjycd %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)pY72047V5n"a$Xs"w'GiI'i72047以上是批处理
KG+MV8W[3G:}m72047把批处理加到 windows的任务计划里,设置好运行时间,就可以了
51Testing软件测试网TV^fgS51Testing软件测试网 BS0b1`V b6AThis means the Controller can be started from a DOS batch (.bat) file (preferrably with a short name on a root drive):
- 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 or2d[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: