no message

This commit is contained in:
2023-09-21 21:17:02 +03:00
parent 7cc64ae0d2
commit d5b9da80de
4 changed files with 16 additions and 49 deletions

View File

@@ -34,14 +34,18 @@ public class PackageModeSupervisor {
String packed = FileUtils.readFileToString(scenarioFile, Charset.defaultCharset());
scenario = Utils.gson.fromJson(packed, Scenario_json.class);
//--->>
/*
for (String test : scenario.tests)
waitingTests.push(test);
*/
}
public boolean isFinished(String test){
return true;
}
//--->>
public void checkActiveTests() throws Exception {
public boolean checkActiveTests() throws Exception {
/*
Vector<String> finishedTests = new Vector<>();
for (String test: activeTests){
if (isFinished(test))
@@ -50,8 +54,11 @@ public class PackageModeSupervisor {
for (String test: finishedTests){
activeTests.remove(test);
}
*/
return true;
}
public void startWaitingTests() throws Exception {
public boolean startWaitingTests() throws Exception {
return true;
}
//--->>
public void Do() {
@@ -60,11 +67,9 @@ public class PackageModeSupervisor {
//--->>
init();
//--->>
do {
checkActiveTests();
startWaitingTests();
while (checkActiveTests()&&startWaitingTests()){
Thread.sleep(1000);
} while (!activeTests.isEmpty() && !waitingTests.isEmpty());
}
} catch (Exception ex) {
ex.printStackTrace();
}

View File

@@ -0,0 +1,4 @@
package SapforTestingSystem.SapforTest;
public class SapforTest {
public String description;
}