51Testing软件测试论坛
标题:
LR SOAP request execution failed
[打印本页]
作者:
mily
时间:
2012-1-11 13:44
标题:
LR SOAP request execution failed
录制了一个双协议的服务,其中一部分是webservice协议。LR为9.5.协议含HTTP&&webservice
该部分的脚本所有的soap_request函数全部出错,
Error: <CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Error: SOAP request "GetNetTree" execution failed
Error: <CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Error: SOAP request "GetDeivceStatusCount" execution failed
作者:
mily
时间:
2012-1-11 14:09
原脚本:
web_add_header("Content-Type", "text/xml; charset=utf-8");
soap_request("StepName=GetAllMonitorPluginXapNames",
"URL=http://192.168.8.150:8090/Service/LayoutTreeService.svc",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"no\"?"
"><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s"
":Body><GetAllMonitorPluginXapNames xmlns=\"http://tempuri.org/\"/></s"
":Body></s:Envelope>",
"Snapshot=t28.inf",
"ResponseParam=response",
LAST);
作者:
mily
时间:
2012-1-11 15:42
找到原因了,配置HTTP协议时,习惯将head配置为DO NOT record headers.对脚本进行瘦身,但是soap_request,是需要web_add_auto_header函数支援的
作者:
oceanwell
时间:
2012-1-12 13:47
so ga,学习了
作者:
zcl432106
时间:
2012-7-23 10:03
在哪设置head啊?
作者:
zcl432106
时间:
2012-7-23 10:41
知道在哪了,是在Advanced--Headers--选择Record headers in list--OK
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2