src/eric7/Testing/TestingWidget.ui

Mon, 07 Nov 2022 17:19:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 07 Nov 2022 17:19:58 +0100
branch
eric7
changeset 9482
a2bc06a54d9d
parent 9413
80c06d472826
child 9442
906485dcd210
child 10404
f7d9c31f0c38
permissions
-rw-r--r--

Corrected/acknowledged some bad import style and removed some obsolete code.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>TestingWidget</class>
 <widget class="QWidget" name="TestingWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>850</width>
    <height>700</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Testing</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_3">
   <item>
    <widget class="QTabWidget" name="tabWidget">
     <property name="currentIndex">
      <number>0</number>
     </property>
     <widget class="QWidget" name="parametersTab">
      <attribute name="title">
       <string>Parameters</string>
      </attribute>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <layout class="QGridLayout" name="gridLayout_3">
         <item row="0" column="0">
          <widget class="QLabel" name="venvLabel">
           <property name="text">
            <string>Virtual Environment:</string>
           </property>
           <property name="buddy">
            <cstring>venvComboBox</cstring>
           </property>
          </widget>
         </item>
         <item row="0" column="1" colspan="2">
          <widget class="QComboBox" name="venvComboBox">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="toolTip">
            <string>Select the virtual environment to be used</string>
           </property>
           <property name="whatsThis">
            <string>&lt;b&gt;Virtual Environment&lt;/b&gt;\n&lt;p&gt;Enter the virtual environment to be used. Leave it empty to use the default environment, i.e. the one configured globally or per project.&lt;/p&gt;</string>
           </property>
          </widget>
         </item>
         <item row="1" column="0">
          <widget class="QLabel" name="label">
           <property name="text">
            <string>Test Framework:</string>
           </property>
          </widget>
         </item>
         <item row="1" column="1">
          <widget class="QComboBox" name="frameworkComboBox">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="toolTip">
            <string>Select the test framwork to be used</string>
           </property>
          </widget>
         </item>
         <item row="1" column="2">
          <widget class="QToolButton" name="versionsButton">
           <property name="toolTip">
            <string>Press to show the test framework versions</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
       <item>
        <widget class="QGroupBox" name="groupBox">
         <property name="title">
          <string>Test Parameters</string>
         </property>
         <layout class="QGridLayout" name="gridLayout">
          <item row="0" column="0" colspan="3">
           <layout class="QHBoxLayout" name="horizontalLayout_4">
            <item>
             <widget class="QCheckBox" name="discoverCheckBox">
              <property name="sizePolicy">
               <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
              <property name="toolTip">
               <string>Select to discover tests automatically</string>
              </property>
              <property name="text">
               <string>Discover tests (test modules must be importable)</string>
              </property>
              <property name="checked">
               <bool>true</bool>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QToolButton" name="clearHistoriesButton">
              <property name="toolTip">
               <string>Press to clear the various histories</string>
              </property>
             </widget>
            </item>
           </layout>
          </item>
          <item row="1" column="0">
           <widget class="QLabel" name="label_3">
            <property name="text">
             <string>Discovery Start:</string>
            </property>
            <property name="buddy">
             <cstring>discoveryPicker</cstring>
            </property>
           </widget>
          </item>
          <item row="1" column="1" colspan="2">
           <widget class="EricComboPathPicker" name="discoveryPicker" native="true">
            <property name="sizePolicy">
             <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
              <horstretch>0</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
            <property name="focusPolicy">
             <enum>Qt::WheelFocus</enum>
            </property>
            <property name="toolTip">
             <string>Enter name of the directory at which to start the test file discovery</string>
            </property>
            <property name="whatsThis">
             <string>&lt;b&gt;Discovery Start&lt;/b&gt;
