My Test Cases
CXTM Test Cases
  • Introduction
  • Services as Code (SaC)
  • CXTM Basics
  • CXTM Projects
  • CXTM Test Cases
  • CXTM Test Automation
  • CXTM Batches
  • Setup GitLab CI/CD
  • Configure L3Out
  • Test Results
  • CXTM Reporting
  • Continue your Education

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 you organize and execute the test cases according to the project requirements.

Step 1 - Navigate to Test Cases


From your CXTM project's Home page:

  1. Click on the VIEW TEST CASES button



  2. Your CXTM project has been pre-populated with test cases that will allow you to more thoroughly test the intended change to the ACI fabric in your lab environment prior to deploying to production. The test cases that you see in your project will further test the operational state of the fabric, as well as the fabric's convergence time when specific failures occur, after the intended change has been made


Step 2 - Review the Definition of the first Test Case in your project

From your Test Cases page:

  1. Click on the Open link next to the Verify APIC Hardware Status test case with the 01.01 Identifier.



  2. Click in the Definition tab.



  3. Review the Procedure and Pass/Fail Criteria for this test case.



  4. CXTM allows you to define the test case procedures and pass/fail criteria for each test cases so that detailed test plans and test reports can be easily generated for each project.

    This particular test case connects to the CIMC of each APIC via CLI, and uses a custom text parser to verify hardware heatlh in the output of 'show led' by checking that the LED status is turned on and green for the PSU, FAN, etc. This is a great example of an additional operatational state checks can supplement the syntactial, semantical, and configuration acceptance checks provided through SaC when instantiating a change to the fabric.


Step 3 - Review the Automation for the first Test Case in your project

From your test case Definition page:

  1. Click on the Automation Tab.



  2. Click on the VIEW JOBFILE button.



  3. The Job File page is where you can view and edit the automation code that will be run when this test case is executed. The Job File Preview pane contains the Robot Framework code that has been developed to execute the procedure described above.

  4. Click on the Parameter File Preview tab.



  5. The Parameter File Preview tab shows the parameters (aka variables) that are associated with this test case. The Parameter File for this test case has been pre-populated with the CIMCs in your lab environment that will be tested.

    
    ---
    testdata:
        cimc:
        - cimc_under_test: C220-FCH2242V0RC
        - cimc_under_test: C220-FCH2242V0RL
        - cimc_under_test: C220-FCH2242V0T8
            
            
            


Job Files, Parameter Files, and the Robot Framework will all be covered in more detail in the next section. Continue to the CX Test Automation (CXTA) section to learn more about how test automation is run through CXTM.