Class LocalTriggerManager.ScriptTestStepResultBean

    • Constructor Detail

      • ScriptTestStepResultBean

        public ScriptTestStepResultBean​(mks.ci.server.engine.TestStepResult testStepResult,
                                        mks.ci.server.engine.TestResult testResult,
                                        int userId,
                                        java.sql.Connection c)
        Constructor.
        Parameters:
        testStepResult - a fully populated test step result instance.
        testResult - the result that this step result is for
        userId - the user invoking the action
        c - our db connection
    • Method Detail

      • getExposedName

        public java.lang.String getExposedName()
        Description copied from class: ScriptBaseBean
        Returns the name of this bean that is exposed to the scripting language.
        Specified by:
        getExposedName in interface mks.frame.triggers.ScriptExposableBean
        Specified by:
        getExposedName in class ScriptBaseBean
        Returns:
        the bean name: siMemberBean.
      • getSessionID

        public int getSessionID()
        Returns the Windchill RV&S item id of the item that acts as the test session of this test step result.
        Returns:
        the Session ID of this test result.
      • getSessionBean

        public LocalTriggerManager.ScriptIssueBean getSessionBean()
                                                           throws mks.frame.triggers.TriggerException
        Returns a LocalTriggerManager.ScriptIssueBean representing the Windchill RV&S item that acts as the test session of this test step result.
        Returns:
        A bean representing Windchill RV&S item.
        Throws:
        mks.frame.triggers.TriggerException - if the item could not be retrieved.
      • getCaseID

        public int getCaseID()
        Returns the Windchill RV&S item id of the item that acts as the test case of this test step result.
        Returns:
        the Case ID of this test result.
      • getCaseBean

        public LocalTriggerManager.ScriptIssueBean getCaseBean()
                                                        throws mks.frame.triggers.TriggerException
        Returns a LocalTriggerManager.ScriptIssueBean representing the Windchill RV&S item that acts as the test case of this test step result.
        Returns:
        A bean representing Windchill RV&S item.
        Throws:
        mks.frame.triggers.TriggerException - if the item could not be retrieved.
      • getStepID

        public int getStepID()
        Returns the Windchill RV&S item id of the item that acts as the test step of this test step result.
        Returns:
        the Step ID of this test result.
      • getStepBean

        public LocalTriggerManager.ScriptIssueBean getStepBean()
                                                        throws mks.frame.triggers.TriggerException
        Returns a LocalTriggerManager.ScriptIssueBean representing the Windchill RV&S item that acts as the test step of this test step result.
        Returns:
        A bean representing Windchill RV&S item.
        Throws:
        mks.frame.triggers.TriggerException - if the item could not be retrieved.
      • hasVerdict

        public boolean hasVerdict()
        Returns true if the verdict is set for this test step result.
        Returns:
        true if this step test result has a verdict, false otherwise.
      • getVerdict

        public java.lang.String getVerdict()
        Returns the name of the verdict set for this test step result, or null if no verdict has been set.
        Returns:
        A string representing the verdict, or null if no verdict has been set.
      • getVerdictType

        public java.lang.String getVerdictType()
        Returns the name of the verdict type set for this test step result (e.g. "Pass", "Fail", "Other") or null of no verdict has been set.
        Returns:
        A string representing the verdict type, or null if no verdict has been set.
      • getAnnotation

        public java.lang.String getAnnotation()
        Gets the annotation of this test step result.
        Returns:
        The annotation of this test step result.