Package io.hyperfoil.api.session
Interface GlobalData
public interface GlobalData
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceThis interface is typically implemented in extensions. -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(String phase, String key, GlobalData.Element element) Offers an element for publishing.Retrieves the element created in one of strictly preceding phases.
-
Method Details
-
publish
Offers an element for publishing. When the publishing phase terminates all elements with the same key are combined together (in arbitrary order) on the controller. The resulting element is then made available to phases started strictly after publishing phase. If there is already an existing element with this key present all remaining phases are cancelled and an error is reported.- Parameters:
phase-key- Identifier.element- Custom element.
-
read
Retrieves the element created in one of strictly preceding phases.- Parameters:
key- Identifier.- Returns:
- Custom element.
-