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
In an Excel sheet take two fields as agentname and password 
and type some valid agentname and password.call that excel 
sheet in qtp so that qtp opens the flightreservation window 
taking into consideration how many records are entered in 
the excel sheet.For example if 3 records are entered today 
it will open 3 FR windows,if in near future the records are 
more than 3 then it will open that number of times.
 Question Submitted By :: Krishna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.
Answer
# 1
var=datatable.getsheet(3).getrowcount

for i=1 to var
datatable.setcurrentrow(i)
 
Is This Answer Correct ?    2 Yes 0 No
Hari
 
  Re: In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.
Answer
# 2
let take a excel sheet with two feilds agentname and 
password , in the first sheet of C:\testdata.xls , and 
enter any number of users as you want , this simple example 
will help you


DataTable.ImportSheet "C:\testdata.xls",1,1
rowcount=DataTable.GetSheet(1).GetRowCount

For i=1 to rowcount step 1
DataTable.GetSheet(1).SetCurrentRow(i)
SystemUtil.Run "C:\Program Files\HP\QuickTest 
Professional\samples\flight\app\flight4a.exe"
Dialog("Login").Activate
Dialog("Login").WinEdit("Agent Name:").Set DataTable.Value
("agentname",1)
Dialog("Login").WinEdit("Password:").SetSecure 
DataTable.Value("password",1)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Activate
Window("Flight Reservation").Close
Next
 
Is This Answer Correct ?    1 Yes 0 No
Nagesh
 
 
 
  Re: In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.
Answer
# 3
I am getting error for 
Dialog("Login").Activate

Error: Login Object not found in Object Repository

Could you please tell me how to over come this.
 
Is This Answer Correct ?    1 Yes 0 No
Ganesh
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Synchronizing test Wipro2
how to load all resource files(function libraries,object repositories etc) into tests without associating them?  1
What is runtime objects and test objects? What is the difference between them? IBM4
Explain about the Test Fusion Report of QTP ? Ordain-Solutions1
can we install qtp in windows vista  1
What is the Diff between Image check-point and Bit map Check point? Ordain-Solutions3
In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?  1
how to click the link in webpage by using QTP Script????????  2
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?  6
1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page. ADP2
When The Low Level Recording is Used in QTP  14
what is difference between application testing and product testing? IBM1
HOW MANY WAYS ARE THERE TO CPY TEST IN TEST LAB IGT2
Is there anyone can tell me where I can download free or trial QTP? I tried HP website, it was not there anymore. If someone know, pls send me URL. Tks...  1
Give me brief idea about QTP automation object model? TCS4
how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and next day same page is having 60 links. if i run same programe it should display total links in webpage ? CTS3
how u test a frame in a web page using QTP? Accenture1
how do you done Data-driven test using MS-Word Instead of DataTable IBM3
I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"  2
Tell me the QTP Advantages and Disadvatages ? Accenture3
 
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