I think that is the Cntl-S key from time to time...
What do you want, huh? QTP is only at version 9. [img]/images/graemlins/smirk.gif[/img]
Actually I think this is by intent, as you can make changes to a test, run and debug, and then you can either decide to commit the changes or discard them by closing the test without saving.
Sort of a double edge sword on this issue. So I guess the rule in your situation of power fails is to "save early and save often" (sort of like the parallel rule for voting in Chicago), just like the old days with VT100 terminals connected to flaky Unix systems.
Ugh, i didn't have a power outage I had a script lock up in run mode BEFORE I had saved my work (/me beats head with keyboard) Guess I need to get in the habit of saving before running even if it's just to a temporary name.. [img]/images/graemlins/frown.gif[/img]
A good rule of thumb is to never measure with your thumb.
I should have mentioned this in my previous post--when I don't want to commit changes until I confirm with debugging, but where I make a lot of changes, I open a text editor and cut/paste to that window and then save to the file system. Cumbersome, but effective if you can discipline yourself to do this ever 15 or so minutes.
I usually save a copy of all the scripts that I made any (significant) change to during the day in my backup folder following a version-oriented naming convention. The first line (comment) in the script says whether its a working version or not. If I am working on a particular script all day, I save a copy into a temp backup folder like every hlf n hour or so; clean up the temp backup folder before I leave, saving the selective version(s).