Closedown

This commit is contained in:
boccioli_m
2017-10-16 14:48:18 +02:00
parent 676d56dd64
commit edc81f550f
3 changed files with 8 additions and 9 deletions

View File

@@ -422,7 +422,7 @@ public class TestingListDetails extends javax.swing.JPanel {
HashMap mParameterAttributes = new HashMap(); //contians value and description
for(int row=0 ; row<jTableParams.getRowCount() ; row++){
String sParam = jTableParams.getValueAt(row, 0).toString();
String sVal = "\"" + jTableParams.getValueAt(row, 1).toString() + "\"";
String sVal = "\"" + jTableParams.getValueAt(row, 1).toString().replace("\"", "").replace("&","") + "\"";
String sDescr = "\"" +jTableParams.getValueAt(row, 2).toString() + "\"";
mParameterAttributes = new HashMap();
mParameterAttributes.put("value", (Object) sVal);
@@ -441,7 +441,6 @@ public class TestingListDetails extends javax.swing.JPanel {
boolean success = false;
try {
Path path = Paths.get(testDir + FilenameUtils.separatorsToSystem("/"+TESTS_CONFIG_FILENAME));
File configFile = path.toFile();
//Loop among the test parameters and generate variable assignement syntax for python
String sTestParameters = "";
String name="", value="", description="";
@@ -449,9 +448,9 @@ public class TestingListDetails extends javax.swing.JPanel {
Object param = entry;
if(param instanceof String){
name = (String) param;
HashMap attributes = (HashMap) hmTestParams.get(param);
value = (String) attributes.get("value");
description = (String) attributes.get("description");
Details attributes = new Details((HashMap) hmTestParams.get(param));
value = attributes.get("value");
description = attributes.get("description");
//build the python code for getting the test parameter
sTestParameters = sTestParameters + name + VALUE_SEPARATOR + value + VALUE_SEPARATOR + description + PARAM_SEPARATOR ;
}