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 Details

    • parentID

      protected org.bson.types.ObjectId parentID
    • name

      protected String name
    • executionID

      protected String executionID
    • artefactID

      protected org.bson.types.ObjectId artefactID
    • executionTime

      protected long executionTime
    • duration

      protected Integer duration
    • attachments

      protected List<AttachmentMeta> attachments
    • status

      protected ReportNodeStatus status
    • error

      protected step.core.reports.Error error
    • isContributingError

      protected Boolean isContributingError
    • customAttributes

      protected Map<String,String> customAttributes
    • artefactInstance

      protected AbstractArtefact artefactInstance
    • isOrphan

      protected boolean isOrphan
    • resolvedArtefact

      protected AbstractArtefact 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

      public String getName()
    • setName

      public void setName(String name)
    • getExecutionID

      public String getExecutionID()
    • setExecutionID

      public void setExecutionID(String executionID)
    • 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

      public Integer getDuration()
    • setDuration

      public void setDuration(Integer duration)
    • getAttachments

      public List<AttachmentMeta> getAttachments()
    • setAttachments

      public void setAttachments(List<AttachmentMeta> attachments)
    • getStatus

      public ReportNodeStatus getStatus()
    • setStatus

      public void setStatus(ReportNodeStatus status)
    • getError

      public step.core.reports.Error getError()
    • setError

      public void setError(step.core.reports.Error error)
    • getContributingError

      public Boolean 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

      public void setContributingError(Boolean contributingError)
    • setCustomAttributes

      public void setCustomAttributes(Map<String,String> customAttributes)
    • getResolvedArtefact

      public AbstractArtefact getResolvedArtefact()
    • setResolvedArtefact

      public void setResolvedArtefact(AbstractArtefact resolvedArtefact)
    • setError

      public void setError(String errorMessage, int errorCode, boolean isRoot)
    • addError

      public void addError(String error)
    • addAttachment

      public void addAttachment(AttachmentMeta attachment)
    • getCustomAttributes

      public Map<String,String> getCustomAttributes()
    • getCustomAttribute

      public String getCustomAttribute(String key)
    • addCustomAttribute

      public void addCustomAttribute(String key, String value)
    • getArtefactInstance

      public AbstractArtefact getArtefactInstance()
    • setArtefactInstance

      public void setArtefactInstance(AbstractArtefact artefactInstance)
    • isOrphan

      public boolean isOrphan()
    • setOrphan

      public void setOrphan(boolean orphan)
    • setVariableInParentScope

      public boolean setVariableInParentScope()
    • getReportAsString

      public String getReportAsString()
      Returns:
      a string representation of this report node. This method is called by report generators like the JUnit runner