Scenarios
How to set up and manage monitoring scenarios in XTC.
Setting up monitoring scenarios
All monitoring scenarios rely on XLT test cases that run continuously. Organize these tests into a test suite located in the repository configured under project configuration.
XLT tests are Java classes containing JUnit tests. XTC compiles these classes to execute the contained test scenarios.
Adding a new scenario
To add a monitoring scenario, click the + button at the top of the scenarios list. Provide a unique Name, an optional Description, and the fully qualified Java Class in your repository that contains the JUnit test case.
Creating a new monitoring scenario.
The new scenario appears in the list. It is disabled by default and applies the scenario default settings. Adjust these settings as needed by editing the scenario.
Managing existing scenarios
Use the Scenarios table to manage scenarios. From the scenario context menu, you can edit settings, toggle scenarios or notifications, pause or resume execution, and delete scenarios.
Overview of all existing scenarios in the project.
Disabling versus pausing
To stop running a scenario, select Disable from its context menu. Alternatively, pause it for a specified duration to disable it temporarily. XTC automatically resumes execution once the pause period elapses, allowing you to investigate issues without alert noise.
To pause a scenario, open the context menu, and select Pause. Enter the date and time until which the pause remains active. You can also pause a scenario directly from the Dashboard. To resume execution before the time expires, select Continue from the context menu.
Scenario details
Click a scenario name to open its detail view. From this view, adjust scenario settings, configure quality sensors, and update notification settings. When not overridden, the scenario uses the scenario defaults.
Scenario settings
On the Settings tab, configure how your scenario runs.
Select Use Default in any section to revert to the project defaults. A dialog prompts for confirmation before discarding custom values.
Switch between default and custom values by using the Use Default checkbox.
General
In General, set the scenario name and description, and specify the Java class containing the scenario.
Execution
In Execution, configure scenario execution parameters:
- Interval: the execution frequency, between 1 second and 24 hours.
- Runtime limit: the execution threshold, after which XTC aborts the scenario.
Retry
In Retry, configure retry behavior for failing runs:
- Active: toggle retry on or off.
- Interval: the delay before retrying the scenario.
- Count: the number of retries permitted before marking the scenario as failed.
Locations
In Locations, select where to run the scenario. Available locations depend on the machines provisioned for your monitoring project. You can also show or hide locations without provisioned machines.
Properties
In Properties, add test properties for scenario execution as key-value text lines. Ensure the property syntax is valid.
Notifications
Under the Settings tab, toggle notifications for the scenario and configure a default reply-to email address.
The scenario quality sensors and their associated notification lists determine when alerts trigger and who receives them.
Quality sensors
Define success metrics to verify during scenario execution. Metric violations mark the scenario as failed. Configure these metrics as quality sensors in the project settings.
Assign quality sensors to a scenario as needed. Click + on the Quality Sensors tab to choose sensors defined in the project configuration.
XTC evaluates quality sensors in the listed order. Reorder sensors by selecting Move Up or Move Down in the sensor context menu.
A failing sensor can stop further evaluation if you enable Stops Evaluation. Use this option to prevent secondary alerts if a basic step fails.
List of quality sensors for a monitoring scenario.