for a test in QTP i had choose the object repository as
shared.after completion of some days i want to conduct the
same test again,now the question is HOW TO LOAD THE OBJECT
REPOSITORY. is it possible by descriptive programming.could
any one tell me how many ways we load it and what is the
process?
Answers were Sorted based on User's Feedback
Answer / capriguy
Dim qtApp 'As Application
Set qtApp = CreateObject("QuickTest.Application")
Set qtRepositories =
qtApp.Test.Actions("Action1").ObjectRepositories
qtRepositories.Add "C:\Documents and
Settings\n\Desktop\arun.tsr", 1
it will work 101% :)
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / priyanka
Hi,
you can give a try to the following code...
Set RepObj=CreateObject(Mercury.ObjectRepositoryUtil)
RepObj.Load "C:\Rep1.tsr"
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / biman roy
Hi Gaytri,
This code is perfact--
1. Recodr the Loging scenario of Flight Reservation
2. Save the OR in a place
3 Then Delete the OR
The write the code
Set objnew = CreateObject("QuickTest.Application")
objnew.Test.Settings.Resources.ObjectrepositoryPath
="D:\Documents and Settings\bimanr\My
Documents\Bim_QTP\Test-OR-withshared.tsr"
Set objnew= Nothing
SystemUtil.Run "D:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","D:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "biman"
Dialog("Login").WinEdit
("Password:").SetSecure "4694dfafd6fdee359968e66ecfe222e271e
5a424"
Dialog("Login").WinButton("OK").Click
| Is This Answer Correct ? | 0 Yes | 0 No |
Hello Biman,
I tried to execute the same steps as per mentioned by you
in QTP 9.2 , but on executing I got the error "Object Does
Not support thir property or method" at this line
objnew.Test.Settings.Resources.ObjectrepositoryPath
="D:\Documents and Settings\bimanr\My
Documents\Bim_QTP\Test-OR-withshared.tsr"
SO kindly let me know where exactly the problem is in my
code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramchandra
Hey Guys,
Good answers!
You can use below ways to associate OR at run time
1.Repositoriescollection.Add "OR Path"
2.Repositories.Add(OR Path)
OR
By creating object of QTP application.
Let me know if I am wrong..please post if you have any
other ways to load OR at run time.
Regards,
Ramchandra
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shankar
Hi,
use this code
Call LoadRepository("repository path")
| Is This Answer Correct ? | 0 Yes | 1 No |
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
How to pass parameters into an action.Please explain me with examples
what is diff b/w function and action?
please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761
What is qtpro? What is a quick test professional?
How do you learn the object in QTP?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
write a qtp code to count the number of child objects in login page and highlight it
Write a code check the checkbox in the web table which is in the 4th row and fifth column (Use child item concept)
What is meant by Environmental variables?2 types r there know…can u pls explain clearly?
What is chaild object method? When we will go for chaild object method? How to use chaild object method?
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
0 Answers RR Donnelley, RRDonnelley,