You are on page 1of 3

4/7/2014

How to load a object repository in QTP during runtime?

Interview QTP 8.2 QTP Testing

QTP Testing QTP Test To QTP


Advertise your Business Here

Browse | Placement Papers | Company | Code Snippets | Certifications | Visa Questions Post Question | Post Answer | My Panel | Search | Articles | Topics | ERRORS new Refer this Site Login | Sign Up

Search

Categories >> Software >> Testing >> Automation Testing >> QTP

Cognizant Hiring April'14


timesjobs.com/Cognizant-Jobs-Urgent
562+ New Jobs For Exp: 5-15 Years Apply Now & get Multiple Interviews

Buy HPPrinter Cartridge


hpshopping.in/HP-Original-Ink
at official HP online store and get COD & same day delivery!* Order now

Submit Resume Now


monsterindia.com
Immediate Requirement. Sign up to Apply & Find Jobs!

WinRunner Interview Questions (495) Load Runner Interview Questions (486) QTP Interview Questions (3472) Test Director Interview Questions (161) Rational TestSuite Interview Questions (106) Silk Test Interview Questions (59)

o wt ol o a dao b j e c tr e p o s i t o r yi nQ T Pd u r i n gr u n t i m e ? Question H Question Submitted By :: Prasanth I also faced this Question!! Rank

Answer Posted By

Re: How to load a object repository in QTP during runtime? Answer we can add object repository at runtime #1 Two ways are there u can add 1. when u write below syntax in Action1 Syntax: RepositoriesCollection.Add(Path) Ex: RepositoriesCollection.Add(E:\OR\ObjRes.tsr) if write in Action1 it will automatically add the Object Respository to the Action1 (i.e Edit Menu-->Action-->Action Properties-->Associate Repository tab) at runtime. no need to add the object repository before running.
1/3

Nath .t

http://www.allinterview.com/showanswers/71685.html

4/7/2014

How to load a object repository in QTP during runtime?

Automation Testing AllOther Interview Questions (382)

2. Add the object repository at runtime by using AOM (Automated Object Model) Ex: Dim qtAppn Dim qtObjRes Set qtAppn = CreateObject("QuickTest.Application") qtAppn.Launch qtAppn.Visible = True qtApp.Open "E:\Test\Test2", False, False Set qtObjRes = qtApp.Test.Actions ("Login").ObjectRepositories qtObjRes.Add "E:\OR\ObjRes.tsr", 1 The above example Add the Object Repository(ObjRes.tsr) to the "Login" action in Test2. Here also no need to add the object repository in Test2.
Is This Answer Correct ?

QTP Test To QTP Using QTP

31 Yes

5 No

Re: How to load a object repository in QTP during runtime? Answer StrPath = "D:\FrameWork\Repository\GoogleHomePage.tsr" #2 RepositoriesCollection.Add(StrPath)
Is This Answer Correct ?

Guru

5 Yes

2 No

Other QTP Interview Questions


Question What is smart identification? If 3 browsers are opened in our system, how to enter the facebook url into second browser by using descriptive programing can we run the scripts of qtp 8.2 in the qtp7.0? Could you please explain me about QTP framework.
http://www.allinterview.com/showanswers/71685.html

Asked @ AZTEC Mind-Tree

Answers 2 3 2

Oracle

2
2/3

4/7/2014

How to load a object repository in QTP during runtime?

how to create user defined functions in QTP? can any one expalin me with example.. Thanks in Advance for help Plz suggest me a good training institute in Mumbai/hyderabad for QTP. Plz advice thank u How do we retrieve the content from a text box in a web page can we enable smart identification for test object How to connect to oracle(sqlserver) database to QTP Hi, My problem is as follows. I recorded a script that created Object repository of each action i recorded. But later I added one more step (which was to enter data in a textfield) into the script through expert view. But as no repository for this newly added step exists in the test, my script fails. So please help me to sort this problem that how can I create object repository of a new step in an existing test. Thanks everyone i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please what is aregular expression? Cap-Gemini CTS IBM

4 27 2 3 3

UHG

For more QTP Interview Questions Click Here

Copyright Policy | Terms of Service | Articles | Site Map |

Site Map | Contact Us

Copyright 2013 ALLInterview.com. All Rights Reserved.

ALLInterview.co m

:: KalAajKal.co m

http://www.allinterview.com/showanswers/71685.html

3/3

You might also like