Micro Focus QTP (UFT) Forums
Adding Folder to Tools->Option->Folder - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Adding Folder to Tools->Option->Folder (/Thread-Adding-Folder-to-Tools-Option-Folder)



Adding Folder to Tools->Option->Folder - TurtleRock - 02-23-2011

Hi,

I am using "LoadandRun" action to call the reusable actions at run time.For that I need to add the path of actions in "Tools-> Option->Folder", so that QTP will search for the called actions in the added folder path.

As the script needs to be run in different machines, so I want to add a code which will add the folder path automatically when the script is ran.

I am using following code for that but its not working.

=============================================
Code:
Dim qtp_app
Dim str_path

Set qtp_app= CreateObject("QuickTest.Application")
qtp_app.Folders.Add "[QualityCenter]Subject\Automation\General Actions"

=================================
Is this code fine or I need to follow some another method to add folder.


Regards
TurtleRock