wiki:TestManagerForTracPluginApi

Version 16 (modified by seccanj, 4 years ago) (diff)

--

Test Manager for Trac Plugin - Public API


The TestManager plugin can be used programmatically to create and manage Test Catalogs, Test Cases and Test Plans, and to set the test execution outcomes of the Test Cases in a plan.

There are three main APIs available:

  • An '''XML-RPC''' API, allowing you to remotely control your test artifacts using a standard XML-RPC protocol. For example, using the Python xmlrpclib library, you can get test object properties, create objects and so on with as few as two lines of code.
  • An '''HTTP RESTful''' API, allowing you to remotely control your test artifacts by means of simple HTTP GET requests,
  • A plain '''Python''' API, allowing for components running in the Trac environment to have a fine-grained control over any artifact, managing their life-cycle, listening to events, reacting to status changes and workflow transitions.