|
- . -!
本帖最后由 hidehai 于 2011-3-18 10:34 编辑
- Action()
- {
- lr_start_transaction("Winxuan_goindex");
- web_add_cookie("b=xnop; DOMAIN=www.xx2xx.com");
- web_add_cookie("f=10000197%252C10020000; DOMAIN=www.xx2xx.com");
- web_add_cookie("__utma=149172656.1878951536.1300333249.1300333249.1300333249.1; DOMAIN=www.xx2xx.com");
- web_add_cookie("__utmz=149172656.1300333249.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); DOMAIN=www.xx2xx.com");
- web_add_cookie("Hm_lvt_9d19e8d685e6a158d2a2a01c6948fa92=1300333248265; DOMAIN=www.xx2xx.com");
- web_url("www.xx2xx.com",
- "URL=http://www.xx2xx.com/",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t409.inf",
- "Mode=HTTP",
- LAST);
- web_add_cookie("b=xnop; DOMAIN=css.xx2xx.com");
- web_add_cookie("f=10000197%252C10020000; DOMAIN=css.xx2xx.com");
- web_add_cookie("__utma=149172656.1878951536.1300333249.1300333249.1300333249.1; DOMAIN=css.xx2xx.com");
- web_add_cookie("__utmz=149172656.1300333249.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); DOMAIN=css.xx2xx.com");
- web_concurrent_start(NULL);
- web_url("Global.css",
- "URL=http://css.xx2xx.com/css/Global.css",
- "Resource=1",
- "RecContentType=text/css",
- "Referer=http://www.xx2xx.com/",
- "Snapshot=t410.inf",
- LAST);
- web_url("tab.css",
- "URL=http://css.xx2xx.com/css/tab.css",
- "Resource=1",
- "RecContentType=text/css",
- "Referer=http://www.xx2xx.com/",
- "Snapshot=t411.inf",
- LAST);
- web_url("popmap.js",
- "URL=http://www.xx2xx.com/spry/popmap.js",
- "Resource=1",
- "RecContentType=application/x-javascript",
- "Referer=http://www.xx2xx.com/",
- "Snapshot=t412.inf",
- LAST);
- web_url("left.css",
- "URL=http://css.xx2xx.com/css/left.css",
- "Resource=1",
- "RecContentType=text/css",
- "Referer=http://www.xx2xx.com/",
- "Snapshot=t413.inf",
- LAST);
- ......省略...
- web_concurrent_end(NULL);
- lr_end_transaction("Winxuan_goindex", LR_AUTO);
- return 0;
- }
复制代码
这个是我用URL模式录制的首页脚本,IE设置是每次访问都自动检测页面,
我发现录制回放后的Winxuan_goindex事物时间即startdate 和 enddate会持续20s左右。
1.使用FF或者IE手动打开时间不会这么长,不太明白这个20s除了模拟首页还会记录什么时间?
楼上说的缓存莫非是LR的缓存??
使用contro跑这个脚本 Trans Response Time 的时间更是高于了20s,
2.莫非这个值需要大量数据来获取平均值?才能接近脚本中事物回放的20s。
3.脚本中的20s本身就不是真实值,会不会由于首页包含js以及ajax,导致时间加长?
|
|