Datadog Continuous Testing
Datadog Continuous Testing Configuration file
| Type | object |
|---|---|
| File match |
*.synthetics.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/datadog-continuous-testing/latest.json |
| Source | https://raw.githubusercontent.com/DataDog/schema/main/datadog-ci/synthetics/test-config.schema.json |
Validate with Lintel
npx @lintel/lintel check
Properties
Definitions
Cookie header to add or replace (e.g. name1=value1;name2=value2;).
Whether to append or replace the original cookies.
4 nested properties
7 nested properties
11 nested properties
1 nested properties
3 nested properties
1 nested properties
Can be used to link to an existing remote test.
8 nested properties
4 nested properties
11 nested properties
Can be used to link to an existing remote test.
Name of a test suite (for JUnit reports).
20 nested properties
Override the certificate checks in Synthetic API and Browser tests.
2 nested properties
Override the data to send in API tests.
Override the content type for the data to send in API tests.
Override the cookies for API and browser tests.
- If this is a string, it is used to replace the original cookies.
- If this is an object, the format must be
{append?: boolean, value: string}, and depending on the value ofappend, it is appended or replaces the original cookies.
Override the maximum duration of steps in seconds for browser tests. This does not override individually set step timeouts.
Override the list of devices on which to run the Synthetic tests.
Override whether or not to follow HTTP redirections in API tests.
Override the headers in the API and browser tests.
This object specifies the headers to be replaced in the test. It should have keys representing the names of the headers to be replaced, and values indicating the new header values.
Override the list of locations to run the test from. The possible values are listed in this API response.
Override the mobile application version for Synthetic mobile application tests. The version must be uploaded and available within Datadog.
Override the application version for Synthetic mobile application tests.
An array of regex patterns to modify resource URLs in the test. This can be useful for dynamically changing resource URLs during test execution.
Each regex pattern should be in the format:
your_regex|your_substitution: The pipe-based syntax, to avoid any conflicts with / characters in URLs.- For example,
https://example.com(.*)|http://subdomain.example.com$1to transformhttps://example.com/resourcetohttp://subdomain.example.com/resource.
- For example,
s/your_regex/your_substitution/modifiers: The slash syntax, which supports modifiers.- For example,
s/(https://www.)(.*)/$1staging-$2/to transformhttps://www.example.com/resourceintohttps://www.staging-example.com/resource.
- For example,
2 nested properties
The number of attempts to perform in case of test failure.
The interval between attempts in milliseconds.
Override the Set-Cookie headers in browser tests only.
- If this is a string, it is used to replace the original
Set-Cookieheaders. - If this is an object, the format must be
{append?: boolean, value: string}, and depending on the value ofappend, it is appended or replaces the originalSet-Cookieheaders.
Override the start URL for API and browser tests.
Local and global variables specified in the URL (for example, {{ URL }}) are replaced when the test is run.
You can combine this with the variables override to override both the start URL and the variable values. For example:
--override startUrl="{{ URL }}?static_hash={{ STATIC_HASH }}" --override variables.STATIC_HASH=abcdef
A regex to modify the starting URL of browser and HTTP tests, whether it comes from the original test or the startUrl override.
If the URL contains variables, this regex applies after the interpolation of the variables.
There are two possible formats:
your_regex|your_substitution: The pipe-based syntax, to avoid any conflicts with/characters in URLs.- For example,
https://example.com(.*)|http://subdomain.example.com$1to transformhttps://example.com/testtohttp://subdomain.example.com/test.
- For example,
s/your_regex/your_substitution/modifiers: The slash syntax, which supports modifiers.- For example,
s/(https://www.)(.*)/$1extra-$2/to transformhttps://www.example.comintohttps://www.extra-example.com.
- For example,
Override the maximum duration in seconds for browser tests.
Override existing or inject new local and global variables in Synthetic tests.
This object should include keys corresponding to the names of the variables to be replaced, and values representing the new values for these variables.
1 nested properties
3 nested properties
1 nested properties
Public ID of a test (e.g. abc-def-ghi), or its full URL (e.g. https://app.datadoghq.com/synthetics/details/abc-def-ghi).
Name of a test suite (for JUnit reports).
20 nested properties
Override the certificate checks in Synthetic API and Browser tests.
2 nested properties
Override the data to send in API tests.
Override the content type for the data to send in API tests.
Override the cookies for API and browser tests.
- If this is a string, it is used to replace the original cookies.
- If this is an object, the format must be
{append?: boolean, value: string}, and depending on the value ofappend, it is appended or replaces the original cookies.
Override the maximum duration of steps in seconds for browser tests. This does not override individually set step timeouts.
Override the list of devices on which to run the Synthetic tests.
Override whether or not to follow HTTP redirections in API tests.
Override the headers in the API and browser tests.
This object specifies the headers to be replaced in the test. It should have keys representing the names of the headers to be replaced, and values indicating the new header values.
Override the list of locations to run the test from. The possible values are listed in this API response.
Override the mobile application version for Synthetic mobile application tests. The version must be uploaded and available within Datadog.
Override the application version for Synthetic mobile application tests.
An array of regex patterns to modify resource URLs in the test. This can be useful for dynamically changing resource URLs during test execution.
Each regex pattern should be in the format:
your_regex|your_substitution: The pipe-based syntax, to avoid any conflicts with / characters in URLs.- For example,
https://example.com(.*)|http://subdomain.example.com$1to transformhttps://example.com/resourcetohttp://subdomain.example.com/resource.
- For example,
s/your_regex/your_substitution/modifiers: The slash syntax, which supports modifiers.- For example,
s/(https://www.)(.*)/$1staging-$2/to transformhttps://www.example.com/resourceintohttps://www.staging-example.com/resource.
- For example,
2 nested properties
The number of attempts to perform in case of test failure.
The interval between attempts in milliseconds.
Override the Set-Cookie headers in browser tests only.
- If this is a string, it is used to replace the original
Set-Cookieheaders. - If this is an object, the format must be
{append?: boolean, value: string}, and depending on the value ofappend, it is appended or replaces the originalSet-Cookieheaders.
Override the start URL for API and browser tests.
Local and global variables specified in the URL (for example, {{ URL }}) are replaced when the test is run.
You can combine this with the variables override to override both the start URL and the variable values. For example:
--override startUrl="{{ URL }}?static_hash={{ STATIC_HASH }}" --override variables.STATIC_HASH=abcdef
A regex to modify the starting URL of browser and HTTP tests, whether it comes from the original test or the startUrl override.
If the URL contains variables, this regex applies after the interpolation of the variables.
There are two possible formats:
your_regex|your_substitution: The pipe-based syntax, to avoid any conflicts with/characters in URLs.- For example,
https://example.com(.*)|http://subdomain.example.com$1to transformhttps://example.com/testtohttp://subdomain.example.com/test.
- For example,
s/your_regex/your_substitution/modifiers: The slash syntax, which supports modifiers.- For example,
s/(https://www.)(.*)/$1extra-$2/to transformhttps://www.example.comintohttps://www.extra-example.com.
- For example,
Override the maximum duration in seconds for browser tests.
Override existing or inject new local and global variables in Synthetic tests.
This object should include keys corresponding to the names of the variables to be replaced, and values representing the new values for these variables.
The number of attempts to perform in case of test failure.
The interval between attempts in milliseconds.
1 nested properties
2 nested properties
Override the certificate checks in Synthetic API and Browser tests.
2 nested properties
Override the data to send in API tests.
Override the content type for the data to send in API tests.
Override the cookies for API and browser tests.
- If this is a string, it is used to replace the original cookies.
- If this is an object, the format must be
{append?: boolean, value: string}, and depending on the value ofappend, it is appended or replaces the original cookies.
Override the maximum duration of steps in seconds for browser tests. This does not override individually set step timeouts.
Override the list of devices on which to run the Synthetic tests.
Override whether or not to follow HTTP redirections in API tests.
Override the headers in the API and browser tests.
This object specifies the headers to be replaced in the test. It should have keys representing the names of the headers to be replaced, and values indicating the new header values.
Override the list of locations to run the test from. The possible values are listed in this API response.
Override the mobile application version for Synthetic mobile application tests. The version must be uploaded and available within Datadog.
Override the application version for Synthetic mobile application tests.
An array of regex patterns to modify resource URLs in the test. This can be useful for dynamically changing resource URLs during test execution.
Each regex pattern should be in the format:
your_regex|your_substitution: The pipe-based syntax, to avoid any conflicts with / characters in URLs.- For example,
https://example.com(.*)|http://subdomain.example.com$1to transformhttps://example.com/resourcetohttp://subdomain.example.com/resource.
- For example,
s/your_regex/your_substitution/modifiers: The slash syntax, which supports modifiers.- For example,
s/(https://www.)(.*)/$1staging-$2/to transformhttps://www.example.com/resourceintohttps://www.staging-example.com/resource.
- For example,
2 nested properties
The number of attempts to perform in case of test failure.
The interval between attempts in milliseconds.
Override the Set-Cookie headers in browser tests only.
- If this is a string, it is used to replace the original
Set-Cookieheaders. - If this is an object, the format must be
{append?: boolean, value: string}, and depending on the value ofappend, it is appended or replaces the originalSet-Cookieheaders.
Override the start URL for API and browser tests.
Local and global variables specified in the URL (for example, {{ URL }}) are replaced when the test is run.
You can combine this with the variables override to override both the start URL and the variable values. For example:
--override startUrl="{{ URL }}?static_hash={{ STATIC_HASH }}" --override variables.STATIC_HASH=abcdef
A regex to modify the starting URL of browser and HTTP tests, whether it comes from the original test or the startUrl override.
If the URL contains variables, this regex applies after the interpolation of the variables.
There are two possible formats:
your_regex|your_substitution: The pipe-based syntax, to avoid any conflicts with/characters in URLs.- For example,
https://example.com(.*)|http://subdomain.example.com$1to transformhttps://example.com/testtohttp://subdomain.example.com/test.
- For example,
s/your_regex/your_substitution/modifiers: The slash syntax, which supports modifiers.- For example,
s/(https://www.)(.*)/$1extra-$2/to transformhttps://www.example.comintohttps://www.extra-example.com.
- For example,
Override the maximum duration in seconds for browser tests.
Override existing or inject new local and global variables in Synthetic tests.
This object should include keys corresponding to the names of the variables to be replaced, and values representing the new values for these variables.