|
本帖最后由 guodansong 于 2012-11-2 16:36 编辑
问题1,脚本单独跑没问题返回值正确,
但是迭代多次是虽然也成功执行,但是我看了CIQCTN2的返回值是1验证码错误?
问题2:在场景中执行100个用户时候跑8小时,一般第三个小时报外部组件异常
问题3:在场景中执行30个用户线程thread跑8小时有个别用户报Abnormal termination, caused by mdrv process termination
疯了
问题4:在场景执行30个用户进程跑5个小时,4G内存的宿主机器,结果弹出很多窗口负载过大宕机了
代码参照:第一个CALL是验证码,第二个CALL是根据验证码查询NEWPARAM的信息
Action()
{
lr_start_transaction("UUMM1");
web_service_call( "StepName=queryData_101",
"SOAPMethod=GCCData|GCCDataPort|queryData",
"ResponseParam=response",
"Service=GCCData",
"ExpectedResponse=SoapResult",
"Snapshot=t1351746364.inf",
BEGIN_ARGUMENTS,
"queryData1=<?xml version=\"1.0\" encoding=\"utf-8\"?><GCCQuery xmlns=\"biz.easipass.com\"><Info><QueryType>UUMM1</QueryType><Authenticator><user>a</user><password>a</password><sign>0123456789</sign></Authenticator></Info><Criteria><Key><name>LOGIN_ID</name><value>320501</value></Key><Key relation=\"and\"><name>LOGIN_PASS</name><value>320501</value></Key></Criteria></GCCQuery>",
END_ARGUMENTS,
BEGIN_RESULT,
"queryDataResult=Param_queryDataResult",
END_RESULT,
LAST);
lr_end_transaction("UUMM1", LR_AUTO);
lr_save_var( lr_eval_string("{Param_queryDataResult}")+894,
14, 0, "ShortName");
lr_output_message("ShortName=%s",lr_eval_string("{ShortName}"));
lr_start_transaction("CIQCTN2");
web_service_call( "StepName=queryData_102",
"SOAPMethod=GCCData|GCCDataPort|queryData",
"ResponseParam=response",
"Service=GCCData",
"ExpectedResponse=SoapResult",
"Snapshot=t1351746419.inf",
BEGIN_ARGUMENTS,
"queryData1=<?xml version=\"1.0\" encoding=\"utf-8\"?><GCCQuery xmlns=\"biz.easipass.com\"><Info><QueryType>CIQCTN2</QueryType><Authenticator><user>a</user><password>a</password><sign>0123456789</sign></Authenticator></Info><Criteria><Key><name>USER_ID</name><value>1106</value></Key><Key relation=\"and\"><name>MSG_UID</name><value>{NewParam}</value></Key><Key relation=\"and\"><name>LOGONSTR</name><value>{ShortName}</value></Key></Criteria></GCCQuery>",
END_ARGUMENTS,
BEGIN_RESULT,
"queryDataResult=Param_queryDataResult2",
END_RESULT,
LAST);
lr_end_transaction("CIQCTN2", LR_AUTO);
lr_output_message("RESULTEND=%s",lr_eval_string("{Param_queryDataResult2}"));
return 0;
} |
|