loadrunner webservice 脚本样例带回单报文验证

Action()
{

lr_start_transaction("ESB_INTERFACE");
web_service_call( "StepName=f_ESB_SO_PERSONAL_UNIFY_QRY_001_101",
"SOAPMethod=ESB_SO_PERSONAL_UNIFY_QRY_001|ESB_SO_PERSONAL_UNIFY_QRY_001HttpSoap11Endpoint|f_ESB_SO_PERSONAL_UNIFY_QRY_001",
"ResponseParam=response",
"Service=ESB_SO_PERSONAL_UNIFY_QRY_001",
"ExpectedResponse=SoapResult",
"Snapshot=t1482223340.inf",
BEGIN_ARGUMENTS,
"args0="
"method=ESB_SO_PERSONAL_UNIFY_QRY_001&format=xml&appId=501109&messageId=1&sign=为×tamp=20160928165601&IdentVoucher=18795885679"
,
"args1="
""
""
""
"20066879"
"7c6a180b36896a0a8c02787eeafb0e4c"
"20037690"
"0"
"20.26.17.91"
""
""
""
"
"
""
"13738129706"
"
"
"
" ,
END_ARGUMENTS,
BEGIN_RESULT,
"return=RETURN_RESULT",
END_RESULT,
LAST);
if (strstr(lr_eval_string(""),"0")==NULL)
{
lr_end_transaction("ESB_INTERFACE", LR_FAIL);
lr_output_message("--------%s",lr_eval_string("{RETURN_RESULT}"));
}
else
{
lr_end_transaction("ESB_INTERFACE", LR_PASS);
}
return 0;
}

转载于:https://www.cnblogs.com/divngfatter/p/6204178.html

你可能感兴趣的:(loadrunner webservice 脚本样例带回单报文验证)