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;
}
相关推荐
更新发布
功能测试和接口测试的区别
2023/3/23 14:23:39如何写好测试用例文档
2023/3/22 16:17:39常用的选择回归测试的方式有哪些?
2022/6/14 16:14:27测试流程中需要重点把关几个过程?
2021/10/18 15:37:44性能测试的七种方法
2021/9/17 15:19:29全链路压测优化思路
2021/9/14 15:42:25性能测试流程浅谈
2021/5/28 17:25:47常见的APP性能测试指标
2021/5/8 17:01:11