Class TestRail


  • public final class TestRail
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TestRail.SystemTestCaseStatus
      This class contains names (not labels!) of the TestRail system test case result statuses.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestRail()  
    • Constructor Detail

      • TestRail

        public TestRail()
    • Method Detail

      • disableSync

        public static void disableSync()
      • enableRealTimeSync

        public static void enableRealTimeSync()
      • includeAllTestCasesInNewRun

        public static void includeAllTestCasesInNewRun()
      • setSuiteId

        public static void setSuiteId​(java.lang.String suiteId)
      • setRunId

        public static void setRunId​(java.lang.String runId)
      • setRunName

        public static void setRunName​(java.lang.String runName)
      • setMilestone

        public static void setMilestone​(java.lang.String milestone)
      • setAssignee

        public static void setAssignee​(java.lang.String assignee)
      • setCaseId

        @Deprecated
        public static void setCaseId​(java.lang.String testCaseId)
        Deprecated.
        Use setTestCaseId(String) method instead of this on.

        Will be removed in 1.8.0 version of the agent.

      • setTestCaseId

        public static void setTestCaseId​(java.lang.String testCaseId)
      • setTestCaseStatus

        public static void setTestCaseStatus​(java.lang.String testCaseId,
                                             java.lang.String resultStatus)
        Sets the given status for the given test case in TestRail run.

        If you need to use a custom status, contact your TestRail administrator to get the correct system name for your desired status.

        Parameters:
        testCaseId - TestRail id of the test case. Can be either a regular number or a number with the letter 'C' at the begging.
        resultStatus - system name (not labels!) of the status to be set for the test case
        See Also:
        TestRail.SystemTestCaseStatus