VirtualBox

Ignore:
Timestamp:
May 30, 2016 12:31:21 PM (9 years ago)
Author:
vboxsync
Message:

WuiReportTestCaseArgsFailures: Sort by total instead of the 'now' column since we usually don't have that much data to go on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py

    r61286 r61288  
    306306    """
    307307
    308     def _getSortedIds(self, oSet):
     308    def _getSortedIds(self, oSet, fByTotal = False):
    309309        """
    310310        Get default sorted subject IDs.
    311311        """
    312312
    313         if self._oModel.tsNow is not None and False:
     313        if fByTotal is True:
    314314            # Sort the total.
    315315            aidSortedRaw = sorted(oSet.dSubjects,
     
    482482        self._sTitle = 'Test Case Failures';
    483483        oSet = self._oModel.getTestCaseFailures();
    484         aidSortedRaw = self._getSortedIds(oSet);
     484        aidSortedRaw = self._getSortedIds(oSet)
    485485
    486486        sHtml  = self._generateTableForSet(oSet, 'Test Cases', aidSortedRaw);
     
    521521        self._sTitle = 'Test Case Variation Failures';
    522522        oSet = self._oModel.getTestCaseVariationFailures();
    523         aidSortedRaw = self._getSortedIds(oSet);
     523        aidSortedRaw = self._getSortedIds(oSet, fByTotal = True); # Sorting by total since data is usually sparse.
    524524
    525525        sHtml  = self._generateTableForSet(oSet, 'Test Case Variations', aidSortedRaw);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette