Search found 4 matches

by DownLoad
Tue Aug 19, 2014 6:43 pm
Forum: Automation Discussions
Topic: Ranorex & Windows Shutdown
Replies: 6
Views: 3030

Re: Ranorex & Windows Shutdown

Just providing an update in case anyone's still looking at the thread. Currently I am able to detect a system reboot by overriding WndProc in a form in a separate thread than the main test one. When I detect a reboot I report a failure and save it before Windows shuts everything down. Now unfortunat...
by DownLoad
Thu Aug 14, 2014 11:16 pm
Forum: Automation Discussions
Topic: Ranorex & Windows Shutdown
Replies: 6
Views: 3030

Re: Ranorex & Windows Shutdown

Alright so right now I'm sort of stuck with how to catch SystemEvents. Perhaps someone here may have some ideas. The whole SystemEvents.SessionEnding events will only work on non-console applications. When we run our tests here we originally had the project as a Console Application so I tried switch...
by DownLoad
Thu Aug 14, 2014 4:27 pm
Forum: Automation Discussions
Topic: Ranorex & Windows Shutdown
Replies: 6
Views: 3030

Re: Ranorex & Windows Shutdown

No, there is no way to capture shutdown on a Windows system with any automated testing tool due to the way Windows shutdowns work. Once Windows starts shutting down, it kills all non-OS process that are running on the system, before it starts the actual shutdown process. This means that Ranorex (an...
by DownLoad
Wed Aug 13, 2014 7:01 pm
Forum: Automation Discussions
Topic: Ranorex & Windows Shutdown
Replies: 6
Views: 3030

Ranorex & Windows Shutdown

Hi, So I'm currently trying to run a test for one of our applications. The test should fail if the application finishes and restarts Windows. However currently if the application restarts Windows 7 during a test, Ranorex does not seem to have a log for that session. So I guess my question is the fol...