|
@@ -3,9 +3,7 @@ package net.mooctest.www.android_auto_test.services.Impl;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sinaapp.msdxblog.apkUtil.entity.ApkInfo;
|
|
|
-import com.sinaapp.msdxblog.apkUtil.utils.ApkUtil;
|
|
|
import net.mooctest.www.android_auto_test.common.constant.Consts;
|
|
|
-import net.mooctest.www.android_auto_test.common.constant.enums.DeviceStatus;
|
|
|
import net.mooctest.www.android_auto_test.common.constant.enums.TraceStatus;
|
|
|
import net.mooctest.www.android_auto_test.common.exceptions.ApkDownloadException;
|
|
|
import net.mooctest.www.android_auto_test.common.exceptions.ApkParseException;
|
|
@@ -82,7 +80,7 @@ public class AutoTestServiceImpl implements AutoTestService {
|
|
|
apkInfo = apkService.parseAPK(filePath, traceId);
|
|
|
apkService.saveApkInfo(apkInfo, filePath, traceId);
|
|
|
PrintUtil.print("Try to download custom script: " + traceId, TAG);
|
|
|
- customScriptName = apkService.downloadCustomScript(traceInfo.getCustomScriptUlr());
|
|
|
+ customScriptName = apkService.downloadCustomScript(traceInfo.getCustomScriptUrl());
|
|
|
} catch (ApkDownloadException e){
|
|
|
PrintUtil.print(String.format("Download failed, trace %s end.", traceId), TAG);
|
|
|
traceService.updateTraceStatue(traceId, TraceStatus.DOWNLOAD_FAILED);
|