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

发表于:2016-1-08 10:47

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:奋斗1984    来源:51Testing软件测试网采编

SET M_ROOT=D:\Mercury Interactive\Mercury LoadRunner\bin
cd %M_ROOT%
wlrun.exe -TestPath D:\ceshi10\ScenarioNo1.lrs -port 8080 -Run -DontClose
  其中D:\Mercury Interactive\Mercury LoadRunner\bin 是安装目录
  D:\ceshi10\ScenarioNo1.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 Files\Mercury Interactive\LoadRunner\bin
cd %M_ROOT%
wlrun.exe -TestPath D:\Dev\Dev1.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.
《2023软件测试行业现状调查报告》独家发布~

精彩评论

  • skr
    2016-1-12 10:41:17

    这脚本是自动生成 的吗

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号