Skip to content

test_sequence_interface Class Reference

Bill Moore edited this page Sep 20, 2024 · 4 revisions

test_sequence_interface

Name Description
Class test_sequence_interface Interface for the test-level context sequence.
get_bathtub_object() Gets a reference to the Bathtub object.

Class test_sequence_interface

interface class test_sequence_interface extends pool_provider_interface;

Interface for the test-level context sequence.

The test-level context sequence implements this interface. A user step definition sequence can access the test-level context sequence through its get_current_test_sequence() function.

get_bathtub_object()

pure virtual function bathtub get_bathtub_object();

Gets a reference to the Bathtub object.

The user typically instantiates a bathtub_pkg::bathtub object from their test or some other top-level component or module. The Bathtub object runs the Gherkin test via the context sequences. A user step definition sequence can retrieve a reference to the Bathtub object with the context sequence's implementation of this function, e.g.:

bathtub_pkg::bathtub my_bathtub = get_current_test_sequence().get_bathtub_object();