Package step.core.artefacts.reports
Class ReportNode
java.lang.Object
step.core.accessors.AbstractIdentifiableObject
step.core.artefacts.reports.ReportNode
- Direct Known Subclasses:
AssertReportNode,BeforeSequenceReportNode,BeforeThreadReportNode,CallFunctionReportNode,CheckReportNode,EchoReportNode,FailureReportNode,ForBlockReportNode,IfBlockReportNode,RetryIfFailsReportNode,SetReportNode,SleepReportNode,TestCaseReportNode,ThreadReportNode,WhileReportNode
public class ReportNode
extends step.core.accessors.AbstractIdentifiableObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bson.types.ObjectIdprotected AbstractArtefactprotected List<AttachmentMeta>protected Integerprotected step.core.reports.Errorprotected Stringprotected longprotected Booleanprotected booleanprotected Stringprotected org.bson.types.ObjectIdprotected AbstractArtefactprotected ReportNodeStatusFields inherited from class step.core.accessors.AbstractIdentifiableObject
customFields, ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(AttachmentMeta attachment) voidaddCustomAttribute(String key, String value) voidorg.bson.types.ObjectIdgetCustomAttribute(String key) step.core.reports.ErrorgetError()longgetName()org.bson.types.ObjectIdbooleanisOrphan()voidsetArtefactID(org.bson.types.ObjectId artefactID) voidsetArtefactInstance(AbstractArtefact artefactInstance) voidsetAttachments(List<AttachmentMeta> attachments) voidsetContributingError(Boolean contributingError) voidsetCustomAttributes(Map<String, String> customAttributes) voidsetDuration(Integer duration) voidvoidsetError(step.core.reports.Error error) voidsetExecutionID(String executionID) voidsetExecutionTime(long executionTime) voidvoidsetOrphan(boolean orphan) voidsetParentID(org.bson.types.ObjectId parentID) voidsetResolvedArtefact(AbstractArtefact resolvedArtefact) voidsetStatus(ReportNodeStatus status) booleanMethods inherited from class step.core.accessors.AbstractIdentifiableObject
addCustomField, computeCustomFieldIfAbsent, equals, getCustomField, getCustomField, getCustomFields, getId, hashCode, setCustomFields, setId
-
Field Details
-
parentID
protected org.bson.types.ObjectId parentID -
name
-
executionID
-
artefactID
protected org.bson.types.ObjectId artefactID -
executionTime
protected long executionTime -
duration
-
attachments
-
status
-
error
protected step.core.reports.Error error -
isContributingError
-
customAttributes
-
artefactInstance
-
isOrphan
protected boolean isOrphan -
resolvedArtefact
-
-
Constructor Details
-
ReportNode
public ReportNode()
-
-
Method Details
-
getParentID
public org.bson.types.ObjectId getParentID() -
setParentID
public void setParentID(org.bson.types.ObjectId parentID) -
getName
-
setName
-
getExecutionID
-
setExecutionID
-
getArtefactID
public org.bson.types.ObjectId getArtefactID() -
setArtefactID
public void setArtefactID(org.bson.types.ObjectId artefactID) -
getExecutionTime
public long getExecutionTime() -
setExecutionTime
public void setExecutionTime(long executionTime) -
getDuration
-
setDuration
-
getAttachments
-
setAttachments
-
getStatus
-
setStatus
-
getError
public step.core.reports.Error getError() -
setError
public void setError(step.core.reports.Error error) -
getContributingError
- Returns:
- true if the error associated with this node (
getError()) is marked as a contributing error. An error is marked as contributing when it is responsible for the status (getStatus()) of its parents to be failed. This method returns null when no error is associated with this node
-
setContributingError
-
setCustomAttributes
-
getResolvedArtefact
-
setResolvedArtefact
-
setError
-
addError
-
addAttachment
-
getCustomAttributes
-
getCustomAttribute
-
addCustomAttribute
-
getArtefactInstance
-
setArtefactInstance
-
isOrphan
public boolean isOrphan() -
setOrphan
public void setOrphan(boolean orphan) -
setVariableInParentScope
public boolean setVariableInParentScope() -
getReportAsString
- Returns:
- a string representation of this report node. This method is called by report generators like the JUnit runner
-