In this lesson we will cover:

  • What is AETest?
  • What is Easypy
  • How to create a test case and test script with AETest.
  • How to create a test job with Easypy.

The scripts and code for this lesson can be found within the pyATS repo under the directory: 006_test_cases/aetest_easypy/.

Intro to Test Cases with Python

So far, we have explored the different ways to query and parse our network devices to programmatically validate the network state. But how do we bring this all together? For example,

  • Is there a standardised way to group these tests together?
  • How would I run multiple tests at once?
  • How can I perform reporting to understand what has failed and what has passed?

pyATS provides two components that provide exactly this - AETest and Easypy. At a high level:

  • AETest is the test framework that we use to define the tests.
  • Easypy is the run-time for running our AETest tests.
Members Only Content
Want to Learn Network Automation?
Join our membership to access:
  • Full deep-dive course library (inc. Batfish, pyATS, Netmiko)
  • Code repositories inc. full course code, scripts and examples
  • 24x7 multi-vendor labs (Arista, Cisco, Juniper)
  • Private online community
  • Tech demos and sessions

Join Now ➜
Close You've successfully subscribed to Packet Coders.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.