Changeset 98551 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Feb 13, 2023 8:49:37 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r98103 r98551 219 219 if fTailoredForGoogleCharts: 220 220 if cTotalSkipped > 0: 221 oTable = WuiHlpGraphDataTable(None, [ 'Succeeded', ' Skipped', 'Failed' ]);221 oTable = WuiHlpGraphDataTable(None, [ 'Succeeded', 'Failed', 'Skipped' ]); 222 222 else: 223 223 oTable = WuiHlpGraphDataTable(None, [ 'Succeeded', 'Failed' ]); 224 224 else: 225 225 if cTotalSkipped > 0: 226 oTable = WuiHlpGraphDataTable('When', [ 'Succeeded', ' Skipped', 'Failed' ]);226 oTable = WuiHlpGraphDataTable('When', [ 'Succeeded', 'Failed', 'Skipped' ]); 227 227 else: 228 228 oTable = WuiHlpGraphDataTable('When', [ 'Succeeded', 'Failed' ]); … … 240 240 oTable.addRow(sPeriod, 241 241 [ cSuccesses * 100 // cTotal if cTotal else 0, 242 c Skipped* 100 // cTotal if cTotal else 0,243 c Failures* 100 // cTotal if cTotal else 0, ],242 cFailures * 100 // cTotal if cTotal else 0, 243 cSkipped * 100 // cTotal if cTotal else 0, ], 244 244 [ self.fmtPct(cSuccesses, cTotal) if cSuccesses else None, 245 self.fmtPct(c Skipped, cTotal) if cSkippedelse None,246 self.fmtPct(c Failures, cTotal) if cFailureselse None, ]);245 self.fmtPct(cFailures, cTotal) if cFailures else None, 246 self.fmtPct(cSkipped, cTotal) if cSkipped else None, ]); 247 247 else: 248 248 oTable.addRow(sPeriod, … … 255 255 oTable.addRow(sPeriod, 256 256 [ cSuccesses * 100 // cTotal, 257 c Skipped* 100 // cTotal,258 c Failures* 100 // cTotal, ],257 cFailures * 100 // cTotal, 258 cSkipped * 100 // cTotal, ], 259 259 [ self.fmtPctWithHits(cSuccesses, cTotal), 260 self.fmtPctWithHits(c Skipped, cTotal),261 self.fmtPctWithHits(c Failures, cTotal), ]);260 self.fmtPctWithHits(cFailures, cTotal), 261 self.fmtPctWithHits(cSkipped, cTotal), ]); 262 262 else: 263 263 oTable.addRow(sPeriod, … … 283 283 if fTailoredForGoogleCharts: 284 284 if cTotalSkipped > 0: 285 oTable = WuiHlpGraphDataTable(None, [ 'Succeeded', ' Skipped', 'Failed' ]);285 oTable = WuiHlpGraphDataTable(None, [ 'Succeeded', 'Failed', 'Skipped' ]); 286 286 else: 287 287 oTable = WuiHlpGraphDataTable(None, [ 'Succeeded', 'Failed' ]); … … 295 295 [ cSuccesses, cSkipped, cFailures, ], 296 296 [ str(cSuccesses) if cSuccesses > 0 else None, 297 str(c Skipped) if cSkipped> 0 else None,298 str(c Failures) if cFailures> 0 else None, ]);297 str(cFailures) if cFailures > 0 else None, 298 str(cSkipped) if cSkipped > 0 else None, ]); 299 299 else: 300 300 oTable.addRow(None, #self._oModel.getPeriodDesc(i),
Note:
See TracChangeset
for help on using the changeset viewer.