loadrunner Webservices性能测试之返回码校验
web_service_call( "StepName=createISMPUser_101","SOAPMethod=IsmpCrmEngineService|IsmpCrmEngine|createISMPUser",
"ResponseParam=response",
"Service=IsmpCrmEngineService",
"ExpectedResponse=SoapResult",
"Snapshot=t1277282621.inf",
BEGIN_ARGUMENTS,
"xml:createISMPUserReq="
"<createISMPUserReq>"
"<cityID>12</cityID>"
"<prePaidSystemID></prePaidSystemID>"
"<provinceID>1201</provinceID>"
"<srcDeviceID>281200</srcDeviceID>"
"<streamingNo>12</streamingNo>"
"<userID>{NewParam}</userID>"
"<userIDType>1</userIDType>"
"<userName>lv</userName>"
"<userPayType>1</userPayType>"
"</createISMPUserReq>",
END_ARGUMENTS,
BEGIN_RESULT,
"createISMPUserReturn/resultCode=Param_resultCode",
END_RESULT,
BEGIN_CHECKPOINTS,
CHECKPOINT, "XPATH=createISMPUserReturn/resultCode", "Value=",
END_CHECKPOINTS,
LAST);
如上所示,我已经将CHECKPOINTS列出,但是中间的条件判断该如何写?
我想做的校验是:如果RESULTCODE=7215 则判定为失败 请高手指教 自己顶一个先!! 请指教!! 没人解答么??? 你可以先把webservices的返回保存到一个参数然后用参数和字符串比较来做,可能会方便点 原帖由 云层 于 2010-6-29 08:48 发表 http://bbs.51testing.com/images/common/back.gif
你可以先把webservices的返回保存到一个参数然后用参数和字符串比较来做,可能会方便点
多谢赐教!问题解决了! 回复 5# yzhou452
请问下楼主是怎么解决的?能不能分享下方法。。。谢谢。。我现在也要用这方面···
页:
[1]