Introduction¶
This document is intended for use by attendees of the Cisco Live 2024 who are taking Automated Testing for Your Network Hands-on Lab (LTRATO-2001).
Prerequisites¶
- Foundational Python Proficiency:
Essentials of Python programming is required to navigate pyATS scripts effectively.
- Networking Knowledge:
Understanding core networking concepts and protocols that underpin network testing.
- Cisco Systems Acquaintance:
Familiarity with Cisco NX-OS, ASA, and IOS-XE including configurations and essential troubleshooting commands.
- Command-Line Interface (CLI) Competence:
Ability to inspect and modify basic Cisco device configurations using CLI tools.
Learning Objectives¶
During this lab, you will get hands-on experience with pyATS, a vendor-agnostic suite of libraries for Python. Then, you will learn how to build your automated tests using those frameworks. pyATS opens a wide variety of opportunities, and soon, you will see it is not hard to start using them. During this lab, we will show you real-world examples that you can use to start implementing the automation of tests in your network.
Upon completing this lab, you will be able to:
- Comprehend pyATS Features:
Identify the primary capabilities and components of the pyATS suite.
- Craft a Testbed File:
Construct a pyATS testbed file tailored for network testing scenarios.
- Develop Automation Scripts:
Engineer scripts to automate testing across various network topologies.
- Explore Tool Integrations:
Understand how to integrate pyATS with graphical interface tools like XPRESSO and CXTM for enhanced usability.
Throughout this lab, you will work with and learn the following features and concepts:
pyATS testbed file
pyATS shell
Device.connect() and Device.execute() methods
pyATS test script structure
pyATS test cases
Logging in to pyATS
pyATS Parse
pyATS Learn
find_links method to find all the links between devices.
pyATS Run
pyATS job file
pyATS Log Viewer
XPRESSO (pyATS Web Dashboard)
CX Test Automation Manager (CXTM)
Section author: Luis Rueda <lurueda@cisco.com>, Jairo Leon <jaileon@cisco.com>