no message

This commit is contained in:
2025-03-15 18:03:32 +03:00
parent 6a3be45b1a
commit b6b7bb3ae5
9 changed files with 203 additions and 78 deletions

View File

@@ -0,0 +1,39 @@
package _VisualDVM.Passes.All;
import Common.CommonConstants;
import Common.Passes.Pass;
import Common.Utils.Utils_;
import _VisualDVM.Global;
import _VisualDVM.TestingSystem.DVM.DVMTasks.DVMRunTask;
public class CompareDVMRunTaskToEthalon extends Pass<DVMRunTask> {
DVMRunTask ethalon = null;
@Override
public String getIconPath() {
return "/icons/Comparsion.png";
}
@Override
public String getButtonText() {
return "";
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = null;
ethalon = null;
if (Global.testingServer.db.dvmRunTasks.getUI().CheckCurrent(Log)) {
//есть ли эталон у этой задачи.
target = Global.testingServer.db.dvmRunTasks.getUI().getCurrent();
if (target.ethalon_id != CommonConstants.Nan && Global.testingServer.db.dvmRunTasks.containsKey(target.ethalon_id)) {
ethalon= Global.testingServer.db.dvmRunTasks.get(target.ethalon_id);
return true;
}else Log.Writeln_("Не найдено эталона для задачи "+ Utils_.Brackets(target.id+" !"));
}
return false;
}
@Override
protected void body() throws Exception {
Global.mainModule.getUI().getMainWindow().getTestingWindow().CompareCurrentDVMTaskToEthalon(ethalon,target);
}
@Override
protected void showFinish() throws Exception {
Global.mainModule.getUI().getMainWindow().getTestingWindow().FocusTestingTasksComparison();
}
}

View File

@@ -356,11 +356,14 @@ public enum PassCode implements PassCode_ {
DeleteUserAccount,
GetDVMPackageCredetials,
ComponentsServerBackUp,
TestingServerBackUp;
TestingServerBackUp,
CompareDVMRunTaskToEthalon;
//--
@Override
public String getDescription() {
switch (this) {
case CompareDVMRunTaskToEthalon:
return "Сравнить с эталоном";
case ComponentsServerBackUp:
return "Создание резервной копии данных сервера компонент";
case TestingServerBackUp: