Package mks.ci.server.engine
Class LocalTriggerManager.ScriptTestStepResultBean
- java.lang.Object
-
- mks.frame.triggers.ScriptExposableBaseBean
-
- mks.frame.triggers.beans.ScriptBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptIMBaseBean
-
- mks.ci.server.engine.LocalTriggerManager.ScriptTestStepResultBean
-
- All Implemented Interfaces:
mks.frame.triggers.ScriptExposableBean
- Direct Known Subclasses:
LocalTriggerManager.ScriptTestStepResultDeltaBean
- Enclosing class:
- LocalTriggerManager
public static class LocalTriggerManager.ScriptTestStepResultBean extends LocalTriggerManager.ScriptIMBaseBean implements mks.frame.triggers.ScriptExposableBean
A bean that encapsulates a single test step result.
Instances of this bean are available through the
getStepResultBeans
call of theLocalTriggerManager.ScriptTestResultBean
.This bean provides read-only access.
-
-
Constructor Summary
Constructors Constructor Description ScriptTestStepResultBean(mks.ci.server.engine.TestStepResult testStepResult, mks.ci.server.engine.TestResult testResult, int userId, java.sql.Connection c)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAnnotation()
Gets the annotation of this test step result.LocalTriggerManager.ScriptIssueBean
getCaseBean()
Returns aLocalTriggerManager.ScriptIssueBean
representing the Windchill RV&S item that acts as the test case of this test step result.int
getCaseID()
Returns the Windchill RV&S item id of the item that acts as the test case of this test step result.java.lang.String
getExposedName()
Returns the name of this bean that is exposed to the scripting language.LocalTriggerManager.ScriptIssueBean
getSessionBean()
Returns aLocalTriggerManager.ScriptIssueBean
representing the Windchill RV&S item that acts as the test session of this test step result.int
getSessionID()
Returns the Windchill RV&S item id of the item that acts as the test session of this test step result.LocalTriggerManager.ScriptIssueBean
getStepBean()
Returns aLocalTriggerManager.ScriptIssueBean
representing the Windchill RV&S item that acts as the test step of this test step result.int
getStepID()
Returns the Windchill RV&S item id of the item that acts as the test step of this test step result.java.lang.String
getVerdict()
Returns the name of the verdict set for this test step result, or null if no verdict has been set.LocalTriggerManager.ScriptTestVerdictBean
getVerdictBean()
Returns aLocalTriggerManager.ScriptTestVerdictBean
representing the verdict set for this test step result, or null if no verdict has been set.java.lang.String
getVerdictType()
Returns the name of the verdict type set for this test step result (e.g.LocalTriggerManager.ScriptVerdictTypeBean
getVerdictTypeBean()
Returns aLocalTriggerManager.ScriptVerdictTypeBean
representing the verdict type set for this test step result, or null if no verdict has been set.boolean
hasVerdict()
Returns true if the verdict is set for this test step result.-
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
-
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 foruserId
- the user invoking the actionc
- 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 interfacemks.frame.triggers.ScriptExposableBean
- Specified by:
getExposedName
in classScriptBaseBean
- 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 aLocalTriggerManager.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 aLocalTriggerManager.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 aLocalTriggerManager.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.
-
getVerdictBean
public LocalTriggerManager.ScriptTestVerdictBean getVerdictBean()
Returns aLocalTriggerManager.ScriptTestVerdictBean
representing the verdict set for this test step result, or null if no verdict has been set.- Returns:
- A
LocalTriggerManager.ScriptTestVerdictBean
, or null if no verdict is 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.
-
getVerdictTypeBean
public LocalTriggerManager.ScriptVerdictTypeBean getVerdictTypeBean()
Returns aLocalTriggerManager.ScriptVerdictTypeBean
representing the verdict type set 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.
-
getAnnotation
public java.lang.String getAnnotation()
Gets the annotation of this test step result.- Returns:
- The annotation of this test step result.
-
-