My First Test Case
CXTM Test Cases
  • Introduction
  • NaC Introduction
  • Manual Validation
  • CXTM Introduction
  • CXTM Projects
  • CXTM Test Cases
  • CXTM Test Automation
  • CXTM Git Integration
  • CXTM Batches
  • CXTM Notifications
  • Final Deployment
  • CXTM Reporting
  • CXTM References
  • Bonus Content

CXTM Test Cases

Test Cases allow you to break down the desired outcome of the project into bite-sized tasks. Each test case has data associated with it to help users organize and execute the test cases according to the project requirements.

There are many ways to add test cases to a project. For example, test cases can be imported from CSV templates, imported from other CXTM projects, cloned/copied from test cases within the project, imported through CXTM's API, or created manually. To get acquainted with test cases in CXTM, you will create your first one manually.

Step 1 - Navigate to Test Cases


From your CXTM project's Home page:

  1. Click on the VIEW TEST CASES button



  2. Test Cases can have user-defined attributes allowing for an extensive number of options when organizing and displaying your test cases. We will explore that more in the next section. But before moving on, notice how the navigation breadcrumbs have now changed at the top of the page. Remember to use this tool and your menu sidebar to easily navigate through the CXTM GUI.


Step 2 - Launch the Add Test Case Wizard

From your Test Cases view:

  1. Click on the green + button


Step 3 - Populate Add Test Case fields & Expand Wizard

In the Add Test Case wizard, populate the fields with the following information:

  1. Title: Verify Software Version on Devices
  2. Identifier: 1.01
  3. Phase: 1
  4. Click Show more fields


Step 4 - Populate Test Case Description & Setup

In the expanded Add Test Case wizard, populate the fields with the following information:

  1. Scroll down so that your wizard view shows Suite, Description, and Setup
  2. Suite: System
  3. Description:
      Verify the expected software version is running on NX-OS devices via REST
  4. Setup:
      The devices under test have been configured according to the NX-OS Network as Code (NaC) source of truth configuration


Step 5 - Populate Test Case Procedure & Pass/Fail Criteria

In the expanded Add Test Case wizard, populate the fields with the following information:

  1. Scroll down so that your wizard view shows Procedure and Pass/Fail Criteria
  2. Procedure:
      1. Connect to devices via REST
      2. Verify the NX-OS devices are running the expected software version
  3. Pass/Fail Criteria:
      Fail if any device is not running the expected software version
  4. Click SUBMIT


Step 6 - Confirm Test Case Created


From the Test Cases page:

  1. Confirm that the test case was added to the project



Continue to the next section to import additional test cases that you will use throughout this lab to develop test automation, and use in a pipeline.