Closedown
This commit is contained in:
@@ -54,12 +54,12 @@ public class TestingList extends Panel {
|
||||
switch(fileName){
|
||||
case "power-supply":
|
||||
Object ret = eval("ret");
|
||||
boolean success = (boolean) eval("success");
|
||||
Object success = eval("success");
|
||||
Object deviceName = eval("deviceName");
|
||||
Object testName = eval("testName");
|
||||
if (ret != null) {
|
||||
//SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName());
|
||||
testingList.showResult(deviceName.toString(), testName.toString(), ret.toString(), success);
|
||||
testingList.showResult(deviceName.toString(), testName.toString(), ret.toString(), success.toString());
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ public class TestingList extends Panel {
|
||||
|
||||
|
||||
|
||||
public void showResult(String deviceName, String testName, String res, boolean success){
|
||||
public void showResult(String deviceName, String testName, String res, String success){
|
||||
|
||||
int COL_RESULT = 3;
|
||||
int COL_SUCCESS = 4;
|
||||
@@ -109,15 +109,7 @@ public class TestingList extends Panel {
|
||||
}
|
||||
if(colT>0 && rowD>0){
|
||||
jTable1.setValueAt(res, rowD, COL_RESULT);
|
||||
String sStatus;
|
||||
if(success){
|
||||
sStatus = "Success";
|
||||
}
|
||||
else{
|
||||
sStatus = "Fail";
|
||||
}
|
||||
|
||||
jTable1.setValueAt(sStatus, rowD, COL_SUCCESS);
|
||||
jTable1.setValueAt(success, rowD, COL_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,6 +182,9 @@ public class TestingList extends Panel {
|
||||
args.put("relative", var1);
|
||||
args.put("steps", var2);
|
||||
run("power-supply", args);
|
||||
Object deviceName = eval("deviceName");
|
||||
Object testName = eval("testName");
|
||||
showResult(deviceName.toString(), testName.toString(),"","Performing");
|
||||
|
||||
|
||||
//evalAsync("run('args', locals = {'relative':" + (var1 ? "True" :"False") + ", 'steps':" + var2 + "})");
|
||||
|
||||
Reference in New Issue
Block a user