TestSetupArgs

data class TestSetupArgs(val account: Output<AccountArgs>? = null, val additionalApks: Output<List<ApkArgs>>? = null, val directoriesToPull: Output<List<String>>? = null, val dontAutograntPermissions: Output<Boolean>? = null, val environmentVariables: Output<List<EnvironmentVariableArgs>>? = null, val filesToPush: Output<List<DeviceFileArgs>>? = null, val networkProfile: Output<String>? = null, val systrace: Output<SystraceSetupArgs>? = null) : ConvertibleToJava<TestSetupArgs>

A description of how to set up the Android device prior to running the test.

Constructors

Link copied to clipboard
constructor(account: Output<AccountArgs>? = null, additionalApks: Output<List<ApkArgs>>? = null, directoriesToPull: Output<List<String>>? = null, dontAutograntPermissions: Output<Boolean>? = null, environmentVariables: Output<List<EnvironmentVariableArgs>>? = null, filesToPush: Output<List<DeviceFileArgs>>? = null, networkProfile: Output<String>? = null, systrace: Output<SystraceSetupArgs>? = null)

Properties

Link copied to clipboard
val account: Output<AccountArgs>? = null

The device will be logged in on this account for the duration of the test.

Link copied to clipboard
val additionalApks: Output<List<ApkArgs>>? = null

APKs to install in addition to those being directly tested. Currently capped at 100.

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

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. Path names are restricted to characters a-z A-Z 0-9 _ - . + and / Note: The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device.

Link copied to clipboard
val dontAutograntPermissions: Output<Boolean>? = null

Whether to prevent all runtime permissions to be granted at app install

Link copied to clipboard

Environment variables to set for the test (only applicable for instrumentation tests).

Link copied to clipboard
val filesToPush: Output<List<DeviceFileArgs>>? = null

List of files to push to the device before starting the test.

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

The network traffic profile used for running the test. Available network profiles can be queried by using the NETWORK_CONFIGURATION environment type when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.

Link copied to clipboard
val systrace: Output<SystraceSetupArgs>? = null

Systrace configuration for the run. Deprecated: Systrace used Python 2 which was sunsetted on 2020-01-01. Systrace is no longer supported in the Cloud Testing API, and no Systrace file will be provided in the results.

Functions

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