Skip to main content

test_results

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

Overview

Nametest_results
TypeResource
Idazure_extras.testbase.test_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
downloadUrlstringThe download URL.
expirationTimestring (date-time)Expiry date of the download URL.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_console_log_download_urlselectresource_group_name, test_base_account_name, package_name, test_result_name, subscription_idGets the download URL of the test execution console log file.
getselectresource_group_name, test_base_account_name, package_name, test_result_name, subscription_idGet the Test Result by Id with specified OS Update type for a Test Base Package.
listselectresource_group_name, test_base_account_name, package_name, subscription_id, osUpdateType$filterLists all the Test Results with specified OS Update type for a Test Base Package. Can be filtered by osName, releaseName, flightingRing, buildVersion, buildRevision.
get_download_urlexecresource_group_name, test_base_account_name, package_name, test_result_name, subscription_idGets the download URL of the test result.
get_video_download_urlexecresource_group_name, test_base_account_name, package_name, test_result_name, subscription_idGets the download URL of the test execution screen recording.

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
osUpdateTypestringThe type of the OS Update. Known values are: "SecurityUpdate" and "FeatureUpdate". Required.
package_namestringThe resource name of the Test Base Package. Required.
resource_group_namestringThe name of the resource group that contains the resource. Required.
subscription_idstring
test_base_account_namestringThe resource name of the Test Base Account. Required.
test_result_namestringThe Test Result Name. It equals to TestResult-{TestResultId} string. Required.
$filterstringOdata filter. Default value is None.

SELECT examples

Gets the download URL of the test execution console log file.

SELECT
downloadUrl,
expirationTime
FROM azure_extras.testbase.test_results
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND test_base_account_name = '{{ test_base_account_name }}' -- required
AND package_name = '{{ package_name }}' -- required
AND test_result_name = '{{ test_result_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Gets the download URL of the test result.

EXEC azure_extras.testbase.test_results.get_download_url 
@resource_group_name='{{ resource_group_name }}' --required,
@test_base_account_name='{{ test_base_account_name }}' --required,
@package_name='{{ package_name }}' --required,
@test_result_name='{{ test_result_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;