Struct google_testing1::TestSetup
source · pub struct TestSetup {
pub account: Option<Account>,
pub files_to_push: Option<Vec<DeviceFile>>,
pub network_profile: Option<String>,
pub additional_apks: Option<Vec<Apk>>,
pub environment_variables: Option<Vec<EnvironmentVariable>>,
pub directories_to_pull: Option<Vec<String>>,
}Expand description
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. Optional
files_to_push: Option<Vec<DeviceFile>>List of files to push to the device before starting the test.
Optional
network_profile: Option<String>Optional. 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. Optional
environment_variables: Option<Vec<EnvironmentVariable>>Environment variables to set for the test (only applicable for instrumentation tests).
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.
Optional
Trait Implementations§
source§impl<'de> Deserialize<'de> for TestSetup
impl<'de> Deserialize<'de> for TestSetup
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for TestSetup
Auto Trait Implementations§
impl Freeze for TestSetup
impl RefUnwindSafe for TestSetup
impl Send for TestSetup
impl Sync for TestSetup
impl Unpin for TestSetup
impl UnwindSafe for TestSetup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more