testcacic.h
1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef TESTINSTALLCACIC_H
#define TESTINSTALLCACIC_H
#include <cacic_comm.h>
#include <ccacic.h>
#include <cacic_computer.h>
#include <cacic_software.h>
#include <cacic_hardware.h>
#include <console.h>
#include <operatingsystem.h>
#include <QtTest/QtTest>
#include <QDebug>
#include <QList>
#include <QProcess>
#include <QStringList>
#include <iostream>
#include <QtNetwork/QtNetwork>
#include <QJsonObject>
#include <ccoleta.h>
#include <QLogger.h>
#include <checkmodules.h>
class CTestCacic : public QObject
{
Q_OBJECT
public:
explicit CTestCacic(QObject *parent = 0);
private:
CacicComm *OCacicComm;
CCacic OCacic;
CACIC_Computer OCacicComp;
cacic_software OCacicSoftware;
cacic_hardware OCacicHardware;
QString testPath;
QString testIniPath;
QJsonObject session;
QString cripTeste;
CColeta oColeta;
CheckModules *oCheckModules;
// cacicD OcacicD;
signals:
public slots:
private slots:
void initTestCase();
void testCommStatus();
// void testComm();
void testGetAndSetValueFromFile();
void testGetValueFromTags();
void testCreateFolder();
void testDeleteFolder();
void testDeleteFile();
void testInterfaceDeRede();
void testConsole();
void testPegarUsu();
void testJsonValueFromJsonString();
void testcoletaIdOs();
void testpegarOS();
void testLogin();
void testSslConnection();
void testEnCrypt();
void testDeCrypt();
void testCacicCompToJsonObject();
void testOperatingSystemToJsonObject();
void testJsonToFile();
void testJsonFromFile();
void testSetRegistry();
void testGetValueFromRegistry();
void testRemoveRegistry();
void testConvertDouble();
void testGetTest();
void testGetConfig();
void testColetaSoftware();
void testColetaHardware();
void testLogger();
void testDownload();
void testStartService();
void testEnviaColeta();
void testGetModulesValues();
void cleanupTestCase();
};
#endif // TESTINSTALLCACIC_H