TestRunnerStep class

Abstract step that all other test steps must extend.

Inheritance
Implementers
Annotations

Constructors

TestRunnerStep()

Properties

driver → OverrideWidgetTester
Returns the test driver that can be used to interact with widgets.
read-only
find → CommonFinders
Returns the finder that can be used to locate widgets.
read-only
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

Methods

execute({TestReport report, TestController tester}) Future<void>
Function that is called when the step needs to execute.
log(String message, {TestController tester}) → void
Logs a message and posts it as a status update to the TestRunner.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
postStepSleep(Duration duration) Future<void>
Gives the test step an opportunity to sleep after the step has been executed. Steps that do not interact with the application may choose to override this and reduce or elimate the delay.
preStepSleep(Duration duration) Future<void>
Gives the test step an opportunity to sleep before the step has been executed. Steps that do not interact with the application may choose to override this and reduce or elimate the delay.
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. The error flag informs the sleeper about whether the duration is a standard duration or an error based timeout. [...]
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation. [...]
inherited
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.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited