testfuck 发表于 2011-10-11 14:25:30

在线求解啊,应该不是很难的问题。@云层。。

我的一部分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秒就可以了。请问这脚本问题在哪里?还是我设置有问题?还是我事务开始和结束时间位置不对?

云层 发表于 2013-5-7 12:03:13

额,当年完全没看到这个帖子。后面不能去,因为确实页面载入了这些东西。。
你手工的感觉可能会有后台自动下载,所以用户体验不代表系统真实情况。

51dhy1014 发表于 2013-5-7 17:09:14

“手工的感觉可能会有后台自动下载,所以用户体验不代表系统真实情况。”
又学到了一些,呵呵

hgr8608 发表于 2013-5-8 10:49:10

有可能是你本地有缓存,所以你的体验不代表系统的真实情况。先清除缓存试试
页: [1]
查看完整版本: 在线求解啊,应该不是很难的问题。@云层。。