Response class Null safety

Classes shared between integration_test.dart and flutter drive based adoptor (ex: integration_test_driver.dart). An object sent from integration_test back to the Flutter Driver in response to request_data command.

Constructors

Response.allTestsPassed({Map<String, dynamic>? data})
Constructor to use for positive response.
Response.someTestsFailed(List<Failure>? _failureDetails, {Map<String, dynamic>? data})
Constructor for failure response.
Response.toolException({String? ex})
Constructor for failure response.
Response.webDriverCommand({Map<String, dynamic>? data})
Constructor for web driver commands response.

Properties

allTestsPassed bool
Whether the test ran successfully or not.
read-only
data Map<String, dynamic>?
The extra information to be added along side the test result.
read / write
failureDetails List<Failure>?
Failure details as a list.
read-only
formattedFailureDetails String
If the result are failures get the formatted details.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

formatFailures(List<Failure> failureDetails) String
Method for formatting the test failures' details.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() String
Serializes this message to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String source) Response
Deserializes the result from JSON.