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

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

上一篇 / 下一篇  2007-07-12 12:19:40 / 个人分类:其他


{;w,G-t?\D0SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin
C2Nd3{Y k_0cd %M_ROOT%
L3yy2AwI2o}0wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose
L)`QAq%Es \7L;@051Testing软件测试网@MJ y3]/O.y
其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录51Testing软件测试网~GV6X l
D:\ceshi10\ScenarioNo1.lrs是脚本目录
BvlVe0DontClose 脚本运行完不关闭控制器,
9E"xt,n)r eG0
"dr+[.oZjY0以上是批处理51Testing软件测试网l{;zGI,]pv+_
把批处理加到 windows的任务计划里,设置好运行时间,就可以了

7qX}_k3\+p tS c0
"P3{8Z:xPEy C0This 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软件测试网 e0Z*?)Bz m'me%V
    SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin
    %u9wq)Fa*mqs*T0cd %M_ROOT%
    &~+jH on/h'jl7U,C3_0wlrun.exe -TestPath D:\Dev\Dev1.lrs -port 8080 -Run -DontClose 51Testing软件测试网3Zo4[.tNd4I!t
    pause Press Ctrl-Z to keep this window or

    /lyWRM b` GjO6[0 51Testing软件测试网uIB qm8eC0~&}

    51Testing软件测试网#Kf[n7[*q,sS

  • 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.
51Testing软件测试网!rl kD0j

R9H^ Is2T*}$@+E|`0
测试者家园 2006-06-06 17:19 发表评论

$kC0}(za5H6m_051Testing软件测试网)C-]n:R$xw
Link URL: http://www.cnblogs.com/tester2test/archive/2006/06/06/418877.html

TAG:

中国JavaEE技术交流社区 引用 删除 dhxyu   /   2007-07-13 13:56:08
不错啊!
 

评分:0

我来说两句

Open Toolbar