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
QTP identifying the child tabs in a maintab like 
tab_1,tab_2,tab_3,tab_4 
while using a for loop for these tabs.its not proceeding 
from _1 to _2.
How can i use "for loop "
 Question Submitted By :: Rayudu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "
Answer
# 1
For example, If the Tabs are recogized in QTP as 
Webelements, and the Tab name starts with "Tab_" and the 
number changes then, the following loop may helpful for you.

for var_i = 1 to 4
Browsr("BrowserName").Page("Page").WebElement
("innertext:=tab_" & var_i).Click)
Wait 10
Next

I think so... This logic may help you....
 
Is This Answer Correct ?    0 Yes 0 No
Amarendra Kothuru
 
  Re: QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "
Answer
# 2
You can use regular expression in this case instead of using
"for loop"
Ex: 
use any of these
tab_[0-9][0-9] 
or
tab_ ..
or
tab_ .*  will take any value 

This should be set in the object properties.
 
Is This Answer Correct ?    0 Yes 0 No
Maniram
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to capture dynamic objects in qtp like mark up text  2
How to Map network drive in QTP  2
plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly? CTS2
what is vmodel?advantages and disadvantages of vmodel? AZTEC3
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 retrive the property of an object?  5
what are the different u notice in betweem QTP version 8.2 and 9.2 and what is new in QTP9.2  1
How you automate test scripts Novartis1
In QTP if u got a defect , how to report to developer using Test director or Quality center . Wipro4
I learned all the objects of my application in object repository thru English Language. now i want to use same object repository for other languages(French,Dutuch and Chinese) Wipro1
what is the Descriptive Progarmming? how it is help to testers in QTP? TCS4
How do we run the scripts in QTP ?? what are the three options.... HCL3
How u execute test cases in manual testing? Accenture2
what is the difference between link and hyperlink? Infosys4
pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example Ordain-Solutions4
which tpye of exceptions mostly do we face in QTP  1
Hi All, What is an XML Checkpoint in QTP? How can i use it while testing a web application? Kindly explain in detail. Thanks in advance  2
how can we group that these test cases only should be automated and in which order you execute that test cases? BSL2
I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me  1
In QTP while testing 3 tier application, It is Java Based Application developed using Java, servelets and JDBC etc... and It is a Web based Application.. which Add-In do we need to select while testing ...Java or Web Add-In  5
 
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