testing library

Classes

Account
Identifies an account and how to log into it.
AccountResponse
Identifies an account and how to log into it.
AndroidDevice
A single Android device.
AndroidDeviceList
A list of Android device configurations in which the test is to be executed.
AndroidDeviceListResponse
A list of Android device configurations in which the test is to be executed.
AndroidDeviceResponse
A single Android device.
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.
AndroidInstrumentationTestResponse
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.
AndroidMatrixResponse
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.
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.
AndroidRoboTestResponse
A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes.
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.
AndroidTestLoopResponse
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.
Apk
An Android package file to install.
ApkResponse
An Android package file to install.
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.
AppBundleResponse
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.
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'}.
ClientInfoDetailResponse
Key-value pair of detailed information about the client which invoked the test. Examples: {'Version', '1.0'}, {'Release Track', 'BETA'}.
ClientInfoResponse
Information about the client which invoked the test.
DeviceFile
A single device file description.
DeviceFileResponse
A single device file description.
DeviceSession
POST /v1/projects/{project_id}/deviceSessions Note - this resource's API doesn't support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
DeviceSessionArgs
The set of arguments for DeviceSession. The set of arguments for DeviceSession.
EnvironmentMatrix
The matrix of environments in which the test is to be executed.
EnvironmentMatrixResponse
The matrix of environments in which the test is to be executed.
EnvironmentResponse
The environment in which the test is run.
EnvironmentVariable
A key-value pair passed as an environment variable to the test.
EnvironmentVariableResponse
A key-value pair passed as an environment variable to the test.
FileReference
A reference to a file, used for user inputs.
FileReferenceResponse
A reference to a file, used for user inputs.
GetDeviceSessionArgs
Arguments for getDeviceSession. Arguments for getDeviceSession.
GetDeviceSessionResult
Result data returned by getDeviceSession.
GetTestMatrixArgs
Arguments for getTestMatrix. Arguments for getTestMatrix.
GetTestMatrixResult
Result data returned by getTestMatrix.
GoogleCloudStorage
A storage location within Google cloud storage (GCS).
GoogleCloudStorageResponse
A storage location within Google cloud storage (GCS).
IosDevice
A single iOS device.
IosDeviceFile
A file or directory to install on the device before the test starts.
IosDeviceFileResponse
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.
IosDeviceListResponse
A list of iOS device configurations in which the test is to be executed.
IosDeviceResponse
A single iOS device.
IosRoboTest
A test that explores an iOS application on an iOS device.
IosRoboTestResponse
A test that explores an iOS application on an iOS device.
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.
IosTestLoopResponse
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.
IosTestSetupResponse
A description of how to set up an iOS device prior to running the test.
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.
IosXcTestResponse
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.
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.
ManualShardingResponse
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.
ObbFile
An opaque binary blob file to install on the device before the test starts.
ObbFileResponse
An opaque binary blob file to install on the device before the test starts.
RegularFile
A file or directory to install on the device before the test starts.
RegularFileResponse
A file or directory to install on the device before the test starts.
ResultStorage
Locations where the results of running the test are stored.
ResultStorageResponse
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.
RoboDirectiveResponse
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.
RoboStartingIntentResponse
Message for specifying the start activities to crawl.
SessionStateEventResponse
A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.
ShardingOption
Options for enabling sharding.
ShardingOptionResponse
Options for enabling sharding.
ShardResponse
Output only. Details about the shard.
SmartSharding
Shards test based on previous test case timing records.
SmartShardingResponse
Shards test based on previous test case timing records.
StartActivityIntent
A starting intent specified by an action, uri, and categories.
StartActivityIntentResponse
A starting intent specified by an action, uri, and categories.
SystraceSetup
SystraceSetupResponse
TestDetailsResponse
Additional details about the progress of the running test.
TestExecutionResponse
A single test executed in a single environment.
TestMatrix
Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices. Auto-naming is currently not supported for this resource. Note - this resource's API doesn't support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
TestMatrixArgs
The set of arguments for TestMatrix. The set of arguments for TestMatrix.
TestSetup
A description of how to set up the Android device prior to running the test.
TestSetupResponse
A description of how to set up the Android device prior to running the test.
TestSpecification
A description of how to run the test.
TestSpecificationResponse
A description of how to run the test.
TestTargetsForShard
Test targets for a shard.
TestTargetsForShardResponse
Test targets for a shard.
ToolResultsExecutionResponse
Represents a tool results execution resource. This has the results of a TestMatrix.
ToolResultsHistory
Represents a tool results history resource.
ToolResultsHistoryResponse
Represents a tool results history resource.
ToolResultsStepResponse
Represents a tool results step resource. This has the results of a TestExecution.
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.
UniformShardingResponse
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.

Enums

AndroidInstrumentationTestOrchestratorOption
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.
AndroidRoboTestRoboMode
The mode in which Robo should run. Most clients should allow the server to populate this field automatically.
RoboDirectiveActionType
Required. The type of action that Robo should perform on the specified element.

Functions

getDeviceSession(GetDeviceSessionArgs args, {InvokeOptions? options}) → Future<GetDeviceSessionResult>
GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession. args Arguments passed to this invoke. Arguments for getDeviceSession. options Invoke options controlling this call.
getTestMatrix(GetTestMatrixArgs args, {InvokeOptions? options}) → Future<GetTestMatrixResult>
Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist args Arguments passed to this invoke. Arguments for getTestMatrix. options Invoke options controlling this call.