Can We Handle Event Handling in module or SM
Can we keep Event Handling in module or shared module in test partner.
Re: Can We Handle Event Handling in module or SM
I posted a similar question here and on compuware's frontline forum regarding globalizing whenever events. someone on frontline responded with the following, however, I have not tested it myself. Try it and please respond if it works or not. If you had to tweak it to work, it would be helpful if you indicate what you did to get it to work.
You can call a global procedure in the event handler. If you want to have this as a default for all scripts you could create a script template.
Public Sub Script_Whenever(ByVal TheEvent As TPEvents.TEventGroup)
The module "MyErrorHandler":
public sub GlobalErrorHandler
' Attach to Excess Claims JavaWindow
JavaWindow("Excess Claims JavaWindow").Attach
' Attach to ClaimsGUIObjectMap