промежуточный.привожу в порядок индексы.

This commit is contained in:
2025-03-23 02:14:23 +03:00
parent 10c213feae
commit f6cc447481
35 changed files with 526 additions and 304 deletions

View File

@@ -4,6 +4,7 @@ import _VisualDVM.Passes.Testing.ShowCurrentConfigurationTests;
import _VisualDVM.ServerObjectsCache.DVMConfigurationCache;
import _VisualDVM.ServerObjectsCache.VisualCaches;
import _VisualDVM.TestingSystem.DVM.DVMConfiguration.DVMConfiguration;
import _VisualDVM.TestingSystem.DVM.DVMConfigurationSettings.DVMConfigurationSettings;
import _VisualDVM.TestingSystem.DVM.DVMSettings.DVMSettings;
import java.util.Vector;
@@ -19,14 +20,8 @@ public class ShowCurrentDVMConfigurationTests extends ShowCurrentConfigurationTe
}
@Override
protected void showDone() throws Exception {
super.showDone();
DVMConfigurationCache cache = (DVMConfigurationCache) VisualCaches.GetCache(target);
Vector<DVMSettings> settings = cache.getSettings();
for (DVMSettings s : settings)
s.Select(true);
//--
if (!settings.isEmpty()) {
Global.testingServer.db.sapforSettings.ShowUI(settings.lastElement().id);
}
Global.testingServer.db.groups.getUI().SelectKeys(Global.testingServer.db.getDVMConfigurationGroupsIds(target));
Global.testingServer.db.tests.getUI().SelectKeys(Global.testingServer.db.getDVMConfigurationTestsIds(target));
Global.testingServer.db.dvmSettings.getUI().SelectKeys(Global.testingServer.db.getDVMConfigurationSettingsIds(target));
}
}

View File

@@ -14,14 +14,8 @@ public class ShowCurrentSAPFORConfigurationTests extends ShowCurrentConfiguratio
}
@Override
protected void showDone() throws Exception {
super.showDone();
SapforConfigurationCache cache = (SapforConfigurationCache) VisualCaches.GetCache(target);
Vector<SapforSettings> settings = cache.getSettings();
for (SapforSettings s : settings)
s.Select(true);
//--
if (!settings.isEmpty()) {
Global.testingServer.db.sapforSettings.ShowUI(settings.lastElement().id);
}
Global.testingServer.db.groups.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationGroupsIds(target));
Global.testingServer.db.tests.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationTestsIds(target));
Global.testingServer.db.dvmSettings.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationSettingsIds(target));
}
}

View File

@@ -50,8 +50,8 @@ public abstract class SaveCurrentConfiguration<C extends Configuration, S extend
protected void ServerAction() throws Exception {
//занесение информации об участвующих группах конфигурациях и тестах
target.saveGroups(groups);
target.saveTestsAsJson(tests);
target.saveSettingsAsJson(settings);
target.saveTests(tests);
target.saveSettings(settings);
//--
super.ServerAction();
}

View File

@@ -31,26 +31,5 @@ public abstract class ShowCurrentConfigurationTests<C extends Configuration> ext
protected void showPreparation() throws Exception {
Global.testingServer.db.UnselectAllGTC();
}
@Override
protected void showDone() throws Exception {
/*
ConfigurationCache cache = (ConfigurationCache) VisualCaches.GetCache(target);
Vector<Group> groups = cache.getGroups();
Vector<Test> tests = cache.getTests();
//-----
//--
for (Group group : groups)
group.Select(true);
for (Test test : tests)
test.Select(true);
//--
if (!groups.isEmpty()) {
Global.testingServer.db.groups.ShowUI(groups.lastElement().id);
}
if (!tests.isEmpty()) {
Global.testingServer.db.tests.ShowUI(tests.lastElement().id);
}
*/
}
}