Stopp All feature

This commit is contained in:
boccioli_m
2015-09-04 14:27:06 +02:00
parent d65b3cb149
commit d7492922c7

View File

@@ -1282,12 +1282,12 @@ public class TestingList extends Panel {
}
public void stopAll(String resultMessage){
setToStopped();
String testInProgress[] = getTestInProgress();
while(testInProgress[0]!=""){
testInProgress = getTestInProgress();
showResult(testInProgress[0], testInProgress[1], resultMessage, "false");
}
setToStopped();
}
/**
@@ -1398,7 +1398,8 @@ public class TestingList extends Panel {
//collect tests to be launched in parallel
//the test must be: selected, set as start with previous, pending.
//alternatively, the test must be: selected, first of the list.
if(!isTestRunAllowed())
return;
//System.out.println(String.valueOf(row) + "\t" + String.valueOf(bSelected) + "\t" + String.valueOf(selectedTestsRows.length) + "\t" + sStartSequence + "\t" + sStatus);
if (bSelected
&& sStatus.equals(TestStatus.PENDING.toString())
@@ -1516,6 +1517,8 @@ public class TestingList extends Panel {
showResult(sDeviceName, sTestPath, "Cannot find test script: " + sTestPath, TestStatus.FAILURE.toString());
continue;
}
if(!isTestRunAllowed())
return iRet;
showResult(sDeviceName, sTestPath, "Test running", TestStatus.RUNNING.toString());
//launch the test
if (!mParameters.isEmpty()) {