pub struct AndroidInstrumentationTest {
pub app_apk: Option<FileReference>,
pub app_bundle: Option<AppBundle>,
pub app_package_id: Option<String>,
pub orchestrator_option: Option<String>,
pub sharding_option: Option<ShardingOption>,
pub test_apk: Option<FileReference>,
pub test_package_id: Option<String>,
pub test_runner_class: Option<String>,
pub test_targets: Option<Vec<String>>,
}
Expand description
A test of an Android application that can control an Android component independently of its normal lifecycle. Android instrumentation tests run an application APK and test APK inside the same process on a virtual or physical AndroidDevice. They also specify a test runner class, such as com.google.GoogleTestRunner, which can vary on the specific instrumentation framework chosen. See for more information on types of Android tests.
This type is not used in any activity, and only used as part of another schema.
Fields§
§app_apk: Option<FileReference>
The APK for the application under test.
app_bundle: Option<AppBundle>
A multi-apk app bundle for the application under test.
app_package_id: Option<String>
The java package for the application under test. The default value is determined by examining the application’s manifest.
orchestrator_option: Option<String>
The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.1 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
sharding_option: Option<ShardingOption>
The option to run tests in multiple shards in parallel.
test_apk: Option<FileReference>
Required. The APK containing the test code to be executed.
test_package_id: Option<String>
The java package for the test to be executed. The default value is determined by examining the application’s manifest.
test_runner_class: Option<String>
The InstrumentationTestRunner class. The default value is determined by examining the application’s manifest.
test_targets: Option<Vec<String>>
Each target must be fully qualified with the package name or class name, in one of these formats: - “package package_name” - “class package_name.class_name” - “class package_name.class_name#method_name” If empty, all targets in the module will be run.
Trait Implementations§
Source§impl Clone for AndroidInstrumentationTest
impl Clone for AndroidInstrumentationTest
Source§fn clone(&self) -> AndroidInstrumentationTest
fn clone(&self) -> AndroidInstrumentationTest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AndroidInstrumentationTest
impl Debug for AndroidInstrumentationTest
Source§impl Default for AndroidInstrumentationTest
impl Default for AndroidInstrumentationTest
Source§fn default() -> AndroidInstrumentationTest
fn default() -> AndroidInstrumentationTest
Source§impl<'de> Deserialize<'de> for AndroidInstrumentationTest
impl<'de> Deserialize<'de> for AndroidInstrumentationTest
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 AndroidInstrumentationTest
Auto Trait Implementations§
impl Freeze for AndroidInstrumentationTest
impl RefUnwindSafe for AndroidInstrumentationTest
impl Send for AndroidInstrumentationTest
impl Sync for AndroidInstrumentationTest
impl Unpin for AndroidInstrumentationTest
impl UnwindSafe for AndroidInstrumentationTest
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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