Enable Notifications
CXTM Notifications
  • Introduction
  • CXTM Basics
  • CXTM Projects
  • CXTM Test Cases
  • CXTM Test Automation
  • Revisit Imported Test Cases
  • CXTM Batches
  • CXTM Notifications
  • NetDevOps
  • CXTM Reporting
  • CXTM References
  • Bonus: Project Users
  • Bonus: CXTM REST API
  • Bonus: Secret Env Variables

Enable CXTM Notifications


The CXTM Notifications feature provides an intuitive GUI to easily enable both email and Webex notifications for many events of interest that occur in your project, such as when a test case state changes (i.e. from the Initial state to a Passed or Failed state), when a job file has completed, when a new test case result is added, and many more. Later, in the NetDevOps section of the lab, you will configure a CI/CD pipeline to run the batches that you just created in the previous section. To receive notifications when your test cases are run through the pipeline, you will enable Notifications for Batch Updates on your CXTM project's Notifications page.

An LTROPS-2711 - CXTM Notifications Webex space has already been created for you and will be used to receive notifications from your project. In the next steps, you will complete the CXTM configuration needed to enable Notifications when your batches complete their runs.

Step 1 - Navigate to Project Notifications

  1. If not already expanded, expand the left sidebar menu
  2. Scroll down until you locate the heading Project
  3. Under Project, click Notifications


Step 2 - Add the Webex space ID


From your project's Notifications page:

  1. Click to copy the following Webex space ID and paste it into the Webex Teams Send To: field.

      Y2lzY29zcGFyazovL3VzL1JPT00vMGUyNzk4NDAtZTAwYy0xMWVmLTkwOGUtODdkZjFjODcyMWNi

  2. Click SAVE



Step 3 - Enable Webex notifications for Batch Completed events


From your project's Notifications page:

  1. Scroll down to the event notifications table beneath the Webex Teams Send To: field
  2. Click on the chevron icon (">") beside All Batch Updates to expand the list
  3. Click on the slider under the Enable Webex Teams column to enable Webex notifications for Batch Completed events



Step 4 - Configure the Batch Completed notification template


CXTM uses Jinja2 templating to allow you to customize the content of your notifications.

You will modify the Batch Completed event notification Template Subject to include the username of the user who ran the batch. This will help you to easily identify who (which pod#) ran the batch when you receive the notification in the Webex space.

From your project's Notifications page:

  1. Click on the Configure button for the Batch Completed event



  2. Scroll down to the Template Subject field
  3. Click to copy {{ BATCH_RUN.username }} - and prepend it to the beginning of the Template Subject field
  4. Click SAVE



With Batch Completed notifications now enabled, you will be able to view the Webex notifications in real time as your batches complete their runs in the pipeline later in the lab. The particular Webex bot used in this lab provides real time notifications with an itemized view of the batch results, including the individual test case results and a direct link to your project's Batch Result page. With CXTM's APIs, however, a more robust ChatOps application could be employed to provide more bidirectional interactions with CXTM to trigger test case execution, query results, etc.


Continue to the next section to configure your CI/CD pipeline.