Changeset 61295 in vbox
- Timestamp:
- May 30, 2016 3:01:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r61292 r61295 241 241 242 242 243 def _formatSeriesNameColumnHeadersForTable(self): 244 """ Formats the series name column for the HTML table. """ 245 return '<th>Subject Name</th>'; 246 243 247 def _formatSeriesNameForTable(self, oSet, idKey): 244 248 """ Formats the series name for the HTML table. """ … … 264 268 return u'<td align="center">%u</td>' % (oSet.dcHitsPerId[idKey],); 265 269 266 def _generateTableForSet(self, oSet, sColumnName,aidSorted = None, iSortColumn = 0,270 def _generateTableForSet(self, oSet, aidSorted = None, iSortColumn = 0, 267 271 fWithTotals = True, cColsPerSeries = None): 268 272 """ … … 276 280 277 281 # Header row. 278 sHtml += u' <tr><thead><th></th><th>%s</th>' % (webutils.escapeElem(sColumnName),) 282 sHtml += u' <tr><thead><th>#</th>'; 283 self._formatSeriesNameColumnHeadersForTable(); 279 284 for iPeriod, oPeriod in enumerate(reversed(oSet.aoPeriods)): 280 285 sHtml += u'<th colspan="%d">%s%s</th>' % ( cColsPerSeries, webutils.escapeElem(oPeriod.sDesc), … … 401 406 webutils.escapeElem(oTransient.oReason.sShort),); 402 407 408 def _formatSeriesNameColumnHeadersForTable(self): 409 return '<th>Failure Reason</th>'; 410 403 411 def _formatSeriesNameForTable(self, oSet, idKey): 404 412 oReason = oSet.dSubjects[idKey]; … … 421 429 # Generate table and transition list. These are the most useful ones with the current graph machinery. 422 430 # 423 sHtml = self._generateTableForSet(oSet, 'Test Cases',aidSortedRaw, len(oSet.aoPeriods));431 sHtml = self._generateTableForSet(oSet, aidSortedRaw, len(oSet.aoPeriods)); 424 432 sHtml += self._generateTransitionList(oSet); 425 433 … … 482 490 sHtml += WuiTestCaseDetailsLink(oTransient.oSubject.idTestCase, fBracketed = False).toHtml(); 483 491 return sHtml; 492 493 def _formatSeriesNameColumnHeadersForTable(self): 494 return '<th>Test Case</th>'; 484 495 485 496 def _formatSeriesNameForTable(self, oSet, idKey): … … 501 512 (aidSortedRaw, iSortColumn) = self._getSortedIds(oSet); 502 513 503 sHtml = self._generateTableForSet(oSet, 'Test Cases', aidSortedRaw,iSortColumn);514 sHtml = self._generateTableForSet(oSet, iSortColumn); 504 515 sHtml += self._generateTransitionList(oSet); 505 516 sHtml += self._generateGraph(oSet, 'testcase-graph', aidSortedRaw); … … 524 535 sHtml += WuiTestCaseDetailsLink(oTransient.oSubject.idTestCase, fBracketed = False).toHtml(); 525 536 return sHtml; 537 538 def _formatSeriesNameColumnHeadersForTable(self): 539 return '<th>Test Case / Variation</th>'; 526 540 527 541 def _formatSeriesNameForTable(self, oSet, idKey): … … 543 557 (aidSortedRaw, iSortColumn) = self._getSortedIds(oSet); 544 558 545 sHtml = self._generateTableForSet(oSet, 'Test Case Variations',aidSortedRaw, iSortColumn);559 sHtml = self._generateTableForSet(oSet, aidSortedRaw, iSortColumn); 546 560 sHtml += self._generateTransitionList(oSet); 547 561 sHtml += self._generateGraph(oSet, 'testcasearg-graph', aidSortedRaw); … … 559 573 sHtml += WuiTestBoxDetailsLink(oTransient.oSubject.idTestBox, fBracketed = False).toHtml(); 560 574 return sHtml; 575 576 def _formatSeriesNameColumnHeadersForTable(self): 577 return '<th colspan="5">Test Box</th>'; 561 578 562 579 def _formatSeriesNameForTable(self, oSet, idKey): … … 568 585 sHtml += WuiTestBoxDetailsLink(oTestBox.idTestBox).toHtml(); 569 586 sHtml += u'</td>'; 587 sHtml += u'<td>%s %s</td>' % (webutils.escapeElem(oTestBox.sOs), webutils.escapeElem(oTestBox.sOsVersion),); 588 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.sCpuArch),); 589 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.sCpuVendor),); 590 sHtml += u'<td>f=%#x, m=%#x, s=%#x' % (oTestBox.getCpuFamily(), oTestBox.getCpuModel(), oTestBox.getCpuStepping(),) 591 if oTestBox.fCpuNestedPaging: sHtml += u', np'; 592 elif oTestBox.fCpuHwVirt: sHtml += u', hw'; 593 else: sHtml += u', raw'; 594 if oTestBox.fCpu64BitGuest: sHtml += u', 64'; 595 sHtml += u'</td>'; 570 596 return sHtml; 571 597 … … 578 604 (aidSortedRaw, iSortColumn) = self._getSortedIds(oSet); 579 605 580 sHtml = self._generateTableForSet(oSet, 'Test Boxes',aidSortedRaw, iSortColumn);606 sHtml = self._generateTableForSet(oSet, aidSortedRaw, iSortColumn); 581 607 sHtml += self._generateTransitionList(oSet); 582 608 sHtml += self._generateGraph(oSet, 'testbox-graph', aidSortedRaw);
Note:
See TracChangeset
for help on using the changeset viewer.