Commit 8130659d authored by 赵然's avatar 赵然

zr

parent 3e571570
......@@ -17,7 +17,9 @@ import java.lang.reflect.Method;
import java.util.Map;
/**
* Created by lvwenyan on 2018/06/08.
* Created by zhaoran on 2018/11/03.
* Mark : 涉及到开发者账户余额校验的普兑case,都需写在此类下面。
* 测试开发者账号:zhaoran@duiba.com.cn , 用户uid:4386
*/
public class 开发者账户余额校验测试_ExchangeTest extends DuibaTestBase {
......
package http.cases.PluginActivityTest;
import base.DuibaLog;
import base.SFExpress;
import base.ServiceDoctor;
import org.testng.SkipException;
import org.testng.annotations.BeforeSuite;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by hanzhanli on 2017/9/21.
*/
public class Server {
private DuibaLog logger = DuibaLog.getLogger();
private Map<String,String> fromMap=new HashMap<>();
private Map<String,List<String>> logMap=new HashMap<>();
@BeforeSuite
public void onStart() {
//logger.info("job-name:"+System.getProperty("JOB_NAME"));
//logger.info("属性:"+System.getProperties());
logger.info("duiba-server开始检测");
ServiceDoctor serviceDoctor=new ServiceDoctor("duiba-server.properties");
SFExpress.addToBeTestedServices(serviceDoctor.getToBeTestedServices());
//fromMap.putAll(serviceDoctor.getLogLenth());
SFExpress.addExceptionService(serviceDoctor.getExceptionService(60*2));
logger.info("duiba-server检测完毕");
logger.info("duiba-server-center开始检测");
serviceDoctor=new ServiceDoctor("duiba-server-center.properties");
SFExpress.addToBeTestedServices(serviceDoctor.getToBeTestedServices());
//fromMap.putAll(serviceDoctor.getLogLenth());
SFExpress.addExceptionService(serviceDoctor.getExceptionService(60*2));
logger.info("duiba-server-center检测完毕");
if(SFExpress.getExceptionServices().size()>0){
logger.info("服务未启动:"+SFExpress.getExceptionServices().toString());
throw new SkipException("被测服务未全部启动");
}
}
public static void main(String[] args) {
// String s = "最近变更:2018-1-3 13:48:07-activity-access-web:疯狂打气球—jiangxixi/疯狂打气球—jiangxixi/\n";
// String name = s.split("—")[1].split("/")[0];
// System.out.println(name);
// List<String> list = new ArrayList<>();
// list.clear();
// Map<String,Object> map = new HashMap<>();
// map.put("name",list);
ServiceDoctor serviceDoctor=new ServiceDoctor("duiba-server.properties");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment