no message
This commit is contained in:
@@ -1,19 +1,32 @@
|
||||
package SapforTestingSystem.SapforTestingPlaner;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import SapforTestingSystem.Json.SapforPackage_json;
|
||||
import SapforTestingSystem.Json.SapforScenario_json;
|
||||
import SapforTestingSystem.SapforTest.SapforTest;
|
||||
import SapforTestingSystem.ThreadsPlanner.ThreadsPlanner;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Paths;
|
||||
public class SapforTestingPlanner extends ThreadsPlanner {
|
||||
public SapforTestingPlanner() {
|
||||
super(2000, 4);
|
||||
//--
|
||||
/*
|
||||
for (int i = 1; i <= 20; ++i) {
|
||||
int thread_number = i;
|
||||
addThread(() -> {
|
||||
for (int j=1; j<=4; ++j) {
|
||||
Global.Log.Print("thread " + thread_number+" j="+j);
|
||||
Utils.sleep(1000);
|
||||
}
|
||||
});
|
||||
public SapforTestingPlanner() throws Exception {
|
||||
super(2000, 1);
|
||||
SapforScenario_json scenario_json = (SapforScenario_json) Utils.jsonFromFile(new File(Global.Home, "scenario.txt"), SapforScenario_json.class);
|
||||
//формирование списка задач.
|
||||
for (SapforPackage_json sapforPackage_json : scenario_json.packages) {
|
||||
for (String testName : scenario_json.tests) {
|
||||
addThread(() -> {
|
||||
try {
|
||||
new SapforTest(
|
||||
new File(Global.Home, "SAPFOR_F.exe"),
|
||||
Paths.get(Global.Home, sapforPackage_json.id, testName).toFile(),
|
||||
sapforPackage_json.flags,
|
||||
sapforPackage_json.codes).Do();
|
||||
} catch (Exception exception) {
|
||||
Global.Log.PrintException(exception);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user