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")
Metadata
Release files for tracematrix 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tracematrix-0.3.1.tar.gz | 5.0 kB | Without provenance | Details for tracematrix-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tracematrix-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for tracematrix-0.3.1-py3-none-any.whl |
Total release size: 11.6 kB
Release files / tracematrix-0.3.1.tar.gz
| Download URL | tracematrix-0.3.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40cf9b27161fc8bafdbf9a4f6f07c2598dfdfaf4727ac4d442527c90caf47897
|
|
BLAKE2b-256 checksum How to use checksums |
d208cc0cf8fe6101d2e69bff2a6f9e6659bc6120d042677d599142fe653ab1a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1040-azure
|
Release files / tracematrix-0.3.1-py3-none-any.whl
| Download URL | tracematrix-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69c5cb3b790f505e24774d3c8e9617c8093f8c85272046d45947856ab0b5edbd
|
|
BLAKE2b-256 checksum How to use checksums |
9e350cb42e7e98912ce1ea995235961b3b0617deb25169eaedad43758737e2a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1040-azure
|
Security for tracematrix 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.