/** * @RDE_HEADER@ * SRP Data Topic test executable * * ModuleTests to get data from Service SituationReplay * -> getAll() * -> getItem() * --------------------------------------------------- * Client DTC is implemented * * => (!) Preconditon: * - Service sExeMgmt running * * ------------------------------------------------- * * $Id$ * $HeadURL$ * $Author$ * * Created by Hanna E. Rathje, SLSE, 2015-09-11 */ #pragma once #include #include #include #include #include #include //#include namespace SituationReplay { class SrpDtTests : public QObject { using Publisher = DDSConnector::Publisher; using Subscriber = DDSConnector::Subscriber; Q_OBJECT public: explicit SrpDtTests(QObject *parent = nullptr); ~SrpDtTests(); bool init(int domainId, int exerciseId); bool testsSuccessful() const { return m_bTestsSuccessful; } public Q_SLOTS: void startTest(); protected Q_SLOTS: void tryGetAllSituationReplays(); void tryGetSituationReplay(); void onReceiveSituationReplayData(const SitReplay &data); protected: void failExit(); private: std::shared_ptr m_ddsConnector; std::shared_ptr m_dtc; qint32 m_replayPartitionId; qint32 m_situationReplayId; bool m_bTestsSuccessful; LOGGER_T m_logger; }; } // namespace SituationReplay