Skip to content

chorus-team/chorus-core

Repository files navigation

Chorus Core Logo

Chorus Core

build status

What is Chorus

Chorus is an felxible framework targets to network device test automation. It can be extended in many ways including testcase, device behaviour, control methods, topology representation etc.

Chorus Core is the core of the chorus framwork.

Prerequisites

Chorus supports only Linux Platform. You need to install python, pip before install.

Installation

Source

$ git clone https://github.com/chorus-team/chorus-core.git
$ cd chorus-core
$ python setup.py install

PYPI

$ pip install chorus-core

Configuration Files

After installation, the configuration files will be placed under sys.prefix+'/etc/chorus', i.e. '/usr/etc/chorus' or '/usr/local/etc/chorus' if not using virtualenv.

Command Line

chorus

The command line framework of chorus. Currently the following subcommands are supported:

  • run Run a chorus script. Calls chorus_run directly.
  • debug Debug a chorus script. Calls chorus_run with -D option.
  • lastlog Show the latest chorus log file.

Notes:

There are several kinds of files for Chorus testcase to run (check example folder in src):

  1. testcase file, format python, define testcases which inherate from class Testcase.
  2. topology file, format yaml, define the topologies, extension .topo.
  3. suite file, define testcases and their parameters, used for batch regression. A suite file may have a topology file with the same prefix.
  4. data file, format csv, define the testcase argument data in format of table.

About

The core of chorus framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages