forked from qt-creator/qt-creator
Autotest: Inline testsettingspage.ui
Change-Id: I9cf2b9da84447abfa3fc2d34a9baa0724b40dcaa Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -74,7 +74,7 @@ add_qtc_plugin(AutoTest
|
||||
testrunconfiguration.h
|
||||
testrunner.cpp testrunner.h
|
||||
testsettings.cpp testsettings.h
|
||||
testsettingspage.cpp testsettingspage.h testsettingspage.ui
|
||||
testsettingspage.cpp testsettingspage.h
|
||||
testtreeitem.cpp testtreeitem.h
|
||||
testtreeitemdelegate.cpp testtreeitemdelegate.h
|
||||
testtreemodel.cpp testtreemodel.h
|
||||
|
@@ -62,7 +62,6 @@ QtcPlugin {
|
||||
"testsettings.h",
|
||||
"testsettingspage.cpp",
|
||||
"testsettingspage.h",
|
||||
"testsettingspage.ui",
|
||||
"testtreeitem.cpp",
|
||||
"testtreeitem.h",
|
||||
"testtreeitemdelegate.cpp",
|
||||
|
@@ -34,88 +34,253 @@
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/id.h>
|
||||
#include <utils/infolabel.h>
|
||||
#include <utils/layoutbuilder.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QGroupBox>
|
||||
#include <QHBoxLayout>
|
||||
#include <QHeaderView>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QSpacerItem>
|
||||
#include <QSpinBox>
|
||||
#include <QTreeWidget>
|
||||
#include <QVBoxLayout>
|
||||
#include <QWidget>
|
||||
|
||||
namespace Autotest {
|
||||
namespace Internal {
|
||||
|
||||
class TestSettingsWidget : public QWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Autotest::Internal::TestSettingsWidget)
|
||||
|
||||
public:
|
||||
explicit TestSettingsWidget(QWidget *parent = nullptr);
|
||||
|
||||
void setSettings(const TestSettings &settings);
|
||||
TestSettings settings() const;
|
||||
|
||||
private:
|
||||
void populateFrameworksListWidget(const QHash<Utils::Id, bool> &frameworks,
|
||||
const QHash<Utils::Id, bool> &testTools);
|
||||
void testSettings(TestSettings &settings) const;
|
||||
void testToolsSettings(TestSettings &settings) const;
|
||||
void onFrameworkItemChanged();
|
||||
|
||||
QCheckBox *m_omitInternalMsgCB;
|
||||
QCheckBox *m_omitRunConfigWarnCB;
|
||||
QCheckBox *m_limitResultOutputCB;
|
||||
QCheckBox *m_limitResultDescriptionCb;
|
||||
QSpinBox *m_limitResultDescriptionSpinBox;
|
||||
QCheckBox *m_openResultsOnStartCB;
|
||||
QCheckBox *m_openResultsOnFinishCB;
|
||||
QCheckBox *m_openResultsOnFailCB;
|
||||
QCheckBox *m_autoScrollCB;
|
||||
QCheckBox *m_displayAppCB;
|
||||
QCheckBox *m_processArgsCB;
|
||||
QComboBox *m_runAfterBuildCB;
|
||||
QSpinBox *m_timeoutSpin;
|
||||
QTreeWidget *m_frameworkTreeWidget;
|
||||
Utils::InfoLabel *m_frameworksWarn;
|
||||
};
|
||||
|
||||
TestSettingsWidget::TestSettingsWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
resize(586, 469);
|
||||
|
||||
m_ui.frameworksWarn->setVisible(false);
|
||||
m_ui.frameworksWarn->setElideMode(Qt::ElideNone);
|
||||
m_ui.frameworksWarn->setType(Utils::InfoLabel::Warning);
|
||||
connect(m_ui.frameworkTreeWidget, &QTreeWidget::itemChanged,
|
||||
m_omitInternalMsgCB = new QCheckBox(tr("Omit internal messages"));
|
||||
m_omitInternalMsgCB->setChecked(true);
|
||||
m_omitInternalMsgCB->setToolTip(tr("Hides internal messages by default. "
|
||||
"You can still enable them by using the test results filter."));
|
||||
|
||||
m_omitRunConfigWarnCB = new QCheckBox(tr("Omit run configuration warnings"));
|
||||
m_omitRunConfigWarnCB->setToolTip(tr("Hides warnings related to a deduced run configuration."));
|
||||
|
||||
m_limitResultOutputCB = new QCheckBox(tr("Limit result output"));
|
||||
m_limitResultOutputCB->setChecked(true);
|
||||
m_limitResultOutputCB->setToolTip(tr("Limits result output to 100000 characters."));
|
||||
|
||||
m_limitResultDescriptionCb = new QCheckBox(tr("Limit result description:"));
|
||||
m_limitResultDescriptionCb->setToolTip(
|
||||
tr("Limit number of lines shown in test result tooltip and description."));
|
||||
|
||||
m_limitResultDescriptionSpinBox = new QSpinBox;
|
||||
m_limitResultDescriptionSpinBox->setEnabled(false);
|
||||
m_limitResultDescriptionSpinBox->setMinimum(1);
|
||||
m_limitResultDescriptionSpinBox->setMaximum(1000000);
|
||||
m_limitResultDescriptionSpinBox->setValue(10);
|
||||
|
||||
m_openResultsOnStartCB = new QCheckBox(tr("Open results when tests start"));
|
||||
m_openResultsOnStartCB->setToolTip(
|
||||
tr("Displays test results automatically when tests are started."));
|
||||
|
||||
m_openResultsOnFinishCB = new QCheckBox(tr("Open results when tests finish"));
|
||||
m_openResultsOnFinishCB->setChecked(true);
|
||||
m_openResultsOnFinishCB->setToolTip(
|
||||
tr("Displays test results automatically when tests are finished."));
|
||||
|
||||
m_openResultsOnFailCB = new QCheckBox(tr("Only for unsuccessful test runs"));
|
||||
m_openResultsOnFailCB->setToolTip(
|
||||
tr("Displays test results only if the test run contains failed, fatal or unexpectedly passed tests."));
|
||||
|
||||
m_autoScrollCB = new QCheckBox(tr("Automatically scroll results"));
|
||||
m_autoScrollCB->setChecked(true);
|
||||
m_autoScrollCB->setToolTip(tr("Automatically scrolls down when new items are added and scrollbar is at bottom."));
|
||||
|
||||
m_displayAppCB = new QCheckBox(tr("Group results by application"));
|
||||
|
||||
m_processArgsCB = new QCheckBox(tr("Process arguments"));
|
||||
m_processArgsCB->setToolTip(
|
||||
tr("Allow passing arguments specified on the respective run configuration.\n"
|
||||
"Warning: this is an experimental feature and might lead to failing to execute the test executable."));
|
||||
|
||||
m_runAfterBuildCB = new QComboBox;
|
||||
m_runAfterBuildCB->setToolTip(tr("Runs chosen tests automatically if a build succeeded."));
|
||||
m_runAfterBuildCB->addItem(tr("None"));
|
||||
m_runAfterBuildCB->addItem(tr("All"));
|
||||
m_runAfterBuildCB->addItem(tr("Selected"));
|
||||
|
||||
auto timeoutLabel = new QLabel(tr("Timeout:"));
|
||||
timeoutLabel->setToolTip(tr("Timeout used when executing each test case."));
|
||||
|
||||
m_timeoutSpin = new QSpinBox;
|
||||
m_timeoutSpin->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
m_timeoutSpin->setRange(5, 36000);
|
||||
m_timeoutSpin->setValue(60);
|
||||
m_timeoutSpin->setSuffix(tr(" s"));
|
||||
m_timeoutSpin->setToolTip(
|
||||
tr("Timeout used when executing test cases. This will apply "
|
||||
"for each test case on its own, not the whole project."));
|
||||
|
||||
auto resetChoicesButton = new QPushButton(tr("Reset Cached Choices"));
|
||||
resetChoicesButton->setToolTip(
|
||||
tr("Clear all cached choices of run configurations for tests where the executable could not be deduced."));
|
||||
|
||||
m_frameworkTreeWidget = new QTreeWidget;
|
||||
m_frameworkTreeWidget->setRootIsDecorated(false);
|
||||
m_frameworkTreeWidget->setHeaderHidden(false);
|
||||
m_frameworkTreeWidget->setColumnCount(2);
|
||||
m_frameworkTreeWidget->header()->setDefaultSectionSize(150);
|
||||
m_frameworkTreeWidget->setToolTip(tr("Selects the test frameworks to be handled by the AutoTest plugin."));
|
||||
|
||||
QTreeWidgetItem *item = m_frameworkTreeWidget->headerItem();
|
||||
item->setText(0, tr("Framework"));
|
||||
item->setToolTip(0, tr("Selects the test frameworks to be handled by the AutoTest plugin."));
|
||||
item->setText(1, tr("Group"));
|
||||
item->setToolTip(1, tr("Enables grouping of test cases."));
|
||||
|
||||
m_frameworksWarn = new Utils::InfoLabel;
|
||||
m_frameworksWarn->setVisible(false);
|
||||
m_frameworksWarn->setElideMode(Qt::ElideNone);
|
||||
m_frameworksWarn->setType(Utils::InfoLabel::Warning);
|
||||
|
||||
using namespace Utils::Layouting;
|
||||
|
||||
Group generalGroup {
|
||||
Title(tr("General")),
|
||||
Column {
|
||||
m_omitInternalMsgCB,
|
||||
m_omitRunConfigWarnCB,
|
||||
m_limitResultOutputCB,
|
||||
Row { m_limitResultDescriptionCb, m_limitResultDescriptionSpinBox, Stretch()},
|
||||
m_openResultsOnStartCB,
|
||||
m_openResultsOnFinishCB,
|
||||
Row { Space(20), m_openResultsOnFailCB },
|
||||
m_autoScrollCB,
|
||||
m_displayAppCB,
|
||||
m_processArgsCB,
|
||||
Row { new QLabel(tr("Automatically run")), m_runAfterBuildCB, Stretch() },
|
||||
Row { timeoutLabel, m_timeoutSpin, Stretch() },
|
||||
Row { resetChoicesButton, Stretch() }
|
||||
}
|
||||
};
|
||||
|
||||
Group activeFrameworks {
|
||||
Title(tr("Active Test Frameworks")),
|
||||
Column {
|
||||
m_frameworkTreeWidget,
|
||||
m_frameworksWarn,
|
||||
}
|
||||
};
|
||||
|
||||
Column {
|
||||
Row {
|
||||
Column { generalGroup, Stretch() },
|
||||
Column { activeFrameworks, Stretch() }
|
||||
},
|
||||
Stretch()
|
||||
}.attachTo(this);
|
||||
|
||||
connect(m_frameworkTreeWidget, &QTreeWidget::itemChanged,
|
||||
this, &TestSettingsWidget::onFrameworkItemChanged);
|
||||
connect(m_ui.resetChoicesButton, &QPushButton::clicked,
|
||||
connect(resetChoicesButton, &QPushButton::clicked,
|
||||
this, [] { AutotestPlugin::clearChoiceCache(); });
|
||||
connect(m_ui.openResultsOnFinishCB, &QCheckBox::toggled,
|
||||
m_ui.openResultsOnFailCB, &QCheckBox::setEnabled);
|
||||
connect(m_ui.limitResultDescriptionCb, &QCheckBox::toggled,
|
||||
m_ui.limitResultDescriptionSpinBox, &QSpinBox::setEnabled);
|
||||
connect(m_openResultsOnFinishCB, &QCheckBox::toggled,
|
||||
m_openResultsOnFailCB, &QCheckBox::setEnabled);
|
||||
connect(m_limitResultDescriptionCb, &QCheckBox::toggled,
|
||||
m_limitResultDescriptionSpinBox, &QSpinBox::setEnabled);
|
||||
}
|
||||
|
||||
void TestSettingsWidget::setSettings(const TestSettings &settings)
|
||||
{
|
||||
m_ui.timeoutSpin->setValue(settings.timeout / 1000); // we store milliseconds
|
||||
m_ui.omitInternalMsgCB->setChecked(settings.omitInternalMssg);
|
||||
m_ui.omitRunConfigWarnCB->setChecked(settings.omitRunConfigWarn);
|
||||
m_ui.limitResultOutputCB->setChecked(settings.limitResultOutput);
|
||||
m_ui.limitResultDescriptionCb->setChecked(settings.limitResultDescription);
|
||||
m_ui.limitResultDescriptionSpinBox->setEnabled(settings.limitResultDescription);
|
||||
m_ui.limitResultDescriptionSpinBox->setValue(settings.resultDescriptionMaxSize);
|
||||
m_ui.autoScrollCB->setChecked(settings.autoScroll);
|
||||
m_ui.processArgsCB->setChecked(settings.processArgs);
|
||||
m_ui.displayAppCB->setChecked(settings.displayApplication);
|
||||
m_ui.openResultsOnStartCB->setChecked(settings.popupOnStart);
|
||||
m_ui.openResultsOnFinishCB->setChecked(settings.popupOnFinish);
|
||||
m_ui.openResultsOnFailCB->setChecked(settings.popupOnFail);
|
||||
m_ui.runAfterBuildCB->setCurrentIndex(int(settings.runAfterBuild));
|
||||
m_timeoutSpin->setValue(settings.timeout / 1000); // we store milliseconds
|
||||
m_omitInternalMsgCB->setChecked(settings.omitInternalMssg);
|
||||
m_omitRunConfigWarnCB->setChecked(settings.omitRunConfigWarn);
|
||||
m_limitResultOutputCB->setChecked(settings.limitResultOutput);
|
||||
m_limitResultDescriptionCb->setChecked(settings.limitResultDescription);
|
||||
m_limitResultDescriptionSpinBox->setEnabled(settings.limitResultDescription);
|
||||
m_limitResultDescriptionSpinBox->setValue(settings.resultDescriptionMaxSize);
|
||||
m_autoScrollCB->setChecked(settings.autoScroll);
|
||||
m_processArgsCB->setChecked(settings.processArgs);
|
||||
m_displayAppCB->setChecked(settings.displayApplication);
|
||||
m_openResultsOnStartCB->setChecked(settings.popupOnStart);
|
||||
m_openResultsOnFinishCB->setChecked(settings.popupOnFinish);
|
||||
m_openResultsOnFailCB->setChecked(settings.popupOnFail);
|
||||
m_runAfterBuildCB->setCurrentIndex(int(settings.runAfterBuild));
|
||||
populateFrameworksListWidget(settings.frameworks, settings.tools);
|
||||
}
|
||||
|
||||
TestSettings TestSettingsWidget::settings() const
|
||||
{
|
||||
TestSettings result;
|
||||
result.timeout = m_ui.timeoutSpin->value() * 1000; // we display seconds
|
||||
result.omitInternalMssg = m_ui.omitInternalMsgCB->isChecked();
|
||||
result.omitRunConfigWarn = m_ui.omitRunConfigWarnCB->isChecked();
|
||||
result.limitResultOutput = m_ui.limitResultOutputCB->isChecked();
|
||||
result.limitResultDescription = m_ui.limitResultDescriptionCb->isChecked();
|
||||
result.resultDescriptionMaxSize = m_ui.limitResultDescriptionSpinBox->value();
|
||||
result.autoScroll = m_ui.autoScrollCB->isChecked();
|
||||
result.processArgs = m_ui.processArgsCB->isChecked();
|
||||
result.displayApplication = m_ui.displayAppCB->isChecked();
|
||||
result.popupOnStart = m_ui.openResultsOnStartCB->isChecked();
|
||||
result.popupOnFinish = m_ui.openResultsOnFinishCB->isChecked();
|
||||
result.popupOnFail = m_ui.openResultsOnFailCB->isChecked();
|
||||
result.runAfterBuild = RunAfterBuildMode(m_ui.runAfterBuildCB->currentIndex());
|
||||
result.timeout = m_timeoutSpin->value() * 1000; // we display seconds
|
||||
result.omitInternalMssg = m_omitInternalMsgCB->isChecked();
|
||||
result.omitRunConfigWarn = m_omitRunConfigWarnCB->isChecked();
|
||||
result.limitResultOutput = m_limitResultOutputCB->isChecked();
|
||||
result.limitResultDescription = m_limitResultDescriptionCb->isChecked();
|
||||
result.resultDescriptionMaxSize = m_limitResultDescriptionSpinBox->value();
|
||||
result.autoScroll = m_autoScrollCB->isChecked();
|
||||
result.processArgs = m_processArgsCB->isChecked();
|
||||
result.displayApplication = m_displayAppCB->isChecked();
|
||||
result.popupOnStart = m_openResultsOnStartCB->isChecked();
|
||||
result.popupOnFinish = m_openResultsOnFinishCB->isChecked();
|
||||
result.popupOnFail = m_openResultsOnFailCB->isChecked();
|
||||
result.runAfterBuild = RunAfterBuildMode(m_runAfterBuildCB->currentIndex());
|
||||
testSettings(result);
|
||||
testToolsSettings(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
enum TestBaseInfo
|
||||
{
|
||||
BaseId = Qt::UserRole,
|
||||
BaseType
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
void TestSettingsWidget::populateFrameworksListWidget(const QHash<Utils::Id, bool> &frameworks,
|
||||
const QHash<Utils::Id, bool> &testTools)
|
||||
{
|
||||
const TestFrameworks ®istered = TestFrameworkManager::registeredFrameworks();
|
||||
m_ui.frameworkTreeWidget->clear();
|
||||
m_frameworkTreeWidget->clear();
|
||||
for (const ITestFramework *framework : registered) {
|
||||
const Utils::Id id = framework->id();
|
||||
auto item = new QTreeWidgetItem(m_ui.frameworkTreeWidget, {framework->displayName()});
|
||||
auto item = new QTreeWidgetItem(m_frameworkTreeWidget, {framework->displayName()});
|
||||
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable);
|
||||
item->setCheckState(0, frameworks.value(id) ? Qt::Checked : Qt::Unchecked);
|
||||
item->setData(0, BaseId, id.toSetting());
|
||||
@@ -132,7 +297,7 @@ void TestSettingsWidget::populateFrameworksListWidget(const QHash<Utils::Id, boo
|
||||
const TestTools ®isteredTools = TestFrameworkManager::registeredTestTools();
|
||||
for (const ITestTool *testTool : registeredTools) {
|
||||
const Utils::Id id = testTool->id();
|
||||
auto item = new QTreeWidgetItem(m_ui.frameworkTreeWidget, {testTool->displayName()});
|
||||
auto item = new QTreeWidgetItem(m_frameworkTreeWidget, {testTool->displayName()});
|
||||
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable);
|
||||
item->setCheckState(0, testTools.value(id) ? Qt::Checked : Qt::Unchecked);
|
||||
item->setData(0, BaseId, id.toSetting());
|
||||
@@ -142,7 +307,7 @@ void TestSettingsWidget::populateFrameworksListWidget(const QHash<Utils::Id, boo
|
||||
|
||||
void TestSettingsWidget::testSettings(TestSettings &settings) const
|
||||
{
|
||||
const QAbstractItemModel *model = m_ui.frameworkTreeWidget->model();
|
||||
const QAbstractItemModel *model = m_frameworkTreeWidget->model();
|
||||
QTC_ASSERT(model, return);
|
||||
const int itemCount = TestFrameworkManager::registeredFrameworks().size();
|
||||
QTC_ASSERT(itemCount <= model->rowCount(), return);
|
||||
@@ -157,7 +322,7 @@ void TestSettingsWidget::testSettings(TestSettings &settings) const
|
||||
|
||||
void TestSettingsWidget::testToolsSettings(TestSettings &settings) const
|
||||
{
|
||||
const QAbstractItemModel *model = m_ui.frameworkTreeWidget->model();
|
||||
const QAbstractItemModel *model = m_frameworkTreeWidget->model();
|
||||
QTC_ASSERT(model, return);
|
||||
// frameworks are listed before tools
|
||||
int row = TestFrameworkManager::registeredFrameworks().size();
|
||||
@@ -174,7 +339,7 @@ void TestSettingsWidget::onFrameworkItemChanged()
|
||||
{
|
||||
bool atLeastOneEnabled = false;
|
||||
int mixed = ITestBase::None;
|
||||
if (QAbstractItemModel *model = m_ui.frameworkTreeWidget->model()) {
|
||||
if (QAbstractItemModel *model = m_frameworkTreeWidget->model()) {
|
||||
for (int row = 0, count = model->rowCount(); row < count; ++row) {
|
||||
const QModelIndex idx = model->index(row, 0);
|
||||
if (idx.data(Qt::CheckStateRole) == Qt::Checked) {
|
||||
@@ -186,17 +351,17 @@ void TestSettingsWidget::onFrameworkItemChanged()
|
||||
|
||||
if (!atLeastOneEnabled || (mixed == (ITestBase::Framework | ITestBase::Tool))) {
|
||||
if (!atLeastOneEnabled) {
|
||||
m_ui.frameworksWarn->setText(tr("No active test frameworks or tools."));
|
||||
m_ui.frameworksWarn->setToolTip(tr("You will not be able to use the AutoTest plugin "
|
||||
m_frameworksWarn->setText(tr("No active test frameworks or tools."));
|
||||
m_frameworksWarn->setToolTip(tr("You will not be able to use the AutoTest plugin "
|
||||
"without having at least one active test framework."));
|
||||
} else {
|
||||
m_ui.frameworksWarn->setText(tr("Mixing test frameworks and test tools."));
|
||||
m_ui.frameworksWarn->setToolTip(tr("Mixing test frameworks and test tools can lead "
|
||||
m_frameworksWarn->setText(tr("Mixing test frameworks and test tools."));
|
||||
m_frameworksWarn->setToolTip(tr("Mixing test frameworks and test tools can lead "
|
||||
"to duplicating run information when using "
|
||||
"\"Run All Tests\", for example."));
|
||||
}
|
||||
}
|
||||
m_ui.frameworksWarn->setVisible(!atLeastOneEnabled
|
||||
m_frameworksWarn->setVisible(!atLeastOneEnabled
|
||||
|| (mixed == (ITestBase::Framework | ITestBase::Tool)));
|
||||
}
|
||||
|
||||
|
@@ -25,8 +25,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ui_testsettingspage.h"
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
|
||||
#include <QPointer>
|
||||
@@ -35,25 +33,7 @@ namespace Autotest {
|
||||
namespace Internal {
|
||||
|
||||
struct TestSettings;
|
||||
|
||||
class TestSettingsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TestSettingsWidget(QWidget *parent = nullptr);
|
||||
|
||||
void setSettings(const TestSettings &settings);
|
||||
TestSettings settings() const;
|
||||
|
||||
private:
|
||||
void populateFrameworksListWidget(const QHash<Utils::Id, bool> &frameworks,
|
||||
const QHash<Utils::Id, bool> &testTools);
|
||||
void testSettings(TestSettings &settings) const;
|
||||
void testToolsSettings(TestSettings &settings) const;
|
||||
void onFrameworkItemChanged();
|
||||
Ui::TestSettingsPage m_ui;
|
||||
|
||||
};
|
||||
class TestSettingsWidget;
|
||||
|
||||
class TestSettingsPage : public Core::IOptionsPage
|
||||
{
|
||||
|
@@ -1,435 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Autotest::Internal::TestSettingsPage</class>
|
||||
<widget class="QWidget" name="Autotest::Internal::TestSettingsPage">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>586</width>
|
||||
<height>469</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>General</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="omitInternalMsgCB">
|
||||
<property name="toolTip">
|
||||
<string>Hides internal messages by default. You can still enable them by using the test results filter.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Omit internal messages</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="omitRunConfigWarnCB">
|
||||
<property name="toolTip">
|
||||
<string>Hides warnings related to a deduced run configuration.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Omit run configuration warnings</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="limitResultOutputCB">
|
||||
<property name="toolTip">
|
||||
<string>Limits result output to 100000 characters.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Limit result output</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="limitResultDescriptionCb">
|
||||
<property name="toolTip">
|
||||
<string>Limit number of lines shown in test result tooltip and description.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Limit result description:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="limitResultDescriptionSpinBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>1000000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>10</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="openResultsOnStartCB">
|
||||
<property name="toolTip">
|
||||
<string>Displays test results automatically when tests are started.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open results when tests start</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="openResultsOnFinishCB">
|
||||
<property name="toolTip">
|
||||
<string>Displays test results automatically when tests are finished.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open results when tests finish</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>10</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="openResultsOnFailCB">
|
||||
<property name="toolTip">
|
||||
<string>Displays test results only if the test run contains failed, fatal or unexpectedly passed tests.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Only for unsuccessful test runs</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="autoScrollCB">
|
||||
<property name="toolTip">
|
||||
<string>Automatically scrolls down when new items are added and scrollbar is at bottom.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Automatically scroll results</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="displayAppCB">
|
||||
<property name="text">
|
||||
<string>Group results by application</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="processArgsCB">
|
||||
<property name="toolTip">
|
||||
<string>Allow passing arguments specified on the respective run configuration.
|
||||
Warning: this is an experimental feature and might lead to failing to execute the test executable.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Process arguments</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Automatically run</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="runAfterBuildCB">
|
||||
<property name="toolTip">
|
||||
<string>Runs chosen tests automatically if a build succeeded.</string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>All</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Selected</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,0">
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetDefaultConstraint</enum>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Timeout used when executing each test case.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Timeout:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="timeoutSpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Timeout used when executing test cases. This will apply for each test case on its own, not the whole project.</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> s</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>36000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>60</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<widget class="QPushButton" name="resetChoicesButton">
|
||||
<property name="toolTip">
|
||||
<string>Clear all cached choices of run configurations for tests where the executable could not be deduced.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reset Cached Choices</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_4">
|
||||
<property name="title">
|
||||
<string>Active Test Frameworks</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="frameworkTreeWidget">
|
||||
<property name="toolTip">
|
||||
<string>Selects the test frameworks to be handled by the AutoTest plugin.</string>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="headerHidden">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="columnCount">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<attribute name="headerDefaultSectionSize">
|
||||
<number>150</number>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Framework</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Selects the test frameworks to be handled by the AutoTest plugin.</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Group</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Enables grouping of test cases.</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Utils::InfoLabel" name="frameworksWarn"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Utils::InfoLabel</class>
|
||||
<extends>QLabel</extends>
|
||||
<header location="global">utils/infolabel.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
Reference in New Issue
Block a user