Commit ad12db5
Add real-time sample progress indicator during testing stage
This commit introduces a progress indicator that displays the number
of completed samples and percentage during the 'Testing' stage of test
execution, enhancing user visibility into test progress.
Changes:
- Modified mod_test/controllers.py to calculate and return sample
progress data in the get_json_data endpoint
- Updated templates/test/by_id.html to display progress information
and handle real-time updates via AJAX polling
Implementation details:
- Calculates progress using existing test.results and
test.get_customized_regressiontests() data
- No database schema changes required
- Updates every 20 seconds via existing AJAX mechanism
- Displays format: 'X / Y samples (Z%)'
- Backward compatible with existing functionality
The feature provides immediate feedback to users about test execution
progress without requiring any infrastructure changes.1 parent 91443e2 commit ad12db5
2 files changed
+48
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
218 | 225 | | |
219 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
220 | 232 | | |
221 | 233 | | |
222 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
4 | 20 | | |
5 | 21 | | |
6 | 22 | | |
| |||
48 | 64 | | |
49 | 65 | | |
50 | 66 | | |
51 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
52 | 75 | | |
53 | 76 | | |
54 | 77 | | |
| |||
181 | 204 | | |
182 | 205 | | |
183 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
184 | 218 | | |
185 | 219 | | |
186 | 220 | | |
| |||
0 commit comments