ITestFramework Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A specialized extension that represents a test framework.
public interface ITestFramework : Microsoft.Testing.Platform.Extensions.IExtension
type ITestFramework = interface
interface IExtension
Public Interface ITestFramework
Implements IExtension
- Implements
Properties
| Name | Description |
|---|---|
| Description |
Gets the description of the extension. (Inherited from IExtension) |
| DisplayName |
Gets the display name of the extension. (Inherited from IExtension) |
| Uid |
Gets the unique identifier for the extension. (Inherited from IExtension) |
| Version |
Gets the version of the extension (ideally semantic version). (Inherited from IExtension) |
Methods
| Name | Description |
|---|---|
| CloseTestSessionAsync(CloseTestSessionContext) |
Ask to the test framework to destroy the test session and release all the resources. |
| CreateTestSessionAsync(CreateTestSessionContext) |
Ask to the test framework to create a test session. |
| ExecuteRequestAsync(ExecuteRequestContext) |
Ask to the test framework to execute a test execution request. |
| IsEnabledAsync() |
Controls whether the extension is enabled or not. This is useful for extensions that are always registered but only enabled when certain conditions are met. For example, an extension that would want to be run only when its associated command line option is provided by the user. (Inherited from IExtension) |