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
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.
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.
Explain about QTP Data Table and it's usage
Profile Answers by preetha2810 Questions by preetha2810
Questions by preetha2810