How to access Main Function Name in General Events
Hi,
I have to trigger General Events when Unexpected Window Occurs.
I have following Cases,
Main Function
Sub Function 1
Sub Function 2
Sub Function 3
Now the Main Function Call 3 Subfunctions, at the time Unexpected window appear while running on Sub Function 2 or Sub Function 3.
Sub GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
Window.Close
Application .Terminate
End Sub
After Terminating the Application I want to call the Main Function which is called the Failed Sub function. Is it possible to get the Function? How can I get the Failed function?
Thanks
Kamal
Hello Kamal,
Here is an example of a possible approach to the test execution flow when a single test is attempted several times if it fails. To see this sample in action, run the 'MyRunner' routine from the 'TestRunner' unit.
Let me know if you have any questions about this example.