The requested page is not available for selected version.
How to declare customized extensibility methods
This topic describes about ways to declare customized extensibility methods.
All the customized extensibility methods above must be declared within the TAIntegrationExtensibility class in accordance with the Attribute Method technique.(Learn more.)
Notes:
By default, some of the supported extensibility methods above, such as ClassInitialized(), ClassCleaning(), and TestInitialized(), are automatically generated in advance in the TAIntegrationExtensibility class, for your ease of use.The following example depicts declarations of two methods:
- the extensibility ClassInitialized() method. Any code appearing within the curly brackets is invoked right after the ClassInitialize() method is executed, and
- the extensibility ClassCleaning() method. Any code appearing within the curly brackets is invoked right before the ClassCleanup() method is executed.
/// <summary>
/// Code to be run after ClassInitialize
/// </summary>
[TAExtensibilityMethod(LoaderConstant.ClassInitialized)]
public void ClassInitialized(TAExecutionArguments args)
{
//Code implementation
}
/// <summary>
/// Code to be run before ClassCleanup
/// </summary>
[TAExtensibilityMethod(LoaderConstant.ClassCleaning)]
public void ClassCleaning(TAExecutionArguments args)
{
//Code implementation
}