Перенос кнопки синхронизации на панель тестирования. Исправление бага с формированием пакета.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package TestingSystem.Common;
|
||||
import Common.Constants;
|
||||
import Common.Utils.Utils;
|
||||
import Repository.EmailMessage;
|
||||
import Repository.Server.ServerCode;
|
||||
@@ -135,14 +136,15 @@ public abstract class TestingPlanner<P extends TestingPackage> {
|
||||
} else {
|
||||
try {
|
||||
if (Connect()) {
|
||||
if ((boolean) ServerCommand(getCheckIfNeedsKillCode(), testingPackage.id)) {
|
||||
int ptk_id = (int) ServerCommand(getCheckIfNeedsKillCode(), testingPackage.id);
|
||||
if (ptk_id!= Constants.Nan) {
|
||||
Print("package " + testingPackage.id + " NEEDS TO KILL");
|
||||
Kill();
|
||||
UpdatePackageState(TasksPackageState.Aborted);
|
||||
EmailPackage();
|
||||
ServerCommand(ServerCode.DeleteObjectByPK, ptk_id);
|
||||
} else {
|
||||
Session();
|
||||
|
||||
}
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
||||
Reference in New Issue
Block a user