VirtualBox

Changeset 61289 in vbox for trunk/src/VBox/ValidationKit


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

wuireport.py: Select the sorting column (now/totals) based on max total in the set, use the totals if low.

File:
1 edited

Legend:

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

    r61288 r61289  
    306306    """
    307307
    308     def _getSortedIds(self, oSet, fByTotal = False):
     308    def _getSortedIds(self, oSet, fByTotal = None):
    309309        """
    310310        Get default sorted subject IDs.
    311311        """
     312
     313        if fByTotal is None:
     314            fByTotal = oSet.cMaxTotal < 10;
    312315
    313316        if fByTotal is True:
     
    482485        self._sTitle = 'Test Case Failures';
    483486        oSet = self._oModel.getTestCaseFailures();
    484         aidSortedRaw = self._getSortedIds(oSet)
     487        aidSortedRaw = self._getSortedIds(oSet);
    485488
    486489        sHtml  = self._generateTableForSet(oSet, 'Test Cases', aidSortedRaw);
     
    521524        self._sTitle = 'Test Case Variation Failures';
    522525        oSet = self._oModel.getTestCaseVariationFailures();
    523         aidSortedRaw = self._getSortedIds(oSet, fByTotal = True); # Sorting by total since data is usually sparse.
     526        aidSortedRaw = self._getSortedIds(oSet);
    524527
    525528        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