Python OO API package to automate Spirent TestCenter (STC) traffic generator
Project description
Python OO API for Spirent TestCenter (STC).
Functionality
The current version supports the following test flow:
- Load configuration -> Get/Set attributes -> Start/Stop traffic -> Get statistics.
- Build configuration -> Start/Stop traffic -> Get statistics.
Supported operations:
- Basic operations - get/set attributes, get/create children
- Connect - to chassis or lab server
- Load configuration - load configuration (tcc or XML), reserve ports and analyze the configuration
- Start/Stop - arp, ping, devices, ports, streams
- Statistics - subscribe, read views, unsubscribe
- Save configuration and results
- Disconnect
Low level APIs
- StcRestWrapper - a Python wrapper over STC lab server REST API (using stcrestclient package).
- StcTclWrapper - a Python wrapper (using Python Tk package) over STC native Tcl API (SpirentTestCenter) .
Installation
pip install pytestcenter
Prerequisite
- Lab/Rest server for REST API.
- TestCenter application installed for Tcl
Getting started
Under testcenter.test.stc_samples you will find some basic samples. See inside for more info.
Documentation
http://pytestcenter.readthedocs.io/en/latest/
Contact
Feel free to contact me with any question or feature request at yoram@ignissoft.com
Change Log
###3.1.0 ####Functionality
- Add github Python package action
- isort and flake8 ####Bug Fixes
###3.1.3 ####Functionality
- Support capture - start/stop/save
- Save statistics in TgnObjectsDict
- Refine and test custom statistics views
- Python 3, typing, and docstrings
- Refactor stc samples ####Bug Fixes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytestcenter-3.2.0.tar.gz
(339.7 kB
view hashes)
Built Distribution
Close
Hashes for pytestcenter-3.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91df151181528c962a9a2bb7d1c083b478ce51acb5f74f4ceb0ed8e409f7a12e |
|
MD5 | e23d35c3cae33e665299da8f5f005d92 |
|
BLAKE2b-256 | aab8f15946f8f06ddebe9f722c11aecd76b98d923fbcc39cf6df0849eb617b6c |