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?
Answer Posted / 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 |
Post New Answer View All Answers
How to call a test from another test?
How many tabs are available to view your test in a test pane and what are they?
Is text area check point supports for web applications?
How to test results for qtp ?
What is the short cut keys for the following?
Explain QTP using different development techniques ?
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
Why qtp always start action1 and does not start action?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
How can you identify the browser and its information using the qtp script?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
How many types of object repository in qtp?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
Explain about the quicktest professional (qtp) automation object model?
What is the difference between run time object and test object in QTP?