mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +02:00
Corrected links to MD files.
This commit is contained in:
parent
453e84f0a5
commit
87e7eb78a8
3 changed files with 23 additions and 3 deletions
|
@ -190,6 +190,8 @@ void TestRailInterface::createStackDotPyScript() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestRailInterface::requestTestRailDataFromUser() {
|
void TestRailInterface::requestTestRailDataFromUser() {
|
||||||
|
// Make sure correct fields are enabled before calling
|
||||||
|
_testRailSelectorWindow.reset();
|
||||||
_testRailSelectorWindow.exec();
|
_testRailSelectorWindow.exec();
|
||||||
|
|
||||||
if (_testRailSelectorWindow.getUserCancelled()) {
|
if (_testRailSelectorWindow.getUserCancelled()) {
|
||||||
|
@ -428,10 +430,12 @@ void TestRailInterface::createTestSuitePython(const QString& testDirectory,
|
||||||
}
|
}
|
||||||
|
|
||||||
requestTestRailDataFromUser();
|
requestTestRailDataFromUser();
|
||||||
getMilestonesFromTestRail();
|
|
||||||
createTestRailDotPyScript();
|
createTestRailDotPyScript();
|
||||||
createStackDotPyScript();
|
createStackDotPyScript();
|
||||||
}
|
|
||||||
|
// TestRail will be updated after the process initiated by getMilestonesFromTestRail has completed
|
||||||
|
getMilestonesFromTestRail();
|
||||||
|
}
|
||||||
|
|
||||||
void TestRailInterface::createTestSuiteXML(const QString& testDirectory,
|
void TestRailInterface::createTestSuiteXML(const QString& testDirectory,
|
||||||
const QString& outputDirectory,
|
const QString& outputDirectory,
|
||||||
|
@ -659,10 +663,13 @@ void TestRailInterface::processTestPython(const QString& fullDirectory,
|
||||||
title += " / " + words[i];
|
title += " / " + words[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// To create the path to test.md, prefix by tests, and remove blanks
|
||||||
|
QString pathToTestMD = QString("/tests/") + title.remove(" ");
|
||||||
|
|
||||||
stream << "section_id = parent_ids.peek()\n";
|
stream << "section_id = parent_ids.peek()\n";
|
||||||
|
|
||||||
QString testMDName = QString("https://github.com/") + userGitHub + "/hifi_tests/blob/" + branchGitHub +
|
QString testMDName = QString("https://github.com/") + userGitHub + "/hifi_tests/blob/" + branchGitHub +
|
||||||
"/tests/content/entity/light/point/create/test.md";
|
pathToTestMD + "/test.md ";
|
||||||
|
|
||||||
QString testContent = QString("Execute instructions in [THIS TEST](") + testMDName + ")";
|
QString testContent = QString("Execute instructions in [THIS TEST](") + testMDName + ")";
|
||||||
QString testExpected = QString("Refer to the expected result in the linked description.");
|
QString testExpected = QString("Refer to the expected result in the linked description.");
|
||||||
|
|
|
@ -19,6 +19,17 @@ TestRailSelectorWindow::TestRailSelectorWindow(QWidget *parent) {
|
||||||
projectIDLineEdit->setValidator(new QIntValidator(1, 999, this));
|
projectIDLineEdit->setValidator(new QIntValidator(1, 999, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void TestRailSelectorWindow::reset() {
|
||||||
|
urlLineEdit->setDisabled(false);
|
||||||
|
userLineEdit->setDisabled(false);
|
||||||
|
passwordLineEdit->setDisabled(false);
|
||||||
|
projectIDLineEdit->setDisabled(false);
|
||||||
|
|
||||||
|
OKButton->setDisabled(true);
|
||||||
|
milestoneComboBox->setDisabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
void TestRailSelectorWindow::on_acceptButton_clicked() {
|
void TestRailSelectorWindow::on_acceptButton_clicked() {
|
||||||
urlLineEdit->setDisabled(true);
|
urlLineEdit->setDisabled(true);
|
||||||
userLineEdit->setDisabled(true);
|
userLineEdit->setDisabled(true);
|
||||||
|
|
|
@ -18,6 +18,8 @@ class TestRailSelectorWindow : public QDialog, public Ui::TestRailSelectorWindow
|
||||||
public:
|
public:
|
||||||
TestRailSelectorWindow(QWidget* parent = Q_NULLPTR);
|
TestRailSelectorWindow(QWidget* parent = Q_NULLPTR);
|
||||||
|
|
||||||
|
void reset();
|
||||||
|
|
||||||
bool getUserCancelled();
|
bool getUserCancelled();
|
||||||
|
|
||||||
void setURL(const QString& user);
|
void setURL(const QString& user);
|
||||||
|
|
Loading…
Reference in a new issue