Package mks.ci.server.engine
Class LocalTriggerManager.ScriptTestStepResultDeltaBean
- java.lang.Object
-
- mks.frame.triggers.ScriptExposableBaseBean
-
- mks.frame.triggers.beans.ScriptBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptTestStepResultBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptTestStepResultDeltaBean
-
- All Implemented Interfaces:
mks.frame.triggers.ScriptExposableBean
- Enclosing class:
- LocalTriggerManager
public static class LocalTriggerManager.ScriptTestStepResultDeltaBean extends LocalTriggerManager.ScriptTestStepResultBean
A bean that encapsulates a single test step result.
Instances of this bean are available through the
getStepResultBeans
call of theLocalTriggerManager.ScriptTestResultDeltaBean
.This bean provides read-write access.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExposedName()
Returns the name of this bean that is exposed to the scripting language.java.lang.String
getNewAnnotation()
Gets the new annotation of this test step result.java.lang.String
getNewVerdict()
Returns the name of the verdict set for this test step result, or null if no verdict has been set.LocalTriggerManager.ScriptTestVerdictBean
getNewVerdictBean()
Returns aLocalTriggerManager.ScriptTestVerdictBean
representing the new verdict for this test step result, or null if no verdict had been set.java.lang.String
getNewVerdictType()
Returns the name of the verdict type set for this test step result (e.g.LocalTriggerManager.ScriptVerdictTypeBean
getNewVerdictTypeBean()
Returns aLocalTriggerManager.ScriptVerdictTypeBean
representing the verdict type set for this test step result, or null if no verdict has been set.java.lang.String
getOldAnnotation()
Gets the original annotation of this test step result.java.lang.String
getOldVerdict()
Returns the name of the original verdict for this test step result, or null if no verdict has been set.LocalTriggerManager.ScriptTestVerdictBean
getOldVerdictBean()
Returns aLocalTriggerManager.ScriptTestVerdictBean
representing the original verdict for this test step result, or null if no verdict had been set.java.lang.String
getOldVerdictType()
Returns the name of the original verdict type for this test step result (e.g.LocalTriggerManager.ScriptVerdictTypeBean
getOldVerdictTypeBean()
Returns aLocalTriggerManager.ScriptVerdictTypeBean
representing the original verdict type for this test step result, or null if no verdict has been set.void
setAnnotation(java.lang.String annotation)
Sets the annotation of this test step result.void
setVerdict(java.lang.String verdict)
Sets the verdict of this test step result.-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptTestStepResultBean
getAnnotation, getCaseBean, getCaseID, getSessionBean, getSessionID, getStepBean, getStepID, getVerdict, getVerdictBean, getVerdictType, getVerdictTypeBean, hasVerdict
-
Methods inherited from class mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
getCurrentDatabaseTime, getCurrentDatabaseTime, getCurrentUser, getServerBean, getUserID, isParallelProcessingEnabled
-
Methods inherited from class mks.frame.triggers.beans.ScriptBaseBean
getEnvironmentBean, setEnvironmentBean
-
-
-
-
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 resulttestResult
- the result that this step result is foruserId
- the user invoking the actionc
- our db connectionreadonly
- 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 interfacemks.frame.triggers.ScriptExposableBean
- Overrides:
getExposedName
in classLocalTriggerManager.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.
-
getOldVerdictBean
public LocalTriggerManager.ScriptTestVerdictBean getOldVerdictBean()
Returns aLocalTriggerManager.ScriptTestVerdictBean
representing the original verdict for this test step result, or null if no verdict had been set.- Returns:
- A
LocalTriggerManager.ScriptTestVerdictBean
, or null if no verdict is set.
-
getNewVerdictBean
public LocalTriggerManager.ScriptTestVerdictBean getNewVerdictBean()
Returns aLocalTriggerManager.ScriptTestVerdictBean
representing the new verdict for this test step result, or null if no verdict had been set. If the value is unchanged, the old verdict is retrieved.- Returns:
- A
LocalTriggerManager.ScriptTestVerdictBean
, or null if no verdict is 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.
-
getOldVerdictTypeBean
public LocalTriggerManager.ScriptVerdictTypeBean getOldVerdictTypeBean()
Returns aLocalTriggerManager.ScriptVerdictTypeBean
representing the original verdict type for this test step result, or null if no verdict has been set.- Returns:
- A
LocalTriggerManager.ScriptVerdictTypeBean
, or null if no verdict has been set.
-
getNewVerdictTypeBean
public LocalTriggerManager.ScriptVerdictTypeBean getNewVerdictTypeBean()
Returns aLocalTriggerManager.ScriptVerdictTypeBean
representing the verdict type set for this test step result, or null if no verdict has been set. If the value is unchanged, the old verdict type is retrieved.- Returns:
- A
LocalTriggerManager.ScriptVerdictTypeBean
, 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.
-
-