Explain about QTP Data Table and it's usage

Questions by preetha2810

Showing Answers 1 - 3 of 3 Answers

Hari

  • Nov 2nd, 2007
 

In QTP, Data tables are 2 types, they are local data table that appear QTP window and another one is runtime data table which appear in result window.

Data table is an one of the type of parametrization.  It is an utility provided by QTP.  The main usage of Data table is to make use of test data and I can say it is an interface between external data and QTP script.

It is an one of the utility object and it provides methods like addsheet, import, importsheet, setcurrentrow, getrowcount...etc

Hope this information is enough for u.

  Was this answer useful?  Yes

giridhar123

  • Jan 16th, 2008
 

Generally data table are using in QTP, for Data Driven Test.

Whenever you wan to apply multiple sets of data to test the application behavior for different values we can use this. By using Data table we can collect the information into data table like runtime values (we can capture the value into data table).We can use data table for some frameworks like Keyword driven framework.

 

For any clarification

Giridhar

09999649533

  Was this answer useful?  Yes

bnbabu

  • Feb 20th, 2009
 

QTP internally having a datatable
means Excel sheet : So it consists two different sheets
1.Local Sheet
2.Global sheet
So using this data table we can do parameterisation by passing values ,and create parameter names
ex; A,B,C,D=youcan change the names like A=Login ,B=Pswdand  C=url and pass as in localSheet.

below excel sheet you upload the data and  

use the expression in Script

datatable .importsheet  file path,"Local sheet",1

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.