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
Join today and get access to:
  • 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
  • Monthly online meetups

100% Satisfaction Guaranteed!
Cancel your membership at any time.


Join Today
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.