压力机疲劳
程序员文章站
2022-04-09 21:20:45
...
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]
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
}