tests
Creates, updates, deletes, gets or lists a tests resource.
Overview
| Name | tests |
| Type | Resource |
| Id | aws.devicefarm.tests |
Fields
The following fields are returned by SELECT queries:
- get_test
| Name | Datatype | Description |
|---|---|---|
name | string | The test's name. |
arn | string | The test's ARN. (pattern: <code>^arn:aws:devicefarm:.+</code>) |
counters | object | The test's result counters. |
created | string (date-time) | When the test was created. |
device_minutes | object | Represents the total (metered or unmetered) minutes used by the test. |
message | string | A message about the test's result. |
result | string | The test's result. Allowed values include: PENDING PASSED WARNED FAILED SKIPPED ERRORED STOPPED (PENDING, PASSED, WARNED, FAILED, SKIPPED, ERRORED, STOPPED) |
started | string (date-time) | The test's start time. |
status | string | The test's status. Allowed values include: PENDING PENDING_CONCURRENCY PENDING_DEVICE PROCESSING SCHEDULING PREPARING RUNNING COMPLETED STOPPING (PENDING, PENDING_CONCURRENCY, PENDING_DEVICE, PROCESSING, SCHEDULING, PREPARING, RUNNING, COMPLETED, STOPPING) |
stopped | string (date-time) | The test's stop time. |
type_ | string | The test's type. Must be one of the following values: BUILTIN_FUZZ APPIUM_JAVA_JUNIT APPIUM_JAVA_TESTNG APPIUM_PYTHON APPIUM_NODE APPIUM_RUBY APPIUM_WEB_JAVA_JUNIT APPIUM_WEB_JAVA_TESTNG APPIUM_WEB_PYTHON APPIUM_WEB_NODE APPIUM_WEB_RUBY INSTRUMENTATION XCTEST XCTEST_UI (BUILTIN_FUZZ, APPIUM_JAVA_JUNIT, APPIUM_JAVA_TESTNG, APPIUM_PYTHON, APPIUM_NODE, APPIUM_RUBY, APPIUM_WEB_JAVA_JUNIT, APPIUM_WEB_JAVA_TESTNG, APPIUM_WEB_PYTHON, APPIUM_WEB_NODE, APPIUM_WEB_RUBY, INSTRUMENTATION, XCTEST, XCTEST_UI) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_test | select | region | Gets information about a test. | |
create_test_grid_url | insert | region, projectArn, expiresInSeconds | Creates a signed, short-term URL that can be passed to a Selenium RemoteWebDriver constructor. | |
list_tests | exec | region, arn | Gets information about tests in a given test suite. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_test
Gets information about a test.
SELECT
name,
arn,
counters,
created,
device_minutes,
message,
result,
started,
status,
stopped,
type_
FROM aws.devicefarm.tests
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_test_grid_url
- Manifest
Creates a signed, short-term URL that can be passed to a Selenium RemoteWebDriver constructor.
INSERT INTO aws.devicefarm.tests (
projectArn,
expiresInSeconds,
region
)
SELECT
'{{ projectArn }}' /* required */,
{{ expiresInSeconds }} /* required */,
'{{ region }}'
RETURNING
expires,
url
;
# Description fields are for documentation purposes
- name: tests
props:
- name: region
value: "{{ region }}"
description: Required parameter for the tests resource.
- name: projectArn
value: "{{ projectArn }}"
description: |
ARN (from CreateTestGridProject or ListTestGridProjects) to associate with the short-term URL.
- name: expiresInSeconds
value: {{ expiresInSeconds }}
description: |
Lifetime, in seconds, of the URL.
Lifecycle Methods
- list_tests
Gets information about tests in a given test suite.
EXEC aws.devicefarm.tests.list_tests
@region='{{ region }}' --required
@@json=
'{
"arn": "{{ arn }}",
"nextToken": "{{ nextToken }}"
}'
;