Package io.qameta.allure.internal
Class AllureExecutionContext
java.lang.Object
io.qameta.allure.internal.AllureExecutionContext
Mutable execution context that stores a stack of running Allure executable keys.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchild()Returns a child execution context linked to this context.copy()Returns a copy of this execution context.Returns last (most recent) key.Returns the executable key new executable items should be attached to.Returns a snapshot of the locally bound keys, most recent first.getRoot()Returns first (oldest) key.voidstart(AllureExternalKey key) Adds new key.stop()Removes latest locally added key.
-
Constructor Details
-
AllureExecutionContext
public AllureExecutionContext()Creates an empty execution context.
-
-
Method Details
-
getCurrent
Returns last (most recent) key. -
getRoot
Returns first (oldest) key. -
getCurrentExecutable
Returns the executable key new executable items should be attached to. -
start
Adds new key. -
getLocalKeys
Returns a snapshot of the locally bound keys, most recent first.- Returns:
- local keys, top of the stack first
-
copy
Returns a copy of this execution context.- Returns:
- context snapshot
-
child
Returns a child execution context linked to this context.- Returns:
- child context
-
stop
Removes latest locally added key. Ignores empty local context.- Returns:
- removed key.
-