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
Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
 Question Submitted By :: Sireesha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
Answer
# 1
a)	In QTP data table window is used to store the test 
data, and parameterization that data to the test during 
execution.
b)	While go for out put values and data driven test 
then use the data table window
c)	The data table window mainly has the two types of 
windows. They are
d)	Global data table window
e)	Action data table window
f)	The global data table window is used for public 
purpose, it default data table
g)	Action data table window is used for local purpose, 
it private purpose



My name is k.chandra sekhar,
My phone no is 09246540049,
Hyderabad.
My mail id is ndra_143@yahoo.co.in 
If any body want full explain send the mail
 
Is This Answer Correct ?    1 Yes 3 No
K.chandra Sekhar
 
  Re: Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
Answer
# 2
Hi,
Generally data table methods can use in run time.
wn ever we need data in run time then we can use data table 
methods.
All methods performed on this object apply to the run-time 
DataTable object only. Changes to the run-time DataTable 
object are reflected in the test results, but the design-
time Data Table is not affected.
different data table methods are:
AddSheet Method
DeleteSheet Method
Export Method
ExportSheet Method
GetCurrentRow Method
GetRowCount Method
GetSheet Method
GetSheetCount Method
Import Method
SetCurrentRow Method
SetNextRow Method
 
Is This Answer Correct ?    7 Yes 1 No
Nani
 
 
 
  Re: Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
Answer
# 3
data table methods works with excell sheet only
 
Is This Answer Correct ?    1 Yes 3 No
Mohammad
 
  Re: Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
Answer
# 4
Nani you are right. If u explain these methods with  
examples it wil very use ful 4 beginenrs.

Thanks & Regards,
Kalyan
 
Is This Answer Correct ?    2 Yes 0 No
Kalyan
 
  Re: Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
Answer
# 5
Just add-in of Nani Ans..Upto my knwz we can use functions 
lik this