&lt;p&gt;Enter name of the directory at which to start the test file discovery.
Note that all test modules must be importable from this directory.&lt;/p&gt;</string>
            </property>
           </widget>
          </item>
          <item row="2" column="0">
           <widget class="QLabel" name="testsuiteLabel">
            <property name="text">
             <string>Test Filename:</string>
            </property>
            <property name="buddy">
             <cstring>testsuitePicker</cstring>
            </property>
           </widget>
          </item>
          <item row="2" column="1" colspan="2">
           <widget class="EricComboPathPicker" name="testsuitePicker" native="true">
            <property name="enabled">
             <bool>false</bool>
            </property>
            <property name="sizePolicy">
             <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
              <horstretch>0</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
            <property name="focusPolicy">
             <enum>Qt::WheelFocus</enum>
            </property>
            <property name="toolTip">
             <string>Enter name of file defining the testsuite</string>
            </property>
            <property name="whatsThis">
             <string>&lt;b&gt;Testsuite&lt;/b&gt;&lt;p&gt;Enter the name of the file defining the testsuite. It should contain a method with a name given below. If no name is given, the 'suite()' method will be tried. If no such method can be found, the module will be inspected for proper test cases.&lt;/p&gt;</string>
            </property>
           </widget>
          </item>
          <item row="3" column="0">
           <widget class="QLabel" name="label_2">
            <property name="text">
             <string>Test Name:</string>
            </property>
            <property name="buddy">
             <cstring>testComboBox</cstring>
            </property>
           </widget>
          </item>
          <item row="3" column="1" colspan="2">
           <widget class="QComboBox" name="testComboBox">
            <property name="enabled">
             <bool>false</bool>
            </property>
            <property name="toolTip">
             <string>Enter the test name. Leave empty to use the default name &quot;suite&quot;.</string>
            </property>
            <property name="whatsThis">
             <string>&lt;b&gt;Testname&lt;/b&gt;&lt;p&gt;Enter the name of the test to be performed. This name must follow the rules given by selecte test framework. If this field is empty, the default name of &quot;suite&quot; will be used.&lt;/p&gt;</string>
            </property>
            <property name="editable">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item row="4" column="0">
           <widget class="QLabel" name="label_5">
            <property name="text">
             <string>Test Name Pattern:</string>
            </property>
            <property name="buddy">
             <cstring>testComboBox</cstring>
            </property>
           </widget>
          </item>
          <item row="4" column="1" colspan="2">
           <widget class="QLineEdit" name="testNamePatternEdit">
            <property name="toolTip">
             <string>Enter test name patterns (separated by a blank) or a test name expression</string>
            </property>
           </widget>
          </item>
          <item row="5" column="0">
           <widget class="QLabel" name="label_4">
            <property name="text">
             <string>Marker Expression:</string>
            </property>
           </widget>
          </item>
          <item row="5" column="1">
           <widget class="QLineEdit" name="markerExpressionEdit">
            <property name="toolTip">
             <string>Enter a marker expression or name to filter tests</string>
            </property>
            <property name="clearButtonEnabled">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item row="5" column="2">
           <widget class="QToolButton" name="showMarkersButton">
            <property name="toolTip">
             <string>Press to show a window with the list of defined markers</string>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <widget class="QGroupBox" name="optionsGroup">
         <property name="title">
          <string>Run Parameters</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout_2">
          <item>
           <layout class="QGridLayout" name="gridLayout_2">
            <item row="0" column="0">
             <widget class="QCheckBox" name="coverageCheckBox">
              <property name="toolTip">
               <string>Select whether coverage data should be collected</string>
              </property>
              <property name="text">
               <string>Collect coverage data</string>
              </property>
             </widget>
            </item>
            <item row="0" column="1">
             <widget class="QCheckBox" name="coverageEraseCheckBox">
              <property name="enabled">
               <bool>false</bool>
              </property>
              <property name="toolTip">
               <string>Select whether old coverage data should be erased</string>
              </property>
              <property name="text">
               <string>Erase coverage data</string>
              </property>
             </widget>
            </item>
            <item row="1" column="0">
             <widget class="QCheckBox" name="failfastCheckBox">
              <property name="toolTip">
               <string>Select to stop the test run on the first error or failure</string>
              </property>
              <property name="text">
               <string>Stop on First Error or Failure</string>
              </property>
             </widget>
            </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>239</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
     <widget class="QWidget" name="resultsTab">
      <attribute name="title">
       <string>Results</string>
      </attribute>
      <layout class="QVBoxLayout" name="verticalLayout_6">
       <item>
        <widget class="QGroupBox" name="progressGroupBox">
         <property name="title">
          <string>Progress</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout_4">
          <item>
           <widget class="QProgressBar" name="progressProgressBar">
            <property name="value">
             <number>0</number>
            </property>
            <property name="orientation">
             <enum>Qt::Horizontal</enum>
            </property>
            <property name="format">
             <string>%v/%m Tests</string>
            </property>
           </widget>
          </item>
          <item>
           <layout class="QHBoxLayout" name="horizontalLayout_2">
            <item>
             <widget class="QLabel" name="progressCounterRunLabel">
              <property name="text">
               <string>Run:</string>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QLabel" name="progressCounterRunCount">
              <property name="toolTip">
               <string>Number of tests run</string>
              </property>
              <property name="text">
               <string notr="true">0</string>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QLabel" name="progressCounterRemLabel">
              <property name="text">
               <string>Remaining:</string>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QLabel" name="progressCounterRemCount">
              <property name="toolTip">
               <string>Number of tests to be run</string>
              </property>
              <property name="text">
               <string notr="true">0</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>
        <widget class="QGroupBox" name="resultsGroupBox">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="title">
          <string>Results</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout_5">
          <item>
           <widget class="QLabel" name="statusLabel">
            <property name="text">
             <string/>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
   <item>
    <layout class="QHBoxLayout" name="_4">
     <item>
      <widget class="QLabel" name="sbLabel">
       <property name="sizePolicy">
        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
         <horstretch>0</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
       <property name="text">
        <string>Idle</string>
       </property>
      </widget>
     </item>
     <item>
      <spacer>
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeType">
        <enum>QSizePolicy::Expanding</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>20</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
    </layout>
   </item>
   <item>
    <widget class="QDialogButtonBox" name="buttonBox">
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
     <property name="standardButtons">
      <set>QDialogButtonBox::Close</set>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>EricComboPathPicker</class>
   <extends>QWidget</extends>
   <header>eric7/EricWidgets/EricPathPicker.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <tabstops>
  <tabstop>tabWidget</tabstop>
  <tabstop>venvComboBox</tabstop>
  <tabstop>frameworkComboBox</tabstop>
  <tabstop>versionsButton</tabstop>
  <tabstop>discoverCheckBox</tabstop>
  <tabstop>clearHistoriesButton</tabstop>
  <tabstop>discoveryPicker</tabstop>
  <tabstop>testsuitePicker</tabstop>
  <tabstop>testComboBox</tabstop>
  <tabstop>testNamePatternEdit</tabstop>
  <tabstop>markerExpressionEdit</tabstop>
  <tabstop>showMarkersButton</tabstop>
  <tabstop>coverageCheckBox</tabstop>
  <tabstop>coverageEraseCheckBox</tabstop>
  <tabstop>failfastCheckBox</tabstop>
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>TestingWidget</receiver>
   <slot>close()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>40</x>
     <y>690</y>
    </hint>
    <hint type="destinationlabel">
     <x>1</x>
     <y>510</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>TestingWidget</receiver>
   <slot>close()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>89</x>
     <y>690</y>
    </hint>
    <hint type="destinationlabel">
     <x>3</x>
     <y>580</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>discoverCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>discoveryPicker</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>168</x>
     <y>164</y>
    </hint>
    <hint type="destinationlabel">
     <x>170</x>
     <y>191</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>discoverCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>testsuitePicker</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>222</x>
     <y>162</y>
    </hint>
    <hint type="destinationlabel">
     <x>222</x>
     <y>209</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>discoverCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>testComboBox</receiver>
   <slot>setDisabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>301</x>
     <y>163</y>
    </hint>
    <hint type="destinationlabel">
     <x>300</x>
     <y>238</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>coverageCheckBox</sender>
   <signal>toggled(bool)</signal>
   <receiver>coverageEraseCheckBox</receiver>
   <slot>setEnabled(bool)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>160</x>
     <y>320</y>
    </hint>
    <hint type="destinationlabel">
     <x>788</x>
     <y>328</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>

eric ide

mercurial