This manages a test context for a test and triggers test execution listeners:-

This manages a test context for a test and triggers test execution listeners:- Correct Answer Test context manager

This manages a test context for a test and triggers test execution listeners at predefined test execution points, including when preparing a test instance, before executing a test method (before any framework-specific initialization methods), and after executing a test method (after any framework-specific cleanup methods).

Related Questions

The TestContext framework provides two test execution listeners related to context management:-