ALLInterview.com :: Home Page KalAajKal.com
 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  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How do u insert an object during runtime in qtp?
 Question Submitted By :: Prabhu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do u insert an object during runtime in qtp?
Answer
# 1
Where do you want to insert object ??  

We can create object at runtime using createobject() 
function in VBScript.

For ex:
Set con = createobject("ADODB.Connection")

The above statement creates connection object at runtime.
 
Is This Answer Correct ?    0 Yes 0 No
Ravi
 
  Re: How do u insert an object during runtime in qtp?
Answer
# 2
By Using the Flat files Parameterization we can insert 
objects during runtime.

[Parameterization is the process of supplying multiple test 
data. That means sometimes we are executing our test 
scripts with multiple test data We can parameterize our 
Test Scripts in different ways.]

VB script to retrieve values from flat files during runtime:

Set A=createobject("Scripting.filesystemobject")
Set B=A.opentextfile("C:\Documents and 
Settings\baji.prasad\Desktop\baji.txt", "1",true)
While B.atendofline<>true
                X=B.readline


Dialog("Gracenote® MusicID (CD)").Activate

Dialog("Gracenote® MusicID (CD)").Activate
Dialog("Gracenote® MusicID (CD)").WinEdit("TOC").Set X 
Dialog("Gracenote® MusicID (CD)").WinButton("Lookup 
TOC").Click
Dialog("Gracenote® MusicID (CD)").WinButton("Rip CD Tracks 
and Add").Click
Wend
 
Is This Answer Correct ?    0 Yes 0 No
Baji Prasad Ch
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How can you find Local Host Name by Using QTP?  3
How to identify flash application when the qtp is not identifying the flash application objects.  2
How can we do this one ? at runtime qtpwindow and browser aren't disply on monitor (or) aren't visible on desktop?how?  1
What is the difference between gettoproperty and settoproperty?Explain with an example? Satyam3
HOW TO DO THE BATCH TESTING USING QTP? CTS5
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri  2
How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.  4
what is vss and cvs what is main difference b/w these two  2
diff between dim & redim ? in detailed? pls any one explain me?  1
How to do Batch run in qtp? provide the steps?  4
How can i select multiple items from a WebList bOX USING QTP Syntel2
if there r 10 windows open in QTP write a command to close all 10 windows at a time ? Wipro7
What type of framework you are using in your company and explain it? CTS3
How can i Save the snapshots in a specified folders using Scripting in QTP?  1
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions? Motorola1
What is runtime objects and test objects? What is the difference between them? IBM3
hi Sudhananda reddy, in my resume, i written as , I Am working as a Test Engineer for xyz company. IS IT RIGHT OR WRONG? WHAT IS THE ACTUAL meaning of "IN XYZ COMPANY", "FOR XYZ COMPANY", "WITH XYZ COMPANY".  2
How u perform exception handling in QTp,what is other name for ths?  1
what is the silent mode in WR?  1
IF we use batch testing.the result shown for last action only.in that how can i get result for every action.  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com