Response class

Classes shared between integration_test.dart and flutter drive based adaptor (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.
no setter
data Map<String, dynamic>?
The extra information to be added along side the test result.
getter/setter pair
failureDetails List<Failure>?
Failure details as a list.
no setter
formattedFailureDetails String
If the result are failures get the formatted details.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

formatFailures(List<Failure> failureDetails) String
Method for formatting the test failures' details.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.