[−][src]Struct google_testing1::AndroidInstrumentationTest
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 http://developer.android.com/tools/testing/testing_android.html 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_bundle: Option<AppBundle>
A multi-apk app bundle for the application under test.
test_apk: Option<FileReference>
Required. The APK containing the test code to be executed.
test_runner_class: Option<String>
The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.
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.
app_apk: Option<FileReference>
The APK 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.0 or higher! ** Orchestrator offers the following benefits:
- No shared state
- Crashes are isolated
- Logs are scoped per test
See https://developer.android.com/training/testing/junit-runner.html#using-android-test-orchestrator 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_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
impl Clone for AndroidInstrumentationTest
[src]
fn clone(&self) -> AndroidInstrumentationTest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AndroidInstrumentationTest
[src]
impl Default for AndroidInstrumentationTest
[src]
impl<'de> Deserialize<'de> for AndroidInstrumentationTest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for AndroidInstrumentationTest
[src]
impl Serialize for AndroidInstrumentationTest
[src]
Auto Trait Implementations
impl RefUnwindSafe for AndroidInstrumentationTest
impl Send for AndroidInstrumentationTest
impl Sync for AndroidInstrumentationTest
impl Unpin for AndroidInstrumentationTest
impl UnwindSafe for AndroidInstrumentationTest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,