Describes an automated test step. Custom test steps must register with the TestStepRegistry and create an instance of this class. This binds the input form, any quick-add values, the help and title translation entities, and the requirements of the step that determines if the step will show or not given the current constraints.
- form → TestStepForm
Binds the input form associated with the test step. This must
self-validate and ensure all required values exist before allowing
- hashCode → int
The hash code for this object. [...]
- help → TranslationEntry
Translation key for the help text that describes the test step.
- id → String
The id / human readable string for this particular step. Built-in values
all use a
lower_under_lowerformat for the keys rather than a
camelCaseformat. However, custom steps may use whichever form they prefer.final
The unique set of value keys supported by the step. Entries in the
valuesmap that do not have an associated key must be removed before final processing is complete.final
Map of key / value pairs that can be used to quick add (form less add) the
step to a test. This must be
nullif forms are always required to be filled out before adding the step.final
- runtimeType → Type
A representation of the runtime type of the object.
- title → TranslationEntry
Translation key for the title text that tescribes the test step.
- type → TestableType
The type value that the Testable must support or else this step will be
hidden from the available options. If this is not set then it is assumed
the test supports all types. [...]
- widgetless → bool
Sets whether this step is dependent on a Testable widget or not. If
this value is
truethen it is assumed the step is Testable agnostic and can be used anywhere in the application. If
falsethen it the step will only be shown for compatible type values.final
Map< String, dynamic>values) → Map< String, dynamic>
Requests the step to minify the given
valuesmap by stripping any key / value pairs that exist in the map but are not allowed by the step.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
List< TestableType>types) → bool
trueif this step supports any of the given
typesor if this step has no specific type requirement. Returns
falseif this has a type requirement that the Testable does not support the required type.
) → String
Returns a string representation of this object.