Corrected links to MD files.

This commit is contained in:
NissimHadar 2018-07-31 13:30:30 -07:00
parent 453e84f0a5
commit 87e7eb78a8
3 changed files with 23 additions and 3 deletions

View file

@ -190,6 +190,8 @@ void TestRailInterface::createStackDotPyScript() {
}
void TestRailInterface::requestTestRailDataFromUser() {
// Make sure correct fields are enabled before calling
_testRailSelectorWindow.reset();
_testRailSelectorWindow.exec();
if (_testRailSelectorWindow.getUserCancelled()) {
@ -428,10 +430,12 @@ void TestRailInterface::createTestSuitePython(const QString& testDirectory,
}
requestTestRailDataFromUser();
getMilestonesFromTestRail();
createTestRailDotPyScript();
createStackDotPyScript();
}
// TestRail will be updated after the process initiated by getMilestonesFromTestRail has completed
getMilestonesFromTestRail();
}
void TestRailInterface::createTestSuiteXML(const QString& testDirectory,
const QString& outputDirectory,
@ -659,10 +663,13 @@ void TestRailInterface::processTestPython(const QString& fullDirectory,
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";
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 testExpected = QString("Refer to the expected result in the linked description.");

View file

@ -19,6 +19,17 @@ TestRailSelectorWindow::TestRailSelectorWindow(QWidget *parent) {
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() {
urlLineEdit->setDisabled(true);
userLineEdit->setDisabled(true);

View file

@ -18,6 +18,8 @@ class TestRailSelectorWindow : public QDialog, public Ui::TestRailSelectorWindow
public:
TestRailSelectorWindow(QWidget* parent = Q_NULLPTR);
void reset();
bool getUserCancelled();
void setURL(const QString& user);