Skip to main content

Python OO API package to automate Spirent TestCenter (STC) traffic generator

Project description

Python 3.7|3.8|3.9 License Build status

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

ChangeLog.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytestcenter-3.3.0-py3-none-any.whl (74.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page