We are developing a testsuite with some testclasses of (5-7) qarun scripts.
It is imperative that every testclass should start from a defined starting point (i.e. the main desktop of the application).
I wrote a starting qarun script that closes the app. in case it exists by the help of "TerminateApp ()". If the app is not there I start it with "Exec ()" This works just fine.
But I am looking for a better way to close the application. terminateApp is OK but prevends the program to save its databases and other background processes needed to shutdown savely.
Unfortunately there are several situations on my "regular" way to close the application.
I think the best choice is to have a bunch of Whenevers and for the evil rest of situations an On Error Call HandleTheEvilRest.