StubConnector
#
- class ansys.scade.pyalmgw.stub.StubConnector(id: str, project: scade.model.project.stdproject.Project | None = None)#
Bases:
ansys.scade.pyalmgw.connector.Connector
Stubs the
Connector
class for unit testing and example.
Overview#
Return a stub requirements file for ALM Gateway. |
|
Export traceability links and Contributing Elements (surrogate model). |
|
Import requirements and traceability links to ALM Gateway. |
|
Stub the command |
|
Stub the command |
|
Stub the command |
Import detail#
from ansys.scade.pyalmgw.stub import StubConnector
Method detail#
- StubConnector.get_stub_file() pathlib.Path #
Return a stub requirements file for ALM Gateway.
The function makes a local copy of a resource file so that it can be modified by the ALMGW commands.
- Returns:
Path
Path of the requirements file.
- StubConnector.on_export(links: pathlib.Path, pid: int) int #
Export traceability links and Contributing Elements (surrogate model).
- Parameters:
- links
Path
Path of a JSON file that contains the links to add and remove.
- pid
int
SCADE product process ID.
- links
- StubConnector.on_import(file: pathlib.Path, pid: int) int #
Import requirements and traceability links to ALM Gateway.
The function copies the stub file to the provided path.
- Parameters:
- path
Path
Absolute path where the XML requirements file is saved.
- pid
int
SCADE product process ID.
- path