The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
thorwathModerator
Veteran


Reged: 07/22/99
Posts: 3840
Loc: Grand Rapids, MI
anyway to set QTP's default Open File root path?
      #372885 - 04/12/07 01:42 PM

I am using QTP 9.2.

The root directory where I place all my scripts starts in C:\qtp\Scripts\... (Later I am going to put this under ClearCase code control, thus each developer and tester will develop and run test scripts from their own sandbox).

For the last several weeks this is the only directory structure I ever open a test script or library from, when using the QTP editor. But each time I restart QTP it always presents me with the following root dir when I select either the File->Open->Tests... or File->Open->Function Library... menu picks:

c:\Program Files\Mercury Interactive\Quick Test Professional\Tests\...

Is there some type of *.ini file change (or as a 2nd choice a Registry entry) that I can edit to get the root path I want, rather than the default that QTP installed with?

I have prowled around a bit in the QTP dir structure and found TestsPath.reg in the above mentioned default directory. I am unsure if this file is intended for editing in my type of change, so am reluctant to fiddle with this file who's syntax is cryptic to me anyway:
Code:

REGEDIT4

[HKEY_LOCAL_MACHINE\ProductRegRoot\MicTest]
"TestsDirectory"="ActualPath\\Tests"



If you have crossed this bridge before please reply.

-Thanks, Terry Horwath

Edited by Terry Horwath (04/12/07 01:48 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
rong
Advanced Member


Reged: 10/19/05
Posts: 411
Loc: UK
Re: anyway to set QTP's default Open File root path? [Re: thorwath]
      #372920 - 04/12/07 04:32 PM

Terry,

Modify the path then put the following into a .reg file - e.g. SetQTPTestPath.reg and then double click or select Merge to install

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest]
"TestsDirectory"="S:\\Myserver\\QuickTest Pro\\TestSors"

There is a similar entry in HKLM, but generally doesn't need to be modified unless you want it to be default for all logged-in users.

--------------------
Ron
*******
If you had to identify, in one word, the reason
why the human race has not achieved, and never
will achieve, its full potential that word would be "meetings".


Post Extras: Print Post   Remind Me!   Notify Moderator  
thorwathModerator
Veteran


Reged: 07/22/99
Posts: 3840
Loc: Grand Rapids, MI
Re: anyway to set QTP's default Open File root pat [Re: rong]
      #373046 - 04/13/07 03:40 AM

Thanks Rong. Your suggested syntax differs from the one in my *.reg file. Am I correct in assuming that I only modify the path as follows, and leave the rest of the syntax as-is:

From:
[HKEY_LOCAL_MACHINE\ProductRegRoot\MicTest]
"TestsDirectory"="ActualPath\\Tests"

To:
[HKEY_LOCAL_MACHINE\ProductRegRoot\MicTest]
"TestsDirectory"="C:\\qtp\\Scripts"

Or are you suggesting I need to use you complete syntax and my desired path?

I ask, rather than experiment, because I am not comfortable messing with the Registry--especially using scripts that do things automagically.

-Thanks, Terry Horwath


Post Extras: Print Post   Remind Me!   Notify Moderator  
rong
Advanced Member


Reged: 10/19/05
Posts: 411
Loc: UK
Re: anyway to set QTP's default Open File root pat [Re: thorwath]
      #373254 - 04/13/07 10:51 PM

Your file suggests a different Hive and folder. I haven't come across a folder called ProductRegRoot with a QTP install so you have me at a disadvantage.

For a standard install you should be able to use it just by modifying the path but in your circumstance I would check the registry entry suggested in your file to confirm that there is an existing entry.

If you feel uncomfortable with a reg file then add it manually using regedit and just navigate to the required key -> right click and select modify.

--------------------
Ron
*******
If you had to identify, in one word, the reason
why the human race has not achieved, and never
will achieve, its full potential that word would be "meetings".


