天天看點

如何用指令行執行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):

如何用指令行執行loadrunner的腳本

 REM Start Controller: 

SET M_ROOT=C:\Program Files\Mercury Interactive\LoadRunner\bin 

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,如需轉載請自行聯系原作者

繼續閱讀