SW-Test Cases

SW-Tests

This file contains the software test cases for the pyTRLCConverter tool.

General

tc_cli

Attribute Name

Attribute Value

Description

This test case checks whether the tool supports the command line arguments.

Verifies

tc_translation

Attribute Name

Attribute Value

Description

This test case check whether the translation of requirement attributes works.

Verifies

tc_prj_spec

Attribute Name

Attribute Value

Description

This test case check whether a project specific converter can be instantiated.

Verifies

tc_version

Attribute Name

Attribute Value

Description

This test case check whether ‘--version’ shows the correct version format format <program-name> <major>.<minor>.<patch>.

Verifies

tc_process_trlc_symbols_one_file_one_req

Attribute Name

Attribute Value

Description

This test case check whether one single TRLC requirement is printed out of one TRLC file.

Verifies

tc_process_trlc_symbols_two_files_one_req

Attribute Name

Attribute Value

Description

This test case check whether one single TRLC requirement per TRLC file is printed out of two TRLC files.

Verifies

tc_verbose

Attribute Name

Attribute Value

Description

This test case check whether in verbose mode more information is printed out.

Verifies

tc_error

Attribute Name

Attribute Value

Description

This test case check whether error messages are printed to stderr.

Verifies

PlantUML

tc_plantuml

Attribute Name

Attribute Value

Description

This test case checks the conversion of a PlantUML diagram into an image.

Verifies

Command Line Arguments

tc_help

Attribute Name

Attribute Value

Description

This test case checks whether the help information is shown with ‘--help’ without project specific converter.

Verifies

tc_help_prj_spec

Attribute Name

Attribute Value

Description

This test case checks whether the help information is shown with ‘--help’ with project specific converter.

Verifies

tc_cli_exclude

Attribute Name

Attribute Value

Description

This test case checks whether a TRLC file can be excluded from the conversion.

Verifies

tc_cli_include

Attribute Name

Attribute Value

Description

This test case checks whether a TRLC file can be included as on demand context in the conversion.

Verifies

tc_cli_translation

Attribute Name

Attribute Value

Description

This test case checks whether a translation file can be configured via the command line.

Verifies

Markdown

tc_markdown_section

Attribute Name

Attribute Value

Description

This test case checks whether the conversion of a TRLC section to a Markdown section works.

Verifies

tc_markdown_escape

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter can convert strings with Markdown escaping.

Verifies

tc_markdown_heading

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter provides a function to create valid Markdown headings.

Verifies

tc_markdown_table

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter provides the functionality to create valid Markdown tables.

Verifies

tc_markdown_list

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter provides a function to create valid Markdown list and a valid HTML list.

Verifies

tc_markdown_image

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter provides a function to embed images in Markdown.

Verifies

tc_markdown_text_color

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter provides a function to create colored text in Markdown.

Verifies

tc_markdown_soft_return

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter provides a function to encode line feeds as Markdown soft returns.

Verifies

tc_markdown_out_folder

Attribute Name

Attribute Value

Description

This test case checks whether the default Markdown converter creates output files in the specified output folder.

Verifies

tc_markdown_multi_doc

Attribute Name

Attribute Value

Description

This test case checks whether the conversion to markdown in multiple document mode creates one output document per TRLC source file and whether the top level heading is created when required.

Verifies

reStructuredText

tc_rst_section

Attribute Name

Attribute Value

Description

This test case checks whether the conversion of a TRLC section to a reStructuredText section works.

Verifies

tc_rst_escape

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter can convert strings with reStructuredText escaping.

Verifies

tc_rst_heading

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter provides a function to create valid reStructuredText headings.

Verifies

tc_rst_admonition

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter provides a function to create valid reStructuredText admonition.

Verifies

tc_rst_table

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter provides the functionality to create valid reStructuredText tables.

Verifies

tc_rst_list

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter provides a function to create valid reStructuredText list.

Verifies

tc_rst_image

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter provides a function to embed images in reStructuredText.

Verifies

tc_rst_role

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter provides a function to create colored text in reStructuredText.

Verifies

tc_rst_out_folder

Attribute Name

Attribute Value

Description

This test case checks whether the default reStructuredText converter creates output files in the specified output folder.

Verifies

tc_rst_single_doc_custom

Attribute Name

Attribute Value

Description

This test case checks whether the conversion to reStructuredText in single document mode is customizeable.

Verifies

tc_rst_multi_doc

Attribute Name

Attribute Value

Description

This test case checks whether the conversion to reStructuredText in multiple document mode convers one output document per TRLC source file.

Verifies

Docx

tc_docx

Attribute Name

Attribute Value

Description

This test case checks whether the conversion to docx format works.

Verifies

tc_docx_section

Attribute Name

Attribute Value

Description

This test case checks whether the conversion of a TRLC section to a docx section works.

Verifies

tc_docx_file

Attribute Name

Attribute Value

Description

This test case checks whether the conversion to docx combines the results from multiple TRLC files into one docx file

Verifies

tc_docx_template

Attribute Name

Attribute Value

Description

This test case checks whether the conversion using a template works correctly.

Verifies

Dump

tc_ascii_conversion

Attribute Name

Attribute Value

Description

This test case checks whether the conversion to ASCII format works.

Verifies