|
3#
楼主 |
发表于 2009-3-3 09:57:32
|
只看该作者
嗯,后来我换了一下位置,放在执行请求之前了。。。这个事务执行成功了。。
不过在执行另一个事务时,放在请求之前还是会报错。可是界面上明明有出现“发送成功”,为什么还是会报错呢?
出错信息如下“Action.c(36): Error -26366: "Text=发送成功" not found for web_reg_find [MsgId: MERR-26366]
Action.c(36): web_custom_request("SendFax") highest severity level was "ERROR", 1704 body bytes, 144 header bytes [MsgId: MMSG-26388]
”
该事务的脚本和上述的差不多,只是发送传真而已。
web_reg_find("Fail=NotFound",
"Search=Body",
"Text=发送成功",
LAST);
lr_rendezvous("fax");
lr_start_transaction("fax");
web_custom_request("SendFax",
"URL=http://192.168.120.154:8000/web/SendFax",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.120.154:8000/web/sendFax.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------7d91861e20ec4",
"BodyBinary=-----------------------------7d91861e20ec4\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\n12345\r\n-----------------------------7d91861e20ec4\r\nContent-Disposition: form-data; name=\"senderName\"\r\n\r\n010567845\r\n-----------------------------7d91861e20ec4\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\n1\r\n-----------------------------7d91861e20ec4\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\n1\r\n-----------------------------7d91861e20ec4\r\n"
"Content-Disposition: form-data; name=\"email\"\r\n\r\n1\r\n-----------------------------7d91861e20ec4\r\nContent-Disposition: form-data; name=\"pageheader\"\r\n\r\n1\r\n-----------------------------7d91861e20ec4\r\nContent-Disposition: form-data; name=\"attachment\"; filename=\"C:\\x5CDocuments and Settings\\x5CCandy\\x5C妗岄潰\\x5C鏂板缓 鏂囨湰鏂囨。.txt\"\r\nContent-Type: text/plain\r\n\r\ndsafdsf\r\n-----------------------------7d91861e20ec4--\r\n",
LAST);
lr_end_transaction("fax",LR_AUTO); |
|