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

简介:
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 . 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.




本文转自 fish_yy 51CTO博客,原文链接:http://blog.51cto.com/tester2test/137386,如需转载请自行联系原作者
目录
相关文章
|
JSON 测试技术 数据安全/隐私保护
Loadrunner 脚本开发-利用web_submit_data函数实现POST请求
Loadrunner 脚本开发-利用web_submit_data函数实现POST请求
481 0
|
网络协议 测试技术 Windows
Loadrunner 脚本开发-利用loadrunner开发Windows Sockets协议脚本
Loadrunner 脚本开发-利用loadrunner开发Windows Sockets协议脚本
386 0
|
测试技术
Loadrunner 脚本开发-从文件读取数据并参数化
Loadrunner 脚本开发-从文件读取数据并参数化
365 0
|
Java 测试技术 Android开发
Loadrunner脚本开发-基于HTTP协议的流媒体视频在线播放服务器性能测试
Loadrunner脚本开发-基于HTTP协议的流媒体视频在线播放服务器性能测试
446 0
|
测试技术
Loadrunner 脚本录制-通过代理录制脚本
Loadrunner 脚本录制-通过代理录制脚本
426 0
|
SQL 关系型数据库 MySQL
Loadrunner脚本优化-参数化之关联MySQL数据库获取数据
Loadrunner脚本优化-参数化之关联MySQL数据库获取数据
288 0
|
JSON 测试技术 数据格式
Loadrunner 脚本开发-利用web_custom_request函数进行接口测试
Loadrunner 脚本开发-利用web_custom_request函数进行接口测试
440 0
|
测试技术
loadrunner 脚本开发-url解码
loadrunner 脚本开发-url解码
231 0
|
测试技术
loadrunner 脚本开发-文件下载
loadrunner 脚本开发-文件下载
256 0
|
测试技术
loadrunner 脚本开发-int型变量和字符串的相互转换
loadrunner 脚本开发-int型变量和字符串的相互转换
324 0