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
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
 
Synchronization methods? Ordain-Solutions5
HOW TO HANDLE THE EARRORS WITHOUT USING RECOVERYSCNEORY? PLZ TELL ME IMMIDIATLY  2
What is an Regular expression doing in VBScript?Tell the pattern for the email verification. Accenture1
What is the logic for reading(exporting)the data from flat files to QTP?Can anyone explain me with an example? I appreciate it!!! Thanks!!! Prasanna  1
Please Clarify if smartidentfication is used at runtime when qtp does not recogonize the objects Ordain-Solutions3
Once we get the Test Result from QTP.,I Have to convert into Excel file format..Is it possible..Can any gudie me regarding this... For Example : Total Test Case is : XXXXX Test Case passed : XXX Test Case Failed : XXX -------- Total XXXXXX ---------  6
How to make arguments optional in a function? Liquid-Crystal4
What is DOM  2
If u r using descriptive programming to identify the object where do u write the script for those objects? do u write it in the expertview? plz do answer its urgent thanks advance.  2
what is L-trim function will do?  1
What is the diff between doing parametarisation using Data Driven wizard or manually. when do we go for manual para...and when do we use Data driver wizard..can anybody answer it ..Thanks in advance Siemens6
Diff between Test Stratergy and Test Plan? Diff b/w Test design ansd test case design?  1
Types of properties that Quick Test learns while recording? Crea1
hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take? ADP1
what is smart identification in qtp? pls any give details? thanks in advance IBM3
I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?  11
hi all, I want to know about the QTP scripts, i have read more books but all areis to be a theory so how can i improve my script skills. if anybody knows about qtp scripts plz guide me and i need a sample scripts.my mail id is karthis4u@gmail.com, 9986667831 If you all have any data send it to akadi111@gmail.com  3
i have to prepare qtp certification course. so, please send me qtp tutorial notes.  1
When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)  1
Use of environment variables?  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 © 2009  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com