Adds immediate migration results in progress

This commit is contained in:
torsten committed 2026-08-19 11:18:24 +02:00
1 parent 8453e104c5
commit 3bb6e89496
2102 files changed
+17482 -15071

No files matched your search

@@ -59,7 +59,7 @@ TgtTests::TgtTests(QObject *parent)
// ------------------------------------------------------------------
bool TgtTests::init(int domainId, int testId, int operatorId, int shootbackAreaId)
{
INFO_LOG() << "init begin";
INFO_LOG(m_logger) << "init begin";
m_testId = testId;
m_operatorId = operatorId;
@@ -89,7 +89,7 @@ bool TgtTests::init(int domainId, int testId, int operatorId, int shootbackAreaI
// ------------------------------------------------------------------
void TgtTests::startTest()
{
INFO_LOG() << "startTest m_testId=" << m_testId;
INFO_LOG(m_logger) << "startTest m_testId=" << m_testId;
if (m_testId == 1) // Send FTC ConfigureAlarms and EEM Event
{
QTimer::singleShot(0, this, &TgtTests::tryCreateParticipant);
@@ -132,7 +132,7 @@ void TgtTests::tryCreateShootbackArea()
if (!m_ftcTgt->shootbackAreaModifyRequest(request, this))
{
ERROR_LOG() << "Error requesting create Shootback Area";
ERROR_LOG(m_logger) << "Error requesting create Shootback Area";
failExit();
}
@@ -148,7 +148,7 @@ void TgtTests::tryUpdateShootbackArea()
if (!m_ftcTgt->shootbackAreaModifyRequest(request, this))
{
ERROR_LOG() << "Error requesting modify Shootback Area";
ERROR_LOG(m_logger) << "Error requesting modify Shootback Area";
failExit();
}
@@ -163,7 +163,7 @@ void TgtTests::tryRemoveShootbackArea()
if (!m_ftcTgt->shootbackAreaRemoveRequest(request, this))
{
ERROR_LOG() << "Error requesting remove Shootback Area";
ERROR_LOG(m_logger) << "Error requesting remove Shootback Area";
failExit();
}
@@ -172,7 +172,7 @@ void TgtTests::tryRemoveShootbackArea()
// ------------------------------------------------------------------
void TgtTests::tryRequestTechnicalState()
{
INFO_LOG() << "trying to send createRequest Operator Message";
INFO_LOG(m_logger) << "trying to send createRequest Operator Message";
ConfigureTargetRequest request;
@@ -182,7 +182,7 @@ void TgtTests::tryRequestTechnicalState()
if (!m_ftcTgt->configureTargetRequest(request, this))
{
ERROR_LOG() << "Error requesting create data";
ERROR_LOG(m_logger) << "Error requesting create data";
failExit();
}
} // tryRequestTechnicalState
@@ -190,7 +190,7 @@ void TgtTests::tryRequestTechnicalState()
// ------------------------------------------------------------------
void TgtTests::tryConfigureTargetMode()
{
INFO_LOG() << "trying to send createRequest Operator Message";
INFO_LOG(m_logger) << "trying to send createRequest Operator Message";
ConfigureTargetRequest request;
@@ -203,7 +203,7 @@ void TgtTests::tryConfigureTargetMode()
if (!m_ftcTgt->configureTargetRequest(request, this))
{
ERROR_LOG() << "Error requesting create data";
ERROR_LOG(m_logger) << "Error requesting create data";
failExit();
}
} // tryConfigureTargetMode
@@ -211,7 +211,7 @@ void TgtTests::tryConfigureTargetMode()
// ------------------------------------------------------------------
void TgtTests::tryConfigureTargetWeapon()
{
INFO_LOG() << "trying to send createRequest Operator Message";
INFO_LOG(m_logger) << "trying to send createRequest Operator Message";
ConfigureTargetRequest request;
@@ -222,7 +222,7 @@ void TgtTests::tryConfigureTargetWeapon()
if (!m_ftcTgt->configureTargetRequest(request, this))
{
ERROR_LOG() << "Error requesting create data";
ERROR_LOG(m_logger) << "Error requesting create data";
failExit();
}
} // tryConfigureTargetWeapon
@@ -241,7 +241,7 @@ void TgtTests::tryCreateTargetData()
if (!m_dtsTab->publish(targetData))
{
ERROR_LOG() << "Error publish targetData";
ERROR_LOG(m_logger) << "Error publish targetData";
failExit();
}
}
@@ -249,7 +249,7 @@ void TgtTests::tryCreateTargetData()
// ------------------------------------------------------------------
void TgtTests::tryCreateParticipant()
{
INFO_LOG() << "trying to create Participant index = " << m_participantIndex;
INFO_LOG(m_logger) << "trying to create Participant index = " << m_participantIndex;
ParticipantManagement::Participant participant;
participant.id(5);
participant.superiorId(0);
@@ -258,10 +258,10 @@ void TgtTests::tryCreateParticipant()
participant.inferiorIds().at(1) = 3;
participant.partyId(5);
participant.equipmentNumber(1001);
DEBUG_LOG() << "Publishing Participant";
DEBUG_LOG(m_logger) << "Publishing Participant";
if (!m_dtsPpm->publish(participant))
{
ERROR_LOG() << "Error publish Participant";
ERROR_LOG(m_logger) << "Error publish Participant";
failExit();
}
m_participantIndex++;
@@ -271,11 +271,11 @@ void TgtTests::tryCreateParticipant()
// ------------------------------------------------------------------
void TgtTests::onShootbackAreaModifyReply(const Core::FunctionReplyObject &replyObject)
{
INFO_LOG() << "onShootbackAreaModifyReply on id " << replyObject.id()
INFO_LOG(m_logger) << "onShootbackAreaModifyReply on id " << replyObject.id()
<< " and error = " << replyObject.error();
if (replyObject.error())
{
ERROR_LOG() << "Error onShoobackAreaModifyReply - aborting";
ERROR_LOG(m_logger) << "Error onShoobackAreaModifyReply - aborting";
failExit();
}
@@ -286,11 +286,11 @@ void TgtTests::onShootbackAreaModifyReply(const Core::FunctionReplyObject &reply
// ------------------------------------------------------------------
void TgtTests::onShootbackAreaRemoveReply(const Core::FunctionReplyObject &replyObject)
{
INFO_LOG() << "onShootbackAreaModifyReply on id " << replyObject.id()
INFO_LOG(m_logger) << "onShootbackAreaModifyReply on id " << replyObject.id()
<< " and error = " << replyObject.error();
if (replyObject.error())
{
ERROR_LOG() << "Error onShootbackAreaRemoveReply - aborting";
ERROR_LOG(m_logger) << "Error onShootbackAreaRemoveReply - aborting";
failExit();
}
@@ -300,10 +300,10 @@ void TgtTests::onShootbackAreaRemoveReply(const Core::FunctionReplyObject &reply
// ------------------------------------------------------------------
void TgtTests::onConfigureTargetReply(const Core::FunctionReplyObject &replyObject)
{
INFO_LOG() << "onConfigureTargetReply, error = " << replyObject.error();
INFO_LOG(m_logger) << "onConfigureTargetReply, error = " << replyObject.error();
if (replyObject.error())
{
ERROR_LOG() << "Error ConfigureTargets - aborting";
ERROR_LOG(m_logger) << "Error ConfigureTargets - aborting";
failExit();
}
} // onConfigureTargetReply
@@ -311,11 +311,11 @@ void TgtTests::onConfigureTargetReply(const Core::FunctionReplyObject &replyObje
// ------------------------------------------------------------------
void TgtTests::checkAlarm()
{
INFO_LOG() << "checkAlarm";
INFO_LOG(m_logger) << "checkAlarm";
m_dtcTgt->waitForHistoricalDataTargetConfig();
//qint32 id = 0;
/*TargetManagement::Notification notification = m_dtcTgt->notification(id);
INFO_LOG() << "Recived TargetManagement::Notification: " << notification
INFO_LOG(m_logger) << "Recived TargetManagement::Notification: " << notification
<< " testId: " << m_testId;
switch (m_testId)
@@ -323,12 +323,12 @@ void TgtTests::checkAlarm()
case 1:
case 2:
case 3:
INFO_LOG() << "ExitSuccess";
INFO_LOG(m_logger) << "ExitSuccess";
ExitSuccess();
break;
default:
// nothing
INFO_LOG() << "failExit";
INFO_LOG(m_logger) << "failExit";
failExit();
break;
}*/
@@ -344,7 +344,7 @@ void TgtTests::failExit()
// ------------------------------------------------------------------
void TgtTests::ExitSuccess()
{
DEBUG_LOG() << "SUCCESS";
DEBUG_LOG(m_logger) << "SUCCESS";
m_bTestsSuccessful = true;
QTimer::singleShot(0, qApp, &QCoreApplication::quit);
} // ExitSuccess