ввел состояние пакета тестирования - выполнен с ошибками.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package TestingSystem.SAPFOR.Json;
|
||||
import GlobalData.Tasks.TaskState;
|
||||
import TestingSystem.Common.TasksPackageState;
|
||||
import TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
||||
import TestingSystem.SAPFOR.SapforTask.ComparisonState;
|
||||
import TestingSystem.SAPFOR.SapforTask.SapforTask;
|
||||
@@ -184,4 +185,10 @@ public class SapforPackage_json implements Serializable {
|
||||
});
|
||||
return names;
|
||||
}
|
||||
public TasksPackageState getState(){
|
||||
for (SapforTask task: tasks)
|
||||
if (!task.state.equals(TaskState.Done))
|
||||
return TasksPackageState.DoneWithErrors;
|
||||
return TasksPackageState.Done;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,6 +146,8 @@ public class SapforTestingPlanner extends TestingPlanner<SapforPackage> {
|
||||
protected void AnalyseResults() throws Exception {
|
||||
//не требуется.
|
||||
testingPackage.progress = 100;
|
||||
testingPackage.readJson();
|
||||
UpdatePackageState(testingPackage.package_json.getState());
|
||||
}
|
||||
@Override
|
||||
protected void Kill() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user