''To import xlsheet from desktop to  datatable
datatable.Import("C:\Documents and 
Settings\Raju\Desktop\seshu1.xls")
'
''From datatable to where we went to export tht we can 
specify
datatable.Export("C:\Documents and 
Settings\Raju\Desktop\test1.xls")
''
''If we wnt to add the sheet in datatable 
a=DataTable.AddSheet ("Test").AddParameter("QTP", "Welcome 
QTP") 
msgbox a
'
''here 1 indicates "global sheet" & 2 indicates "action 1"
datatable.ExportSheet"C:\Documents and 
Settings\Raju\Desktop\test2.xls", 2

'add the sheet in datatable &want to delete particular sheet
b=DataTable.AddSheet ("Test5").AddParameter("QTP", "Welcome 
QTP") 
msgbox b
datatable.DeleteSheet  "Test5"

'add the sheet in data table & enter the xlsheet  data into 
the sheet
c=DataTable.AddSheet ("Test3").AddParameter("QTP", "Welcome 
Test") 
msgbox c
DataTable.ImportSheet"C:\Documents and 
Settings\Raju\Desktop\test.xls", 1, 3

'add the sheet in data table & get the that sheet
d=DataTable.AddSheet ("Test3").AddParameter("QTP", "Welcome 
Test") 
msgbox d
DataTable.GetSheet ("Test3").AddParameter "Name", "Sailaja" 

'add the sheets & count the no of sheets by including 
global & action1 sheets also.
e=DataTable.AddSheet ("Test4").AddParameter("QTP", "Welcome 
raju") 
msgbox e
f=DataTable.AddSheet ("Test3").AddParameter("QTP", "Welcome 
Test") 
msgbox f
g= DataTable.GetSheetCount 
msgbox g

'import the sheet into the datatable & identify the row
c=DataTable.AddSheet ("Test3").AddParameter("QTP", "Welcome 
Test") 
msgbox c
DataTable.ImportSheet"C:\Documents and 
Settings\Raju\Desktop\test.xls", 1, 3
row = DataTable.GetCurrentRow 
msgbox row
'
'add the sheet, get the no of rows in tht sheet
c=DataTable.AddSheet ("Test3").AddParameter("QTP", "Welcome 
Test") 
msgbox c
rowcount = DataTable.GetSheet("Test3").GetRowCount 
msgbox rowcount
c1=DataTable.AddSheet ("Test3").AddParameter
("QTP1", "welcome test 1") 
msgbox c1
rowcount1 = DataTable.GetSheet("Test3").GetrowCount 
msgbox rowcount1



'How to import xlsheet in datatable & count in data table, 
how to read line by line


Dim a,n,m,i
datatable.Import("C:\Documents and 
Settings\Sailaja\Desktop\sailu.xls")
n=datatable.GetRowCount
msgbox n
For i=1 to n
datatable.SetCurrentRow(i)
m=datatable.Value("sailu", 1)
msgbox m
datatable.SetNextRow
Next




'How to get open xlsheet, count sheets& how to read data 
line by line

Dim excel,workbook,DriverSheet,n,rowcount,fieldvalue,i,j
set excel=createobject("excel.application")
excel.visible=true

set workbook= excel.workbooks.open("C:\Documents and 
Settings\Sailaja\Desktop\sailu.xls")
Set DriverSheet = Workbook.Worksheets("Sheet1")
n = DriverSheet.usedrange.columns.count
rowcount = DriverSheet.usedrange.rows.count
msgbox n
msgbox rowcount
For i = 1 to n
columnname = Driversheet.cells(i,1)
	If columnname=columnname Then
		For j = 1 to rowcount
			fieldvalue = DriverSheet.cells(j,i)
			msgbox fieldvalue
next
end if
next

Dim v,n
datatable.Import("C:\Documents and 
Settings\Raju\Desktop\seshu1.xls")
n=datatable.GetRowCount
msgbox n
For i=1 to n
	datatable.SetCurrentRow(i)
   a=DataTable.Value(i) 
   msgbox a
   j=datatable.SetNextRow
   msgbox j
   next
 
Is This Answer Correct ?    0 Yes 0 No
Sailaja
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What are the Mandatory Properties of WebTable Object and Link Object in Web testing using QTP iLink2
I need diffrences between Object Identification, Smart Identification, Regular expresion,Low-Level Recording (enables you to record on any object in your application, whether or not QuickTest recognizes the specific object or the specific operation.) I am working on Web Application. In that object caption will change dynamically. For example, consider “Save” button. On clicking save button the caption changing as “ EDIT ”. From above concept which concept I have to use here? Ordain-Solutions2
Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot  3
what questions i have to pripare for project manager round interview ? plz give Ans.(Chandana) TCS3
How to "Turn Off" QTP results after running a Script?  2
What is Expert view?  3
How to Install QTP on Citrix Environment? Possible send me the installation steps.. That would be great help  1
what is batch testing?  1
how can we test load time of an page in webtesting? Ordain-Solutions2
What does VBS file contain?  1
In QTP, Give the difference of Global sheet and Local sheet in datatable?  1
hi how could i get installation guide for QTP 9.0 on XP help me for this !!!!!  1
how to recall a function in QTP? Ordain-Solutions3
any one can explain about QTP proocess,means where to start and how to start Scripting.  3
what are the difference between qtp8.2 to 9.0 surya Bally-Technologies1
What is Object Spy? Ordain-Solutions5
Hi I am from delhi, Now I can surely say that no institution of QTP here in Delhi After reading you people I want to get cry, from last six month I am trying to learn QTP, I have knowledge too but dont know VB Script. Now it appears that without learning QTP no one can learn complete QTP, I want to get a formal learning in QTP. Can you suggest me the best institution. and please let me know the charges and span of the course too. thanks in advance to you alkaa.dugaal@gmail.com  1
What is test harness?  2
How to supress warnings from the "Test results page"?  4
Among all the check points what is the most important checkpoint? Semantic-Space5
 
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