Skip to content

Collect Report¤

CollectReport dataclass ¤

CollectReport(
    session_id: str,
    node_id: str,
    timestamp: str,
    items: List[
        Union[
            TestDirectory, TestModule, TestSuite, TestCase
        ]
    ],
    event: str = "collect_report",
)

A report of collected items.

event class-attribute instance-attribute ¤

event: str = 'collect_report'

The event type. Always set to 'collect_report'.

items instance-attribute ¤

An array of collected items. Each collected item is a test directory, test module, test suite, or test case. Top level directory is always first element in the array, followed by test cases, then test suites, then test modules, then test directories for each level of nesting.

node_id instance-attribute ¤

node_id: str

The node id of the node for which items were collected (the top level root directory has an empty node id).

session_id instance-attribute ¤

session_id: str

The unique if of this test session used to aggregate events together.

timestamp instance-attribute ¤

timestamp: str

The date and time when the report was generated in ISO 8601 format.