02-23-2011, 03:04 PM
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.
=============================================
=================================
Is this code fine or I need to follow some another method to add folder.
Regards
TurtleRock
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