Right now I am automating the restart of Windows after installation of a program to verify data is loaded correctly into the registry. I have used the following method, mentioned by Ciege in the link posted, to automate the restart:
http://www.ranorex.com/forum/installati ... -t835.html
Everything runs just as expected, however, upon completion there is no report output in either the bin/Debug folder or the project's Reports folder. I only have one report in the bin/Debug folder from the test run PRIOR to restarting, however it has absolutely no data, and the test run AFTER restarting is missing entirely.1) Write to the RunOnce registry key to launch your automation app.
2) Before shutting down have your automation app write out a text file that says restart (or something just so we have it for future reference).
3) After the computer restarts and the automation app is restarted from the run once, have your automation app check for the restart text file. If it does not exist, assume this is a clean run and go accordingly. If it does exists assume that this is a restart and tell you automation app to start at the new place in code where it needs to be after a restart.
4) IF this is a restart, make sure your automation app deletes the text file after the restart or else your next clean run of the automation app will assume this is another restart.
I've attached an image of the blank report run PRIOR to restarting.
I imagine the test run prior to restarting did not record properly since the test was cut off with the restart command.
Any ideas of ways around this so I can get all the report data from both before and after restarting the computer?