Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Folder to Tools->Option->Folder
#1
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing via create "RES"xx folder? nishitd 0 1,100 03-07-2018, 01:09 AM
Last Post: nishitd
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,494 05-30-2017, 12:17 AM
Last Post: Vichu M J
  code for validation to create a sub folder smiley 0 1,429 10-19-2016, 10:08 PM
Last Post: smiley
  Adding negative amount in webedit Rose 1 1,988 06-30-2016, 09:34 PM
Last Post: babu123
  Extract and save a file from zip folder using VB Script karthicksri07 1 6,182 06-29-2016, 02:19 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)