Forum Discussion
Ryan_Moran
10 years agoValued Contributor
Sub main()
Call TestedApps.RunAll
call Runner.CallMethod("Login_Call.Login")
'Not sure why you are calling this? It should fire at the end of your script.
'call GeneralEvents_OnStopTest(Sender)
Call TestedApps.CloseAll
End sub
Seems to work for me in testing, but I don't see why you are manually calling the GeneralEvents_OnStopTest.
- Rajdeephere10 years agoNew Contributor
Hi ,
Thank you for the review.
I have one query, how the main function will recognize "GeneralEvents_OnStop" method which i kept in "CommonFunction Script"
Sorry i am new to TestComplete. So i dont know how to use "GeneralEvents_OnStop"
Thanks
- Adrian_Tankard10 years agoContributor
The GeneralEvents_OnStopTest is automatically run with the tests are finished.
So you don't have to call it.