51Testing软件测试论坛
标题:
LR 运行脚本 发生外部组件发生异常
[打印本页]
作者:
shangnao
时间:
2018-5-4 11:31
标题:
LR 运行脚本 发生外部组件发生异常
Action()
{
web_service_call( "StepName=personCertApply_101",
"SOAPMethod=PersonCertApply|PersonCertApplyHttpPort|personCertApply",
"ResponseParam=response",
"Service=PersonCertApply",
"ExpectedResponse=SoapResult",
"Snapshot=t1525396485.inf",
BEGIN_ARGUMENTS,
"parame=<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<request command=\"personCertRequest\">"
"<platformid>10000041</platformid>"
"<parameters>"
"<username>test_test</username>"
"<cardtype>7</cardtype>" //证件类型
"<cardnum>ccit</cardnum>"
"<ipaddress>1.1.1.1</ipaddress>"
"<certsort>4</certsort>" //证书种类
"<certapptype>220</certapptype>" //证书应用类型
"<subjectpubkey>MIIBCgKCAQEAs3Xt8H+q1M4Y8Bhti+IGflFWCzC/OJdFYHhReCwJKU9iqTAZF8QBYIlUwAJzravepK3Ee4Qg13NXzRP43elRTrJ9xJeaShXMbYwE2397tNiYZqHp8OfYZWdhW8LkWQnyqIRDmnIRZ0P4dMCBbsCCZHv6XbzXTQbR2KTUaImRuYKiYBZJbjzqjVOnmcx3YBGl9KIXLhI1P/lbjNuGOYeYSsjSrywvVLzVPTayiAUOeK9n9zhumNU/xX8cnya3gUKfoM+Lzi8khl0a+PmD2taIIvlaI+7kA08W350VZnhX1NU4gU3Ad9BEcC/7QSpoZqWRsWfrpmhusajf3fnOuMB6zwIDAQAB</subjectpubkey>"
"<telephone></telephone>"
"<mobilephone>15811008197</mobilephone>"
"<address></address>"
"<postalcode></postalcode>"
"<email>
77533005@qq.com
</email>"
"<province>1</province>"
"<city>5</city>"
"<unitname>ccit</unitname>"
"<userorg>ccit</userorg>"
"<certstoragetype>0</certstoragetype>" //存储类型,0是P12,1是Ukey
"<notbefore>2017-12-14 10:07:14</notbefore>" //证书生效时间
"<notafter>2018-1-10 10:07:14</notafter>" //证书失效时间
"<extend1>ccit.com.cn</extend1>"
"<extend2></extend2>"
"<extend3></extend3>"
"<extend4></extend4>"
"<extend5></extend5>"
"</parameters>"
"</request>",
END_ARGUMENTS,
BEGIN_RESULT,
"out=Param_out",
END_RESULT,
LAST);
return 0;
}
运行脚本时,出现以下问题
返回错误提示:
Action.c(5): Error Exceptions:
Action.c(5): Error: InvokeMethod failure: 0??t
Action.c(5): Error: ExtractResultArg failure: 外部组件发生异常。.
Action.c(5): Error: Web service call "personCertApply_101" execution failed
求论坛的各位大神帮忙?
作者:
qqq911
时间:
2018-5-4 12:15
1.采用进程模式
2.设置进程最大进程数,20或10(D:\Program Files\HP\LoadRunner\config\D:\Program Files\HP\LoadRunner\configd的AgentMaxThreadsPerDriver修改为10)
3.负载
4.较少日志输出、添加思考时间
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2