5个用户,使用五台压力机
不过脚本相同写法,调用另一个系统不存在此问题。(就系统和接口不同)
所以说压力机问题。。。。哎,哎,哎
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 }