Skip to main content

test_files

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

Overview

Nametest_files
TypeResource
Idazure.developer_loadtesting.test_files

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
expireDateTimestring (date-time)Expiry time of the file (RFC 3339 literal format).
fileNamestringName of the file. Required.
fileTypestringFile type. Known values are: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", and "TEST_PLAN_RECOMMENDATIONS". (JMX_FILE, USER_PROPERTIES, ADDITIONAL_ARTIFACTS, ZIPPED_ARTIFACTS, URL_TEST_CONFIG, TEST_SCRIPT, BROWSER_RECORDING, TEST_PLAN_RECOMMENDATIONS)
urlstringFile URL.
validationFailureDetailsstringValidation failure error details.
validationStatusstringValidation status of the file. Known values are: "NOT_VALIDATED", "VALIDATION_SUCCESS", "VALIDATION_FAILURE", "VALIDATION_INITIATED", and "VALIDATION_NOT_REQUIRED". (NOT_VALIDATED, VALIDATION_SUCCESS, VALIDATION_FAILURE, VALIDATION_INITIATED, VALIDATION_NOT_REQUIRED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_test_fileselecttest_id, file_name, endpointGet all the files that are associated with a test. Get all the files that are associated with a test.
list_test_filesselecttest_id, endpointGet all test files. Get all test files.
delete_test_filedeletetest_id, file_name, endpointDelete file by the file name for a test. Delete file by the file name for a test.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
file_namestringName of the file. Required.
test_idstringUnique test identifier for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.

SELECT examples

Get all the files that are associated with a test. Get all the files that are associated with a test.

SELECT
expireDateTime,
fileName,
fileType,
url,
validationFailureDetails,
validationStatus
FROM azure.developer_loadtesting.test_files
WHERE test_id = '{{ test_id }}' -- required
AND file_name = '{{ file_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Delete file by the file name for a test. Delete file by the file name for a test.

DELETE FROM azure.developer_loadtesting.test_files
WHERE test_id = '{{ test_id }}' --required
AND file_name = '{{ file_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;