Datatable is nothing but run-time Data Table in QTP. Datatable is used to store test data in QTP.
In QTP Every test has one datatable in it. In Datatable there is one global sheet and one local sheet for each action in Test.
Please note that changes made in run time datatable will last until you execution is going on. To save the run time data table you must use export method.
In QTP Every test has one datatable in it. In Datatable there is one global sheet and one local sheet for each action in Test.
Please note that changes made in run time datatable will last until you execution is going on. To save the run time data table you must use export method.
Methods of Run time datatable in QTP :-
- AddSheet Method - Used to add new sheet to datatable
- DeleteSheet Method - Used to Delete existing sheet from datatable in QTP
- Export Method - Used to export all sheets from datatable to new excel workbook in QTP
- ExportSheet Method - Used to export existing sheet from datatable to new excel sheet in QTP
- GetCurrentRow Method - Gets the row number of current active row from datatable
- GetRowCount Method - gets the total number of rows from current active sheet from datatable
- GetSheet Method - Gets the reference to existing sheet in datatable.
- GetSheetCount Method - Gets the count of total number of sheets from datatable in QTP
- Import Method - loads the all sheets from external workbook to runtime datatable in QTP
- ImportSheet Method - loads the particular sheet from external workbook to runtime datatable in QTP
- SetCurrentRow Method - Sets the particular row active in current active sheet.
- SetNextRow Method - Used to move to next row in current active sheet in datatble in QTP
- SetPrevRow Method - Used to move to previous row in current active sheet in datatble in QTP
Properties of Run time datatable in QTP :-
- GlobalSheet Property - Gets the reference of global sheet in datatable in QTP
- LocalSheet Property - Gets the reference of particular local sheet from datatable in QTP
- RawValue Property - The raw value is the actual string written in a cell before the cell has been computed, such as the actual text from a formula.
- Value Property - Gets the value from cell - given sheet and active row and column name or index
You may find below links very useful if you want to know more about data tables in QTP.
- How to export datatable sheets to excel
- How to import excel-sheet to datatable
- How to read value from cell in datatable in QTP
- Explain setcurrentrow method in qtp
- Datatable object in qtp
- How to export datatable to excel in qtp
- How to get current sheet from datatable
- How to check if parameter exists in sheet in datatable in qtp
- Explain dtsheet object in qtp
- What are the utility objects in qtp
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs