SetVariableStep class
Sets a variable on the identified TestController.
- Inheritance
- Object
- JsonClass
- TestRunnerStep
- SetVariableStep
Constructors
Properties
- driver → OverrideWidgetTester
-
Returns the test driver that can be used to interact with widgets.
read-only, inherited
- find → CommonFinders
-
Returns the finder that can be used to locate widgets.
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- type → String
-
The type of value to set. This must be one of: [...]
final
- value → String
-
The string representation of the value to set.
final
- variableName → String
-
The variable name of the variable to set on the controller.
final
Methods
-
execute(
{TestReport report, TestController tester}) → Future< void> -
Sets the variable on the TestController.
override
-
log(
String message, {TestController tester}) → void -
Logs a message and posts it as a status update to the TestRunner.
@protected, inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
postStepSleep(
Duration duration) → Future< void> -
Overidden to ignore the delay
override
-
preStepSleep(
Duration duration) → Future< void> -
Overidden to ignore the delay
override
-
sleep(
Duration duration, {Stream< void> cancelStream, bool error: false, String message, TestController tester}) → Future<void> -
Sleeps for the defined Duration. This accept an optional
cancelStream
which can be used to cancel the sleep. Theerror
flag informs the sleeper about whether the duration is a standard duration or an error based timeout. [...]@protected, inherited -
toJson(
) → Map< String, dynamic> -
Converts this to a JSON compatible map. For a description of the format,
see fromDynamic.
override
-
toString(
) → String -
Returns the string encoded JSON representation for this class. This will
remove all
null
values and empty collections from the returned string.inherited -
waitFor(
dynamic testableId, {TestController tester, Duration timeout}) → Future< Finder> -
Waits for a widget with a key that has
testableId
as the value.@protected, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Static Methods
-
fromDynamic(
dynamic map) → SetVariableStep - Creates an instance from a JSON-like map structure. This expects the following format: [...]