QRODS Test Suite
testdataobjectclient.h
1 #ifndef TESTDATAOBJECT_H
2 #define TESTDATAOBJECT_H
3 
4 #include <QObject>
5 #include <QtTest/QTest>
6 #include "qrods.h"
7 
8 class TestDataObjectClient : public QObject
9 {
10  Q_OBJECT
11 public:
12  explicit TestDataObjectClient(QString &newHost, QString &newport, QString &newUser, QString &newPassword,bool isSecureHttps, QString &_testFile);
13 
14 private slots:
15 
16  void initTestCase();
17  void cleanupTestCase();
18  void init();
19  void cleanup();
20 
21  void testRemoveDataObject();
22  void testAddFileMetadata();
23  void getDataObjectMetadata();
24  void getDataObjectMetadataAsync();
25  void testMetadataCapacity();
26  //void testRetrieveMetadataCapacity();
27 
28 private:
29  int getCurrentListSize();
30  bool fileExistsRemote(QString & collection, QString &fileName);
31  MetadataEntry getTestMetadata();
32  bool createTextFiles(QString baseFileName, int size);
33  bool fileExistsLocal(QString & fileName);
34  bool deleteFiles(QString &fileName);
35  QString getFormatedTime(int milliseconds);
36 
37 
38  QString testFile;
39  QString host;
40  QString hostFull;
41  QString port;
42  QString user;
43  QString password;
44  bool secureHttps;
45  int objectsBefore;
46  int objectsAfter;
47  QString collecUrl;
48  QString fileContUrl;
49  QString dataObjUrl;
50  QString path;
51  QString pathTestCollection;
52  QRODS *model ;
53  QString pathToTheFile;
54  QString anotherPathToTheFile; // without double bars " // "
55  QString localPath;
56 };
57 
58 #endif // TESTDATAOBJECT_H
Definition: testdataobjectclient.h:8