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
Login to flight app, in window flight reservation set the 
date field and select flyfrom as Frankfurt and verify 
whether flyto list box has the item FrankFurt, log the 
results.
 Question Submitted By :: Bharat Kumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results.
Answer
# 1
Hi,

  If u select "FrankFurt" in FlyFrom, u don't find it again 
in FlyTo drop down.

 If u want to verify that ...

First generate the script statemnt to select FrankFurt in 
FlyFrom fileld.

FlyFromcount= Dialog("Login").window("Flight 
Reservation").wincombobox("FlyFrom").getitemscount()

For example if count returns 8, after selecting Frankfurt 
from FlyFrom dropdown, now find the items count from FlyTo 
dropdown, it will be (count-1), it will be 7 now.

Dialog("Login").window("Flight Reservation").wincombobox
("FlyFrom").select "FrankFurt"

FlyTocount= Dialog("Login").window("Flight 
Reservation").wincombobox("FlyTo").getitemscount()

now if u want to verify if FrankFurt is still there or not

for i=o to FlyTocount-1
  
  value = Dialog("Login").window("Flight 
Reservation").wincombobox("FlyTo").getitem(i)

If value = "FrankFurt"

  msgbox "FrankFurt exists in FlyTo dropdown"
  
  else

  msgbox "FrankFurt doesn't exist in FlyTo dropdown"

End If
 
Is This Answer Correct ?    0 Yes 0 No
Raju
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what will be the stmt if record any edit box in the Web application ? eSymbiosis2
what is throw object ?  1
What is Expert view?  3
If QTP not recognizing using repository while executing, how can we go forward  2
What is descriptive Programming in qtp.  4
does qtp runs on internet explorer 7.0 BeBo-Technologies5
Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")  2
take one exmple and write on that discriptive programe in qtp?  1
what are the functions availabla in QTP? what are the data types in QTP? Spry-Technologies2
write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this? IBM2
What exactly is the difference among all the three recording modes. Accenture5
Have you used TD?  1
What are Add-ins availble in licensed version QTP8.2 TCS1
Can you tell me any books or websites to learn VB Script for QTP ??  1
waht is puirpose of accesbility Check point? waht is the use of Page and XML check points?  1
How to test login page by using QTP  5
Give me brief idea about QTP automation object model? TCS4
How can we call Winrunner functions from QTP?  1
what is the difference between link and hyper link? Ordain-Solutions1
how to do spell check in QTP? reply please  3
 
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