|
回复 1# 云层
云层老师你好,有个问题向您请教下,我编制了webservices脚本,回放的时候没问题,成功的,
但压力测试时事务通过失败的状态都是0,不知道是什么原因呢?具体脚本如下:
action()
{
web_global_verification("Text=Response retcode=\"0000\"",
"Fail=NotFound",
LAST);
web_custom_request("Map_CityLocation",
"URL=http://192.168.10.208:9090/WEBT-Portal-Publish/services/webtService",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" "
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"
"<soapenv:Body>"
"<mapquery soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
"<arg0 xsi:type=\"soapenc:string\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">"
"<?xml version="1.0" encoding="UTF-8"?><WEBT-Request version="1.0.0" "
"xmlns="http://schema.portal.webt.cennavi.com.cn" "
"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" "
"xsi:schemaLocation=""
"http://schema.portal.webt.cennavi.com.cn ../WEBT_v1.0.XSD"> "
" <RequestHead version="1.0.0"> "
"<ID>000000</ID> "
"<WD>000000</PWD> "
"<SessionID>mapquery7575018946455</SessionID> "
"<timestamp>20110731160525</timestamp> "
"</RequestHead> <MapQueryServiceReqBody> "
"<MapQueryCondition searchId="mapquery7575018946455011"> "
"<FixedMapCondition> <Location> "
"<AreaCode>110000</AreaCode> </Location> "
" <cityPart>WN</cityPart> "
" <picType>gif</picType> "
"<picSize>0</picSize> </FixedMapCondition> "
"<ResultType>url</ResultType> </MapQueryCondition> "
"</MapQueryServiceReqBody></WEBT-Request>"
"</arg0>"
"</mapquery>"
"</soapenv:Body>"
"</soapenv:Envelope>",
LAST);
return 0;
} |
|