参数化如图蓝色部分的sys和1,参数化后运行脚本,仍是以sys登录系统,到底要参数化哪里才正确呢?
lr_start_transaction("login");
lr_think_time(12);
web_url("fhbunituserws",
"URL=http://192.168.1.250:8080/fhbCommon/fhbunituserws?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.250:8080/slfh/index.swf",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=http://lonhwin123:8080/crossdomain.xml", "Referer=", ENDITEM,
LAST);
web_custom_request("fhbunituserws_2",
"URL=http://lonhwin123:8080/fhbCommon/fhbunituserws",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.250:8080/slfh/index.swf",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n
<SOAP-ENV:Body>\n
<tns:login xmlns:tns=\"http://www.lonhwin.com\">\n
<account>sys</account>\n
<pwd>123</pwd>\n
</tns:login>\n
</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>",
LAST);
web_url("fhbnavigationws",
"URL=http://192.168.1.250:8080/fhbCommon/fhbnavigationws?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.250:8080/slfh/index.swf",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_custom_request("fhbnavigationws_2",
"URL=http://lonhwin123:8080/fhbCommon/fhbnavigationws",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.250:8080/slfh/index.swf",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n
<SOAP-ENV:Body>\n
<tns:roleMenuTree xmlns:tns=\"http://www.lonhwin.com\">\n
<account>sys</account>\n
</tns:roleMenuTree>\n
</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>",
LAST);
|