Closedown
This commit is contained in:
@@ -196,6 +196,7 @@ public class TestingList extends Panel {
|
||||
|
||||
public class NetbeansPluginPanel extends MonitoredPanel {
|
||||
Logger logger = Logger.getLogger("TestsLog");
|
||||
HashMap mParameters = new HashMap();
|
||||
//these paths are converted to unix or win path according to host OS
|
||||
private final String TESTS_DEVICES_DEFAULT_DIR = new java.io.File(".").getCanonicalPath()
|
||||
+ FilenameUtils.separatorsToSystem("/home/script/tests/devices/");
|
||||
@@ -626,7 +627,8 @@ public class TestingList extends Panel {
|
||||
try{
|
||||
args.put("DEVICE", sDeviceName);
|
||||
args.put("ret", "");
|
||||
args.put("status", false);
|
||||
args.put("status", false);
|
||||
args.put("parameters", buildParametersMap());
|
||||
runAsync(sTestPath, args);
|
||||
} catch (Exception ex) {
|
||||
SwingUtils.showMessage(this, "executeTest()", ex.toString());
|
||||
@@ -729,6 +731,16 @@ public class TestingList extends Panel {
|
||||
}
|
||||
logger.log(Level.INFO, iCounter + " tests loaded.");
|
||||
}
|
||||
|
||||
|
||||
private HashMap buildParametersMap(){
|
||||
HashMap mParameters = new HashMap();
|
||||
mParameters.put("repeatTimes", 2);
|
||||
mParameters.put("midPoint", 40.0);
|
||||
mParameters.put("spanFromMidPoint", 10.0);
|
||||
|
||||
return mParameters;
|
||||
}
|
||||
|
||||
public void selectFile() {
|
||||
final JFileChooser fc = new JFileChooser();
|
||||
|
||||
Reference in New Issue
Block a user