Test Case End¤
TestCaseEnd
dataclass
¤
TestCaseEnd(
session_id: str,
node_id: str,
start_timestamp: str,
stop_timestamp: str,
total_duration: float,
outcome: Outcome,
event: str = "case_end",
)
Event emitted when a test case is finished (meaning all of setup, call and teardown steps are finished).
Attributes:
Name | Type | Description |
---|---|---|
event |
str
|
The event type. Always set to 'case_end'. |
node_id |
str
|
The node ID of the test case. |
outcome |
Outcome
|
Outcome of the test case. |
session_id |
str
|
The unique if of this test session used to aggregate events together. |
start_timestamp |
str
|
Start time of the test case (including setup). |
stop_timestamp |
str
|
Stop time of the test case (including teardown). |
total_duration |
float
|
Total duration of the test case in seconds (including setup and teardown). |
event
class-attribute
instance-attribute
¤
event: str = 'case_end'
The event type. Always set to 'case_end'.
session_id
instance-attribute
¤
session_id: str
The unique if of this test session used to aggregate events together.
start_timestamp
instance-attribute
¤
start_timestamp: str
Start time of the test case (including setup).