diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 6eef6e5..e87143b 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -59,6 +59,7 @@ public class TestingList extends Panel { Object deviceName = eval("DEVICE"); String sStatus = (status == true) ? "Success" : "Failed"; + if (ret != "" ) { //SwingUtils.showMessage(getComponent(), "", ret.toString() + " - " + ret.getClass().getName()); iCurrentTestPos = testingList.showResult(deviceName.toString(), fileName, ret.toString(), sStatus); @@ -68,7 +69,7 @@ public class TestingList extends Panel { testingList.executeTest(iCurrentTestPos+1); } } - else{ + else{ // ret empty means that either the test script does not have variable ret, or that the script could not be started at all ret = "Could not start test script"; sStatus = "Failed"; String[] dsDeviceName = testingList.getTestInProgress(); @@ -456,6 +457,7 @@ public class TestingList extends Panel { jTable1.getColumnModel().getColumn(COL_CHECK).setMaxWidth(27); jTable1.getColumnModel().getColumn(COL_DEVICENAME).setPreferredWidth(30); jTable1.getColumnModel().getColumn(COL_STATUS).setPreferredWidth(30); + jTable1.setAutoCreateRowSorter(true); updateStatus(); }