|
web_reg_save_param("ChanceNo1",
"LB=\"",
"RB=\"",
"Ord=All",
LAST);
-------查看日志时,可以取到服务器的返回值“abc123”
web_custom_request("required.ajax_13",
"URL=http://192.168.10.5/required.ajax",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.10.5/Default.aspx?Url=Customer/CustomerView.aspx?showtype=UpsidesTable",
"Snapshot=t395.inf",
"Mode=HTTP",
"Body=ObjectName=customer&OperationName=getserialno&Parameters=%3Cd%3E%3Cd%20t%3D%22System.String%22%3ECustomerNo%3C/d%3E%3C/d%3E&_=",
LAST);
lr_think_time(4);
web_custom_request("required.ajax_14",
"URL=http://192.168.10.5/required.ajax",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.10.5/Default.aspx?Url=Customer/CustomerView.aspx?showtype=UpsidesTable",
"Snapshot=t419.inf",
"Mode=HTTP",
"Body=ObjectName=customer&OperationName=addcustomer&Parameters=%3Cr%3E%3Cd%20t%3D%22C35EBusiness.required.CustomerModule.CustomerEntity%2CC35EBusiness.required.CustomerModule%22%3E%3Ci%20n%3D%22CustomerName%22%3E%3Cd%3Ekef{NewParam_1}%3C/d%3E%3C/i%3E%3Ci%20n%3D%22CChanceNo%22%3E%3Cd%3E{ChanceNo1}%3C/d%3E%3C/i%3E%3Ci%20n%3D%22OfficePhone%22%3E%3Cd%3E123456%3C/d%3E%3C/i%3E%3Ci%20n%3D%22Fax%22%3E%3Cd%3E123456%3C/d%3E%3C/i%3E%3Ci%20n%3D%22MobilePhone%22%3E%3Cd%3E5854569%3C/d%3E%3C/",
LAST);
-------执行到这句时,手动关联的ChanceNo1的值没办法传入,而是直接把字符串“ChanceNo1”传入,输入到数据库了。但是前面参数化的变量NewParam_1的值却可以输入到数据库中,这是为什么啊,是不是关联参数ChanceNo1的写法错了?大家帮忙看看,谢谢了
[ 本帖最后由 51mobile 于 2009-2-5 11:44 编辑 ] |
|