mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Refactoring.
This commit is contained in:
parent
db0969d1a7
commit
72d4e7dba2
2 changed files with 16 additions and 5 deletions
|
@ -16,11 +16,7 @@
|
|||
#include <QMessageBox>
|
||||
#include <QTextStream>
|
||||
|
||||
void TestRailInterface::createTestSuitePython(const QString& testDirectory,
|
||||
const QString& outputDirectory,
|
||||
const QString& user,
|
||||
const QString& branch) {
|
||||
|
||||
void TestRailInterface::createTestRailDotPyScript(const QString& outputDirectory) {
|
||||
// Create the testrail.py script
|
||||
// This is the file linked to from http://docs.gurock.com/testrail-api2/bindings-python
|
||||
QFile file(outputDirectory + "/testrail.py");
|
||||
|
@ -125,7 +121,18 @@ void TestRailInterface::createTestSuitePython(const QString& testDirectory,
|
|||
stream << "\tpass\n";
|
||||
|
||||
file.close();
|
||||
}
|
||||
|
||||
void TestRailInterface::requestDataFromUser() {
|
||||
}
|
||||
|
||||
void TestRailInterface::createTestSuitePython(const QString& testDirectory,
|
||||
const QString& outputDirectory,
|
||||
const QString& user,
|
||||
const QString& branch) {
|
||||
|
||||
createTestRailDotPyScript(outputDirectory);
|
||||
requestDataFromUser();
|
||||
}
|
||||
|
||||
void TestRailInterface::createTestSuiteXML(const QString& testDirectory,
|
||||
|
|
|
@ -31,8 +31,12 @@ public:
|
|||
const QString& user,
|
||||
const QString& branch,
|
||||
const QDomElement& element);
|
||||
|
||||
QDomElement processTest(const QString& fullDirectory, const QString& test, const QString& user, const QString& branch, const QDomElement& element);
|
||||
|
||||
void createTestRailDotPyScript(const QString& outputDirectory);
|
||||
void requestDataFromUser();
|
||||
|
||||
private:
|
||||
QDomDocument document;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue