LOBSTER Tool for TRLC
Project description
LOBSTER
The Lightweight Open BMW Software Traceability Evidence Report allows you to demonstrate software traceability and requirements coverage, which is essential for meeting standards such as ISO 26262.
Configuration
This tool requires a few parameters in a configuration file. They describe how to convert a TRLC record type to a LOBSTER item.
For example, your TRLC input files may contain a Requirement type,
which has a summary field, and you want to use this field as text
in the LOBSTER item.
Such a mapping can be defined in the configuration file.
Example:
inputs:
- carrot.rsl
- carrot1.trlc
- carrot2.trlc
- potato.rsl
- potato.trlc
conversion-rules:
- package: vegtables
record-type: Requirement
namespace: req
description-fields:
- summary
- other_summary
justification-up-fields:
- justification1
- justification2
justification-down-fields:
- justification3
justification-global-fields:
- justification4
tags:
- derived_from
applies-to-derived-types: true
- package: vegtables
record-type: Security_Requirement
namespace: req
description-fields:
- summary
- extra_text
tags:
- field: trace
namespace: act
to-string-rules:
- package: vegtables
tuple_type: External_Id
namespace: req
to_string:
- "$(item)@$(version)"
- "$(item)"
By default none of the objects are traced, but adding a declaration like this marks this type (and all its extensions) as things to trace.
The description-fields specify which fields carry the description text that
can be optionally included in LOBSTER.
The tags field identifies the field carrying tags.
In LOBSTER all tags are namespaced, and by default the namespace is "req" as that
is generally what you want to do with TRLC.
But you can change this by including the namespace, see the example above.
Three namespaces are supported:
reqfor "requirement"actfor "activity"impfor "implementation"
For tuple types like this one:
trlc_config: |
tuple Codebeamer_Id {
item Integer
separator @
version optional Integer
}
You need to provide a series of text expansions so that the
lobster-trlc tool can build lobster tags from it.
You can do this via the to-string-rules configuration entry.
These to-string functions are applied in order, and the tool picks the first one that
fully manages to apply. If a value is null and required for the
the expansion (as in the first to-string function above), the current
function is skipped, and the next one is attempted. If none of the functions
can be applied, an error is raised.
If you need to justify requirements not being linked or implemented,
then you can also define up to three extra fields (using justification_up,
justification_down, and justification_global) that should carry this
information.
See the example above.
The meaning of "up" is along the usual direction of tracing tags. For example putting this in a software requirement means it is not linked to a system requirement. The meaning of "down" is against the usual direction of tracing tags. For example putting this in a software requirement means it is either not implemented or not tested.
As you can see the down justification is much more imprecise than an up justification. You should only use them if there is no other way to attach this justification on the actual offending object.
Finally the "global" justification is a catch all: it just means no tracing policy will be validated at all when considering this object.
Executing lobster-trlc tool
lobster-trlc takes two command line arguments as follows:
--config- Yaml based config file path in which the following parameters can be mentioned.inputs: A list of input file paths (can include directories).inputs_from_file: A file containing paths to input files or directories.
out: The name of the output file where results will be stored.
Command
> lobster-trlc --config "path/to/the/config/file.yaml" --out "output/path.lobster"
Tools
lobster-trlc: Extract requirements from TRLC.
Copyright & License information
The copyright holder of LOBSTER is the Bayerische Motoren Werke Aktiengesellschaft (BMW AG), and LOBSTER is published under the GNU Affero General Public License, Version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bmw_lobster_tool_trlc-0.14.2-py3-none-any.whl.
File metadata
- Download URL: bmw_lobster_tool_trlc-0.14.2-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bf9c7e8bb72a9321cc43d6ea6408db759e989d13405af7dcceccf5c92b62f11
|
|
| MD5 |
4bf0f39c714c023616922652e69ed8be
|
|
| BLAKE2b-256 |
973be2bb90abb369370d87a05f072f2bccec47bdb420271c0a7e4201278d250a
|
Provenance
The following attestation bundles were made for bmw_lobster_tool_trlc-0.14.2-py3-none-any.whl:
Publisher:
package.yml on bmw-software-engineering/lobster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bmw_lobster_tool_trlc-0.14.2-py3-none-any.whl -
Subject digest:
8bf9c7e8bb72a9321cc43d6ea6408db759e989d13405af7dcceccf5c92b62f11 - Sigstore transparency entry: 416945873
- Sigstore integration time:
-
Permalink:
bmw-software-engineering/lobster@5f90f099cab56acb5bc8001fbb5c3857c578d50e -
Branch / Tag:
refs/tags/lobster-0.14.2 - Owner: https://github.com/bmw-software-engineering
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@5f90f099cab56acb5bc8001fbb5c3857c578d50e -
Trigger Event:
release
-
Statement type: