AndroidInstrumentationTestResponse 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

AndroidInstrumentationTestResponse({required Input<FileReferenceResponse> appApk, required Input<AppBundleResponse> appBundle, required Input<String> appPackageId, required Input<String> orchestratorOption, required Input<ShardingOptionResponse> shardingOption, required Input<FileReferenceResponse> testApk, required Input<String> testPackageId, required Input<String> testRunnerClass, required Input<List<String>> testTargets})
Creates a new AndroidInstrumentationTestResponse. appApk The APK for the application under test. appBundle A multi-apk app bundle for the application under test. appPackageId The java package for the application under test. The default value is determined by examining the application's manifest. orchestratorOption 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.1 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator. shardingOption The option to run tests in multiple shards in parallel. testApk The APK containing the test code to be executed. testPackageId The java package for the test to be executed. The default value is determined by examining the application's manifest. testRunnerClass The InstrumentationTestRunner class. The default value is determined by examining the application's manifest. testTargets 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.
const
AndroidInstrumentationTestResponse.fromMap(Map<String, dynamic> map)
factory

Properties

appApk → Input<FileReferenceResponse>
The APK for the application under test.
final
appBundle → Input<AppBundleResponse>
A multi-apk app bundle for the application under test.
final
appPackageId → Input<String>
The java package for the application under test. The default value is determined by examining the application's manifest.
final
hashCode → int
The hash code for this object.
no setterinherited
orchestratorOption → Input<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.1 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shardingOption → Input<ShardingOptionResponse>
The option to run tests in multiple shards in parallel.
final
testApk → Input<FileReferenceResponse>
The APK containing the test code to be executed.
final
testPackageId → Input<String>
The java package for the test to be executed. The default value is determined by examining the application's manifest.
final
testRunnerClass → Input<String>
The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.
final
testTargets → Input<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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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