запись результатов тестирования в бд
This commit is contained in:
@@ -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
|
||||
));
|
||||
)) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user