Installation testcase using Ranorex

Ask general questions here.
sunitha
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

Installation testcase using Ranorex

Post by sunitha » Sat May 30, 2009 1:40 pm

My test case is to install my product & reboot the sys.Check for registry keys after installation..

How to resume the test execution after System restart in Ranorex 2.0

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Mon Jun 01, 2009 4:12 pm

Mind you I've never tried this with Ranorex. However, with other automation apps I would do the following.

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.

Make sense?