51Testing软件测试论坛

标题: 参数化登录用户名后,查看日志,参数化未成功 [打印本页]

作者: sack    时间: 2013-8-19 12:06
标题: 参数化登录用户名后,查看日志,参数化未成功
[attach]86892[/attach]参数化如图蓝色部分的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);










作者: 地壳    时间: 2013-8-19 17:41
你确定参数化了?没看到参数的边界字符(一般是”{}“)啊?
作者: sack    时间: 2013-9-8 21:24
回复 2# 地壳


    我运行的脚步已经参数化了,这个是原代码,没进行参数化
作者: 地壳    时间: 2013-9-10 10:06
问题现在解决没有?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2