Struct google_testing1::AndroidInstrumentationTest [−][src]
pub struct AndroidInstrumentationTest { pub test_apk: Option<FileReference>, pub test_runner_class: Option<String>, pub test_package_id: Option<String>, pub app_apk: Option<FileReference>, pub app_package_id: Option<String>, pub orchestrator_option: Option<String>, pub test_targets: Option<Vec<String>>, }
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
test_apk: Option<FileReference>
The APK containing the test code to be executed. Required
test_runner_class: Option<String>
The InstrumentationTestRunner class. Optional, default is determined by examining the application's manifest.
test_package_id: Option<String>
The java package for the test to be executed. Optional, default is determined by examining the application's manifest.
app_apk: Option<FileReference>
The APK for the application under test. Required
app_package_id: Option<String>
The java package for the application under test. Optional, default 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.
Optional, if empty, test will be run without orchestrator.
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"
Optional, if empty, all targets in the module will be run.
Trait Implementations
impl Default for AndroidInstrumentationTest
[src]
impl Default for AndroidInstrumentationTest
fn default() -> AndroidInstrumentationTest
[src]
fn default() -> AndroidInstrumentationTest
Returns the "default value" for a type. Read more
impl Clone for AndroidInstrumentationTest
[src]
impl Clone for AndroidInstrumentationTest
fn clone(&self) -> AndroidInstrumentationTest
[src]
fn clone(&self) -> AndroidInstrumentationTest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for AndroidInstrumentationTest
[src]
impl Debug for AndroidInstrumentationTest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for AndroidInstrumentationTest
[src]
impl Part for AndroidInstrumentationTest
Auto Trait Implementations
impl Send for AndroidInstrumentationTest
impl Send for AndroidInstrumentationTest
impl Sync for AndroidInstrumentationTest
impl Sync for AndroidInstrumentationTest