|
@@ -67,6 +67,7 @@ public class AutoTestServiceImpl implements AutoTestService {
|
|
|
String traceId = traceInfo.getTraceId();
|
|
|
String downloadUrl = traceInfo.getDownloadUrl();
|
|
|
int timeout = traceInfo.getLimitTime();
|
|
|
+ List<String> selectDevices = traceInfo.getSelectDevices();
|
|
|
PrintUtil.print("Start Automatic Test, TraceId: " + traceId, TAG);
|
|
|
traceService.updateTraceStatue(traceId, TraceStatus.INIT);
|
|
|
String filePath;
|
|
@@ -88,7 +89,7 @@ public class AutoTestServiceImpl implements AutoTestService {
|
|
|
// 获取目前在线设备
|
|
|
List<Device> deviceList = deviceService.getOnlineDeviceList();
|
|
|
// 选择设备,后期可以修改为如果前端指定了设备or条件,则根据指定的来;目前是选择所有在线的
|
|
|
- List<Device> selectedDevices = deviceService.selectDeviceByApp(apkInfo, deviceList);
|
|
|
+ List<Device> selectedDevices = deviceService.selectDeviceByApp(apkInfo, deviceList, selectDevices);
|
|
|
if (selectedDevices == null || selectedDevices.size() == 0){
|
|
|
traceService.updateTraceStatue(traceId, TraceStatus.FAILED);
|
|
|
throw new NoFreeDeviceException("没有空闲设备");
|