pub struct TestSetup {
pub files_to_push: Vec<DeviceFile>,
pub directories_to_pull: Vec<String>,
pub initial_setup_apks: Vec<Apk>,
pub additional_apks: Vec<Apk>,
pub account: Option<Account>,
pub network_profile: String,
pub environment_variables: Vec<EnvironmentVariable>,
pub systrace: Option<SystraceSetup>,
pub dont_autogrant_permissions: bool,
}
Expand description
A description of how to set up the Android device prior to running the test.
Fields§
§files_to_push: Vec<DeviceFile>
List of files to push to the device before starting the test.
directories_to_pull: 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, /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.
initial_setup_apks: Vec<Apk>
Optional. Initial setup APKs to install before the app under test is installed. Currently capped at 100.
additional_apks: Vec<Apk>
APKs to install in addition to those being directly tested. These will be installed after the app under test. Currently capped at 100.
account: Option<Account>
The device will be logged in on this account for the duration of the test.
network_profile: 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.
environment_variables: Vec<EnvironmentVariable>
Environment variables to set for the test (only applicable for instrumentation tests).
systrace: Option<SystraceSetup>
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.
dont_autogrant_permissions: bool
Whether to prevent all runtime permissions to be granted at app install
Trait Implementations§
source§impl Message for TestSetup
impl Message for TestSetup
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TestSetup
impl PartialEq for TestSetup
impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request