loadrunner运行场景时responce time 图表出不来

今天运行loadrunner时候,运行场景时responce  time 这张图一直出不来,无论我怎么操做,就是徒劳,我一直以为这是controller运行哪里没有设置好,东改西改,卵并然。

 

最后问题找到原因了,是因为我的脚本问题,脚本中没有加transcation

好吧,因为我用的是破解版本的loadrunner11.没加transcation有时候图形是出不来的提供一张错误的示范,其中URL随便写的啦~(≧▽≦)/~

错误案例

Action()
{

web_url("test", 
"URL=http://www.baidu.com", 
"Resource=1", 
"RecContentType=application/json", 
"Referer=", 
"Snapshot=t2.inf", 
LAST);

    
return 0;
}

修改之后正确案例

Action()
{
lr_start_transaction("sendRequest");
web_url("test", 
"URL=http://www.baidu.com", 
"Resource=1", 
"RecContentType=application/json", 
"Referer=", 
"Snapshot=t2.inf", 
LAST);
lr_end_transaction("sendRequest",LR_AUTO);
    
return 0;
}

话说这个原因你想的到么?反正作为菜鸟的我是不会知道的,现在知道了,记录下,为自己的曾经跌倒的坑立个碑。。。。。。。。。。。

原文地址:https://www.cnblogs.com/joyliu/p/9332355.html