TA的每日心情 | 慵懒 2016-7-21 11:21 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
我的一部分LR脚本;
web_set_user("nawaa\\webadmin",
lr_decrypt("4e8fe470645b96ac6bef1c2e66"),
"122.224.197.26:80");
lr_start_transaction("待办事项");
web_url("122.224.197.26",
"URL=http://122.224.197.26/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=/WebResource.axd?d=cWPqh8fvLgMiYe6MuXSBCA2&t=633802920069218315", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/ScriptResource.axd?d=TRLV6uzh7cD4ww1MQd0HX_H4r16utVBPRrc1RpCgxf3AlxnOAAj_tYsRlcNcy4gO3t971qwiYcRlU5qSFtVfltGIyDtIc-fzwUJOWXLSaSQ1&t=ffffffffec2d9970", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/ScriptResource.axd?d=TRLV6uzh7cD4ww1MQd0HX_H4r16utVBPRrc1RpCgxf3AlxnOAAj_tYsRlcNcy4gOWEYubPB8YeK3HEqNx8VS92iSKOyZNP-dZAqjG3b5wchqmCPkZhYcHWLrJDoAxJWr0&t=ffffffffec2d9970", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/2052/init.js?rev=rcZULplQ2sjYL0GwamiLEQ%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/images/fgimg.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/images/bgximg.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/images/bg_ribbonrow.gif", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/images/blank.gif", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/images/selbg.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/images/logo_xz.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/images/mossfgimg.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/images/gosearch15.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/images/logo.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/sp.core.js?rev=7ByNlH%2BvcgRJg%2BRCctdC0w%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/2052/core.js?rev=i8F1zZSjob9SlkL8L6MfWw%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/ScriptResx.ashx?culture=zh%2Dcn&name=SP%2ERes&rev=ID4Um%2BnPCWZWo%2BWk9%2B188Q%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/2052/images/formatmap32x32.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/2052/images/formatmap16x16.png", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/search.js?rev=jVFJXbMq%2BMZOs11kluPWwQ%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/sp.ui.dialog.js?rev=IuXtJ2CrScK6oX4zOTTy%2BA%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/sp.runtime.js?rev=9sKdsC9N6p2BiRk3313M7Q%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/sp.js?rev=JmFQMEfR9bYx6G6TrWzSLw%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/inplview.js?rev=AohvE9XEf%2FI78tuaw1TGAA%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/sp.ribbon.js?rev=F%2BUEJ66rbXzSvpf7nN69wQ%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/socialdata.js?rev=srp8t6aZS%2FjdrW3%2FJrn1iQ%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
"Url=/_layouts/sp.ui.socialribbon.js?rev=q7gLNDKo68UsaWoEc%2FZCug%3D%3D", "Referer=http://122.224.197.26/default.aspx", ENDITEM,
LAST);
lr_end_transaction("待办事项", LR_AUTO);
return 0;
}
这是一个登陆WEB的脚本,很简单的。就是登陆然后加载页面资源然后完成。我的事务就是计算点击登陆到页面完全显示的时间。
EXTRARE之后加载了那么多URL资源。这个事务的平均反应时间达到了50秒。却掉脚本中EXTRARE之后加载的URL资源。反应时间为2秒多。但是去掉不就不真实了么。可是在LR并发事务的同时我手动请求不可能要50S啊,最多2秒就可以了。请问这脚本问题在哪里?还是我设置有问题?还是我事务开始和结束时间位置不对? |
|