запись результатов тестирования в бд

This commit is contained in:
2023-10-25 16:33:02 +03:00
parent accf547d22
commit 2eb77faf31
14 changed files with 204 additions and 5658 deletions

View File

@@ -19,7 +19,7 @@ public class DownloadSapforTasksPackage extends TestingSystemPass<SapforTasksPac
public String getButtonText() {
return "";
}
File packageArchive = null;
File tmpArchive = null;
@Override
protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.SapforTasksPackage)) {
@@ -32,11 +32,11 @@ public class DownloadSapforTasksPackage extends TestingSystemPass<SapforTasksPac
@Override
protected void ServerAction() throws Exception {
Command(new ServerExchangeUnit_2021(ServerCode.DownloadSapforTasksPackage, Current.getAccount().email, target.id));
response.Unpack(packageArchive = Utils.getTempFileName(target.id));
response.Unpack(tmpArchive = Utils.getTempFileName(target.id));
}
@Override
protected boolean validate() {
return packageArchive !=null&& packageArchive.exists();
return tmpArchive != null && tmpArchive.exists();
}
@Override
protected void performDone() throws Exception {
@@ -44,9 +44,9 @@ public class DownloadSapforTasksPackage extends TestingSystemPass<SapforTasksPac
File packageWorkspace = new File(Global.SapforPackagesDirectory, target.id);
Utils.forceDeleteWithCheck(packageWorkspace);
if (passes.get(PassCode_2021.UnzipFolderPass).Do(
packageArchive.getAbsolutePath(),
tmpArchive.getAbsolutePath(),
Global.SapforPackagesDirectory.getAbsolutePath(), false
));
)) ;
}
}