[][src]Struct google_testing1::TestSetup

pub struct TestSetup {
    pub account: Option<Account>,
    pub environment_variables: Option<Vec<EnvironmentVariable>>,
    pub network_profile: Option<String>,
    pub additional_apks: Option<Vec<Apk>>,
    pub directories_to_pull: Option<Vec<String>>,
    pub files_to_push: Option<Vec<DeviceFile>>,
}

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

This type is not used in any activity, and only used as part of another schema.

Fields

account: Option<Account>

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

environment_variables: Option<Vec<EnvironmentVariable>>

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

network_profile: Option<String>

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.

additional_apks: Option<Vec<Apk>>

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

directories_to_pull: Option<Vec<String>>

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. 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.

files_to_push: Option<Vec<DeviceFile>>

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

Trait Implementations

impl Part for TestSetup[src]

impl Default for TestSetup[src]

impl Clone for TestSetup[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TestSetup[src]

impl Serialize for TestSetup[src]

impl<'de> Deserialize<'de> for TestSetup[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]