Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code to associate files of QTP
#1
Hi,

Please help me on this,

is there any code, that associate library, config and repository files to QTP script. So that it reduces manual effort by opening each and very script and associate files.

since if we have 500 scripts, it takes more time to do it manually.

Thanks,
Chaithanya
Reply
#2
(06-21-2012, 09:52 PM)chaithanya84 Wrote: Hi,

Please help me on this,

is there any code, that associate library, config and repository files to QTP script. So that it reduces manual effort by opening each and very script and associate files.

since if we have 500 scripts, it takes more time to do it manually.

Thanks,
Chaithanya


Hi,
Please find the below code to associate OR to ur script.Use it as reference to associate library and config file.

strRepPath = "c:\vIns\OR.tsr" (path of OR)
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)


Regards,
Sankalp
Reply
#3
(06-22-2012, 10:36 AM)sshukla12 Wrote:
(06-21-2012, 09:52 PM)chaithanya84 Wrote: Hi,

Please help me on this,

is there any code, that associate library, config and repository files to QTP script. So that it reduces manual effort by opening each and very script and associate files.

since if we have 500 scripts, it takes more time to do it manually.

Thanks,
Chaithanya


Hi,
Please find the below code to associate OR to ur script.Use it as reference to associate library and config file.

strRepPath = "c:\vIns\OR.tsr" (path of OR)
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)


Regards,
Sankalp

Thanks a lot Sankalp!!!
Reply
#4
(06-22-2012, 11:15 AM)chaithanya84 Wrote:
(06-22-2012, 10:36 AM)sshukla12 Wrote:
(06-21-2012, 09:52 PM)chaithanya84 Wrote: Hi,

Please help me on this,

is there any code, that associate library, config and repository files to QTP script. So that it reduces manual effort by opening each and very script and associate files.

since if we have 500 scripts, it takes more time to do it manually.

Thanks,
Chaithanya


Hi,
Please find the below code to associate OR to ur script.Use it as reference to associate library and config file.

strRepPath = "c:\vIns\OR.tsr" (path of OR)
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)


Regards,
Sankalp

Thanks a lot Sankalp!!!


U r always welcome. Wink

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run multiple data files (.xls) using one QTP test script in HP ALM 11? jsun01 4 6,690 03-04-2013, 02:08 AM
Last Post: jsun01

Forum Jump:


Users browsing this thread: 5 Guest(s)