Synthetic test execution types
Synthetic tests support two execution types Scheduled and On-demand. The On-demand execution type is introduced to support more flexible test runs. This capability is useful for development, testing and troubleshooting. For example, after you apply a backend fix, you can immediately run the test to verify that the issue is resolved.
- A Scheduled Synthetic test runs based on the test run frequency, as managed by the Synthetic PoP. To create a Scheduled Synthetic test, follow the steps in Creating a scheduled test.
- An On-demand Synthetic test runs 30 seconds after the Synthetic PoP receives it, regardless of the test run frequency. You can create an On-demand Synthetic test only if a Scheduled Synthetic test exists. An On-demand test runs only one time and does not repeat. The On-demand execution type is supported for Synthetic PoP Helm chart 1.2.18 or later.
Creating an On-demand test by using OpenAPI
To create an On-demand Synthetic test by using OpenAPI, complete the following steps:
- Make sure that at least one Scheduled Synthetic test already exists.
- Make sure that you have the necessary permission setting.
- Create an On-demand Synthetic test based on an existing test by using the Create a Synthetic test CI/CD OpenAPI or the synctl command.
Creating an On-demand test by using the UI
To create an On-demand synthetic test by using the UI, complete the following steps:
- Go to Synthetic Monitoring > Synthetic tests.
- Click a test.
- Click Run now.
Viewing On-demand tests and results in the UI
To view On-demand tests and results:
- Go to Synthetic Monitoring > Synthetic tests.
- In the filter, from the Test execution, select On demand.
- Click a test, and then go to the Summary page.
- From the Test execution dropdown, select On demand.
- To view a list of test results, click the Results tab.
Viewing On-demand tests by using OpenAPI
You can view On-demand Synthetic tests in the following ways:
- To view a list of On-demand Synthetic tests, you can use the Get all Synthetic test CI/CD OpenAPI or the synctl command.
- To view a specific On-demand Synthetic test, you can use the Get the Synthetic test CI/CD identified by test result ID or the synctl command.