This commit is contained in:
boccioli_m
2017-10-13 10:45:31 +02:00
parent 52812bf851
commit d8843b3445
3 changed files with 6 additions and 30 deletions

View File

@@ -292,6 +292,8 @@ public class TestingList extends Panel {
public final Path TESTS_LOG_DEFAULT_DIR = Paths.get(".", "home", "script", "tests", "log", "TestsLog" + getnow() + ".txt");
public static String TESTS_CONFIG_FILENAME = ".config";
public static String TESTS_HELP_FILENAME = "help.html";
public static String VALUE_SEPARATOR = "|";
public static String PARAM_SEPARATOR = ";";
/**
@@ -2477,15 +2479,16 @@ public class TestingList extends Panel {
HashMap mParameters = new HashMap(); // contains name and attributes
HashMap mParameterAttributes = new HashMap(); //contians value and description
String[] dsParameterAttributes = null;
String[] dsParameters = parametersString.split(";");
String[] dsParameters = parametersString.split(PARAM_SEPARATOR);
for (String sParameter : dsParameters) {
dsParameterAttributes = sParameter.split(":");
dsParameterAttributes = sParameter.split(VALUE_SEPARATOR);
if (dsParameterAttributes.length > 2) {
mParameterAttributes = new HashMap();
mParameterAttributes.put("value", (Object) dsParameterAttributes[1]);
mParameterAttributes.put("description", dsParameterAttributes[2]);
//add parameter name and attributes (value + description)
mParameters.put(dsParameterAttributes[0], mParameterAttributes);
System.out.println(dsParameterAttributes[0] + dsParameterAttributes[1] + dsParameterAttributes[2]);
}
}
return mParameters;