CDRouter Web API & Test Automation
Overview
This session focuses on concepts related to the automation of CDRouter testing.
The purpose of this session is to introduce the CDRouter Web API and provide a few simple examples of how it can be used to automate testing.
This session will enable users to start running tests with basic automation rather than the web UI, making it possible to fully integrate CDRouter into the user’s automation and/or CI/CD framework. In preparation for this session, your team should think about their automation goals and how they plan to integrate CDRouter into any existing automation or CI/CD environment they may be using.
Agenda
- Package Scheduler
- Automatically run test packages on a daily schedule
- CDRouter CLI tool (shell scripts)
- Write shell scripts to launch test packages
- Monitor test execution status
- CDRouter Web API
- Interact with CDRouter through HTTP REST-ful API
- Web API Documentation
- Examples using
curl
CLI command
- cdrouter.py Python Wrapper Module
- Python module documentation
- Sample Python scripts
- Interactive Example Python Script
Prerequisites
NTA1000 systems do not have the cdrouter.py
Python wrapper module for CDRouter
installed by default. This module must be installed prior to the start of the
training session. Installation instructions can be found in the cdrouter.py
documentation here:
NTA3000 systems have cdrouter.py
installed by default. No other prerequisites
exist for this training session.