When I run a test with TestComplete then it runs perfectly fine till the end but when I run the same test using TestExecute then all of a sudden my system logsoff and the only screen I could see is Administrative Login Screen even though I was not logged in with Admin Account. I used a different account which has got admin access.
It looks like you're using Windows Vista or Windows 7, and you get a UAC dialog. Run TE as Administrator. See the "Testing Applications With TestComplete Under Windows Vista and Later Operating Systems" topic in TC's help.
I am using Windows 7 and have got admin rights on my login.
TestExecute was working earlier without any problem but started behaving this way recently. It runs until the end but logs off at the end of the execution even if I am running it using "Run as Administrator".
I am using SendMail function which should send me email after the execution but I am not receiving that email as well.
If I run the same script using TestComplete then I do not face any issue and it runs smoothly.