...
|
...
|
@@ -2,6 +2,7 @@ package com.ui.ctrl; |
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ui.contants.AlarmGroupContants;
|
|
|
import com.ui.contants.HttpUriContants;
|
|
|
import com.ui.http.HttpRestClient;
|
|
|
import com.ui.model.BaseResponse;
|
...
|
...
|
@@ -409,6 +410,10 @@ public class ProjectBuildCtrl { |
|
|
public BaseResponse testexecute(String env) {
|
|
|
AutoTestReq autoTestReq = new AutoTestReq();
|
|
|
autoTestReq.setEnv(env);
|
|
|
BaseResponse emailResponse = httpRestClient.defaultPost(HttpUriContants.GET_EMAIL_BY_ALARM_GROUP+"?groupName=" + AlarmGroupContants.GROUP_NAME_YUNWEI, null, BaseResponse.class);
|
|
|
if(emailResponse.getData() != null){
|
|
|
autoTestReq.setMailto((String)emailResponse.getData());
|
|
|
}
|
|
|
BaseResponse baseResponse = httpRestClient.post("http://qmc.yohops.com:9999/autoTask/executeApiAutoTask", autoTestReq, BaseResponse.class);
|
|
|
return baseResponse;
|
|
|
}
|
...
|
...
|
|