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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - 
Hotels").Link("Luxor") ......here Luxor is a hotel and this 
is recognised as a link. I have many hotels like Luxor, 
Palms etc which are all displayed as link...How do I 
parametrize this by using webtable functions??? ASAP
 Question Submitted By :: Sowmya K
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP
Answer
# 1
If you want to recognize, no of links like Luxor, then the 
following code explain you how to perameterize it.

This is the query you are using to recognize Luxor.
Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - 
Hotels").Link("Luxor")

Using Descriptive programming and data Driven approach you 
can Perameterize it

Create a column in Globalsheet as CityName and enter the 
Citie names in it.


Code:
ExcelSheetRoiwCount = DataTable.GetSheet
("Global").GetRowCount
For var_i = 1 to ExcelSheetRoiwCount
 DataTable.SetCurrentRow(var_i)
 CityName = DataTable("CityName","Globalsheet")
 Result = Browser("Las Vegas Hotels - Las").Page("Vegas 
Hotels - Hotels").Link("name:=&CityName).Exist(1)
 If Result = True Then
  Reporter.ReportEvent micPass, "City name " & CityName 
& "found", "Passed"
 Else
  Reporter.ReportEvent micFail, "City name " & CityName 
& "not found", "Failed"
 End If
Next 


It above code verifies the city names you have specified in 
Excel Globalsheet exist in the application as Links or not.
 
Is This Answer Correct ?    3 Yes 0 No
Amarendra Kothuru
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software  2
i am entering wrong data or wrong password in a text box and click on submit button .i am getting a popup window with a message Please enter the correct password or data .How can i handle this situation by using QTP. SAP-Labs8
Can we add the objects of an application dynamically? KEN-Group2
How to get the column count and column name from the resultset in the database connection program?  5
What r the advantages of automation?  3
is qtp 9.2 create the scripts with the application run on mozilla firefox browser?  2
How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.  5
what is recovery manager and recovey scenerio? BirlaSoft2
How we can call the scripit from another scripit in QTP?,Not a call Action  8
What is the difference between gettoproperty and settoproperty?Explain with an example? Satyam4
how would you go for testing a web application like any jobsite?(using manual n qtp)..pls frnds its very urgent ..i need realtime answers...thanks in advance Wipro2
I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic  2
how to load all resource files(function libraries,object repositories etc) into tests without associating them?  1
can u write Script to do Data Driven Testing throuh Externel & internel XL Sheet Relq1
How to Import the data from MS-Access in QTP?  1
what are the difference ways of parameterising?  1
hi This is Harish.1. What is object repositery .2. what is frame works in QTP,what is keyword driven frame work,explain it and how to associate the folders.3.the build is developed in java, can we write scripting in vb .4.what is discriptive progaram,how to write it.5.what is process of QTp testing.6. how to associate the shared repository. 7.what is implicit and explicit 8.what is runtime data please replay me regards Harish Syntel3
Can anyone explain about Keyword driven framework in detail and how to use it in case of any project  4
Are u place all QTP Framework folders in VSS? TCS4
What are the most frequent errors you faced while executing your scripts? Semantic-Space3
 
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