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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 flight reservation application. when i entered flyto 
combobox as london. and i have to check this london is 
present in flyfrom combobox.give me the code with good 
explanation.

 extention to this question.
     at each iteration i have to put(WRITE) the fly from 
and fly to city in database table
 Question Submitted By :: Shavali
I also faced this Question!!     Rank Answer Posted By  
 
  Re: in flight reservation application. when i entered flyto combobox as london. and i have to check this london is present in flyfrom combobox.give me the code with good explanation. extention to this question. at each iteration i have to put(WRITE) the fly from and fly to city in database table
Answer
# 1
invokeapplication "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"

dialog("Login").WinEdit("Agent Name:").Set "baba"
Dialog("Login").WinEdit("Password:").SetSecure
"489ff6345f83ebb85f1f91f6e86ee1c1f7a8307c"
dialog("Login").WinButton("OK").Click


msgbox now

window("Flight Reservation").WinEdit("Date of Flight:").Set
"09/09/09"

''''''''''''''''''''''''''''                  Fly From     
            '''''''''''''''''''''''''''

expval="London"

i=window("Flight Reservation").WinComboBox("Fly
From:").GetItemsCount
msgbox i

y=window("Flight Reservation").WinComboBox("Fly
From:").GetContent
msgbox y

For j=0 to i-1
    x=window("Flight Reservation").WinComboBox("Fly
From:").GetItem(j)
	datatable.SetCurrentRow(j+1)
	print x
    datatable("Fly_From",1)=window("Flight
Reservation").WinComboBox("Fly From:").GetItem(j)
    If (expval=x) Then
		window("Flight Reservation").WinComboBox("Fly
From:").Select(j)
    End If
Next


'''''''''''''''''''''''''''''''                  Fly To    
                  ''''''''''''''''''''''''''''''
expval1="London"

k=window("Flight Reservation").WinComboBox("Fly
To:").GetItemsCount
msgbox  k 

l=window("Flight Reservation").WinComboBox("Fly To:").GetContent
msgbox l

For m=0 to k-1
	datatable.SetCurrentRow(m+1)
    n=window("Flight Reservation").WinComboBox("Fly
To:").GetItem(m)
	print n
    datatable("Fly_To",1)=Window("Flight
Reservation").WinComboBox("Fly To:").GetItem(m)
    If (exp1=n) Then
		window("Flight Reservation").WinComboBox("Fly To:").Select(m)
		else
		reporter.ReportEvent micPass, "Validation is
correct","London is not matching in Fly To: field"
    End If
Next
 
Is This Answer Correct ?    1 Yes 0 No
Baba
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Wht is Smart Identification Mechanisam in QTP..Actually when do we this Technology means during Recording or running ....how is technology works. Anybody can expalin this .....Thanks in advacne Siemens4
What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance. Polaris9
Tell me Three major differences between QTP & Winrunner?  5
what is the difference between action and function BirlaSoft8
How Does Run time data (Parameterization) is handled in QTP? IBM2
what is object repository size? ITC-Infotech22
Which is the best testing institute for QTP training in Hyderabad.  3
why the smart identification is not there in WinRunner DigiTech1
how to identify an object which is not in the object repository identification can be done using descriptive programming.  2
how to retrieve data from the data table (from a particular cell)  4
does qtp need record and playback in realtime. plz tell exactly wat happens HP3
how to test power point using QTP 8.2 ? WHAT ARE DIFFERENT METHODS TO RETRIEVE VALUE FROM APPLICATION DURING RUNTIME ? HCL2
can anyone tell me how to search a word/line in a document and to paste it in another file? Thanks in advance.  4
Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.  3
What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?  1
Hi! Using Descriptive Programming How do we get Parent object for an object. Say, i want to get a parent object for a "Link" in a web page. thanks  3
What is Active Screen in QTP?  8
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.  1
How does Parameterization and Data-Driving relate to each other in QTP?  2
pls tell me different type of automation frame works in QTP and which one need to select in client server application Syntel6
 
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