Closedown

This commit is contained in:
boccioli_m
2015-06-10 09:14:40 +02:00
parent c63acecb63
commit 81eeee7eb9

View File

@@ -53,20 +53,15 @@ public class TestingList extends Panel {
@Override
protected void onExecutedFile(String fileName) {
try {
switch (fileName) {
case "power-supply":
Object ret = eval("ret");
boolean success = (boolean) eval("success");
Object deviceName = eval("deviceName");
Object testName = eval("testName");
Object ret = eval("ret");
boolean success = (boolean) eval("success");
Object deviceName = eval("DEVICE");
String sSuccess = (success == true) ? "Success" : "Failed";
if (ret != null) {
//SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName());
testingList.showResult(deviceName.toString(), testName.toString(), ret.toString(), sSuccess);
}
break;
}
String sSuccess = (success == true) ? "Success" : "Failed";
if (ret != null) {
//SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName());
testingList.showResult(deviceName.toString(), fileName, ret.toString(), sSuccess);
}
} catch (Exception ex) {
SwingUtils.showException(getComponent(), ex);
}
@@ -103,9 +98,9 @@ public class TestingList extends Panel {
fh.setFormatter(formatter);
logger.log(Level.INFO, "New Testing Session");
} catch (SecurityException e) {
e.printStackTrace();
SwingUtils.showMessage(this, "", e.toString());
} catch (IOException e) {
e.printStackTrace();
SwingUtils.showMessage(this, "", e.toString());
}
}