【loadrunner】手写http请求脚本

常用的3个函数:web_submit_data(post和get都行)、web_url(get)、web_custom_request(post和get都行)

Action()

{
web_submit_data("web_submit_data",
"Action=http://192.168.1.101:8080/Demo/index.jsp",
"Method=GET",
"TargetFrame=",
"Referer=",
"Mode=HTML",
ITEMDATA,
LAST);

web_url("web_url",
"URL=http://192.168.1.101:8080/Demo/index.jsp",
"TargetFrame=",
"Resource=0",
"Referer=",
"Mode=HTML",
LAST);

web_custom_request("web_custom_request",
"URL=http://192.168.1.101:8080/Demo/index.jsp",
"Method=GET",
"TargetFrame=",
"Resource=0",
"Referer=",
"Mode=HTML",
"Body=",
LAST);

web_find("web_find",
"What=Hello world",
LAST);

return 0;
}

猜你喜欢

转载自blog.csdn.net/x00yan00/article/details/78162642