TestSetup class
A description of how to set up the Android device prior to running the test.
Constructors
-
TestSetup({Account? account, List<
Apk> ? additionalApks, List<String> ? directoriesToPull, bool? dontAutograntPermissions, List<EnvironmentVariable> ? environmentVariables, List<DeviceFile> ? filesToPush, String? networkProfile, SystraceSetup? systrace}) - TestSetup.fromJson(Map _json)
Properties
- account ↔ Account?
-
The device will be logged in on this account for the duration of the test.
getter/setter pair
-
additionalApks
↔ List<
Apk> ? -
APKs to install in addition to those being directly tested.
getter/setter pair
-
directoriesToPull
↔ List<
String> ? -
List of directories on the device to upload to GCS at the end of the test;
they must be absolute paths under /sdcard, /storage or /data/local/tmp.
getter/setter pair
- dontAutograntPermissions ↔ bool?
-
Whether to prevent all runtime permissions to be granted at app install
getter/setter pair
-
environmentVariables
↔ List<
EnvironmentVariable> ? -
Environment variables to set for the test (only applicable for
instrumentation tests).
getter/setter pair
-
filesToPush
↔ List<
DeviceFile> ? -
List of files to push to the device before starting the test.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- networkProfile ↔ String?
-
The network traffic profile used for running the test.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systrace ↔ SystraceSetup?
-
Deprecated: Systrace uses Python 2 which has been sunset 2020-01-01.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited