Class TestGroup


  • public class TestGroup
    extends NamedDataGroup<STestRun>
    This class was created to represent a group of tests. Tests could be grouped by name, package, etc.
    Since:
    4.5
    Author:
    kir
    • Constructor Detail

      • TestGroup

        public TestGroup​(java.util.List<STestRun> tests)
        Create root test group with given tests
        Parameters:
        tests - tests for the group
      • TestGroup

        public TestGroup​(TestGroupName groupName)
        Create test group with given group name
        Parameters:
        groupName - name of the group
    • Method Detail

      • getGroupName

        public TestGroupName getGroupName()
        Return low-level object for group name formatting
        Returns:
        see above
      • getDuration

        public long getDuration()
        Return summary duration of the tests included into this group (with subgroups)
        Returns:
        see above
      • getFailedTestCount

        public int getFailedTestCount()
      • getIgnoredTestCount

        public int getIgnoredTestCount()
      • getTestCount

        public int getTestCount()
      • sortTestsByGroups

        public void sortTestsByGroups()
        Sort tests alphabetically considering suite, package, class, test name + parameters