Post Extras: Print Post   Remind Me!   Notify Moderator  
ManishBansal
Active Member


Reged: 08/15/07
Posts: 732
Loc: Six Feet Under
Re: anyway to set QTP's default Open File root pat [Re: rong]
      #516142 - 09/10/08 10:26 PM

Hi Rong,
I am using QTP 9.5 and no registry access so i cant find out what is new hierarchy of HP QTP 9.5 in the registry. i want to change the default path to

D:\Manish\Automation\Automation Internal MRM New UI\Automation Scripts\InternalMRM1_0

If anyone is good in playing with registry can make a vbscript file asking for new path to be set set (inputbox) and modify init...
Please attached here be a owner of his new thread i am sure will get the maximum downloads

--------------------
Thanks,
Manish Bansal


Post Extras: Print Post   Remind Me!   Notify Moderator  
Shiva_Kumar
Member


Reged: 08/04/04
Posts: 302
Loc: Bloomington, IL
Re: anyway to set QTP's default Open File root pat [Re: ManishBansal]
      #516304 - 09/11/08 08:11 AM

Hi,

To change the Default Tests path in QTP 9.5

HKLM-->Software-->Mercury Interactive-->Quick Test Professional-->MICTest-->TestsDirectory

Change the value from default path to your desired path.

Thanks,
Ashok


Post Extras: Print Post   Remind Me!   Notify Moderator  
mwsrossoModerator
Veteran


Reged: 09/30/01
Posts: 4974
Loc: Doncaster, UK
Re: anyway to set QTP's default Open File root pat [Re: Shiva_Kumar]
      #516329 - 09/11/08 09:03 AM

Terry I would imagine that "ActualPath" means something to QTP similar to Environment("ProductDir")

My registry key value (QTP v9.2) is a straight-forward:

C:\Program Files\Mercury Interactive\QuickTest Professional\Tests

I bet you can probably use either method

Mark Smith.


Post Extras: Print Post   Remind Me!   Notify Moderator  
thorwathModerator
Veteran


Reged: 07/22/99
Posts: 3840
Loc: Grand Rapids, MI
Re: anyway to set QTP's default Open File root pat [Re: mwsrosso]
      #516343 - 09/11/08 10:05 AM

Wow, this is an old thread! But I see this lack of explicit setting is bugging others as well as me.

I actually solved this at the Windows/GUI level by putting a shortcut to my working QTP root folder in the default QTP dir, as I just hate to hack the Registry (I know, I know... yes, I am a wimp!).


Post Extras: Print Post   Remind Me!   Notify Moderator  
ManishBansal
Active Member


Reged: 08/15/07
Posts: 732
Loc: Six Feet Under
Re: anyway to set QTP's default Open File root pat [Re: thorwath]
      #516347 - 09/11/08 10:13 AM

Quote:

I actually solved this at the Windows/GUI level by putting a shortcut to my working QTP root folder in the default QTP dir



wow!
this is nice tweak ... no no idea! this is the best way if no admin rights and RegEdit access

--------------------
Thanks,
Manish Bansal


Post Extras: Print Post   Remind Me!   Notify Moderator  
suneelp
Junior Member


Reged: 09/08/04
Posts: 6
Loc: Australia
Re: anyway to set QTP's default Open File root pat [Re: thorwath]
      #548846 - 02/08/09 07:12 PM

could you please explain steps. thanks
Sunny


Post Extras: Print Post   Remind Me!   Notify Moderator  
thorwathModerator
Veteran


Reged: 07/22/99
Posts: 3840
Loc: Grand Rapids, MI
Re: anyway to set QTP's default Open File root pat [Re: suneelp]
      #548941 - 02/09/09 03:49 AM

Quote:

could you please explain steps. thanks
Sunny




See your Windows online documentation for creating a shortcut. Then create a shortcut to the directory folder you would like QTP to default to when opening tests. Then place that shortcut in the default folder that QTP actually opens up.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 48 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4686

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5