#pragma once #include #include #include "response.h" #include "requestmanager.h" #include "syncmanager.h" #include "logger.h" class ComplexTest : public QObject { Q_OBJECT private slots: void initTestCase(); void complexTest(); void fullSync(); void syncLastUpdated(); void testingStuff(); void cleanupTestCase(); private: // FUNCTIONS int getNumOfSubjects(); int getNumOfTokens(); QJsonDocument getJsonDoc(const QString &json); std::shared_ptr getTestToken(); // VARIABLES QString host = "https://192.168.1.3"; QString user = "spaceti"; QString password = "spaceti1"; RequestManager* reqMan = nullptr; uint64_t start = 0; SyncManager* api = nullptr; static constexpr qint16 timeout = 10000; };