AndroidInstrumentationTestArgs

data class AndroidInstrumentationTestArgs(val appApk: Output<FileReferenceArgs>? = null, val appBundle: Output<AppBundleArgs>? = null, val appPackageId: Output<String>? = null, val orchestratorOption: Output<AndroidInstrumentationTestOrchestratorOption>? = null, val shardingOption: Output<ShardingOptionArgs>? = null, val testApk: Output<FileReferenceArgs>, val testPackageId: Output<String>? = null, val testRunnerClass: Output<String>? = null, val testTargets: Output<List<String>>? = null) : ConvertibleToJava<AndroidInstrumentationTestArgs>

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

Link copied to clipboard
fun AndroidInstrumentationTestArgs(appApk: Output<FileReferenceArgs>? = null, appBundle: Output<AppBundleArgs>? = null, appPackageId: Output<String>? = null, orchestratorOption: Output<AndroidInstrumentationTestOrchestratorOption>? = null, shardingOption: Output<ShardingOptionArgs>? = null, testApk: Output<FileReferenceArgs>, testPackageId: Output<String>? = null, testRunnerClass: Output<String>? = null, testTargets: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AndroidInstrumentationTestArgs

Properties

Link copied to clipboard
val appApk: Output<FileReferenceArgs>? = null

The APK for the application under test.

Link copied to clipboard
val appBundle: Output<AppBundleArgs>? = null

A multi-apk app bundle for the application under test.

Link copied to clipboard
val appPackageId: Output<String>? = null

The java package for the application under test. The default value is determined by examining the application's manifest.

Link copied to clipboard

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.

Link copied to clipboard
val shardingOption: Output<ShardingOptionArgs>? = null

The option to run tests in multiple shards in parallel.

Link copied to clipboard

The APK containing the test code to be executed.

Link copied to clipboard
val testPackageId: Output<String>? = null

The java package for the test to be executed. The default value is determined by examining the application's manifest.

Link copied to clipboard
val testRunnerClass: Output<String>? = null

The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.

Link copied to clipboard
val testTargets: Output<List<String>>? = null

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.