Documentation/Source/eric5.PyUnit.UnittestDialog.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.PyUnit.UnittestDialog</h1> 23 <h1>eric5.PyUnit.UnittestDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#73; &#116;&#111; &#116;&#104;&#101; &#112;y&#117;&#110;&#105;&#116; &#112;&#97;&#99;&#107;&#97;&#103;&#101;. 25 Module implementing the UI to the pyunit package.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#QtTestResult">QtTestResult</a></td> 34 <td><a href="#QtTestResult">QtTestResult</a></td>
35 <td>&#65; &#84;&#101;&#115;&#116;&#82;&#101;&#115;&#117;&#108;&#116; &#100;&#101;&#114;&#105;v&#97;&#116;&#105;v&#101; &#116;&#111; w&#111;&#114;&#107; w&#105;&#116;&#104; &#97; &#103;&#114;&#97;&#112;&#104;&#105;&#99;&#97;&#108; &#71;&#85;&#73;.</td> 35 <td>A TestResult derivative to work with a graphical GUI.</td>
36 </tr><tr> 36 </tr><tr>
37 <td><a href="#UnittestDialog">UnittestDialog</a></td> 37 <td><a href="#UnittestDialog">UnittestDialog</a></td>
38 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#73; &#116;&#111; &#116;&#104;&#101; &#112;y&#117;&#110;&#105;&#116; &#112;&#97;&#99;&#107;&#97;&#103;&#101;.</td> 38 <td>Class implementing the UI to the pyunit package.</td>
39 </tr><tr> 39 </tr><tr>
40 <td><a href="#UnittestWindow">UnittestWindow</a></td> 40 <td><a href="#UnittestWindow">UnittestWindow</a></td>
41 <td>&#77;&#97;&#105;&#110; w&#105;&#110;&#100;&#111;w &#99;&#108;&#97;&#115;&#115; &#102;&#111;&#114; &#116;&#104;&#101; &#115;&#116;&#97;&#110;&#100;&#97;&#108;&#111;&#110;&#101; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 41 <td>Main window class for the standalone dialog.</td>
42 </tr> 42 </tr>
43 </table> 43 </table>
44 <h3>Functions</h3> 44 <h3>Functions</h3>
45 <table> 45 <table>
46 <tr><td>None</td></tr> 46 <tr><td>None</td></tr>
47 </table> 47 </table>
48 <hr /><hr /> 48 <hr /><hr />
49 <a NAME="QtTestResult" ID="QtTestResult"></a> 49 <a NAME="QtTestResult" ID="QtTestResult"></a>
50 <h2>QtTestResult</h2> 50 <h2>QtTestResult</h2>
51 <p> 51 <p>
52 &#65; &#84;&#101;&#115;&#116;&#82;&#101;&#115;&#117;&#108;&#116; &#100;&#101;&#114;&#105;v&#97;&#116;&#105;v&#101; &#116;&#111; w&#111;&#114;&#107; w&#105;&#116;&#104; &#97; &#103;&#114;&#97;&#112;&#104;&#105;&#99;&#97;&#108; &#71;&#85;&#73;. 52 A TestResult derivative to work with a graphical GUI.
53 </p><p> 53 </p><p>
54 &#70;&#111;&#114; &#109;&#111;&#114;&#101; &#100;&#101;&#116;&#97;&#105;&#108;&#115; &#115;&#101;&#101; &#112;y&#117;&#110;&#105;&#116;.&#112;y &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#110;&#100;&#97;&#114;&#100; &#112;y&#116;&#104;&#111;&#110; &#100;&#105;&#115;&#116;&#114;&#105;&#98;&#117;&#116;&#105;&#111;&#110;. 54 For more details see pyunit.py of the standard python distribution.
55 </p> 55 </p>
56 <h3>Derived from</h3> 56 <h3>Derived from</h3>
57 unittest.TestResult 57 unittest.TestResult
58 <h3>Class Attributes</h3> 58 <h3>Class Attributes</h3>
59 <table> 59 <table>
61 </table> 61 </table>
62 <h3>Methods</h3> 62 <h3>Methods</h3>
63 <table> 63 <table>
64 <tr> 64 <tr>
65 <td><a href="#QtTestResult.__init__">QtTestResult</a></td> 65 <td><a href="#QtTestResult.__init__">QtTestResult</a></td>
66 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 66 <td>Constructor</td>
67 </tr><tr> 67 </tr><tr>
68 <td><a href="#QtTestResult.addError">addError</a></td> 68 <td><a href="#QtTestResult.addError">addError</a></td>
69 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#101;&#114;&#114;&#111;&#114;&#101;&#100;.</td> 69 <td>Method called if a test errored.</td>
70 </tr><tr> 70 </tr><tr>
71 <td><a href="#QtTestResult.addFailure">addFailure</a></td> 71 <td><a href="#QtTestResult.addFailure">addFailure</a></td>
72 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#102;&#97;&#105;&#108;&#101;&#100;.</td> 72 <td>Method called if a test failed.</td>
73 </tr><tr> 73 </tr><tr>
74 <td><a href="#QtTestResult.startTest">startTest</a></td> 74 <td><a href="#QtTestResult.startTest">startTest</a></td>
75 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116; &#111;&#102; &#97; &#116;&#101;&#115;&#116;.</td> 75 <td>Method called at the start of a test.</td>
76 </tr><tr> 76 </tr><tr>
77 <td><a href="#QtTestResult.stopTest">stopTest</a></td> 77 <td><a href="#QtTestResult.stopTest">stopTest</a></td>
78 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#101;&#110;&#100; &#111;&#102; &#97; &#116;&#101;&#115;&#116;.</td> 78 <td>Method called at the end of a test.</td>
79 </tr> 79 </tr>
80 </table> 80 </table>
81 <a NAME="QtTestResult.__init__" ID="QtTestResult.__init__"></a> 81 <a NAME="QtTestResult.__init__" ID="QtTestResult.__init__"></a>
82 <h4>QtTestResult (Constructor)</h4> 82 <h4>QtTestResult (Constructor)</h4>
83 <b>QtTestResult</b>(<i>parent</i>) 83 <b>QtTestResult</b>(<i>parent</i>)
84 <p> 84 <p>
85 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 85 Constructor
86 </p><dl> 86 </p><dl>
87 <dt><i>parent</i></dt> 87 <dt><i>parent</i></dt>
88 <dd> 88 <dd>
89 &#84;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116;. 89 The parent widget.
90 </dd> 90 </dd>
91 </dl><a NAME="QtTestResult.addError" ID="QtTestResult.addError"></a> 91 </dl><a NAME="QtTestResult.addError" ID="QtTestResult.addError"></a>
92 <h4>QtTestResult.addError</h4> 92 <h4>QtTestResult.addError</h4>
93 <b>addError</b>(<i>test, err</i>) 93 <b>addError</b>(<i>test, err</i>)
94 <p> 94 <p>
95 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#101;&#114;&#114;&#111;&#114;&#101;&#100;. 95 Method called if a test errored.
96 </p><dl> 96 </p><dl>
97 <dt><i>test</i></dt> 97 <dt><i>test</i></dt>
98 <dd> 98 <dd>
99 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 99 Reference to the test object
100 </dd><dt><i>err</i></dt> 100 </dd><dt><i>err</i></dt>
101 <dd> 101 <dd>
102 &#84;&#104;&#101; &#101;&#114;&#114;&#111;&#114; &#116;&#114;&#97;&#99;&#101;&#98;&#97;&#99;&#107; 102 The error traceback
103 </dd> 103 </dd>
104 </dl><a NAME="QtTestResult.addFailure" ID="QtTestResult.addFailure"></a> 104 </dl><a NAME="QtTestResult.addFailure" ID="QtTestResult.addFailure"></a>
105 <h4>QtTestResult.addFailure</h4> 105 <h4>QtTestResult.addFailure</h4>
106 <b>addFailure</b>(<i>test, err</i>) 106 <b>addFailure</b>(<i>test, err</i>)
107 <p> 107 <p>
108 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#102;&#97;&#105;&#108;&#101;&#100;. 108 Method called if a test failed.
109 </p><dl> 109 </p><dl>
110 <dt><i>test</i></dt> 110 <dt><i>test</i></dt>
111 <dd> 111 <dd>
112 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 112 Reference to the test object
113 </dd><dt><i>err</i></dt> 113 </dd><dt><i>err</i></dt>
114 <dd> 114 <dd>
115 &#84;&#104;&#101; &#101;&#114;&#114;&#111;&#114; &#116;&#114;&#97;&#99;&#101;&#98;&#97;&#99;&#107; 115 The error traceback
116 </dd> 116 </dd>
117 </dl><a NAME="QtTestResult.startTest" ID="QtTestResult.startTest"></a> 117 </dl><a NAME="QtTestResult.startTest" ID="QtTestResult.startTest"></a>
118 <h4>QtTestResult.startTest</h4> 118 <h4>QtTestResult.startTest</h4>
119 <b>startTest</b>(<i>test</i>) 119 <b>startTest</b>(<i>test</i>)
120 <p> 120 <p>
121 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116; &#111;&#102; &#97; &#116;&#101;&#115;&#116;. 121 Method called at the start of a test.
122 </p><dl> 122 </p><dl>
123 <dt><i>test</i></dt> 123 <dt><i>test</i></dt>
124 <dd> 124 <dd>
125 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 125 Reference to the test object
126 </dd> 126 </dd>
127 </dl><a NAME="QtTestResult.stopTest" ID="QtTestResult.stopTest"></a> 127 </dl><a NAME="QtTestResult.stopTest" ID="QtTestResult.stopTest"></a>
128 <h4>QtTestResult.stopTest</h4> 128 <h4>QtTestResult.stopTest</h4>
129 <b>stopTest</b>(<i>test</i>) 129 <b>stopTest</b>(<i>test</i>)
130 <p> 130 <p>
131 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#97;&#116; &#116;&#104;&#101; &#101;&#110;&#100; &#111;&#102; &#97; &#116;&#101;&#115;&#116;. 131 Method called at the end of a test.
132 </p><dl> 132 </p><dl>
133 <dt><i>test</i></dt> 133 <dt><i>test</i></dt>
134 <dd> 134 <dd>
135 &#82;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#111;&#98;&#106;&#101;&#99;&#116; 135 Reference to the test object
136 </dd> 136 </dd>
137 </dl> 137 </dl>
138 <div align="right"><a href="#top">Up</a></div> 138 <div align="right"><a href="#top">Up</a></div>
139 <hr /><hr /> 139 <hr /><hr />
140 <a NAME="UnittestDialog" ID="UnittestDialog"></a> 140 <a NAME="UnittestDialog" ID="UnittestDialog"></a>
141 <h2>UnittestDialog</h2> 141 <h2>UnittestDialog</h2>
142 <p> 142 <p>
143 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#73; &#116;&#111; &#116;&#104;&#101; &#112;y&#117;&#110;&#105;&#116; &#112;&#97;&#99;&#107;&#97;&#103;&#101;. 143 Class implementing the UI to the pyunit package.
144 </p><h4>Signals</h4> 144 </p><h4>Signals</h4>
145 <dl> 145 <dl>
146 <dt>unittestFile(string,int,int)</dt> 146 <dt>unittestFile(string,int,int)</dt>
147 <dd> 147 <dd>
148 &#101;&#109;&#105;&#116;&#116;&#101;&#100; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#111;&#102; &#97; &#117;&#110;&#105;&#116;&#116;&#101;&#115;&#116; &#102;&#105;&#108;&#101; 148 emitted to show the source of a unittest file
149 </dd> 149 </dd>
150 </dl> 150 </dl>
151 <h3>Derived from</h3> 151 <h3>Derived from</h3>
152 QWidget, Ui_UnittestDialog 152 QWidget, Ui_UnittestDialog
153 <h3>Class Attributes</h3> 153 <h3>Class Attributes</h3>
156 </table> 156 </table>
157 <h3>Methods</h3> 157 <h3>Methods</h3>
158 <table> 158 <table>
159 <tr> 159 <tr>
160 <td><a href="#UnittestDialog.__init__">UnittestDialog</a></td> 160 <td><a href="#UnittestDialog.__init__">UnittestDialog</a></td>
161 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 161 <td>Constructor</td>
162 </tr><tr> 162 </tr><tr>
163 <td><a href="#UnittestDialog.__UTPrepared">__UTPrepared</a></td> 163 <td><a href="#UnittestDialog.__UTPrepared">__UTPrepared</a></td>
164 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#117;&#116;&#80;&#114;&#101;&#112;&#97;&#114;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108;.</td> 164 <td>Private slot to handle the utPrepared signal.</td>
165 </tr><tr> 165 </tr><tr>
166 <td><a href="#UnittestDialog.__setProgressColor">__setProgressColor</a></td> 166 <td><a href="#UnittestDialog.__setProgressColor">__setProgressColor</a></td>
167 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100;&#101; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#99;&#111;&#108;&#111;&#114; &#111;&#102; &#116;&#104;&#101; &#112;&#114;&#111;&#103;&#114;&#101;&#115;&#115; &#99;&#111;&#108;&#111;&#114; &#108;&#97;&#98;&#101;&#108;.</td> 167 <td>Private methode to set the color of the progress color label.</td>
168 </tr><tr> 168 </tr><tr>
169 <td><a href="#UnittestDialog.__setRunningMode">__setRunningMode</a></td> 169 <td><a href="#UnittestDialog.__setRunningMode">__setRunningMode</a></td>
170 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#71;&#85;&#73; &#105;&#110; &#114;&#117;&#110;&#110;&#105;&#110;&#103; &#109;&#111;&#100;&#101;.</td> 170 <td>Private method to set the GUI in running mode.</td>
171 </tr><tr> 171 </tr><tr>
172 <td><a href="#UnittestDialog.__setStoppedMode">__setStoppedMode</a></td> 172 <td><a href="#UnittestDialog.__setStoppedMode">__setStoppedMode</a></td>
173 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#71;&#85;&#73; &#105;&#110; &#115;&#116;&#111;&#112;&#112;&#101;&#100; &#109;&#111;&#100;&#101;.</td> 173 <td>Private method to set the GUI in stopped mode.</td>
174 </tr><tr> 174 </tr><tr>
175 <td><a href="#UnittestDialog.__showSource">__showSource</a></td> 175 <td><a href="#UnittestDialog.__showSource">__showSource</a></td>
176 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#111;&#102; &#97; &#116;&#114;&#97;&#99;&#101;&#98;&#97;&#99;&#107; &#105;&#110; &#97;&#110; &#101;&#114;&#105;&#99;&#53; &#101;&#100;&#105;&#116;&#111;&#114;.</td> 176 <td>Private slot to show the source of a traceback in an eric5 editor.</td>
177 </tr><tr> 177 </tr><tr>
178 <td><a href="#UnittestDialog.insertProg">insertProg</a></td> 178 <td><a href="#UnittestDialog.insertProg">insertProg</a></td>
179 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#105;&#110;&#115;&#101;&#114;&#116; &#116;&#104;&#101; &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#112;&#114;&#111;&#103; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116;&#115;&#117;&#105;&#116;&#101;&#67;&#111;&#109;&#98;&#111;&#66;&#111;x &#111;&#98;&#106;&#101;&#99;&#116;.</td> 179 <td>Public slot to insert the filename prog into the testsuiteComboBox object.</td>
180 </tr><tr> 180 </tr><tr>
181 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td> 181 <td><a href="#UnittestDialog.insertTestName">insertTestName</a></td>
182 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#105;&#110;&#115;&#101;&#114;&#116; &#97; &#116;&#101;&#115;&#116; &#110;&#97;&#109;&#101; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116;&#67;&#111;&#109;&#98;&#111;&#66;&#111;x &#111;&#98;&#106;&#101;&#99;&#116;.</td> 182 <td>Public slot to insert a test name into the testComboBox object.</td>
183 </tr><tr> 183 </tr><tr>
184 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> 184 <td><a href="#UnittestDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
185 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x &#99;&#108;&#105;&#99;&#107;&#101;&#100;.</td> 185 <td>Private slot called by a button of the button box clicked.</td>
186 </tr><tr> 186 </tr><tr>
187 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td> 187 <td><a href="#UnittestDialog.on_errorsListWidget_currentTextChanged">on_errorsListWidget_currentTextChanged</a></td>
188 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#104;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108;.</td> 188 <td>Private slot to handle the highlighted signal.</td>
189 </tr><tr> 189 </tr><tr>
190 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td> 190 <td><a href="#UnittestDialog.on_errorsListWidget_itemDoubleClicked">on_errorsListWidget_itemDoubleClicked</a></td>
191 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#100;&#111;&#117;&#98;&#108;&#101;&#99;&#108;&#105;&#99;&#107;&#105;&#110;&#103; &#97;&#110; &#101;&#114;&#114;&#111;&#114;&#108;&#105;&#115;&#116; &#101;&#110;&#116;&#114;y.</td> 191 <td>Private slot called by doubleclicking an errorlist entry.</td>
192 </tr><tr> 192 </tr><tr>
193 <td><a href="#UnittestDialog.on_fileDialogButton_clicked">on_fileDialogButton_clicked</a></td> 193 <td><a href="#UnittestDialog.on_fileDialogButton_clicked">on_fileDialogButton_clicked</a></td>
194 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#102;&#105;&#108;&#101; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 194 <td>Private slot to open a file dialog.</td>
195 </tr><tr> 195 </tr><tr>
196 <td><a href="#UnittestDialog.on_startButton_clicked">on_startButton_clicked</a></td> 196 <td><a href="#UnittestDialog.on_startButton_clicked">on_startButton_clicked</a></td>
197 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#116;&#97;&#114;&#116; &#116;&#104;&#101; &#116;&#101;&#115;&#116;.</td> 197 <td>Public slot to start the test.</td>
198 </tr><tr> 198 </tr><tr>
199 <td><a href="#UnittestDialog.on_stopButton_clicked">on_stopButton_clicked</a></td> 199 <td><a href="#UnittestDialog.on_stopButton_clicked">on_stopButton_clicked</a></td>
200 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#116;&#111;&#112; &#116;&#104;&#101; &#116;&#101;&#115;&#116;.</td> 200 <td>Private slot to stop the test.</td>
201 </tr><tr> 201 </tr><tr>
202 <td><a href="#UnittestDialog.on_testsuiteComboBox_editTextChanged">on_testsuiteComboBox_editTextChanged</a></td> 202 <td><a href="#UnittestDialog.on_testsuiteComboBox_editTextChanged">on_testsuiteComboBox_editTextChanged</a></td>
203 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#102;&#105;&#108;&#101; &#110;&#97;&#109;&#101;.</td> 203 <td>Private slot to handle changes of the test file name.</td>
204 </tr><tr> 204 </tr><tr>
205 <td><a href="#UnittestDialog.testErrored">testErrored</a></td> 205 <td><a href="#UnittestDialog.testErrored">testErrored</a></td>
206 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#101;&#114;&#114;&#111;&#114;&#115;.</td> 206 <td>Public method called if a test errors.</td>
207 </tr><tr> 207 </tr><tr>
208 <td><a href="#UnittestDialog.testFailed">testFailed</a></td> 208 <td><a href="#UnittestDialog.testFailed">testFailed</a></td>
209 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#102;&#97;&#105;&#108;&#115;.</td> 209 <td>Public method called if a test fails.</td>
210 </tr><tr> 210 </tr><tr>
211 <td><a href="#UnittestDialog.testFinished">testFinished</a></td> 211 <td><a href="#UnittestDialog.testFinished">testFinished</a></td>
212 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#104;&#97;&#115; &#102;&#105;&#110;&#105;&#115;&#104;&#101;&#100;.</td> 212 <td>Public method called if a test has finished.</td>
213 </tr><tr> 213 </tr><tr>
214 <td><a href="#UnittestDialog.testStarted">testStarted</a></td> 214 <td><a href="#UnittestDialog.testStarted">testStarted</a></td>
215 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#105;&#115; &#97;&#98;&#111;&#117;&#116; &#116;&#111; &#98;&#101; &#114;&#117;&#110;.</td> 215 <td>Public method called if a test is about to be run.</td>
216 </tr> 216 </tr>
217 </table> 217 </table>
218 <a NAME="UnittestDialog.__init__" ID="UnittestDialog.__init__"></a> 218 <a NAME="UnittestDialog.__init__" ID="UnittestDialog.__init__"></a>
219 <h4>UnittestDialog (Constructor)</h4> 219 <h4>UnittestDialog (Constructor)</h4>
220 <b>UnittestDialog</b>(<i>prog = None, dbs = None, ui = None, parent = None, name = None</i>) 220 <b>UnittestDialog</b>(<i>prog = None, dbs = None, ui = None, parent = None, name = None</i>)
221 <p> 221 <p>
222 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 222 Constructor
223 </p><dl> 223 </p><dl>
224 <dt><i>prog</i></dt> 224 <dt><i>prog</i></dt>
225 <dd> 225 <dd>
226 &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#114;&#111;&#103;&#114;&#97;&#109; &#116;&#111; &#111;&#112;&#101;&#110; 226 filename of the program to open
227 </dd><dt><i>dbs</i></dt> 227 </dd><dt><i>dbs</i></dt>
228 <dd> 228 <dd>
229 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#100;&#101;&#98;&#117;&#103; &#115;&#101;&#114;v&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116;. &#73;&#116; &#105;&#115; &#97;&#110; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#111;&#110; 229 reference to the debug server object. It is an indication
230 w&#104;&#101;&#116;&#104;&#101;&#114; w&#101; w&#101;&#114;&#101; &#99;&#97;&#108;&#108;&#101;&#100; &#102;&#114;&#111;&#109; w&#105;&#116;&#104;&#105;&#110; &#116;&#104;&#101; &#101;&#114;&#105;&#99;&#53; &#73;&#68;&#69; 230 whether we were called from within the eric5 IDE
231 </dd><dt><i>ui</i></dt> 231 </dd><dt><i>ui</i></dt>
232 <dd> 232 <dd>
233 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#85;&#73; &#111;&#98;&#106;&#101;&#99;&#116; 233 reference to the UI object
234 </dd><dt><i>parent</i></dt> 234 </dd><dt><i>parent</i></dt>
235 <dd> 235 <dd>
236 &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 236 parent widget of this dialog (QWidget)
237 </dd><dt><i>name</i></dt> 237 </dd><dt><i>name</i></dt>
238 <dd> 238 <dd>
239 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;) 239 name of this dialog (string)
240 </dd> 240 </dd>
241 </dl><a NAME="UnittestDialog.__UTPrepared" ID="UnittestDialog.__UTPrepared"></a> 241 </dl><a NAME="UnittestDialog.__UTPrepared" ID="UnittestDialog.__UTPrepared"></a>
242 <h4>UnittestDialog.__UTPrepared</h4> 242 <h4>UnittestDialog.__UTPrepared</h4>
243 <b>__UTPrepared</b>(<i>nrTests, exc_type, exc_value</i>) 243 <b>__UTPrepared</b>(<i>nrTests, exc_type, exc_value</i>)
244 <p> 244 <p>
245 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#117;&#116;&#80;&#114;&#101;&#112;&#97;&#114;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108;. 245 Private slot to handle the utPrepared signal.
246 </p><p> 246 </p><p>
247 &#73;&#102; &#116;&#104;&#101; &#117;&#110;&#105;&#116;&#116;&#101;&#115;&#116; &#115;&#117;&#105;&#116;&#101; w&#97;&#115; &#108;&#111;&#97;&#100;&#101;&#100; &#115;&#117;&#99;&#99;&#101;&#115;&#115;&#102;&#117;&#108;&#108;y, w&#101; &#97;&#115;&#107; &#116;&#104;&#101; 247 If the unittest suite was loaded successfully, we ask the
248 &#99;&#108;&#105;&#101;&#110;&#116; &#116;&#111; &#114;&#117;&#110; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#115;&#117;&#105;&#116;&#101;. 248 client to run the test suite.
249 </p><dl> 249 </p><dl>
250 <dt><i>nrTests</i></dt> 250 <dt><i>nrTests</i></dt>
251 <dd> 251 <dd>
252 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#116;&#101;&#115;&#116;&#115; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#115;&#117;&#105;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 252 number of tests contained in the test suite (integer)
253 </dd><dt><i>exc_type</i></dt> 253 </dd><dt><i>exc_type</i></dt>
254 <dd> 254 <dd>
255 &#116;y&#112;&#101; &#111;&#102; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#111;&#99;&#99;&#117;&#114;&#101;&#100; &#100;&#117;&#114;&#105;&#110;&#103; &#112;&#114;&#101;&#112;&#97;&#114;&#97;&#116;&#105;&#111;&#110; (&#115;&#116;&#114;&#105;&#110;&#103;) 255 type of exception occured during preparation (string)
256 </dd><dt><i>exc_value</i></dt> 256 </dd><dt><i>exc_value</i></dt>
257 <dd> 257 <dd>
258 v&#97;&#108;&#117;&#101; &#111;&#102; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#111;&#99;&#99;&#117;&#114;&#101;&#100; &#100;&#117;&#114;&#105;&#110;&#103; &#112;&#114;&#101;&#112;&#97;&#114;&#97;&#116;&#105;&#111;&#110; (&#115;&#116;&#114;&#105;&#110;&#103;) 258 value of exception occured during preparation (string)
259 </dd> 259 </dd>
260 </dl><a NAME="UnittestDialog.__setProgressColor" ID="UnittestDialog.__setProgressColor"></a> 260 </dl><a NAME="UnittestDialog.__setProgressColor" ID="UnittestDialog.__setProgressColor"></a>
261 <h4>UnittestDialog.__setProgressColor</h4> 261 <h4>UnittestDialog.__setProgressColor</h4>
262 <b>__setProgressColor</b>(<i>color</i>) 262 <b>__setProgressColor</b>(<i>color</i>)
263 <p> 263 <p>
264 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100;&#101; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#99;&#111;&#108;&#111;&#114; &#111;&#102; &#116;&#104;&#101; &#112;&#114;&#111;&#103;&#114;&#101;&#115;&#115; &#99;&#111;&#108;&#111;&#114; &#108;&#97;&#98;&#101;&#108;. 264 Private methode to set the color of the progress color label.
265 </p><dl> 265 </p><dl>
266 <dt><i>color</i></dt> 266 <dt><i>color</i></dt>
267 <dd> 267 <dd>
268 &#99;&#111;&#108;&#111;&#117;&#114; &#116;&#111; &#98;&#101; &#115;&#104;&#111;w&#110; (&#115;&#116;&#114;&#105;&#110;&#103;) 268 colour to be shown (string)
269 </dd> 269 </dd>
270 </dl><a NAME="UnittestDialog.__setRunningMode" ID="UnittestDialog.__setRunningMode"></a> 270 </dl><a NAME="UnittestDialog.__setRunningMode" ID="UnittestDialog.__setRunningMode"></a>
271 <h4>UnittestDialog.__setRunningMode</h4> 271 <h4>UnittestDialog.__setRunningMode</h4>
272 <b>__setRunningMode</b>(<i></i>) 272 <b>__setRunningMode</b>(<i></i>)
273 <p> 273 <p>
274 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#71;&#85;&#73; &#105;&#110; &#114;&#117;&#110;&#110;&#105;&#110;&#103; &#109;&#111;&#100;&#101;. 274 Private method to set the GUI in running mode.
275 </p><a NAME="UnittestDialog.__setStoppedMode" ID="UnittestDialog.__setStoppedMode"></a> 275 </p><a NAME="UnittestDialog.__setStoppedMode" ID="UnittestDialog.__setStoppedMode"></a>
276 <h4>UnittestDialog.__setStoppedMode</h4> 276 <h4>UnittestDialog.__setStoppedMode</h4>
277 <b>__setStoppedMode</b>(<i></i>) 277 <b>__setStoppedMode</b>(<i></i>)
278 <p> 278 <p>
279 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#71;&#85;&#73; &#105;&#110; &#115;&#116;&#111;&#112;&#112;&#101;&#100; &#109;&#111;&#100;&#101;. 279 Private method to set the GUI in stopped mode.
280 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a> 280 </p><a NAME="UnittestDialog.__showSource" ID="UnittestDialog.__showSource"></a>
281 <h4>UnittestDialog.__showSource</h4> 281 <h4>UnittestDialog.__showSource</h4>
282 <b>__showSource</b>(<i></i>) 282 <b>__showSource</b>(<i></i>)
283 <p> 283 <p>
284 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#111;&#102; &#97; &#116;&#114;&#97;&#99;&#101;&#98;&#97;&#99;&#107; &#105;&#110; &#97;&#110; &#101;&#114;&#105;&#99;&#53; &#101;&#100;&#105;&#116;&#111;&#114;. 284 Private slot to show the source of a traceback in an eric5 editor.
285 </p><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a> 285 </p><a NAME="UnittestDialog.insertProg" ID="UnittestDialog.insertProg"></a>
286 <h4>UnittestDialog.insertProg</h4> 286 <h4>UnittestDialog.insertProg</h4>
287 <b>insertProg</b>(<i>prog</i>) 287 <b>insertProg</b>(<i>prog</i>)
288 <p> 288 <p>
289 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#105;&#110;&#115;&#101;&#114;&#116; &#116;&#104;&#101; &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#112;&#114;&#111;&#103; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116;&#115;&#117;&#105;&#116;&#101;&#67;&#111;&#109;&#98;&#111;&#66;&#111;x &#111;&#98;&#106;&#101;&#99;&#116;. 289 Public slot to insert the filename prog into the testsuiteComboBox object.
290 </p><dl> 290 </p><dl>
291 <dt><i>prog</i></dt> 291 <dt><i>prog</i></dt>
292 <dd> 292 <dd>
293 &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#105;&#110;&#115;&#101;&#114;&#116;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;) 293 filename to be inserted (string)
294 </dd> 294 </dd>
295 </dl><a NAME="UnittestDialog.insertTestName" ID="UnittestDialog.insertTestName"></a> 295 </dl><a NAME="UnittestDialog.insertTestName" ID="UnittestDialog.insertTestName"></a>
296 <h4>UnittestDialog.insertTestName</h4> 296 <h4>UnittestDialog.insertTestName</h4>
297 <b>insertTestName</b>(<i>testName</i>) 297 <b>insertTestName</b>(<i>testName</i>)
298 <p> 298 <p>
299 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#105;&#110;&#115;&#101;&#114;&#116; &#97; &#116;&#101;&#115;&#116; &#110;&#97;&#109;&#101; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#116;&#101;&#115;&#116;&#67;&#111;&#109;&#98;&#111;&#66;&#111;x &#111;&#98;&#106;&#101;&#99;&#116;. 299 Public slot to insert a test name into the testComboBox object.
300 </p><dl> 300 </p><dl>
301 <dt><i>testName</i></dt> 301 <dt><i>testName</i></dt>
302 <dd> 302 <dd>
303 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#116;&#111; &#98;&#101; &#105;&#110;&#115;&#101;&#114;&#116;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;) 303 name of the test to be inserted (string)
304 </dd> 304 </dd>
305 </dl><a NAME="UnittestDialog.on_buttonBox_clicked" ID="UnittestDialog.on_buttonBox_clicked"></a> 305 </dl><a NAME="UnittestDialog.on_buttonBox_clicked" ID="UnittestDialog.on_buttonBox_clicked"></a>
306 <h4>UnittestDialog.on_buttonBox_clicked</h4> 306 <h4>UnittestDialog.on_buttonBox_clicked</h4>
307 <b>on_buttonBox_clicked</b>(<i>button</i>) 307 <b>on_buttonBox_clicked</b>(<i>button</i>)
308 <p> 308 <p>
309 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x &#99;&#108;&#105;&#99;&#107;&#101;&#100;. 309 Private slot called by a button of the button box clicked.
310 </p><dl> 310 </p><dl>
311 <dt><i>button</i></dt> 311 <dt><i>button</i></dt>
312 <dd> 312 <dd>
313 &#98;&#117;&#116;&#116;&#111;&#110; &#116;&#104;&#97;&#116; w&#97;&#115; &#99;&#108;&#105;&#99;&#107;&#101;&#100; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#66;&#117;&#116;&#116;&#111;&#110;) 313 button that was clicked (QAbstractButton)
314 </dd> 314 </dd>
315 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a> 315 </dl><a NAME="UnittestDialog.on_errorsListWidget_currentTextChanged" ID="UnittestDialog.on_errorsListWidget_currentTextChanged"></a>
316 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4> 316 <h4>UnittestDialog.on_errorsListWidget_currentTextChanged</h4>
317 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>) 317 <b>on_errorsListWidget_currentTextChanged</b>(<i>text</i>)
318 <p> 318 <p>
319 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#104;&#105;&#103;&#104;&#108;&#105;&#103;&#104;&#116;&#101;&#100; &#115;&#105;&#103;&#110;&#97;&#108;. 319 Private slot to handle the highlighted signal.
320 </p><dl> 320 </p><dl>
321 <dt><i>txt</i></dt> 321 <dt><i>txt</i></dt>
322 <dd> 322 <dd>
323 &#99;&#117;&#114;&#114;&#101;&#110;&#116; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 323 current text (string)
324 </dd> 324 </dd>
325 </dl><a NAME="UnittestDialog.on_errorsListWidget_itemDoubleClicked" ID="UnittestDialog.on_errorsListWidget_itemDoubleClicked"></a> 325 </dl><a NAME="UnittestDialog.on_errorsListWidget_itemDoubleClicked" ID="UnittestDialog.on_errorsListWidget_itemDoubleClicked"></a>
326 <h4>UnittestDialog.on_errorsListWidget_itemDoubleClicked</h4> 326 <h4>UnittestDialog.on_errorsListWidget_itemDoubleClicked</h4>
327 <b>on_errorsListWidget_itemDoubleClicked</b>(<i>lbitem</i>) 327 <b>on_errorsListWidget_itemDoubleClicked</b>(<i>lbitem</i>)
328 <p> 328 <p>
329 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#100;&#111;&#117;&#98;&#108;&#101;&#99;&#108;&#105;&#99;&#107;&#105;&#110;&#103; &#97;&#110; &#101;&#114;&#114;&#111;&#114;&#108;&#105;&#115;&#116; &#101;&#110;&#116;&#114;y. 329 Private slot called by doubleclicking an errorlist entry.
330 </p><p> 330 </p><p>
331 &#73;&#116; w&#105;&#108;&#108; &#112;&#111;&#112;&#117;&#112; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#115;&#104;&#111;w&#105;&#110;&#103; &#116;&#104;&#101; &#115;&#116;&#97;&#99;&#107;&#116;&#114;&#97;&#99;&#101;. 331 It will popup a dialog showing the stacktrace.
332 &#73;&#102; &#99;&#97;&#108;&#108;&#101;&#100; &#102;&#114;&#111;&#109; &#101;&#114;&#105;&#99;, &#97;&#110; &#97;&#100;&#100;&#105;&#116;&#105;&#111;&#110;&#97;&#108; &#98;&#117;&#116;&#116;&#111;&#110; &#105;&#115; &#100;&#105;&#115;&#112;&#108;&#97;y&#101;&#100; 332 If called from eric, an additional button is displayed
333 &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#112;y&#116;&#104;&#111;&#110; &#115;&#111;&#117;&#114;&#99;&#101; &#105;&#110; &#97;&#110; &#101;&#114;&#105;&#99; &#115;&#111;&#117;&#114;&#99;&#101; v&#105;&#101;w&#101;&#114; (&#105;&#110; 333 to show the python source in an eric source viewer (in
334 &#101;&#114;&#105;&#99;&#115; &#109;&#97;&#105;&#110; w&#105;&#110;&#100;&#111;w. 334 erics main window.
335 </p><dl> 335 </p><dl>
336 <dt><i>lbitem</i></dt> 336 <dt><i>lbitem</i></dt>
337 <dd> 337 <dd>
338 &#116;&#104;&#101; &#108;&#105;&#115;&#116;&#98;&#111;x &#105;&#116;&#101;&#109; &#116;&#104;&#97;&#116; w&#97;&#115; &#100;&#111;&#117;&#98;&#108;&#101; &#99;&#108;&#105;&#99;&#107;&#101;&#100; 338 the listbox item that was double clicked
339 </dd> 339 </dd>
340 </dl><a NAME="UnittestDialog.on_fileDialogButton_clicked" ID="UnittestDialog.on_fileDialogButton_clicked"></a> 340 </dl><a NAME="UnittestDialog.on_fileDialogButton_clicked" ID="UnittestDialog.on_fileDialogButton_clicked"></a>
341 <h4>UnittestDialog.on_fileDialogButton_clicked</h4> 341 <h4>UnittestDialog.on_fileDialogButton_clicked</h4>
342 <b>on_fileDialogButton_clicked</b>(<i></i>) 342 <b>on_fileDialogButton_clicked</b>(<i></i>)
343 <p> 343 <p>
344 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#102;&#105;&#108;&#101; &#100;&#105;&#97;&#108;&#111;&#103;. 344 Private slot to open a file dialog.
345 </p><a NAME="UnittestDialog.on_startButton_clicked" ID="UnittestDialog.on_startButton_clicked"></a> 345 </p><a NAME="UnittestDialog.on_startButton_clicked" ID="UnittestDialog.on_startButton_clicked"></a>
346 <h4>UnittestDialog.on_startButton_clicked</h4> 346 <h4>UnittestDialog.on_startButton_clicked</h4>
347 <b>on_startButton_clicked</b>(<i></i>) 347 <b>on_startButton_clicked</b>(<i></i>)
348 <p> 348 <p>
349 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#116;&#97;&#114;&#116; &#116;&#104;&#101; &#116;&#101;&#115;&#116;. 349 Public slot to start the test.
350 </p><a NAME="UnittestDialog.on_stopButton_clicked" ID="UnittestDialog.on_stopButton_clicked"></a> 350 </p><a NAME="UnittestDialog.on_stopButton_clicked" ID="UnittestDialog.on_stopButton_clicked"></a>
351 <h4>UnittestDialog.on_stopButton_clicked</h4> 351 <h4>UnittestDialog.on_stopButton_clicked</h4>
352 <b>on_stopButton_clicked</b>(<i></i>) 352 <b>on_stopButton_clicked</b>(<i></i>)
353 <p> 353 <p>
354 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#116;&#111;&#112; &#116;&#104;&#101; &#116;&#101;&#115;&#116;. 354 Private slot to stop the test.
355 </p><a NAME="UnittestDialog.on_testsuiteComboBox_editTextChanged" ID="UnittestDialog.on_testsuiteComboBox_editTextChanged"></a> 355 </p><a NAME="UnittestDialog.on_testsuiteComboBox_editTextChanged" ID="UnittestDialog.on_testsuiteComboBox_editTextChanged"></a>
356 <h4>UnittestDialog.on_testsuiteComboBox_editTextChanged</h4> 356 <h4>UnittestDialog.on_testsuiteComboBox_editTextChanged</h4>
357 <b>on_testsuiteComboBox_editTextChanged</b>(<i>txt</i>) 357 <b>on_testsuiteComboBox_editTextChanged</b>(<i>txt</i>)
358 <p> 358 <p>
359 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#102;&#105;&#108;&#101; &#110;&#97;&#109;&#101;. 359 Private slot to handle changes of the test file name.
360 </p><dl> 360 </p><dl>
361 <dt><i>txt</i></dt> 361 <dt><i>txt</i></dt>
362 <dd> 362 <dd>
363 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#116;&#101;&#115;&#116; &#102;&#105;&#108;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 363 name of the test file (string)
364 </dd> 364 </dd>
365 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a> 365 </dl><a NAME="UnittestDialog.testErrored" ID="UnittestDialog.testErrored"></a>
366 <h4>UnittestDialog.testErrored</h4> 366 <h4>UnittestDialog.testErrored</h4>
367 <b>testErrored</b>(<i>test, exc</i>) 367 <b>testErrored</b>(<i>test, exc</i>)
368 <p> 368 <p>
369 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#101;&#114;&#114;&#111;&#114;&#115;. 369 Public method called if a test errors.
370 </p><dl> 370 </p><dl>
371 <dt><i>test</i></dt> 371 <dt><i>test</i></dt>
372 <dd> 372 <dd>
373 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#102;&#97;&#105;&#108;&#101;&#100; &#116;&#101;&#115;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 373 name of the failed test (string)
374 </dd><dt><i>exc</i></dt> 374 </dd><dt><i>exc</i></dt>
375 <dd> 375 <dd>
376 &#115;&#116;&#114;&#105;&#110;&#103; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 376 string representation of the exception (list of strings)
377 </dd> 377 </dd>
378 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a> 378 </dl><a NAME="UnittestDialog.testFailed" ID="UnittestDialog.testFailed"></a>
379 <h4>UnittestDialog.testFailed</h4> 379 <h4>UnittestDialog.testFailed</h4>
380 <b>testFailed</b>(<i>test, exc</i>) 380 <b>testFailed</b>(<i>test, exc</i>)
381 <p> 381 <p>
382 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#102;&#97;&#105;&#108;&#115;. 382 Public method called if a test fails.
383 </p><dl> 383 </p><dl>
384 <dt><i>test</i></dt> 384 <dt><i>test</i></dt>
385 <dd> 385 <dd>
386 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#102;&#97;&#105;&#108;&#101;&#100; &#116;&#101;&#115;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 386 name of the failed test (string)
387 </dd><dt><i>exc</i></dt> 387 </dd><dt><i>exc</i></dt>
388 <dd> 388 <dd>
389 &#115;&#116;&#114;&#105;&#110;&#103; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 389 string representation of the exception (list of strings)
390 </dd> 390 </dd>
391 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a> 391 </dl><a NAME="UnittestDialog.testFinished" ID="UnittestDialog.testFinished"></a>
392 <h4>UnittestDialog.testFinished</h4> 392 <h4>UnittestDialog.testFinished</h4>
393 <b>testFinished</b>(<i></i>) 393 <b>testFinished</b>(<i></i>)
394 <p> 394 <p>
395 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#104;&#97;&#115; &#102;&#105;&#110;&#105;&#115;&#104;&#101;&#100;. 395 Public method called if a test has finished.
396 </p><p> 396 </p><p>
397 &#60;&#98;&#62;&#78;&#111;&#116;&#101;&#60;/&#98;&#62;&#58; &#73;&#116; &#105;&#115; &#97;&#108;&#115;&#111; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#105;&#116; &#104;&#97;&#115; &#97;&#108;&#114;&#101;&#97;&#100;y &#102;&#97;&#105;&#108;&#101;&#100; &#111;&#114; &#101;&#114;&#114;&#111;&#114;&#101;&#100;. 397 <b>Note</b>: It is also called if it has already failed or errored.
398 </p><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a> 398 </p><a NAME="UnittestDialog.testStarted" ID="UnittestDialog.testStarted"></a>
399 <h4>UnittestDialog.testStarted</h4> 399 <h4>UnittestDialog.testStarted</h4>
400 <b>testStarted</b>(<i>test, doc</i>) 400 <b>testStarted</b>(<i>test, doc</i>)
401 <p> 401 <p>
402 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#105;&#102; &#97; &#116;&#101;&#115;&#116; &#105;&#115; &#97;&#98;&#111;&#117;&#116; &#116;&#111; &#98;&#101; &#114;&#117;&#110;. 402 Public method called if a test is about to be run.
403 </p><dl> 403 </p><dl>
404 <dt><i>test</i></dt> 404 <dt><i>test</i></dt>
405 <dd> 405 <dd>
406 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116;&#101;&#100; &#116;&#101;&#115;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 406 name of the started test (string)
407 </dd><dt><i>doc</i></dt> 407 </dd><dt><i>doc</i></dt>
408 <dd> 408 <dd>
409 &#100;&#111;&#99;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116;&#101;&#100; &#116;&#101;&#115;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 409 documentation of the started test (string)
410 </dd> 410 </dd>
411 </dl> 411 </dl>
412 <div align="right"><a href="#top">Up</a></div> 412 <div align="right"><a href="#top">Up</a></div>
413 <hr /><hr /> 413 <hr /><hr />
414 <a NAME="UnittestWindow" ID="UnittestWindow"></a> 414 <a NAME="UnittestWindow" ID="UnittestWindow"></a>
415 <h2>UnittestWindow</h2> 415 <h2>UnittestWindow</h2>
416 <p> 416 <p>
417 &#77;&#97;&#105;&#110; w&#105;&#110;&#100;&#111;w &#99;&#108;&#97;&#115;&#115; &#102;&#111;&#114; &#116;&#104;&#101; &#115;&#116;&#97;&#110;&#100;&#97;&#108;&#111;&#110;&#101; &#100;&#105;&#97;&#108;&#111;&#103;. 417 Main window class for the standalone dialog.
418 </p> 418 </p>
419 <h3>Derived from</h3> 419 <h3>Derived from</h3>
420 QMainWindow 420 QMainWindow
421 <h3>Class Attributes</h3> 421 <h3>Class Attributes</h3>
422 <table> 422 <table>
424 </table> 424 </table>
425 <h3>Methods</h3> 425 <h3>Methods</h3>
426 <table> 426 <table>
427 <tr> 427 <tr>
428 <td><a href="#UnittestWindow.__init__">UnittestWindow</a></td> 428 <td><a href="#UnittestWindow.__init__">UnittestWindow</a></td>
429 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 429 <td>Constructor</td>
430 </tr><tr> 430 </tr><tr>
431 <td><a href="#UnittestWindow.eventFilter">eventFilter</a></td> 431 <td><a href="#UnittestWindow.eventFilter">eventFilter</a></td>
432 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#108;&#116;&#101;&#114; &#101;v&#101;&#110;&#116;&#115;.</td> 432 <td>Public method to filter events.</td>
433 </tr> 433 </tr>
434 </table> 434 </table>
435 <a NAME="UnittestWindow.__init__" ID="UnittestWindow.__init__"></a> 435 <a NAME="UnittestWindow.__init__" ID="UnittestWindow.__init__"></a>
436 <h4>UnittestWindow (Constructor)</h4> 436 <h4>UnittestWindow (Constructor)</h4>
437 <b>UnittestWindow</b>(<i>prog = None, parent = None</i>) 437 <b>UnittestWindow</b>(<i>prog = None, parent = None</i>)
438 <p> 438 <p>
439 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 439 Constructor
440 </p><dl> 440 </p><dl>
441 <dt><i>prog</i></dt> 441 <dt><i>prog</i></dt>
442 <dd> 442 <dd>
443 &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#114;&#111;&#103;&#114;&#97;&#109; &#116;&#111; &#111;&#112;&#101;&#110; 443 filename of the program to open
444 </dd><dt><i>parent</i></dt> 444 </dd><dt><i>parent</i></dt>
445 <dd> 445 <dd>
446 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 446 reference to the parent widget (QWidget)
447 </dd> 447 </dd>
448 </dl><a NAME="UnittestWindow.eventFilter" ID="UnittestWindow.eventFilter"></a> 448 </dl><a NAME="UnittestWindow.eventFilter" ID="UnittestWindow.eventFilter"></a>
449 <h4>UnittestWindow.eventFilter</h4> 449 <h4>UnittestWindow.eventFilter</h4>
450 <b>eventFilter</b>(<i>obj, event</i>) 450 <b>eventFilter</b>(<i>obj, event</i>)
451 <p> 451 <p>
452 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#108;&#116;&#101;&#114; &#101;v&#101;&#110;&#116;&#115;. 452 Public method to filter events.
453 </p><dl> 453 </p><dl>
454 <dt><i>obj</i></dt> 454 <dt><i>obj</i></dt>
455 <dd> 455 <dd>
456 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#111;&#98;&#106;&#101;&#99;&#116; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#105;&#115; &#109;&#101;&#97;&#110;&#116; &#102;&#111;&#114; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 456 reference to the object the event is meant for (QObject)
457 </dd><dt><i>event</i></dt> 457 </dd><dt><i>event</i></dt>
458 <dd> 458 <dd>
459 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#69;v&#101;&#110;&#116;) 459 reference to the event object (QEvent)
460 </dd> 460 </dd>
461 </dl><dl> 461 </dl><dl>
462 <dt>Returns:</dt> 462 <dt>Returns:</dt>
463 <dd> 463 <dd>
464 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103;, w&#104;&#101;&#116;&#104;&#101;&#114; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; w&#97;&#115; &#104;&#97;&#110;&#100;&#108;&#101;&#100; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 464 flag indicating, whether the event was handled (boolean)
465 </dd> 465 </dd>
466 </dl> 466 </dl>
467 <div align="right"><a href="#top">Up</a></div> 467 <div align="right"><a href="#top">Up</a></div>
468 <hr /> 468 <hr />
469 </body></html> 469 </body></html>

eric ide

mercurial