Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

How to access Main Function Name in General Events

$
0
0

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

EndSub

 

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


Viewing all articles
Browse latest Browse all 20990