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.



TestReportStep({DateTime endTime, String error, @required String id, DateTime startTime, @required Map<String, dynamic> step, @required bool subStep})


endTime DateTime
The date time that the step completed.
error String
Any error description if an error happened. Will be null if, and only if, the step passed.
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The id of the test step.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startTime DateTime
The start date time for when the test step execution began.
step Map<String, dynamic>
The values from the test step.
subStep bool
Set to true if this represents a step executed by another step or false if the step is a top-level test step directly executed by the framework.


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 non-existent method or property is accessed. [...]
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.


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

Static Methods

fromDynamic(dynamic map) TestReportStep