Struct google_testing1::api::AndroidInstrumentationTest[][src]

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.0 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.