TA的每日心情 | 无聊 2015-3-12 14:20 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
#include "web_api.h"
//URL-based script
//以下选项全选
//Create concurrent &groups for resources after their source HTML page
//&Enable cache (do not suppress the IF-Modified-Since header)
//&Clear cache before recording (Microsoft Internet Explorer only)
//Use &web_custom_request only
Action()
{
web_add_cookie("stylesheet=; DOMAIN=192.168.7.178");
web_custom_request("192.168.7.178",
"URL=http://192.168.7.178/",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
lr_think_time( 5 );
web_custom_request("login.jsp",
"URL=http://192.168.7.178/icp/login.jsp",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.7.178/portal/",
"Snapshot=t2.inf",
"Mode=HTTP",
"Body=username=test1&domainname=test.com&password=111111&number=1&x=11&y=17",
LAST);
web_concurrent_start(NULL);
web_custom_request("activeobject.jsp",
"URL=http://192.168.7.178/wfs/activeobject.jsp",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.7.178/icp/main_frame.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=",
"Snapshot=t3.inf",
"Mode=HTTP",
LAST);
web_custom_request("main.jsp",
"URL=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.7.178/icp/main_frame.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=",
"Snapshot=t4.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_custom_request("ResumeUploadModule.js",
"URL=http://192.168.7.178/wfs/js/ResumeUploadModule.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.7.178/wfs/activeobject.jsp",
LAST);
web_concurrent_start(NULL);
web_custom_request("index.js",
"URL=http://192.168.7.178/icp/js/index.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
LAST);
web_custom_request("style1.css",
"URL=http://192.168.7.178/icp/css/style1.css",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
LAST);
web_custom_request("loading_index.js",
"URL=http://192.168.7.178/icp/js/loading_index.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
LAST);
web_custom_request("left.jsp",
"URL=http://192.168.7.178/icp/left.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
web_custom_request("view.jsp",
"URL=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
web_custom_request("test_com.css",
"URL=http://192.168.7.178/icp/css/test_com.css",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("mend.css",
"URL=http://192.168.7.178/icp/css/mend.css",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/left.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("style1.css_2",
"URL=http://192.168.7.178/icp/css/style1.css",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/left.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_concurrent_end(NULL);
web_custom_request("for_png.js",
"URL=http://192.168.7.178/icp/js/for_png.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
LAST);
web_concurrent_start(NULL);
web_custom_request("index.js_2",
"URL=http://192.168.7.178/icp/js/index.js",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("quota_info.jsp",
"URL=http://192.168.7.178/icp/quota_info.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.7.178/icp/left.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_custom_request("index.js_3",
"URL=http://192.168.7.178/icp/js/index.js",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/quota_info.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_custom_request("popreceive.js",
"URL=http://192.168.7.178/icp/js/popreceive.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("loading_right.js",
"URL=http://192.168.7.178/icp/js/loading_right.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_concurrent_end(NULL);
web_custom_request("common.css",
"URL=http://192.168.7.178/icp/css/common.css",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/quota_info.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD",
LAST);
web_concurrent_start(NULL);
web_custom_request("ico1.gif",
"URL=http://192.168.7.178/icp/img/style1/ico1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("xbg1.gif",
"URL=http://192.168.7.178/icp/img/style1/xbg1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("xbg1.gif_2",
"URL=http://192.168.7.178/icp/img/style1/xbg1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("xbg1.gif_3",
"URL=http://192.168.7.178/icp/img/style1/xbg1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("xbg1.gif_4",
"URL=http://192.168.7.178/icp/img/style1/xbg1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("xbg1.gif_5",
"URL=http://192.168.7.178/icp/img/style1/xbg1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("xbg1.gif_6",
"URL=http://192.168.7.178/icp/img/style1/xbg1.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("loading.gif",
"URL=http://192.168.7.178/icp/img/loading.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/view.jsp?sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&domainname=test.com",
LAST);
web_custom_request("loading.gif_2",
"URL=http://192.168.7.178/icp/img/loading.gif",
"Method=GET",
"Resource=1",
"Referer=http://192.168.7.178/icp/main.jsp?domainname=test.com&sid=Ku1xPxPxQX0QDIcViXzXs8bmprtR7QDD&view=null",
LAST);
web_concurrent_end(NULL);
return 0;
} |
|