脚本中的#等特殊字符会被自动替换为%23类似这样的咚咚,应该如何规避,多谢!
RTRT #号字符时QTP内部使用的,在程序中不要使用,使用的话可以转义 #号字符时QTP内部使用的,在程序中不要使用,使用的话可以转义superliming 发表于 2010-10-16 18:45 http://bbs.51testing.com/images/common/back.gif
请问下,转义符是哪个?(用\无效)
谢谢 帖出你那脚本来,好像用过 但是忘记了。用正则不能匹配过去? 帖出你那脚本来,好像用过 但是忘记了。用正则不能匹配过去?
superliming 发表于 2010-10-18 19:45 http://bbs.51testing.com/images/common/back.gif
lr_start_transaction("httpsms");
web_reg_save_param("Res","LB=Exec","RB=Status=1",LAST);
web_submit_data("hh.action",
"Action=http://10.137.5.122:8081/www.huawei.com",
"Method=POST",
"RecContentType=text/html",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=TransactionId", "Value={userid}240{datetime}", ENDITEM,
"Name=ReqCred.Role", "Value=3", ENDITEM,
"Name=ReqCred.UserId", "Value=PSPLogin", ENDITEM,
"Name=ReqCred.PIN", "Value=&AccessFrontendId=PPlugin1", ENDITEM,
"Name=ConsumerId", "Value=133{userid}", ENDITEM,
"Name=ConsumerAccountId", "Value=9", ENDITEM,
"Name=ConsumerPIN", "Value=""", ENDITEM,
"Name=MerchantId", "Value=PSPLogin", ENDITEM,
"Name=ProductId", "Value=SIMPa", ENDITEM,
"Name=Purpose", "Value=1#0066755#10#1#133{userid}##3210", ENDITEM,
"Name=Money.Currency", "Value=VC1", ENDITEM,
"Name=Money.Amount", "Value=1000", ENDITEM,
"Name=ClusterName", "Value=", ENDITEM,
"Name=RequestType", "Value=chargeAmount", ENDITEM,
LAST);
lr_end_transaction("httpsms", LR_AUTO);
return 0;
} 红色井号是亮点(*^__^*) 嘻嘻…… lr_start_transaction("httpsms");
web_reg_save_param("Res","LB=Exec","RB=Status=1",LA ...
zhangxuekun 发表于 2010-10-19 18:45 http://bbs.51testing.com/images/common/back.gif
一个办法是只要请求里没附件,可以用web_custom_request代替web_submit_data
web_custom_request 的BODY 内容是整个字符串的,不会被转URL编码
页:
[1]