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

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 10:06 点击:

SET M_ROOT=D:Mercury InteractiveMercury LoadRunnerin
cd %M_ROOT%
wlrun.exe -TestPath D:ceshi10ScenarioNo1.lrs -port 8080 -Run -DontClose

其中D:Mercury InteractiveMercury LoadRunnerin 是安装目录
D:ceshi10ScenarioNo1.lrs是脚本目录
DontClose 脚本运行完不关闭控制器,

以上是批处理
把批处理加到 windows的任务计划里,设置好运行时间,就可以了

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:
SET M_ROOT=C:Program FilesMercury InteractiveLoadRunnerin
cd %M_ROOT%
wlrun.exe -TestPath D:DevDev1.lrs -port 8080 -Run -DontClose
pause Press Ctrl-Z to keep this window or
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.

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • dos命令原来也能这样用?允许查找未知子目录指定文件
      •  windows的磁盘操作之八——格式化分区的思考
      • windows篇-第三章 安装和配置DNS服务器
      • windows篇-第二章 安装和配置Web服务器
      • windows篇-第一章 windows server 2008安装和简单配置
      •  windows server 2003断开远程之后自动注销用户
      • Windows服务器下用IIS Rewrite组件为IIS设置伪静态方法
      • Windows 2008 R2 SP1部署WSUS 3.0 SP2
      • Windows 7秘籍揭秘:用“手”写公式

      快速直达

      操作系统导航

      LinuxWindows虚拟机
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1