Adding client profile combo.

This commit is contained in:
NissimHadar 2019-02-15 08:39:29 -08:00
parent f267043953
commit 8b2d9c36af
5 changed files with 22 additions and 6 deletions

View file

@ -40,7 +40,11 @@ Nitpick::Nitpick(QWidget* parent) : QMainWindow(parent) {
_ui.plainTextEdit->setReadOnly(true);
setWindowTitle("Nitpick - v2.1.2");
setWindowTitle("Nitpick - v3.0.0");
clientProfiles << "VR-High" << "Desktop-High" << "Desktop-Low" << "Mobile-Touch" << "VR-Standalone";
_ui.clientProfileComboBox->insertItems(0, clientProfiles);
}
Nitpick::~Nitpick() {
@ -157,7 +161,7 @@ void Nitpick::on_createAllRecursiveScriptsPushbutton_clicked() {
}
void Nitpick::on_createTestsPushbutton_clicked() {
_test->createTests();
_test->createTests(_ui.clientProfileComboBox->currentText());
}
void Nitpick::on_createMDFilePushbutton_clicked() {

View file

@ -126,6 +126,8 @@ private:
bool _isRunningFromCommandline{ false };
void* _caller;
QStringList clientProfiles;
};
#endif // hifi_Nitpick_h

View file

@ -391,7 +391,7 @@ void Test::includeTest(QTextStream& textStream, const QString& testPathname) {
textStream << "Script.include(testsRootPath + \"" << partialPathWithoutTests + "\");" << endl;
}
void Test::createTests() {
void Test::createTests(const QString& clientProfile) {
// Rename files sequentially, as ExpectedResult_00000.png, ExpectedResult_00001.png and so on
// Any existing expected result images will be deleted
QString previousSelection = _snapshotDirectory;

View file

@ -52,7 +52,7 @@ public:
void finishTestsEvaluation();
void createTests();
void createTests(const QString& clientProfile);
void createTestsOutline();

View file

@ -52,8 +52,8 @@
<widget class="QPushButton" name="createTestsPushbutton">
<property name="geometry">
<rect>
<x>210</x>
<y>60</y>
<x>70</x>
<y>40</y>
<width>220</width>
<height>40</height>
</rect>
@ -153,6 +153,16 @@
<string>Create all testAuto scripts</string>
</property>
</widget>
<widget class="QComboBox" name="clientProfileComboBox">
<property name="geometry">
<rect>
<x>320</x>
<y>40</y>
<width>120</width>
<height>40</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">