压力机疲劳

5个用户,使用一台压力机
5个用户,使用五台压力机

[img]http://dl2.iteye.com/upload/attachment/0111/6047/c4e1cfaa-6b75-329a-95c1-fcca4cced1dc.png[/img]

[img]http://dl2.iteye.com/upload/attachment/0111/6049/3f8b7531-9bc4-35e7-a97e-12754ccada1f.png[/img]

不过脚本相同写法,调用另一个系统不存在此问题。(就系统和接口不同)
所以说压力机问题。。。。哎,哎,哎

[img]http://dl2.iteye.com/upload/attachment/0111/6051/3a1402b1-f2e6-3aad-8169-8992b9903182.png[/img]
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.context.support.FileSystemXmlApplicationContext;
import com.suning.ssf.endpoint.service.GenericService;

import lrapi.lr;

public class Actions
{
private static volatile GenericService genericService;
private static String path="C:/TestCase/jar/2015/20150326/ssf-client-test(BI).xml";

static{
FileSystemXmlApplicationContext ctx=new FileSystemXmlApplicationContext(path);
genericService = (GenericService)ctx.getBean("spsSystem");
}

public int init() throws Throwable {
return 0;
}

public int action() throws Throwable {
Map reqMap = new HashMap();
Map resMap =new HashMap();
lr.start_transaction("BI");

reqMap.put("requestId", "<requestid>");
reqMap.put("account_no", "<ACCOUNTNO>");

resMap = genericService.synCall("queryUserBehaviorRecord", reqMap);
// lr.log_message("reqMap:"+reqMap);
// lr.log_message("resMap:"+resMap);

if ("0000".equals(resMap.get("responseCode").toString())) {
// lr.log_message("+++++++++++++++++++++++++++++++++++++++++++成功+++++++++++++++++++++++++++++++++++++++++++");
lr.end_transaction("BI", lr.PASS);
}else{
lr.log_message("resMap:"+resMap);
//lr.log_message("reqMap:"+reqMap);
//lr.log_message("++++++++++++++++++++++++++++++++++++++++++++失败+++++++++++++++++++++++++++++++++++++++++++");
lr.end_transaction("BI", lr.FAIL);
}
return 0;
}//end of action

public int end() throws Throwable {
return 0;
}//end of end

}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值