AndroidInstrumentationTest class
A test of an Android application that can control an Android component independently of its normal lifecycle.
Android instrumentation tests run an application APK and test APK inside the same process on a virtual or physical AndroidDevice. They also specify a test runner class, such as com.google.GoogleTestRunner, which can vary on the specific instrumentation framework chosen. See for more information on types of Android tests.
Constructors
-
AndroidInstrumentationTest({FileReference? appApk, AppBundle? appBundle, String? appPackageId, String? orchestratorOption, ShardingOption? shardingOption, FileReference? testApk, String? testPackageId, String? testRunnerClass, List<
String> ? testTargets}) - AndroidInstrumentationTest.fromJson(Map json_)
Properties
- appApk ↔ FileReference?
-
The APK for the application under test.
getter/setter pair
- appBundle ↔ AppBundle?
-
A multi-apk app bundle for the application under test.
getter/setter pair
- appPackageId ↔ String?
-
The java package for the application under test.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- orchestratorOption ↔ String?
-
The option of whether running each test within its own invocation of
instrumentation with Android Test Orchestrator or not.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
The option to run tests in multiple shards in parallel.
getter/setter pair
- testApk ↔ FileReference?
-
The APK containing the test code to be executed.
getter/setter pair
- testPackageId ↔ String?
-
The java package for the test to be executed.
getter/setter pair
- testRunnerClass ↔ String?
-
The InstrumentationTestRunner class.
getter/setter pair
-
testTargets
↔ List<
String> ? -
Each target must be fully qualified with the package name or class name,
in one of these formats: - "package package_name" - "class
package_name.class_name" - "class package_name.class_name#method_name" If
empty, all targets in the module will be run.
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