Run Batches
CXTM Batches
  • 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

Run Batches

In the next steps, you will run the batch and review the results.

By default, batched test case jobfiles will be executed sequentially, in the order in which they were added to the batch. However, Job Files placed in separate execution queues are executed in parallel, potentially significantly decreasing the duration of testing stages in your CI/CD pipeline.

Step 1 - Run the Data Center Validation Batch


From your project's Batches page:

  1. Click on the Run link for the Data Center Validation Batch



Step 2 - Review the Data Center Validation Batch results


From your project's Batches page:

  1. Click on the Results link for the Data Center Validation Batch



  2. Confirm that test cases are running



  3. When a batch is run, the status of each test case will be initialized to "QUEUED" until the test case has completed and transitioned to a final status of either "PASSED" or "FAILED". The status of the test case will automatically refresh on this page as CXTM progresses through the queue of test cases.

    The Job File column in this table provides a direct link to the Job File page of each test case. The Topology column shows the topology file used by each Job File. Notice how the Topology is set to the topology file that you selected earlier when changing the default topology for all Job Files. As each test case transitions to a "PASSED" or "FAILED" status, data will be populated in additional columns in this table. Take a moment to observe how this table is updated as each test case completes.


  4. Confirm that test cases have Passed



  5. Now that the batched test cases have completed, take a moment to review the populated table.

    The Results Status Count at the top provides a status summary, showing the total number of test cases in each status. Your output should show 5 test cases in PASSED state when this batch completes.

    Like the Run History that is updated for each of individual test case, a new entry will be added to Batch Runs, providing an archival of batch runs and results.

    Alert

    Notify your proctor if any test cases have Failed before moving on.

Step 3 - Return to Test Cases Page


From the Job File Results page:

  1. Navigate back to your project home by clicking on the Project LTROPS-2711 tab in the navigation breadcrumbs.



  2. Click on VIEW TEST CASES



  3. Confirm that the test case state is "Passed" for all test cases

  4. Now that all of the test cases have been run and Passed, the state of each test on your project's Test Cases page should have updated to reflect the most recent execution state.

Alert

Notify your proctor if any of your test cases are in any state other than Passed.


Step 4 - Edit the Verify Software Version on Devices test case parameters to include L3 and L4

In order to verify operational state of the Data Center fabric after adding L3 and L4, you will need to edit the Parameter Files of the respective test cases to include the new devices. There is no need to rerun these test cases now. The next time they will run is when executed in the pipeline after the proposed configuration changes have been pushed.

From your project's Test Cases page:

  1. Locate the test case Verify Software Version on Devices that has identifier 1.01
  2. For this test case's row, click on the Yes link under the Job File? column



  3. Click on the pencil icon in the Job File preview pane


  4. Copy and paste the parameters below to insert the devices on lines 6 and 7 of the Parameter File section of your Job File.
  5. Warning

    NOTE: You may need to scroll down to see the Parameter File section.

    
    DEVICES:
        - S1
        - S2
        - L1
        - L2
        - L3
        - L4
    
    EXPECTED_VERSION:  10.5(2)
    


  6. Scroll back up to the top of the Job File page and click Save



  7. Navigate back to your project home by clicking on the Project LTROPS-2711 tab in the navigation breadcrumbs.




Step 5 - Edit the Verify Features on NX-OS via REST test case parameters to include L3 and L4

From your project's Test Cases page:

  1. Locate the test case Verify Features on NX-OS via REST that has identifier 1.02
  2. For this test case's row, click on the Yes link under the Job File? column



  3. Click on the pencil icon in the Job File preview pane


  4. Copy and paste fabric-expansion into the "Branch, SHA, or Tag" field under Override Project Git Settings .



  5. The fabric-expansion branch will be the new feature branch created later in the lab when adding L3 and L4 to the data center fabric.

  6. Copy and paste the parameters below to the Parameter File section of your Job File.
  7. Warning

    NOTE: You may need to scroll down to see the Parameter File section.

    
    DEVICES:
        - L1
        - L2
        - L3
        - L4
    
    EXPECTED_FEATURES:
        - bgp
        - interface-vlan
        - lldp
    
    EXPECTED_STATE: enabled
    


  8. Scroll back up to the top of the Job File page and click Save



  9. Navigate back to your project home by clicking on the Project LTROPS-2711 tab in the navigation breadcrumbs.




