- Resource: Execution
- MatrixDimensionDefinition
- Specification
- AndroidTest
- AndroidAppInfo
- AndroidInstrumentationTest
- AndroidRoboTest
- AndroidTestLoop
- IosTest
- IosAppInfo
- IosXcTest
- IosTestLoop
- IosRoboTest
- Methods
Resource: Execution
An Execution represents a collection of Steps. For instance, it could represent: - a mobile test executed across a range of device configurations - a jenkins job with a build step followed by a test step
The maximum size of an execution message is 1 MiB.
An Execution can be updated until its state is set to COMPLETE at which point it becomes immutable.
JSON representation |
---|
{ "executionId": string, "state": enum ( |
Fields | |
---|---|
executionId |
A unique identifier within a History for this Execution. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller.
|
state |
The initial state is IN_PROGRESS. The only legal state transitions is from IN_PROGRESS to COMPLETE. A PRECONDITION_FAILED will be returned if an invalid transition is requested. The state can only be set to COMPLETE once. A FAILED_PRECONDITION will be returned if the state is set to COMPLETE multiple times. If the state is set to COMPLETE, all the in-progress steps within the execution will be set as COMPLETE. If the outcome of the step is not set, the outcome will be set to INCONCLUSIVE.
|
creationTime |
The time when the Execution was created. This value will be set automatically when executions.create is called.
|
completionTime |
The time when the Execution status transitioned to COMPLETE. This value will be set automatically when state transitions to COMPLETE.
|
outcome |
Classify the result, for example into SUCCESS or FAILURE
|
dimensionDefinitions[] |
The dimensions along which different steps in this execution may vary. This must remain fixed over the life of the execution. Returns INVALID_ARGUMENT if this field is set in an update request. Returns INVALID_ARGUMENT if the same name occurs in more than one dimension_definition. Returns INVALID_ARGUMENT if the size of the list is over 100.
|
specification |
Lightweight information about execution request.
|
testExecutionMatrixId |
TestExecution Matrix ID that the TestExecutionService uses.
|
MatrixDimensionDefinition
This type has no fields.
One dimension of the matrix of different runs of a step.
Specification
The details about how to run the execution.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
androidTest |
An Android mobile test execution specification. |
iosTest |
An iOS mobile test execution specification. |
AndroidTest
An Android mobile test specification.
JSON representation |
---|
{ "androidAppInfo": { object ( |
Fields | |
---|---|
androidAppInfo |
Information about the application under test. |
testTimeout |
Max time a test is allowed to run before it is automatically cancelled. |
Union field
|
|
androidInstrumentationTest |
An Android instrumentation test. |
androidRoboTest |
An Android robo test. |
androidTestLoop |
An Android test loop. |
AndroidAppInfo
Android app information.
JSON representation |
---|
{ "name": string, "packageName": string, "versionName": string, "versionCode": string } |
Fields | |
---|---|
name |
The name of the app. Optional |
packageName |
The package name of the app. Required. |
versionName |
The version name of the app. Optional. |
versionCode |
The internal version code of the app. Optional. |
AndroidInstrumentationTest
A test of an Android application that can control an Android component independently of its normal lifecycle.
See https://developer.android.com/training/testing/fundamentals for more information on types of Android tests.
JSON representation |
---|
{ "testPackageId": string, "testRunnerClass": string, "testTargets": [ string ], "useOrchestrator": boolean } |
Fields | |
---|---|
testPackageId |
The java package for the test to be executed. Required |
testRunnerClass |
The InstrumentationTestRunner class. Required |
testTargets[] |
Each target must be fully qualified with the package name or class name, in one of these formats: - "package packageName" - "class packageName.class_name" - "class packageName.class_name#methodName" If empty, all targets in the module will be run. |
useOrchestrator |
The flag indicates whether Android Test Orchestrator will be used to run test or not. |
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.
JSON representation |
---|
{ "appInitialActivity": string, "bootstrapPackageId": string, "bootstrapRunnerClass": string, "maxDepth": integer, "maxSteps": integer } |
Fields | |
---|---|
appInitialActivity |
The initial activity that should be used to start the app. Optional |
bootstrapPackageId |
The java package for the bootstrap. Optional |
bootstrapRunnerClass |
The runner class for the bootstrap. Optional |
maxDepth |
The max depth of the traversal stack Robo can explore. Optional |
maxSteps |
The max number of steps/actions Robo can execute. Default is no limit (0). Optional |
AndroidTestLoop
This type has no fields.
Test Loops are tests that can be launched by the app itself, determining when to run by listening for an intent.
IosTest
A iOS mobile test specification
JSON representation |
---|
{ "iosAppInfo": { object ( |
Fields | |
---|---|
iosAppInfo |
Information about the application under test. |
testTimeout |
Max time a test is allowed to run before it is automatically cancelled. |
Union field
|
|
iosXcTest |
An iOS XCTest. |
iosTestLoop |
An iOS test loop. |
iosRoboTest |
An iOS Robo test. |
IosAppInfo
iOS app information
JSON representation |
---|
{ "name": string } |
Fields | |
---|---|
name |
The name of the app. Required |
IosXcTest
A test of an iOS application that uses the XCTest framework.
JSON representation |
---|
{ "bundleId": string, "xcodeVersion": string } |
Fields | |
---|---|
bundleId |
Bundle ID of the app. |
xcodeVersion |
Xcode version that the test was run with. |
IosTestLoop
A game loop test of an iOS application.
JSON representation |
---|
{ "bundleId": string } |
Fields | |
---|---|
bundleId |
Bundle ID of the app. |
IosRoboTest
This type has no fields.
A Robo test for an iOS application.
Methods |
|
---|---|
|
Creates an Execution. |
|
Gets an Execution. |
|
Lists Executions for a given History. |
|
Updates an existing Execution with the supplied partial entity. |