Class RobotSuiteResult

    • Constructor Detail

      • RobotSuiteResult

        public RobotSuiteResult()
    • Method Detail

      • addChild

        public void addChild​(RobotSuiteResult child)
        Adds a nested suite to this suite. If a suite exists with the same name it will be overwritten with this one.
        Parameters:
        child - Child to be added
      • getChildSuites

        public Collection<RobotSuiteResult> getChildSuites()
        Get the immediate child suites of this suite
        Returns:
        the immediate child suites of this suite
      • setName

        public void setName​(String name)
      • setDescription

        public void setDescription​(String description)
      • getCaseResults

        public Collection<RobotCaseResult> getCaseResults()
        Get all case results belonging to this suite
        Returns:
        Collection of all case results belonging to this suite
      • getFailed

        public int getFailed()
        Get number of all failed tests
        Specified by:
        getFailed in class RobotTestObject
        Returns:
        number of all failed tests
      • getPassed

        public int getPassed()
        Get number of all passed tests
        Specified by:
        getPassed in class RobotTestObject
        Returns:
        number of all passed tests
      • getTotal

        public int getTotal()
        Get number of all tests
        Returns:
        number of all tests
      • getCriticalPassed

        public long getCriticalPassed()
        Get number of passed critical tests
        Specified by:
        getCriticalPassed in class RobotTestObject
        Returns:
        number of passed critical tests
      • getCriticalFailed

        public long getCriticalFailed()
        Get number of failed critical tests
        Specified by:
        getCriticalFailed in class RobotTestObject
        Returns:
        number of failed critical tests
      • getCriticalTotal

        public int getCriticalTotal()
        Get number of all critical tests
        Returns:
        number of all critical tests
      • setSchemaVersion

        public void setSchemaVersion​(int version)
      • addCaseResult

        public void addCaseResult​(RobotCaseResult caseResult)
        Adds a test case result to this suite. If a case exists with the same name it will be overwritten with this one.
        Parameters:
        caseResult - Case to be added
      • setElapsedTime

        public void setElapsedTime​(String elapsedTime)
      • setStartTime

        public void setStartTime​(String startTime)
      • setEndTime

        public void setEndTime​(String endTime)
      • getDuration

        public long getDuration()
        Description copied from class: RobotTestObject
        Get duration of this testobject run
        Overrides:
        getDuration in class RobotTestObject
        Returns:
        Duration of this testobject run
      • getDisplayName

        public String getDisplayName()
      • getSearchUrl

        public String getSearchUrl()
      • getSuite

        public RobotSuiteResult getSuite​(String name)
        Get nested suite result by duplicate safe unencoded name
        Parameters:
        name - suite name
        Returns:
        suite result, null if none found
      • getCase

        public RobotCaseResult getCase​(String name)
        Get case result by duplicate safe unencoded name
        Parameters:
        name - case name
        Returns:
        case result, null if none found
      • getDynamic

        public Object getDynamic​(String token,
                                 org.kohsuke.stapler.StaplerRequest req,
                                 org.kohsuke.stapler.StaplerRequest rsp)
        Get suite or case result by url encoded name
        Parameters:
        token - token
        req - StaplerRequest
        rsp - StaplerResponse
        Returns:
        suite or case result by url encoded name
      • getAllChildSuites

        public List<RobotSuiteResult> getAllChildSuites()
        Get all children of this suite
        Returns:
        all children of this suite
      • getAllFailedCases

        public List<RobotCaseResult> getAllFailedCases()
        Get all failed cases in this suite and its child suites
        Returns:
        all failed cases in this suite and its child suites
      • getAllPassedCases

        public List<RobotCaseResult> getAllPassedCases()
        Get all passed cases in this suite and its child suites
        Returns:
        all passed cases in this suite and its child suites
      • getAllSkippedCases

        public List<RobotCaseResult> getAllSkippedCases()
        Get all skipped cases in this suite and its child suites
        Returns:
        all skipped cases in this suite and its child suites
      • getAllCases

        public List<RobotCaseResult> getAllCases()
        Get all cases in this suite and its child suites
        Returns:
        all cases in this suite and its child suites
      • failTeardown

        public void failTeardown()
        Fail all cases because of teardown failure.
      • tally

        public void tally​(RobotBuildAction parentAction)
        Count total values from children and set same parentaction to all
        Parameters:
        parentAction - Common parent action
      • findObjectById

        public RobotTestObject findObjectById​(String id)
        Get object by path in tree
        Parameters:
        id - path to object
        Returns:
        Found Object
      • addChildren

        public void addChildren​(Collection<RobotSuiteResult> childSuites)
        If suites with same name exist, the originals are kept
        Parameters:
        childSuites - Child suites to be added
      • addCaseResults

        public void addCaseResults​(Collection<RobotCaseResult> newCaseResults)
        If cases with same name exist, the originals are kept
        Parameters:
        newCaseResults - New case results to be added