- 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:
-
Click on the VIEW TEST CASES button
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:
-
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:
- Title:
Verify Software Version on Devices
- Identifier:
1.01
- Phase:
1
- 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:
-
Scroll down so that your wizard view shows Suite, Description, and Setup
-
Suite:
System
-
Description:
Verify the expected software version is running on NX-OS devices via REST
-
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:
-
Scroll down so that your wizard view shows Procedure and Pass/Fail Criteria
-
Procedure:
1. Connect to devices via REST
2. Verify the NX-OS devices are running the expected software version
-
Pass/Fail Criteria:
Fail if any device is not running the expected software version
-
Click SUBMIT
Step 6 - Confirm Test Case Created
From the Test Cases page:
- 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.