Package step.core.artefacts
Class AbstractArtefact
- java.lang.Object
-
- step.core.accessors.AbstractIdentifiableObject
-
- step.core.accessors.AbstractOrganizableObject
-
- step.core.artefacts.AbstractArtefact
-
- Direct Known Subclasses:
AbstractForBlock
,Assert
,CallPlan
,Case
,Check
,CheckArtefact
,Echo
,Export
,IfBlock
,Placeholder
,RetryIfFails
,Return
,Script
,Sequence
,Set
,Sleep
,StreamingArtefact
,Switch
,TestCase
,TestScenario
,TestSet
,ThreadGroup
,ThreadGroupHandler.Thread
,TokenSelector
,While
public abstract class AbstractArtefact extends AbstractOrganizableObject
-
-
Field Summary
Fields Modifier and Type Field Description protected List<org.bson.types.ObjectId>
attachments
protected List<AbstractArtefact>
children
protected Map<String,Object>
customAttributes
protected String
description
protected DynamicValue<String>
dynamicName
protected boolean
persistNode
protected boolean
useDynamicName
-
Fields inherited from class step.core.accessors.AbstractOrganizableObject
attributes, NAME, VERSION
-
Fields inherited from class step.core.accessors.AbstractIdentifiableObject
_id, customFields
-
-
Constructor Summary
Constructors Constructor Description AbstractArtefact()
-
Method Summary
-
Methods inherited from class step.core.accessors.AbstractOrganizableObject
addAttribute, getAttribute, getAttributes, hasAttribute, setAttributes
-
Methods inherited from class step.core.accessors.AbstractIdentifiableObject
addCustomField, computeCustomFieldIfAbsent, getCustomField, getCustomField, getCustomFields, getId, setCustomFields, setId
-
-
-
-
Field Detail
-
dynamicName
protected DynamicValue<String> dynamicName
-
useDynamicName
protected boolean useDynamicName
-
description
protected String description
-
children
protected List<AbstractArtefact> children
-
attachments
protected List<org.bson.types.ObjectId> attachments
-
persistNode
protected boolean persistNode
-
-
Method Detail
-
getArtefactName
public static String getArtefactName(Class<? extends AbstractArtefact> artefactClass)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getChildren
public List<AbstractArtefact> getChildren()
-
setChildren
public void setChildren(List<AbstractArtefact> children)
-
addChild
public boolean addChild(AbstractArtefact e)
-
addAttachment
public void addAttachment(org.bson.types.ObjectId attachmentId)
-
setAttachments
public void setAttachments(List<org.bson.types.ObjectId> attachments)
-
getAttachments
public List<org.bson.types.ObjectId> getAttachments()
-
isCreateSkeleton
public boolean isCreateSkeleton()
-
isPropertyArefact
public boolean isPropertyArefact()
Property artefacts are special artefacts that are directly attached to their parent artefact. Property artefacts are not subject to transclusion and remain attached to their parent. They are executed in 2 phases.- During the first phase the method ArtafactHandler.initProperties is called for each property artefacts before their parent artefact is executed.
- The second phase starts after execution of the parent artefact. During the second phase all the property artefact are executed (ArtafactHandler.execute_)
- Returns:
- true if this artefact is a property artefact
-
isPersistNode
public boolean isPersistNode()
-
setPersistNode
public void setPersistNode(boolean persistNode)
-
getSkipNode
public DynamicValue<Boolean> getSkipNode()
-
setSkipNode
public void setSkipNode(DynamicValue<Boolean> skipNode)
-
getDynamicName
public DynamicValue<String> getDynamicName()
-
setDynamicName
public void setDynamicName(DynamicValue<String> dynamicName)
-
isUseDynamicName
public boolean isUseDynamicName()
-
setUseDynamicName
public void setUseDynamicName(boolean useDynamicName)
-
setNameDynamically
public void setNameDynamically()
-
getInstrumentNode
public DynamicValue<Boolean> getInstrumentNode()
-
setInstrumentNode
public void setInstrumentNode(DynamicValue<Boolean> instrumentNode)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractIdentifiableObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractIdentifiableObject
-
-