Skip to main content

Tool to create a traceability matrix

Project description

tracematrix

A Python tool to create a traceability matrix.

Scope

This package focuses on generating the traceability matrix itself. As the APIs and export formats of different test management and/or requirement management tools can be very different, the data acquisition and conversion is not in the scope of this package. However, it aims to provide a convenient way to create the individual items (e.g. requirements, testcases or any other traceable item) and traces between them.

How to use this package

Currently it is only possible to use this package programmatically in your own script.

All traceable items have a unique id and a set of other items that they are traced to.

To get an existing or create a new item, you can use the class method get_by_id(id_). It will only create a new instance if no existing item with this id could be found. This means that you don't have to keep track if you already processed this item, because some items could appear more than once in your data (i.e. a requirement could appear on multiple test cases).

from tracematrix.item import TraceItem

req1 = TraceItem.get_by_id("REQ_1")
testcase1 = TraceItem.get_by_id("TC_1")

Creating links between to items is done by simply passing the two items to TraceItem.add_trace(first, second). This will create a bidirectional link between these elements and update the traced_to attribute on both.

TraceItem.add_trace(req1, testcase1)

Currently two output formats are supported - CSV and HTML. Default is CSV, but you can specify the reporter when creating the TraceabilityMatrix:

from tracematrix.reporters import HtmlReporter

matrix = TraceabilityMatrix(testcases, requirements, reporter=HtmlReporter)
matrix.create_matrix("RequirementsTraceabilityMatrix.html")

Project details


Download files

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

Source Distribution

tracematrix-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

tracematrix-0.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file tracematrix-0.2.0.tar.gz.

File metadata

  • Download URL: tracematrix-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Darwin/20.6.0

File hashes

Hashes for tracematrix-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5ef9e0625c27df9addd7347bdb3b954184521b951b4a9753b8ebbd7a54a3552b
MD5 8720b62b97bee250cb65bdbdd4c50c6e
BLAKE2b-256 66c3bfee0d3442153ad53f3017559b488fd57901c3005e626c07e34d32275e8c

See more details on using hashes here.

File details

Details for the file tracematrix-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tracematrix-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Darwin/20.6.0

File hashes

Hashes for tracematrix-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31ecdbe3866a6a6ec16c2bcd45a65612ee1d85b3f036bcc3beddcbbf6ff7db37
MD5 d2528ca58c857d0d3c23d6bbce997bde
BLAKE2b-256 1c385099838ee9aadc39b2253a24c77abaa96bb2a9fe3de0b2a9bb80b94b7abf

See more details on using hashes here.

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