how to add the shared repository file to the script file
while running the script manuall

Answer Posted / manjunathareddy

Set QtApp=CreateObject("QuickTest.Application")
If Not QtApp.Launched Then
QtApp.Launch
QtApp.Visible=True
End If

Set QtRepo=QtApp.Test.Actions(ActionName).ObjectRepositories
QtRepo.RemoveAll
QtRepo.Add "C:\Test.tsr",1


'Note:--Action Name is Depends on ur Script name or give
numbers like 1,2,3

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between sub procedures and function procedures?

736


How will you get a subset of a array in vbscript?

766


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

2017


Explain the tristate constants in vbscript?

774


What are subprocedures in vbscript?

873


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

13505


How will you format a number in percetage format in vbscript?

782


What is the difference between function and procedure?

849


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2815


What is the use of the date function in the vbscript language?

777


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1558


What is select case statement?

815


How to Enter Values on the Command promt using VB script

1751


What is the difference between do until loop and do while loop?

796


In html file what is an ideal position to include vbscript?

1083