TestReportStep class
The result for an executed test step. It's important to note that times in the report are relative to each run and should not be thought of in absolute terms. Too many variables such as animations, built in delays, etc. can cause an individual test step to take 1-2 seconds despite a perceived expectation that something should be sub-second. When comparing the times, do so only across tests and look for trends. Avoid the temptation to look at the times as absolutes.
Constructors
Properties
- endTime → DateTime?
-
The date time that the step completed.
final
- error → String?
-
Any error description if an error happened. Will be
null
if, and only if, the step passed.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id of the test step.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
The start date time for when the test step execution began.
final
-
step
→ Map<
String, dynamic> ? -
The values from the test step.
final
- subStep → bool
-
Set to
true
if this represents a step executed by another step orfalse
if the step is a top-level test step directly executed by the framework.final
Methods
-
copyWith(
{DateTime? endTime, String? error, Map< String, dynamic> ? step, DateTime? startTime, bool? subStep}) → TestReportStep - Copies the report entry with the given values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the report entry to a JSON compatible representation.
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDynamic(
dynamic map) → TestReportStep