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
,Failure
,IfBlock
,Placeholder
,RetryIfFails
,Return
,Script
,Sequence
,Set
,Sleep
,StreamingArtefact
,Switch
,TestCase
,TestScenario
,TestSet
,ThreadGroup
,ThreadGroupHandler.Thread
,TokenSelector
,While
public abstract class AbstractArtefact
extends step.core.accessors.AbstractOrganizableObject
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<org.bson.types.ObjectId>
protected List<AbstractArtefact>
protected String
protected DynamicValue<String>
protected boolean
Fields inherited from class step.core.accessors.AbstractOrganizableObject
attributes, NAME, VERSION
Fields inherited from class step.core.accessors.AbstractIdentifiableObject
customFields, ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(org.bson.types.ObjectId attachmentId) boolean
void
addCustomAttribute
(String key, Object value) void
boolean
static String
getArtefactName
(Class<? extends AbstractArtefact> artefactClass) List<org.bson.types.ObjectId>
getCustomAttribute
(String key) int
hashCode()
boolean
boolean
Deprecated.This field has been deprecated and isn't used anymore.boolean
Property artefacts are special artefacts that are directly attached to their parent artefact.boolean
void
setAttachments
(List<org.bson.types.ObjectId> attachments) void
setChildren
(List<AbstractArtefact> children) void
setContinueParentNodeExecutionOnError
(DynamicValue<Boolean> continueOnError) void
setCustomAttributes
(Map<String, Object> customAttributes) void
setDescription
(String description) void
setDynamicName
(DynamicValue<String> dynamicName) void
setInstrumentNode
(DynamicValue<Boolean> instrumentNode) void
void
setPersistNode
(boolean persistNode) Deprecated.This field has been deprecated and isn't used anymore.void
setSkipNode
(DynamicValue<Boolean> skipNode) void
setUseDynamicName
(boolean useDynamicName) 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 Details
-
dynamicName
-
useDynamicName
protected boolean useDynamicName -
description
-
children
-
customAttributes
-
attachments
-
-
Constructor Details
-
AbstractArtefact
public AbstractArtefact()
-
-
Method Details
-
getArtefactName
-
getDescription
-
setDescription
-
getChildren
-
setChildren
-
addChild
-
getCustomAttributes
-
setCustomAttributes
-
getCustomAttribute
-
addCustomAttribute
-
addAttachment
public void addAttachment(org.bson.types.ObjectId attachmentId) -
setAttachments
-
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
Deprecated.This field has been deprecated and isn't used anymore. The getter and setter have been kept in the model to avoid deserialization issues TODO implement a migration task and remove the getter and setter- Returns:
-
setPersistNode
Deprecated.This field has been deprecated and isn't used anymore. The setter has been kept in the model to avoid deserialization issues- Parameters:
persistNode
-
-
getSkipNode
-
setSkipNode
-
getDynamicName
-
setDynamicName
-
isUseDynamicName
public boolean isUseDynamicName() -
setUseDynamicName
public void setUseDynamicName(boolean useDynamicName) -
setNameDynamically
public void setNameDynamically() -
deepCleanupAllCustomAttributes
public void deepCleanupAllCustomAttributes() -
getInstrumentNode
-
setInstrumentNode
-
getContinueParentNodeExecutionOnError
-
setContinueParentNodeExecutionOnError
-
hashCode
public int hashCode()- Overrides:
hashCode
in classstep.core.accessors.AbstractIdentifiableObject
-
equals
- Overrides:
equals
in classstep.core.accessors.AbstractIdentifiableObject
-