LoadRunner技巧之THML与URL两种录制模式分析
作者:网络转载 发布时间:[ 2013/3/8 10:25:18 ] 推荐标签:
URL方式的脚本:
复制代码
Action()
{
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t67.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("shouye_b5486898c692066bd2cbaeda86d74448.gif",
"URL=http://www.baidu.com/img/shouye_b5486898c692066bd2cbaeda86d74448.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://www.baidu.com/",
"Snapshot=t68.inf",
LAST);
web_url("gs.gif",
"URL=http://www.baidu.com/cache/global/img/gs.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://www.baidu.com/",
"Snapshot=t69.inf",
LAST);
web_url("tangram-1.3.4c1.0.js",
"URL=http://s1.bdstatic.com/r/www/cache/global/js/tangram-1.3.4c1.0.js",
"Resource=1",
"RecContentType=application/javascript",
"Referer=http://www.baidu.com/",
"Snapshot=t71.inf",
LAST);
web_url("home-2.5.js",
"URL=http://s1.bdstatic.com/r/www/cache/global/js/home-2.5.js",
"Resource=1",
"RecContentType=application/javascript",
"Referer=http://www.baidu.com/",
"Snapshot=t72.inf",
LAST);
web_url("u-1.3.4.js",
"URL=http://s1.bdstatic.com/r/www/cache/user/js/u-1.3.4.js",
"Resource=1",
"RecContentType=application/javascript",
"Referer=http://www.baidu.com/",
"Snapshot=t73.inf",
LAST);
web_concurrent_end(NULL);
web_url("i-1.0.0.png",
"URL=http://s1.bdstatic.com/r/www/img/i-1.0.0.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://www.baidu.com/",
"Snapshot=t70.inf",
LAST);
web_concurrent_start(NULL);
web_url("su",
"URL=http://suggestion.baidu.com/su?wd=&cb=window.bdsug.sugPreRequest&sid=1431_2031_1944_1788&t=1362056977341",
"Resource=1",
"RecContentType=baiduapp/json",
"Referer=http://www.baidu.com/",
"Snapshot=t74.inf",
LAST);
web_url("favicon.ico",
"URL=http://www.baidu.com/favicon.ico",
"Resource=1",
"RecContentType=image/x-icon",
"Referer=",
"Snapshot=t75.inf",
LAST);
web_concurrent_end(NULL);
return 0;
}

sales@spasvo.com