| || |
Can i run my function by default when any test run
I want to run a function created by me by default just before any test case start executing or any test script start executing or any test case ends execution or any test script end execution.
I have used silk and it has some function like "defaultTestCaseEnter", "DefaultTestScriptEnter" ,"defaultTestCaseExit" etc.. by modifying these functions i can easily run some fucntions created by me such as setting application to a default state or logging information about testcase in log file.
Re: Can i run my function by default when any test run
You can call your function from the OnStartTest and OnStopTest event handlers. See the "About Events and Event Handling", "OnStartTest Event" and "OnStopTest Event" help topics.