Trgan Container
TrganContainer is a logical grouping construct within the TrganReport, designed to encapsulate related test executions under a unified module. It enables hierarchical organization and modular rendering of test results, supporting both BDD and TDD paradigms. It supports concurrent creation for parallel execution, allowing scalable test flows while maintaining clarity and modularity in report presentation.
TrganContainer container = report.CreateContainer("containerName");
categories:string[]
can be passed to label tags or categories used to classify the container. These can can be visible in Execution Status section in the Trgan Table.
Purpose of Trgan Container
- BDD-style testing: Represents a Feature, grouping multiple Scenarios under a shared behavioral context.
- TDD-style testing: Maps to a Test Class, organizing related test methods within a common unit.
This abstraction allows, clear nesting of test results in the final report, thread-safe aggregation of sub-tests modular rendering with collapsible sections and scoped metadata