mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:23:36 +02:00
Added checkbox to automatically update AWS.
This commit is contained in:
parent
138ca76d1c
commit
054494677b
6 changed files with 33 additions and 17 deletions
|
@ -21,14 +21,16 @@ AWSInterface::AWSInterface(QObject* parent) : QObject(parent) {
|
|||
_pythonCommand = _pythonInterface->getPythonCommand();
|
||||
}
|
||||
|
||||
void AWSInterface::createWebPageFromResults(const QString& testResults, const QString& workingDirectory) {
|
||||
void AWSInterface::createWebPageFromResults(const QString& testResults,
|
||||
const QString& workingDirectory,
|
||||
QCheckBox* updateAWSCheckBox) {
|
||||
_testResults = testResults;
|
||||
_workingDirectory = workingDirectory;
|
||||
|
||||
extractTestFailuresFromZippedFolder();
|
||||
createHTMLFile();
|
||||
|
||||
if (QMessageBox::Yes == QMessageBox(QMessageBox::Information, "HTML has been created", "Do you want to update AWS?", QMessageBox::Yes | QMessageBox::No).exec()) {
|
||||
if (updateAWSCheckBox->isChecked()) {
|
||||
updateAWS();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#ifndef hifi_AWSInterface_h
|
||||
#define hifi_AWSInterface_h
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QObject>
|
||||
#include <QTextStream>
|
||||
|
||||
|
@ -23,7 +24,7 @@ class AWSInterface : public QObject {
|
|||
public:
|
||||
explicit AWSInterface(QObject* parent = 0);
|
||||
|
||||
void createWebPageFromResults(const QString& testResults, const QString& workingDirectory);
|
||||
void createWebPageFromResults(const QString& testResults, const QString& workingDirectory, QCheckBox* updateAWSCheckBox);
|
||||
void extractTestFailuresFromZippedFolder();
|
||||
void createHTMLFile();
|
||||
|
||||
|
|
|
@ -1028,7 +1028,7 @@ void Test::setTestRailCreateMode(TestRailCreateMode testRailCreateMode) {
|
|||
_testRailCreateMode = testRailCreateMode;
|
||||
}
|
||||
|
||||
void Test::createWebPage() {
|
||||
void Test::createWebPage(QCheckBox* updateAWSCheckBox) {
|
||||
QString testResults = QFileDialog::getOpenFileName(nullptr, "Please select the zipped test results to update from", nullptr,
|
||||
"Zipped Test Results (*.zip)");
|
||||
if (testResults.isNull()) {
|
||||
|
@ -1041,5 +1041,5 @@ void Test::createWebPage() {
|
|||
return;
|
||||
}
|
||||
|
||||
_awsInterface.createWebPageFromResults(testResults, tempDirectory);
|
||||
_awsInterface.createWebPageFromResults(testResults, tempDirectory, updateAWSCheckBox);
|
||||
}
|
|
@ -98,7 +98,7 @@ public:
|
|||
|
||||
void setTestRailCreateMode(TestRailCreateMode testRailCreateMode);
|
||||
|
||||
void createWebPage();
|
||||
void createWebPage(QCheckBox* updateAWSCheckBox);
|
||||
|
||||
private:
|
||||
QProgressBar* _progressBar;
|
||||
|
|
|
@ -213,7 +213,7 @@ void AutoTester::on_createXMLScriptRadioButton_clicked() {
|
|||
}
|
||||
|
||||
void AutoTester::on_createWebPagePushButton_clicked() {
|
||||
_test->createWebPage();
|
||||
_test->createWebPage(_ui.updateAWSCheckBox);
|
||||
}
|
||||
|
||||
void AutoTester::downloadFile(const QUrl& url) {
|
||||
|
|
|
@ -588,7 +588,7 @@
|
|||
<widget class="QPushButton" name="updateTestRailRunResultsButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>130</x>
|
||||
<x>90</x>
|
||||
<y>230</y>
|
||||
<width>160</width>
|
||||
<height>40</height>
|
||||
|
@ -601,7 +601,7 @@
|
|||
<widget class="QRadioButton" name="createPythonScriptRadioButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>60</x>
|
||||
<x>20</x>
|
||||
<y>110</y>
|
||||
<width>95</width>
|
||||
<height>20</height>
|
||||
|
@ -617,7 +617,7 @@
|
|||
<widget class="QPushButton" name="createTestRailRunButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>130</x>
|
||||
<x>90</x>
|
||||
<y>170</y>
|
||||
<width>160</width>
|
||||
<height>40</height>
|
||||
|
@ -630,7 +630,7 @@
|
|||
<widget class="QPushButton" name="createTestRailTestCasesButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>130</x>
|
||||
<x>90</x>
|
||||
<y>110</y>
|
||||
<width>160</width>
|
||||
<height>40</height>
|
||||
|
@ -643,7 +643,7 @@
|
|||
<widget class="QRadioButton" name="createXMLScriptRadioButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>60</x>
|
||||
<x>20</x>
|
||||
<y>130</y>
|
||||
<width>95</width>
|
||||
<height>20</height>
|
||||
|
@ -656,9 +656,9 @@
|
|||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>40</x>
|
||||
<x>-20</x>
|
||||
<y>30</y>
|
||||
<width>271</width>
|
||||
<width>291</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -669,9 +669,9 @@
|
|||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>370</x>
|
||||
<x>329</x>
|
||||
<y>30</y>
|
||||
<width>210</width>
|
||||
<width>291</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -684,7 +684,7 @@
|
|||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>25</x>
|
||||
<x>110</x>
|
||||
<y>80</y>
|
||||
<width>160</width>
|
||||
<height>40</height>
|
||||
|
@ -694,6 +694,19 @@
|
|||
<string>Create Web Page</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="updateAWSCheckBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>92</y>
|
||||
<width>81</width>
|
||||
<height>17</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update AWS</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<zorder>groupBox</zorder>
|
||||
<zorder>updateTestRailRunResultsButton</zorder>
|
||||
|
|
Loading…
Reference in a new issue