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
Modifier and TypeFieldDescriptionprotected org.bson.types.ObjectId
protected AbstractArtefact
protected List<AttachmentMeta>
protected Integer
protected step.core.reports.Error
protected String
protected long
protected Boolean
protected boolean
protected String
protected org.bson.types.ObjectId
protected AbstractArtefact
protected ReportNodeStatus
Fields inherited from class step.core.accessors.AbstractIdentifiableObject
customFields, ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(AttachmentMeta attachment) void
addCustomAttribute
(String key, String value) void
org.bson.types.ObjectId
getCustomAttribute
(String key) step.core.reports.Error
getError()
long
getName()
org.bson.types.ObjectId
boolean
isOrphan()
void
setArtefactID
(org.bson.types.ObjectId artefactID) void
setArtefactInstance
(AbstractArtefact artefactInstance) void
setAttachments
(List<AttachmentMeta> attachments) void
setContributingError
(Boolean contributingError) void
setCustomAttributes
(Map<String, String> customAttributes) void
setDuration
(Integer duration) void
void
setError
(step.core.reports.Error error) void
setExecutionID
(String executionID) void
setExecutionTime
(long executionTime) void
void
setOrphan
(boolean orphan) void
setParentID
(org.bson.types.ObjectId parentID) void
setResolvedArtefact
(AbstractArtefact resolvedArtefact) void
setStatus
(ReportNodeStatus status) boolean
Methods 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
-