Package step.artefacts.handlers
Class AbstractSessionArtefactHandler<ARTEFACT extends AbstractArtefact,REPORT_NODE extends ReportNode>
- java.lang.Object
-
- step.core.artefacts.handlers.ArtefactHandler<ARTEFACT,REPORT_NODE>
-
- step.artefacts.handlers.AbstractSessionArtefactHandler<ARTEFACT,REPORT_NODE>
-
- Direct Known Subclasses:
ForBlockHandler
,TestCaseHandler
,ThreadGroupHandler.ThreadHandler
public abstract class AbstractSessionArtefactHandler<ARTEFACT extends AbstractArtefact,REPORT_NODE extends ReportNode> extends ArtefactHandler<ARTEFACT,REPORT_NODE>
Abstract class forArtefactHandler
s that wrap their child artefacts intoFunctionGroup
aka Sessions
-
-
Field Summary
-
Fields inherited from class step.core.artefacts.handlers.ArtefactHandler
context, FILE_VARIABLE_PREFIX, FORCE_PERSIST_BEFORE, logger, TEC_EXECUTION_REPORTNODES_PERSISTAFTER, TEC_EXECUTION_REPORTNODES_PERSISTBEFORE, TEC_EXECUTION_REPORTNODES_PERSISTONLYNONPASSED
-
-
Constructor Summary
Constructors Constructor Description AbstractSessionArtefactHandler()
-
Method Summary
-
Methods inherited from class step.core.artefacts.handlers.ArtefactHandler
createReportNode_, createReportSkeleton, createReportSkeleton_, createWorkArtefact, createWorkArtefact, createWorkArtefact, delegateCreateReportSkeleton, delegateCreateReportSkeleton, delegateExecute, delegateExecute, excludePropertyChildren, execute, execute_, fail, failWithException, failWithException, failWithException, filterPropertyChildren, getBindings, getChildren, getChildren, init, initProperties, isInSession, releaseTokens, removeReportNode
-
-
-
-
Method Detail
-
createReportNodeSkeletonInSession
protected void createReportNodeSkeletonInSession(AbstractArtefact artefact, ReportNode node, BiConsumer<AbstractArtefact,ReportNode> consumer, String artefactName, Map<String,Object> newVariables)
-
createReportNodeSkeletonInSession
protected void createReportNodeSkeletonInSession(AbstractArtefact artefact, ReportNode node, BiConsumer<AbstractArtefact,ReportNode> consumer)
-
createReportNodeSkeletonInSession
protected void createReportNodeSkeletonInSession(AbstractArtefact artefact, ReportNode node, BiConsumer<AbstractArtefact,ReportNode> consumer, Map<String,Object> newVariables)
-
executeInSession
protected ReportNode executeInSession(AbstractArtefact artefact, ReportNode node, BiConsumer<AbstractArtefact,ReportNode> consumer, String sessionArtefactName, Map<String,Object> newVariables)
Wraps the child artefacts of the provided artefact into a Session and delegates the execution of the Session with the providedBiConsumer
(SeeFunctionGroup.getConsumer()
)- Parameters:
artefact
- the parent artefactnode
- the report node corresponding to the provided artefactconsumer
- theBiConsumer
representing the action to be performed inside the SessionsessionArtefactName
- the name of the Session artefact to be creatednewVariables
- additional variables to be added in the scope of the Session node- Returns:
- the
ReportNode
corresponding to the Session
-
executeInSession
protected ReportNode executeInSession(AbstractArtefact artefact, ReportNode node, BiConsumer<AbstractArtefact,ReportNode> consumer)
-
executeInSession
protected ReportNode executeInSession(AbstractArtefact artefact, ReportNode node, BiConsumer<AbstractArtefact,ReportNode> consumer, Map<String,Object> newVariables)
-
-