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
how can we retrieve ten rows from the data table using

loop concept?
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can we retrieve ten rows from the data table using loop concept?
Answer
# 1
Assume "Column1" is my column name in the Global Data

table, then use this code:

for i=1 to 10

datatable.setcurrentrow(i)

returnvalue=datatable.value("Column1","Global")

msgbox(returnvalue)

next
 
Is This Answer Correct ?    1 Yes 1 No
Sreeprasad
 
  Re: how can we retrieve ten rows from the data table using loop concept?
Answer
# 2
Hi Sreeprasad..this will take 10 rows..but the loop will
execute no.of times that how many rows in datatable.

If u r using 9.0 or above version..

set app = createobject("quicktest.application")
set qtest = app.test

qtest.settings.run.startiteration = 10
qtest.settings.run.enditeration = 20

this script will execute only 10 rows starts from 10 th row
and ends with 20 th row.

If any queries..

nanda.dreddy@gmail.com
 
Is This Answer Correct ?    0 Yes 1 No
Nanda
 
 
 
  Re: how can we retrieve ten rows from the data table using loop concept?
Answer
# 3
hello nanda, sreeprasad answer is correct... if you worked
on datatable. you will change settings in test settings in
run tab as run on one iteration only.

then it will take from 1 row to 10 only once.

but he forgot this


Function rcnt(rowcount)

if (rowcount>10) then

   for i=1 to 10 step 1

     val=datatable.value("column1",dtGlobalSheet)
     print "Value of"& i &"row is : "&val
     datatable.setnextrow
   
   Next

else

msgbox "rowcount is less than 10, requiement is not _
satisfied"     

End If

End Function

rows=datatable.getsheet("Global").getrowcount
msgbox rows

row_cnt=rcnt(rows)
print row_cnt
 
Is This Answer Correct ?    0 Yes 1 No
Baba
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
WHAT ARE THE DISADVANTAGES OF SHARED REPOSITORY? BirlaSoft8
I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.  1
what is syncurnisation point? what is the use of this in real time environment? plz explain? AppLabs5
IF THE GUI OF APPLICATION IS CHANGED THEN IS THERE ANY NECISSITY TO CHANGE OR UPDATE OUR TEST SCRIPTS  2
Definationions for keyword view and tree view?  1
How we can merge the object repositories?say if we have 2 or 3 object repositories then how we can merge them?Is there any option in QTP to merge the object repositories?  2
How to call a function in QTP?  3
1)What is the Difference Between WaitTo & Sync? Wipro2
Can any body tell me how can I choose the share object repository and per action object repository mode. Please give me with steps.  3
How to get all the objects count and objects names in webpage using QTP ?  3
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
How do u write script in qtp? where do u write?  2
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically.. Thatavarti-Technologies3
Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Library functions folder? How to cal that functions to our script? How to save that functions to Function generator?  3
hi is there any chance to change encoding the password  3
Can you do more than just capture and playback?  2
How to handle Run-time errors?  2
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 " Livetek2
tell me types of environment variables? what r they? explain details? pls give anwer any one? IBM2
A question was asked in a company-suppose, I am testing a website on QTP, all the time a new title bar is appeared on next page. Trying to use regular expression under key word driven testing but expert view is also appearing unchanged and error is also generating, do you have any best resolution for that kindly explain in detail. please dont give example of yahoomail, that is unable to clear my doubt.  2
 
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