|
本帖最后由 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没有正常结束
|
|