public final class TestSetup
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Testing API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TestSetup() |
| Modifier and Type | Method and Description |
|---|---|
TestSetup |
clone() |
Account |
getAccount()
The device will be logged in on this account for the duration of the test.
|
List<Apk> |
getAdditionalApks()
APKs to install in addition to those being directly tested.
|
List<String> |
getDirectoriesToPull()
List of directories on the device to upload to GCS at the end of the test; they must be
absolute paths under /sdcard or /data/local/tmp.
|
List<EnvironmentVariable> |
getEnvironmentVariables()
Environment variables to set for the test (only applicable for instrumentation tests).
|
List<DeviceFile> |
getFilesToPush()
List of files to push to the device before starting the test.
|
String |
getNetworkProfile()
The network traffic profile used for running the test.
|
TestSetup |
set(String fieldName,
Object value) |
TestSetup |
setAccount(Account account)
The device will be logged in on this account for the duration of the test.
|
TestSetup |
setAdditionalApks(List<Apk> additionalApks)
APKs to install in addition to those being directly tested.
|
TestSetup |
setDirectoriesToPull(List<String> directoriesToPull)
List of directories on the device to upload to GCS at the end of the test; they must be
absolute paths under /sdcard or /data/local/tmp.
|
TestSetup |
setEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Environment variables to set for the test (only applicable for instrumentation tests).
|
TestSetup |
setFilesToPush(List<DeviceFile> filesToPush)
List of files to push to the device before starting the test.
|
TestSetup |
setNetworkProfile(String networkProfile)
The network traffic profile used for running the test.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Account getAccount()
null for nonepublic TestSetup setAccount(Account account)
account - account or null for nonepublic List<Apk> getAdditionalApks()
null for nonepublic TestSetup setAdditionalApks(List<Apk> additionalApks)
additionalApks - additionalApks or null for nonepublic List<String> getDirectoriesToPull()
null for nonepublic TestSetup setDirectoriesToPull(List<String> directoriesToPull)
directoriesToPull - directoriesToPull or null for nonepublic List<EnvironmentVariable> getEnvironmentVariables()
null for nonepublic TestSetup setEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
environmentVariables - environmentVariables or null for nonepublic List<DeviceFile> getFilesToPush()
null for nonepublic TestSetup setFilesToPush(List<DeviceFile> filesToPush)
filesToPush - filesToPush or null for nonepublic String getNetworkProfile()
null for nonepublic TestSetup setNetworkProfile(String networkProfile)
networkProfile - networkProfile or null for nonepublic TestSetup set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TestSetup clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2019 Google. All rights reserved.