Skip to main content

runs

Creates, updates, deletes, gets or lists a runs resource.

Overview

Nameruns
TypeResource
Idaws.devicefarm.runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe run's name.
app_uploadstringAn app to upload or that has been uploaded. (pattern: <code>^arn:aws:devicefarm:.+</code>)
arnstringThe run's ARN. (pattern: <code>^arn:aws:devicefarm:.+</code>)
billing_methodstringSpecifies the billing method for a test run: metered or unmetered. If the parameter is not specified, the default value is metered. If you have unmetered device slots, you must set this to unmetered to use them. Otherwise, the run is counted toward metered device minutes. (METERED, UNMETERED)
completed_jobsintegerThe total number of completed jobs.
countersobjectThe run's result counters.
createdstring (date-time)When the run was created.
customer_artifact_pathsobjectOutput CustomerArtifactPaths object for the test run.
device_minutesobjectRepresents the total (metered or unmetered) minutes used by the test run.
device_pool_arnstringThe ARN of the device pool for the run. (pattern: <code>^arn:aws:devicefarm:.+</code>)
device_proxyobjectThe device proxy configured for the devices in the run.
device_selection_resultobjectThe results of a device filter used to select the devices for a test run.
environment_variablesarrayEnvironment variables associated with the run.
event_countintegerFor fuzz tests, this is the number of events, between 1 and 10000, that the UI fuzz test should perform.
execution_role_arnstringThe IAM role associated with the run. (pattern: <code>^arn:aws:iam::[0-9]{12}:role/.+</code>)
insightsobjectThe insights for the run, including the report status and job-level metrics. This field contains data only if you specified insightsTypes when you scheduled the run.
insights_typesarrayThe types of insights requested for the run.
job_timeout_minutesintegerThe number of minutes the job executes before it times out.
localestringInformation about the locale that is used for the run.
locationobjectInformation about the location that is used for the run.
messagestringA message about the run's result.
network_profileobjectThe network profile being used for a test run.
parsing_result_urlstringRead-only URL for an object in an S3 bucket where you can get the parsing results of the test package. If the test package doesn't parse, the reason why it doesn't parse appears in the file that this URL points to.
platformstringThe run's platform. Allowed values include: ANDROID IOS (ANDROID, IOS)
radiosobjectInformation about the radio states for the run.
resultstringThe run's result. Allowed values include: PENDING PASSED WARNED FAILED SKIPPED ERRORED STOPPED (PENDING, PASSED, WARNED, FAILED, SKIPPED, ERRORED, STOPPED)
result_codestringSupporting field for the result field. Set only if result is SKIPPED. PARSING_FAILED if the result is skipped because of test package parsing failure. (PARSING_FAILED, VPC_ENDPOINT_SETUP_FAILED)
seedintegerFor fuzz tests, this is a seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.
skip_app_resignbooleanWhen set to true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again. For more information about how Device Farm re-signs your apps, see Do you modify my app? in the AWS Device Farm FAQs.
startedstring (date-time)The run's start time.
statusstringThe run'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)
stoppedstring (date-time)The run's stop time.
test_spec_arnstringThe ARN of the YAML-formatted test specification for the run. (pattern: <code>^arn:aws:devicefarm:.+</code>)
total_jobsintegerThe total number of jobs for the run.
type_stringThe run'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)
vpc_configobjectThe VPC security groups and subnets that are attached to a project.
web_urlstringThe Device Farm console URL for the recording of the run.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_runselectregionGets information about a run.
delete_rundeleteregionDeletes the run, given the run ARN. You cannot delete a run if it is still active. You cannot undo this operation.
list_runsexecregion, arnGets information about runs, given an AWS Device Farm project ARN.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a run.

SELECT
name,
app_upload,
arn,
billing_method,
completed_jobs,
counters,
created,
customer_artifact_paths,
device_minutes,
device_pool_arn,
device_proxy,
device_selection_result,
environment_variables,
event_count,
execution_role_arn,
insights,
insights_types,
job_timeout_minutes,
locale,
location,
message,
network_profile,
parsing_result_url,
platform,
radios,
result,
result_code,
seed,
skip_app_resign,
started,
status,
stopped,
test_spec_arn,
total_jobs,
type_,
vpc_config,
web_url
FROM aws.devicefarm.runs
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes the run, given the run ARN. You cannot delete a run if it is still active. You cannot undo this operation.

DELETE FROM aws.devicefarm.runs
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Gets information about runs, given an AWS Device Farm project ARN.

EXEC aws.devicefarm.runs.list_runs
@region='{{ region }}' --required
@@json=
'{
"arn": "{{ arn }}",
"nextToken": "{{ nextToken }}"
}'
;