Step 6 - Edit the Verify Interface State on NX-OS via REST test case parameters to include L3 and L4

From your project's Test Cases page:

  1. Locate the test case Verify Interface State on NX-OS via REST that has identifier 1.03
  2. For this test case's row, click on the Yes link under the Job File? column



  3. Click on the pencil icon in the Job File preview pane


  4. Copy and paste fabric-expansion into the "Branch, SHA, or Tag" field under Override Project Git Settings .



  5. Copy and paste the parameters below to the Parameter File section of your Job File.
  6. Warning

    NOTE: You may need to scroll down to see the Parameter File section.

    
    DEVICES_DATA:
        S1:
          INTERFACES:
            - Lo0
            - Eth1/1
            - Eth1/2
            - Eth1/3
            - Eth1/11
            - Eth1/12
            - Eth1/13
        S2:
          INTERFACES:
            - Lo0
            - Eth1/1
            - Eth1/2
            - Eth1/3
            - Eth1/11
            - Eth1/12
            - Eth1/13
        L1:
          INTERFACES:
            - Vlan101
            - Lo0
            - Eth1/29
            - Eth1/30
            - Eth1/31
            - Eth1/32
        L2:
          INTERFACES:
            - Vlan102
            - Lo0
            - Eth1/29
            - Eth1/30
            - Eth1/31
            - Eth1/32
        L3:
          INTERFACES:
            - Vlan103
            - Lo0
            - Eth1/29
            - Eth1/30
            - Eth1/31
            - Eth1/32
        L4:
          INTERFACES:
            - Vlan104
            - Lo0
            - Eth1/29
            - Eth1/30
            - Eth1/31
            - Eth1/32
    
    EXPECTED_STATE: up
    


  7. Scroll back up to the top of the Job File page and click Save



  8. Navigate back to your project home by clicking on the Project LTROPS-2711 tab in the navigation breadcrumbs.




Step 7 - Edit the Verify BGP Neighbor State on NX-OS via REST test case parameters to include L3 and L4

From your project's Test Cases page:

  1. Locate the test case Verify BGP Neighbor State on NX-OS via REST that has identifier 1.04
  2. For this test case's row, click on the Yes link under the Job File? column



  3. Click on the pencil icon in the Job File preview pane


  4. Copy and paste fabric-expansion into the "Branch, SHA, or Tag" field under Override Project Git Settings .



  5. Copy and paste the parameters below to the Parameter File section of your Job File.
  6. Warning

    NOTE: You may need to scroll down to see the Parameter File section.

    
    DEVICES:
        - S1
        - S2
        - L1
        - L2
        - L3
        - L4
    
    EXPECTED_STATE: Established
    


  7. Scroll back up to the top of the Job File page and click Save



  8. Navigate back to your project home by clicking on the Project LTROPS-2711 tab in the navigation breadcrumbs.




Step 8 - Edit the Verify Route Table State on NX-OS via REST test case parameters to include L3 and L4

From your project's Test Cases page:

  1. Locate the test case Verify Route Table State on NX-OS via REST that has identifier 1.05
  2. For this test case's row, click on the Yes link under the Job File? column



  3. Click on the pencil icon in the Job File preview pane


  4. Copy and paste fabric-expansion into the "Branch, SHA, or Tag" field under Override Project Git Settings .



  5. Copy and paste the parameters below to the Parameter File section of your Job File.
  6. Warning

    NOTE: You may need to scroll down to see the Parameter File section.

    
    DEVICES:
        - S1
        - S2
        - L1
        - L2
        - L3
        - L4
    
    EXPECTED_ROUTES:
        - 10.0.1.1/32
        - 10.0.2.2/32
        - 10.0.3.3/32
        - 10.0.4.4/32
        - 10.254.101.0/24
        - 10.254.102.0/24
        - 10.254.103.0/24
        - 10.254.104.0/24
    


  7. Scroll back up to the top of the Job File page and click Save



  8. Navigate back to your project home by clicking on the Project LTROPS-2711 tab in the navigation breadcrumbs.




Now, that you have successfully run your automated tests through the GUI, and added the devices and other parameters to the applicable test cases, proceed to the next section to enable Webex Notifications when your test case batch runs have completed in the pipeline.