Do you use a different directory than C:\Program Files\HP\Quicktest Professional\Tests to store your tests? If you, you must be sick and tired of manually correcting the save / open path each and every time you start QTP.
This QTip will show you how to change QTP’s default test directory, thus freeing you from endlessly browsing for the relevant directory whenever you save / open a test.
Open the registry editor, and locate the key:
HKCU\Software\Mercury Interactive\Quicktest Professional\MicTest
There, locate the string value TestsDirectory - it should be set to "C:\Program Files\HP\QuickTest Professional\Tests". Doubleclick it to open it, and change to value to the desired directory. Save, close the registry editor, and restart QTP.
Now, whenever you save a test, or initiate the open file dialog, it would start at your desired directory, and not QTP’s default one.
Enjoy.


Yaron Assa




May 1st, 2008 at 5:38 pm
I changed the TestsPath.reg from:
REGEDIT4
[HKEY_LOCAL_MACHINE\ProductRegRoot\MicTest]
“TestsDirectory”=”ActualPath\\Tests”
To
REGEDIT4
[HKEY_LOCAL_MACHINE\ProductRegRoot\MicTest]
“TestsDirectory”=”\\tiamat\mshome\usr\medwards\Mercury Interactive\QuickTest Professional\Tests”
And the open file dialog box still opened to the “C:\Program Files\HP\QuickTest Professional\Tests” folder.
Can this be set to a folder on an internal network or
does this have to be set to the C: drive?
Mike
May 1st, 2008 at 5:55 pm
You have to change the value under HKEY_CURRENT_USER, not LOCAL_MACHINE
May 2nd, 2008 at 7:09 am
i need QTP tutorials plz help mail at navdeep_ahir@hotmail.com
May 2nd, 2008 at 5:50 pm
Hi:
This is a cool customizable feature, I know most of the Q Eng (QTP) community must be enjoying tips and snippets offered in this site, my only suggestion to the community would be if you know anything please post it that way we are helping each other.
Thanks
July 19th, 2008 at 4:52 pm
what is the registry editor ? can you please provide step by step instructions on how to create this…
thank you..
August 6th, 2008 at 8:45 am
Cool tip Assa, it is awesome .. Thank you.
August 31st, 2008 at 10:02 am
awesome buddy , hassle free tip…
September 30th, 2008 at 1:07 pm
Didn’t appear to work for me, what am I doing wrong….
regedit, HKEy_CURRENT_USER/Software/Mercury Interactive/Quick Test Professional/MicTest/TestsDirectory
Change to C:\QTP\Scripts
Close and reopen QTP - still opens to User\Documents\HP\Quick Test Professional\Tests.
Tried again by deleting User\Documents\HP as there’s nothing in there - Just creates them again.
Drives me nuts!
October 17th, 2008 at 5:43 pm
We’re running Windows XP Pro 64-bit and the solutions above would not work for us. So, after using a registry monitor program while launching QTP I was able to determine the following that works on 64-bit Windows:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Mercury Interactive\QuickTest Professional\MicTest]
“TestsDirectory”=”C:\\data\\QTPTests”