Pre-Automated Test Cases
Imported Test Cases
  • 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

Pre-Automated Test Cases

A significant benefit of CXTM, and associated service offers, is the "pre-built" automation included. In addition to the extensive list of keywords and parsers included in the CXTA collection of libraries, CXTM also offers libraries of pre-built automated test cases that can be imported into projects in a similar way to how you imported test cases into your own project in this lab.

These test cases are intended to serve as building blocks to accelerate automation development. Once a Topology file has been defined, you should only need to add the variables specific to your test environment to make use of these automated test cases. In the following steps, you'll modify the pre-built automated test cases you imported from the Template project earlier in the lab.

Step 1 - Verify BGP Neighbor State on IOS-XE via CLI


From your project's Test Cases page:

  1. Locate the test case Verify BGP Neighbor State on IOS-XE via CLI that has identifier 2.04
  2. For this test case's row, click on the Yes link under the Job File? column



  3. Examine the Job File in the Job File preview pane
  4. Click on the pencil icon in the Job File preview pane
  5. Use the parameters below and insert them into the Parameter File section of your Job File.
  6. Warning

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

        
    DEVICES:
        - CSR1Kv-01
    
    EXPECTED_STATE:  Established
    


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


Step 2 - Verify BGP Neighbor State on NX-OS via REST


From your test case Job File 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. Locate the test case Verify BGP Neighbor State on NX-OS via REST that has identifier 2.05
  4. For this test case's row, click on the Yes link under the Job File? column



  5. Examine the Job File in the Job File preview pane
  6. Click on the pencil icon in the Job File preview pane
  7. Use the parameters below and insert them into the Parameter File section of your Job File.
  8. Warning

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

        
    DEVICE: N9Kv-01
    
    EXPECTED_STATE: Established
    


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


Step 3 - Navigate to your project's Job Files page


Return to the sidebar.

  1. Scroll down until you locate the heading Test Cases
  2. Under Test Cases, click Job Files


Step 4 - Launch the Edit Job Files wizard


From your project's Job Files page:

  1. Click on the Select all visible Job Files icon to select all Job Files
  2. Confirm that all Job Files have been selected
  3. Click on the pencil icon to Edit the Selected Job Files




Step 5 - Change Default Topology


From the Edit Job Files wizard:

  1. Check the Change Default Topology checkbox
  2. From the Default Topology dropdown, select LTROPS-2711 Topology



  3. Click SUBMIT


Step 6 - Return to Test Cases Page


From your project's Job Files 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




Continue to the next section to add your test cases to separate execution queues to take advantage of parallel execution of the test cases.