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 developer.android.com/tools/testing/testing_android.html for more information on types of Android tests.

Constructors

AndroidInstrumentationTest()
AndroidInstrumentationTest.fromJson(Map _json)

Properties

appApk FileReference
The APK for the application under test.
read / write
appBundle AppBundle
A multi-apk app bundle for the application under test.
read / write
appPackageId ↔ String
The java package for the application under test. The default value is determined by examining the application's manifest.
read / write
orchestratorOption ↔ String
The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: [...]
read / write
testApk FileReference
Required. The APK containing the test code to be executed.
read / write
testPackageId ↔ String
The java package for the test to be executed. The default value is determined by examining the application's manifest.
read / write
testRunnerClass ↔ String
The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.
read / write
testTargets ↔ List<String>
Each target must be fully qualified with the package name or class name, in one of these formats: [...]
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited