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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   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
 
Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.  1
can onyone tell me how to comapre the output of two different Data Bases in QTP?  1
What is meant by Repository? Four-soft5
How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field? Adobe1
in qtp how can we do test when the build is not ready Mindlance2
Can I do Game testing with QTP tool  1
what will be the stmt if record any edit box in the Web application ? eSymbiosis2
Waht is Test Report , What it consists?  2
What is the current version of QTP and now it is the product of Mercury or HP TCS9
In key word driven framework,we will rename the logical names of objects,why? Liquid-Hub3
What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please.......... AZTEC7
Hi PLZ explain User Defined Functions in QTP with eample? Ordain-Solutions2
where the log files stored when using QTP? plz send answer to me ........  1
Hi This is tanya actually im facing problem in Qtp actully some time QTP doesnot recoznise the recorded object due to which script is going to fail.so can you tell me how we can handle this situation and i have another concerened issue is that at the time of run New errors comes every time so how we can handle this sitauation how we can add Recovery scenarios to the script.some time application runs successfully and some time it produces new error thats why i am facing lot of problem please give me the sugeestion as soon as possible.  2
How we can add actions in the test using QTP?  4
Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance... Navis2
I have an application running in Linux server. I am reaching the application through emulators like telnet. My operating system at the client side is Windows XP. Using emulator I am connecting the Linux server and working on the application. Can I automate the testing of the software running in Linux server using QTP. In short, does QTP support the applications running in Linux servers.  1
If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script  2
Q- what is the advantage of merging tool in QTP 9.2? TCS1
While recording a login window QTP is identifying only parent window,then how can u identify the child objects. Symphony2
 
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