Closedown

This commit is contained in:
boccioli_m
2015-06-10 10:57:37 +02:00
parent ce938efc64
commit ec6f7f4a55

View File

@@ -73,14 +73,15 @@ public class TestingList extends Panel {
// SwingUtils.showException(getComponent(), ex);
String ret = "Could not start test script";
String sSuccess = "Failed";
String[] deviceName = testingList.getTestinProgress();
String[] deviceName = testingList.getTestInProgress();
iCurrentTestPos = testingList.showResult(deviceName[0], fileName, ret, sSuccess);
//start next test
if(iCurrentTestPos>0)
{
testingList.executeTest(iCurrentTestPos+1);
}
}
SwingUtils.showMessage(getComponent(), "", ex.toString() + deviceName[0]);
}
}
@@ -332,13 +333,11 @@ public class TestingList extends Panel {
return rowD;
}
//find the test currently in progress
public String[] getTestinProgress() {
int rowD = -1, colT = -1;
String[] dsTestProperties = null;
public String[] getTestInProgress() {
String[] dsTestProperties = null;
//search for device name in table
for (int row = 0; row <= jTable1.getRowCount() - 1; row++) {
if ("Running".equals(jTable1.getValueAt(row, COL_STATUS))) {
rowD = row;
dsTestProperties[0] = jTable1.getValueAt(row, COL_DEVICENAME).toString();
dsTestProperties[1] = jTable1.getValueAt(row, COL_TESTNAME).toString();
break;