Closedown
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user