промежуточный. определение размерности тестов на сервере через консоль. но есть баг. почему то один и тот же пакет повторно нельзя сконвертировать в тесты.

This commit is contained in:
2025-02-11 23:03:18 +03:00
parent 25eabf6852
commit c69e7194bc
9 changed files with 95 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
addSeparator();
addPasses(PassCode.AbortSapforPackage);
addSeparator();
addPasses(PassCode.SetSapforConfigurationEthalon, PassCode.CompareSapforPackages);
addPasses(PassCode.SetSapforConfigurationEthalon, PassCode.CompareSapforPackages, PassCode.JoinSapforTestingVersionsToGroup);
addSeparator();
addPasses(PassCode.DeleteSapforPackage);
}

View File

@@ -4,6 +4,8 @@ import Common.Visual.DataSetControlForm;
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.UI.ServerSapforsForm;
import javax.swing.*;
import java.util.Comparator;
import java.util.Vector;
public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
public ServerSapforsDBTable() {
super(ServerSapfor.class);
@@ -20,4 +22,18 @@ public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
protected DataSetControlForm createUI(JPanel mountPanel) {
return new ServerSapforsForm(this, mountPanel);
}
public ServerSapfor getLastDoneVersion(){
Vector<ServerSapfor> versions = new Vector<>();
for (ServerSapfor serverSapfor: Data.values()){
if (serverSapfor.state.equals(ServerSapforState.Done))
versions.add(serverSapfor);
}
versions.sort(new Comparator<ServerSapfor>() {
@Override
public int compare(ServerSapfor o1, ServerSapfor o2) {
return Long.compare(o1.buildDate,o2.buildDate);
}
});
return versions.isEmpty()?null:versions.lastElement();
}
}