fix отображения пакетов
This commit is contained in:
@@ -7,8 +7,8 @@ import TestingSystem.SAPFOR.SapforTasksPackage.UI.*;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Comparator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
@@ -21,7 +21,7 @@ public class SapforPackage_json implements Serializable {
|
||||
//--
|
||||
@Expose
|
||||
public int max_set_id = 0;
|
||||
public int getMaxSetId(){
|
||||
public int getMaxSetId() {
|
||||
return max_set_id++;
|
||||
}
|
||||
//--
|
||||
@@ -133,6 +133,7 @@ public class SapforPackage_json implements Serializable {
|
||||
}
|
||||
}
|
||||
}
|
||||
//---------------------------------------------------->>
|
||||
public void buildTree(SapforPackage package_in) {
|
||||
root = new PackageSummary();
|
||||
//---
|
||||
@@ -159,7 +160,11 @@ public class SapforPackage_json implements Serializable {
|
||||
configurationNode = new ConfigurationSummary(configuration_id, task);
|
||||
}
|
||||
//--
|
||||
groupSummary.add(task.getVersionsTree(new File(package_in.getLocalWorkspace(), String.valueOf(configuration_id))));
|
||||
groupSummary.add(task.getVersionsTree(
|
||||
Paths.get(package_in.getLocalWorkspace().getAbsolutePath(),
|
||||
String.valueOf(task.set_id),
|
||||
String.valueOf(configuration_id)).toFile())
|
||||
);
|
||||
}
|
||||
if (configurationNode != null)
|
||||
configurationNode.add(groupSummary);
|
||||
@@ -203,7 +208,11 @@ public class SapforPackage_json implements Serializable {
|
||||
configurationNode = new ConfigurationSummary(configuration_id, task);
|
||||
}
|
||||
//--
|
||||
groupSummary.add(task.getVersionsTree(new File(package_in.getLocalWorkspace(), String.valueOf(configuration_id))));
|
||||
groupSummary.add(task.getVersionsTree(
|
||||
Paths.get(package_in.getLocalWorkspace().getAbsolutePath(),
|
||||
String.valueOf(task.set_id),
|
||||
String.valueOf(configuration_id)).toFile())
|
||||
);
|
||||
}
|
||||
if (configurationNode != null)
|
||||
configurationNode.add(groupSummary);
|
||||
|
||||
@@ -49,7 +49,7 @@ public class PerformSapforTask extends Pass_2021<SapforTask> {
|
||||
String.valueOf(set_json.id),
|
||||
String.valueOf(configuration_json.id),
|
||||
target.test_description).toFile();
|
||||
root = new File(Global.Home, String.valueOf(configuration_json.id));
|
||||
root = Paths.get(Global.Home, String.valueOf(set_json.id), String.valueOf(configuration_json.id)).toFile();
|
||||
task = null;
|
||||
//--->>
|
||||
return true;
|
||||
@@ -114,7 +114,7 @@ public class PerformSapforTask extends Pass_2021<SapforTask> {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
target.StartDate = new Date().getTime();
|
||||
target.versions.add(version_json = new SapforVersion_json(target.test_description, ""));
|
||||
target.versions.add(version_json = new SapforVersion_json(target.test_description, "исходная"));
|
||||
for (PassCode_2021 code : configuration_json.codes) {
|
||||
if (parse()) {
|
||||
if (code.equals(PassCode_2021.CreateParallelVariants))
|
||||
|
||||
@@ -77,6 +77,7 @@ public class SapforTask extends DBObject {
|
||||
//--
|
||||
for (SapforVersion_json version_json : versions) {
|
||||
version_json.task = this;
|
||||
// System.out.println(version_json.version);
|
||||
//-
|
||||
child = new VersionSummary(version_json, version_json.init(configurationRoot));
|
||||
if (parent == null) {
|
||||
|
||||
Reference in New Issue
Block a user