定时任务执行基础逻辑
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
package com.test.test.service;
|
package com.test.test.service;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import com.test.test.domain.TestTask;
|
import com.test.test.domain.TestTask;
|
||||||
import com.test.test.domain.qo.GroupIdQO;
|
import com.test.test.domain.qo.GroupIdQO;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自动化测试Service接口
|
* 自动化测试Service接口
|
||||||
*/
|
*/
|
||||||
@@ -37,4 +38,14 @@ public interface ITestTaskService {
|
|||||||
* 删除自动化测试信息
|
* 删除自动化测试信息
|
||||||
*/
|
*/
|
||||||
int deleteTestTaskById(Long id);
|
int deleteTestTaskById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据测试任务id执行测试定时任务
|
||||||
|
* @param id 测试定时任务id
|
||||||
|
* @param isImmediateRun 是否立即执行
|
||||||
|
* @param triggerType 触发方式:1-定时任务;2-手动
|
||||||
|
* @param environment 环境
|
||||||
|
* @return 是否成功
|
||||||
|
*/
|
||||||
|
boolean executeTestTaskById(Long id, boolean isImmediateRun, Integer triggerType, String environment);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user