#ifndef __TEST_CLIENT_TESTS_H__ #define __TEST_CLIENT_TESTS_H__ #include <QDebug> #include <QTest> #include <QProcessEnvironment> #include <hws.h> namespace test { //------------------------------------------------------------------------ // Helper Object //------------------------------------------------------------------------ class ClientTests; // This basically handles setting up slots that are not read in as // test functions. class ClientHelper : public QObject { Q_OBJECT public slots: void logInDone(hws::RequestErrorPtr error, hws::SessionPtr session); void executeMethodDone(hws::RequestErrorPtr error, const QString &method, const QString &path, const QSharedPointer<hws::Client::QVariantMapList> data); public: ClientTests *mTests; }; // These are most of the 'integrated' tests in the system. class ClientTests : public QObject { Q_OBJECT private slots: //-------------------------------------------------------------------- // QTest Framework //-------------------------------------------------------------------- void initTestCase(); void init(); //-------------------------------------------------------------------- // Test Methods //-------------------------------------------------------------------- void logIn(); void logInError(); void listDepots(); void listProjects(); //-------------------------------------------------------------------- // Test Helpers and State //-------------------------------------------------------------------- private: void initClient(); void waitForLogIn(); void waitForExecuteMethod(); public: ClientHelper mHelper; hws::ClientPtr mClient; hws::SessionPtr mSession; hws::RequestErrorPtr mRequestError; QString mMethod; QString mPath; QSharedPointer<hws::Client::QVariantMapList> mData; bool mLogInDone; bool mExecuteMethodDone; }; } #endif // __TEST_CLIENT_TESTS_H__
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services_client_qt/test/ClientTests.h | |||||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services_client_qt/test/ClientTests.h | |||||
#4 | 15445 | tjuricek | Allow per-request overrides to be set via addRequestConfig | ||
#3 | 15423 | tjuricek |
Revised HWS Qt API. This is a major revision of the API, which removes most of the "typed" data, replacing it with a more generic "executeMethodDone" callback. The main benefit here is to allow the API to interop with different versions of p4d, and not restrict the methods it can call. We may add more helpers in the future. |
||
#2 | 14049 | tjuricek |
Add methods to generate client workspaces for a user. The Qt SDK was updated based on immediate need. Also, add Ruby client SDK documentation to the docs site. Everything is early, but there's *some* reference available at least. |
||
#1 | 14025 | tjuricek |
Revise Qt SDK to a single 'helix_web_services_client' project. Most references to "Phoenix" have now been removed. Additionally, this is more similar to the other platform client SDKs in Ruby and JavaScript. Documentation via Doxygen is now available, and will be how much of the SDK reference should occur. |