Custom Stress Module Functions
In your test module, you must implement and export three required functions. Your DLL must export an InitializeStressModule function, a DoStressIteration function, and a TerminateStressModule function. Your DLL can also optionally export an InitializeTestThread function and a CleanupTestThread function.
The StressUtils.dll module exports functions that you can use to add functionality to your test. To use these functions, you must link your test module to the StressUtils.lib library. For information about the functions exported by the StressUtils.dll module, see Modular Stress Test Functions.
The following table shows the functions that a test module can export.
Function | Description |
---|---|
CleanupTestThread | Optional. Called once before each test thread exits. The function is not required to complete an action. This function is provided for test cleanup purposes only. |
DoStressIteration | Required. Main function for a test module. |
InitializeStressModule | Required. Initializes the test module. |
InitializeTestThread | Optional. Called once at the beginning of each test thread. This function is provided for test-specific initialization only. |
TerminateStressModule | Required. Called once before a test module exits. This function is provided for test cleanup purposes only. |
See Also
Custom Module Creation for the Modular Stress Test
Last updated on Friday, October 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.