loadRunner简单使用

首先安装loadRunner,vuGen用来编写测试脚本,比如这里测试访问慕课网课程列表,

Action()
{
    
    web_custom_request("web_custom_request",
        "URL=http://www.imooc.com/course/list",
        "Method=GET",
        "TargetFrame=",
        "Resource=0",
        "Referer=",
        "Body=",
        LAST);

    
    return 0;
}


    

脚本编写好后,在controller里面进行场景地配置,比如在10秒内模拟3000个用户访问这个接口,然后到analysis里面查看结果分析。

原文地址:https://www.cnblogs.com/android-yus/p/15414599.html