SetDateVariableStep class
Properties
-
date
→ String?
-
The date to use. Will be DateTime.now when omitted. This must be
either a variable reference to a DateTime, an int or string encoded UTC
Millis, or UTC formatted using either of the two formats:
final
-
defaultStepTimeout
→ Duration
-
Returns the default timeout for the step. Steps that should respond
quickly should use a relatively low value and steps that may take a long
time should return an appropriately longer time.
no setterinherited
-
driver
→ OverrideWidgetTester
-
Returns the test driver that can be used to interact with widgets.
no setterinherited
-
find
→ CommonFinders
-
Returns the finder that can be used to locate widgets.
no setterinherited
-
format
→ String
-
The output format to use.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
offsetDays
→ int
-
final
-
offsetHours
→ int
-
final
-
offsetMinutes
→ int
-
final
-
offsetSeconds
→ int
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
stepId
→ String
-
no setter
-
utc
→ bool?
-
Set to
true
to leave the emitted DateTime in UTC. Set to false
or
null
to convert the DateTime to the local timezone before setting the
variable.
final
-
variableName
→ String?
-
The variable name of the variable to set on the controller.
final
Methods
-
execute({required CancelToken cancelToken, required TestReport report, required TestController tester})
→ Future<void>
-
Sets the formatted date to a variable on the
TestController
.
-
getBehaviorDrivenDescription(TestController tester)
→ String
-
Gets the most appropriate BDD string based on the values set on the step.
-
log(String message, {required TestController tester})
→ void
-
Logs a message and posts it as a status update to the
TestRunner
.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
postStepSleep(Duration duration)
→ Future<void>
-
Overidden to ignore the delay
-
preStepSleep(Duration duration)
→ Future<void>
-
Overidden to ignore the delay
-
sleep(Duration duration, {required Stream<void>? cancelStream, bool error = false, String? message, required 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.
inherited
-
toJson()
→ Map<String, dynamic>
-
Converts this to a JSON compatible map. For a description of the format,
see fromDynamic.
-
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, {required CancelToken cancelToken, required TestController tester, Duration? timeout})
→ Future<Finder>
-
Waits for a widget with a key that has
testableId
as the value.
inherited