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

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

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


@n*mI+|C.EA0SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin51Testing软件测试网.\ I?wNZ
cd %M_ROOT%
5? z9uZph0wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose 51Testing软件测试网RL2k-t O1T o:jY'dP

d~skD6g0其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录
~M"~`-d A0D:\ceshi10\ScenarioNo1.lrs是脚本目录51Testing软件测试网y,t!y M:w
DontClose 脚本运行完不关闭控制器,
ftA;N!_Dn1~0
,f0x0JSz0}0以上是批处理51Testing软件测试网U;K9D5et7l1E#Z"Wp
把批处理加到 windows的任务计划里,设置好运行时间,就可以了

m SCs+r!TG;^7N0
ex ^r%K6iW"WYj0This 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软件测试网@GL:F g8F^ i
    SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin
    ~O7v%J)A0cd %M_ROOT% 51Testing软件测试网 l/G$\+l C#b"B9{L D
    wlrun.exe -TestPath D:\Dev\Dev1.lrs -port 8080 -Run -DontClose
    Q6w/m^1G[0pause Press Ctrl-Z to keep this window or
    51Testing软件测试网'? D5\*t:Fi0t

     51Testing软件测试网 ^6tKvodD#G

    51Testing软件测试网1H4F'V[!?k,ag^

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

I)_T7TW/QG X0
S&d3h(wB-K0
测试者家园 2006-06-06 17:19 发表评论

Rg6Q%k VQ9t051Testing软件测试网`5[.QU)X"[)J {3@
Link URL: http://www.cnblogs.com/tester2test/archive/2006/06/06/418877.html

TAG:

 

评分:0

我来说两句

Open Toolbar