Test::BDD::Cucumber::StepContext - Data made available to step definitions
The coderefs in Step Definitions have a single argument passed to them,
This is an attribute-only class,
populated by Test::BDD::Cucumber::Executor.
Step-specific data. Will either be a text string in the case of a """ string, or an arrayref of hashrefs if the step had an associated table.
A hash of hashes,
containing three keys,
The stash allows you to persist data across features,
or steps (although the latter is there for completeness,
rather than having any useful function).
The lower-cased verb a Step Definition was called with.
The text of the step, minus the verb. Placeholders will have already been multiplied out at this point.
The Test::BDD::Cucumber::Harness harness being used by the executor.
Any matches caught by the Step Definition's regex.
These are also available as
$2 etc as appropriate.
Boolean for "is this step being run as part of the background section?". Currently implemented by asking the linked Scenario object...
Copyright 2011, Peter Sergeant; Licensed under the same terms as Perl