diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 32367ec..44af31b 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -137,7 +137,7 @@ public class TestingList extends Panel { logger.addHandler(fh); SimpleFormatter formatter = new SimpleFormatter(); fh.setFormatter(formatter); - logger.log(Level.INFO, "New Testing Session"); + logger.log(Level.INFO, "New testing session"); } catch (SecurityException e) { SwingUtils.showMessage(this, "initLogger()", "initLogger() "+e.toString()); } catch (IOException e) { @@ -391,14 +391,14 @@ public class TestingList extends Panel { String[] dsTestProperties = {"",""}; //search for device name in table try{ - for (int row = 0; row <= jTable1.getRowCount() - 1; row++) { - if (jTable1.getValueAt(row, COL_STATUS).toString().equals("Running")) { - dsTestProperties[0] = jTable1.getValueAt(row, COL_DEVICENAME).toString(); - dsTestProperties[1] = jTable1.getValueAt(row, COL_TESTNAME).toString(); - break; + for (int row = 0; row <= jTable1.getRowCount() - 1; row++) { + if (jTable1.getValueAt(row, COL_STATUS).toString().equals("Running")) { + dsTestProperties[0] = jTable1.getValueAt(row, COL_DEVICENAME).toString(); + dsTestProperties[1] = jTable1.getValueAt(row, COL_TESTNAME).toString(); + break; + } } } - } catch (Exception ex) { SwingUtils.showMessage(this, "getTestInProgress()", ex.toString()); } @@ -480,6 +480,7 @@ public class TestingList extends Panel { } if(!bSelected){ //No test to play. Stop setButtonToStop(); + logger.log(Level.INFO, "End of tests."); } }