Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://googleapis.deno.dev/v1/testing:v1.ts";

§Classes

GoogleAuth
Testing

Allows developers to run automated tests for their mobile applications on Google infrastructure.

§Variables

auth

§Interfaces

Account

Identifies an account and how to log into it.

AndroidDevice

A single Android device.

AndroidDeviceCatalog

The currently supported Android devices.

AndroidDeviceList

A list of Android device configurations in which the test is to be executed.

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.

AndroidMatrix

A set of Android device configuration permutations is defined by the the cross-product of the given axes. Internally, the given AndroidMatrix will be expanded into a set of AndroidDevices. Only supported permutations will be instantiated. Invalid permutations (e.g., incompatible models/versions) are ignored.

AndroidModel

A description of an Android device tests may be run on.

AndroidRoboTest

A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes.

AndroidRuntimeConfiguration

Android configuration that can be selected at the time a test is run.

AndroidTestLoop

A test of an Android Application with a Test Loop. The intent \ will be implicitly added, since Games is the only user of this api, for the time being.

AndroidVersion

A version of the Android OS.

Apk

An Android package file to install.

ApkDetail

Android application details based on application manifest and archive contents.

ApkManifest

An Android app manifest. See http://developer.android.com/guide/topics/manifest/manifest-intro.html

AppBundle

An Android App Bundle file format, containing a BundleConfig.pb file, a base module directory, zero or more dynamic feature module directories. See https://developer.android.com/guide/app-bundle/build for guidance on building App Bundles.

ApplicationDetailServiceGetApkDetailsOptions

Additional options for Testing#applicationDetailServiceGetApkDetails.

CancelDeviceSessionRequest

The request object for cancelling a Device Session.

CancelTestMatrixResponse

Response containing the current state of the specified test matrix.

ClientInfo

Information about the client which invoked the test.

ClientInfoDetail

Key-value pair of detailed information about the client which invoked the test. Examples: {'Version', '1.0'}, {'Release Track', 'BETA'}.

CredentialsClient

Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.

Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp

DeviceFile

A single device file description.

DeviceIpBlock

A single device IP block

DeviceIpBlockCatalog

List of IP blocks used by the Firebase Test Lab

DeviceSession

Protobuf message describing the device message, used from several RPCs.

DirectAccessVersionInfo

Denotes whether Direct Access is supported, and by which client versions. DirectAccessService is currently available as a preview to select developers. You can register today on behalf of you and your team at https://developer.android.com/studio/preview/android-device-streaming

Distribution

Data about the relative number of devices running a given configuration of the Android platform.

Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

Environment

The environment in which the test is run.

EnvironmentMatrix

The matrix of environments in which the test is to be executed.

EnvironmentVariable

A key-value pair passed as an environment variable to the test.

FileReference

A reference to a file, used for user inputs.

GetApkDetailsResponse

Response containing the details of the specified Android application.

GoogleAuto

Enables automatic Google account login. If set, the service automatically generates a Google test account and adds it to the device, before executing the test. Note that test accounts might be reused. Many applications show their full set of functionalities when an account is present on the device. Logging into the device with these generated accounts allows testing more functionalities.

GoogleCloudStorage

A storage location within Google cloud storage (GCS).

IntentFilter

The section of an tag. https://developer.android.com/guide/topics/manifest/intent-filter-element.html

IosDevice

A single iOS device.

IosDeviceCatalog

The currently supported iOS devices.

IosDeviceFile

A file or directory to install on the device before the test starts.

IosDeviceList

A list of iOS device configurations in which the test is to be executed.

IosModel

A description of an iOS device tests may be run on.

IosRoboTest

A test that explores an iOS application on an iOS device.

IosRuntimeConfiguration

iOS configuration that can be selected at the time a test is run.

IosTestLoop

A test of an iOS application that implements one or more game loop scenarios. This test type accepts an archived application (.ipa file) and a list of integer scenarios that will be executed on the app sequentially.

IosTestSetup

A description of how to set up an iOS device prior to running the test.

IosVersion

An iOS version.

IosXcTest

A test of an iOS application that uses the XCTest framework. Xcode supports the option to "build for testing", which generates an .xctestrun file that contains a test specification (arguments, test methods, etc). This test type accepts a zip file containing the .xctestrun file and the corresponding contents of the Build/Products directory that contains all the binaries needed to run the tests.

LauncherActivityIntent

Specifies an intent that starts the main launcher activity.

ListDeviceSessionsResponse

A list of device sessions.

Locale

A location/region designation for language.

ManualSharding

Shards test cases into the specified groups of packages, classes, and/or methods. With manual sharding enabled, specifying test targets via environment_variables or in InstrumentationTest is invalid.

MatrixErrorDetail

Describes a single error or issue with a matrix.

Metadata

A tag within a manifest. https://developer.android.com/guide/topics/manifest/meta-data-element.html

NetworkConfiguration
NetworkConfigurationCatalog
NoActivityIntent

Skips the starting activity

ObbFile

An opaque binary blob file to install on the device before the test starts.

Orientation

Screen orientation of the device.

PerAndroidVersionInfo

A version-specific information of an Android model.

PerIosVersionInfo

A version-specific information of an iOS model.

ProjectsDeviceSessionsListOptions

Additional options for Testing#projectsDeviceSessionsList.

ProjectsDeviceSessionsPatchOptions

Additional options for Testing#projectsDeviceSessionsPatch.

ProjectsTestMatricesCreateOptions

Additional options for Testing#projectsTestMatricesCreate.

ProvidedSoftwareCatalog

The currently provided software environment on the devices under test.

RegularFile

A file or directory to install on the device before the test starts.

ResultStorage

Locations where the results of running the test are stored.

RoboDirective

Directs Robo to interact with a specific UI element if it is encountered during the crawl. Currently, Robo can perform text entry or element click.

RoboStartingIntent

Message for specifying the start activities to crawl.

Service

The section of an tag. https://developer.android.com/guide/topics/manifest/service-element

SessionStateEvent

A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.

Shard

Output only. Details about the shard.

ShardingOption

Options for enabling sharding.

SmartSharding

Shards test based on previous test case timing records.

StartActivityIntent

A starting intent specified by an action, uri, and categories.

SystraceSetup
TestDetails

Additional details about the progress of the running test.

TestEnvironmentCatalog

A description of a test environment.

TestEnvironmentCatalogGetOptions

Additional options for Testing#testEnvironmentCatalogGet.

TestExecution

A single test executed in a single environment.

TestMatrix

TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.

TestSetup

A description of how to set up the Android device prior to running the test.

TestSpecification

A description of how to run the test.

TestTargetsForShard

Test targets for a shard.

ToolResultsExecution

Represents a tool results execution resource. This has the results of a TestMatrix.

ToolResultsHistory

Represents a tool results history resource.

ToolResultsStep

Represents a tool results step resource. This has the results of a TestExecution.

TrafficRule

Network emulation parameters.

UniformSharding

Uniformly shards test cases given a total number of shards. For instrumentation tests, it will be translated to "-e numShard" and "-e shardIndex" AndroidJUnitRunner arguments. With uniform sharding enabled, specifying either of these sharding arguments via environment_variables is invalid. Based on the sharding mechanism AndroidJUnitRunner uses, there is no guarantee that test cases will be distributed uniformly across all shards.

UsesFeature

A tag within a manifest. https://developer.android.com/guide/topics/manifest/uses-feature-element.html

XcodeVersion

An Xcode version that an iOS version is compatible with.