Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ciscodevnet/pyats-sample-scripts
Various pyATS-based Test Automation Scripts
https://github.com/ciscodevnet/pyats-sample-scripts
ccie ccna ccnp cisco cisco-ios pyats pyats-examples test-automation
Last synced: 7 days ago
JSON representation
Various pyATS-based Test Automation Scripts
- Host: GitHub
- URL: https://github.com/ciscodevnet/pyats-sample-scripts
- Owner: CiscoDevNet
- License: apache-2.0
- Created: 2017-11-02T21:21:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-22T02:01:02.000Z (over 4 years ago)
- Last Synced: 2024-10-30T00:35:44.632Z (about 2 months ago)
- Topics: ccie, ccna, ccnp, cisco, cisco-ios, pyats, pyats-examples, test-automation
- Language: Python
- Homepage: https://developer.cisco.com/site/pyats/
- Size: 41 KB
- Stars: 82
- Watchers: 31
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyATS Sample Scripts
The best method to master pyATS test framework is to learn-by-example. This
repository contains various scripts that showcases the many features and
packages of pyATS.## General Information
- Website: https://developer.cisco.com/site/pyats/
- Bug Tracker: https://github.com/CiscoTestAutomation/pyats/issues
- Documentation: https://developer.cisco.com/site/pyats/docs/## Requirements
pyATS & its examples supports Python 3.4+ on Linux & Mac systems. Windows is not yet supported.## Getting Started
The examples included in this repository expects you to have a Python environment with pyATS packages installed. Alternatively, you can always setup a new virtual environment as sandbox.
```
$ python3 -m venv pyats_sandbox
$ cd pyats_sandbox
$ source bin/activate
$ pip install pyats$ git clone https://github.com/CiscoDevNet/pyats-sample-scripts.git
```## Sample Script Usage
There are two ways to run a typical pyATS script:
1. through `pyats run job`, which generates log and archives
2. as standalone, and prints results to screen```bash
$ cd pyats-sample-scripts/basic$ pyats run job basic_example_job.py
$ python basic_example_script.py
```Refer to each job file's docstring on details of command-line arguments.