Class LocalTriggerManager.ScriptTestStepResultDeltaBean

    • Constructor Detail

      • ScriptTestStepResultDeltaBean

        public ScriptTestStepResultDeltaBean​(mks.ci.server.engine.TestStepResult original,
                                             mks.ci.server.engine.TestStepResult delta,
                                             mks.ci.server.engine.TestResult testResult,
                                             int userId,
                                             java.sql.Connection c,
                                             boolean readonly)
        Constructor.
        Parameters:
        original - a fully populated test step result instance.
        delta - a test step result instance populated with the changes we are going to apply to the original result
        testResult - the result that this step result is for
        userId - the user invoking the action
        c - our db connection
        readonly - true if we don't allow edits, false otherwise
    • 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
        Overrides:
        getExposedName in class LocalTriggerManager.ScriptTestStepResultBean
        Returns:
        the bean name: siMemberBean.
      • setVerdict

        public void setVerdict​(java.lang.String verdict)
                        throws mks.frame.triggers.TriggerException
        Sets the verdict of this test step result.
        Parameters:
        verdict - The new verdict to set for this test step result.
        Throws:
        mks.frame.triggers.TriggerException - if the verdict does not exist, or if the script is running in a POST trigger context.
      • getOldVerdict

        public java.lang.String getOldVerdict()
        Returns the name of the original verdict 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.
      • getNewVerdict

        public java.lang.String getNewVerdict()
        Returns the name of the verdict set for this test step result, or null if no verdict has been set. If the value is unchanged, the old verdict name is retrieved.
        Returns:
        A string representing the verdict, or null if no verdict has been set.
      • getOldVerdictType

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

        public java.lang.String getNewVerdictType()
        Returns the name of the verdict type set for this test step result (e.g. "Pass", "Fail", "Other") or null if no verdict has been set. If the value is unchanged, the old verdict type is retrieved.
        Returns:
        A string representing the verdict type, or null if no verdict has been set.
      • setAnnotation

        public void setAnnotation​(java.lang.String annotation)
                           throws mks.frame.triggers.TriggerException
        Sets the annotation of this test step result.
        Parameters:
        annotation - the new annotation to set for this test step result.
        Throws:
        mks.frame.triggers.TriggerException - if the script is running in a POST trigger context.
      • getOldAnnotation

        public java.lang.String getOldAnnotation()
        Gets the original annotation of this test step result.
        Returns:
        The annotation of this test result.
      • getNewAnnotation

        public java.lang.String getNewAnnotation()
        Gets the new annotation of this test step result. If the value is unchanged, the old annotation is retrieved.
        Returns:
        The annotation of this test result.