Show / Hide Table of Contents

Class 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 for more information on types of Android tests.

Inheritance
object
AndroidInstrumentationTest
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Testing.v1.Data
Assembly: Google.Apis.Testing.v1.dll
Syntax
public class AndroidInstrumentationTest : IDirectResponseSchema

Properties

AppApk

The APK for the application under test.

Declaration
[JsonProperty("appApk")]
public virtual FileReference AppApk { get; set; }
Property Value
Type Description
FileReference

AppBundle

A multi-apk app bundle for the application under test.

Declaration
[JsonProperty("appBundle")]
public virtual AppBundle AppBundle { get; set; }
Property Value
Type Description
AppBundle

AppPackageId

The java package for the application under test. The default value is determined by examining the application's manifest.

Declaration
[JsonProperty("appPackageId")]
public virtual string AppPackageId { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

OrchestratorOption

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.

Declaration
[JsonProperty("orchestratorOption")]
public virtual string OrchestratorOption { get; set; }
Property Value
Type Description
string

ShardingOption

The option to run tests in multiple shards in parallel.

Declaration
[JsonProperty("shardingOption")]
public virtual ShardingOption ShardingOption { get; set; }
Property Value
Type Description
ShardingOption

TestApk

Required. The APK containing the test code to be executed.

Declaration
[JsonProperty("testApk")]
public virtual FileReference TestApk { get; set; }
Property Value
Type Description
FileReference

TestPackageId

The java package for the test to be executed. The default value is determined by examining the application's manifest.

Declaration
[JsonProperty("testPackageId")]
public virtual string TestPackageId { get; set; }
Property Value
Type Description
string

TestRunnerClass

The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.

Declaration
[JsonProperty("testRunnerClass")]
public virtual string TestRunnerClass { get; set; }
Property Value
Type Description
string

TestTargets

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.

Declaration
[JsonProperty("testTargets")]
public virtual IList<string> TestTargets { get; set; }
Property Value
Type Description
IList<string>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX