loadrunner回放脚本的若干疑惑
本帖最后由 loadrunnerkong 于 2016-9-8 11:21 编辑Action()
{
web_add_auto_header("Accept-Language","zh-cn");
web_add_header("Content-Type","text/html;charset=UTF-8");
lr_convert_string_encoding(lr_eval_string("{rtn}"),LR_ENC_SYSTEM_LOCALE,LR_ENC_UTF8,"newRtn");
web_service_call( "StepName=checkText_102",
"SOAPMethod=validateContextService|ValidateConextServiceimplPort|checkText",
"ResponseParam=response",
"Service=validateContextService",
"ExpectedResponse=SoapResult",
"Snapshot=t1473302568.inf",
BEGIN_ARGUMENTS,
"xml:arg0="
"<arg0>"
"<ckContentarray>"
"<checkContent>"
"<content>abcde</content>"
"<field>abcde</field>"
"<label>abcde</label>"
"<number>abcde</number>"
"</checkContent>"
"</ckContentarray>"
"<enterprisename>abcde</enterprisename>"
"<enterprisetype>123456789</enterprisetype>"
"<filltype>abcde</filltype>"
"<password>zha</password>"
"<regno>abcde</regno>"
"<svcNumber>abcde</svcNumber>"
"<username>zha</username>"
"</arg0>",
END_ARGUMENTS,
BEGIN_RESULT,
"return/resultCode=Param_resultCode",
"return/resultCount=Param_resultCount",
END_RESULT,
LAST);
return 0;
}
用loadrunner 测试网上公开的webservice ,是正常的,负载测试也正常;但是测试本地的webservice项目的时候,脚本回放时,日志一直出现Error Exceptions,并且VUSER没有正常结束
可能不是问题,是你脚本设计的不合理,比如你录制一个 删除某个资源 的脚本,但是你回放的时候这个资源已经没了,所以出错, 找到原因了?
页:
[1]