Reading a value from the cell in a sheet from datatable is a 2 step process.
This is how we can read values from the datatable in QTP.
You may find below links very useful if you want to know more about data tables in QTP.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.
- In first step we set the row pointer
- In second step we specify the parameter/column name from the sheet to read
Example ->
'In Below example, we have set the row pointer to 2 in transaction sheet
datatable.GetSheet("Transactions").SetCurrentRow(2)
'in below code we have specified that we want to read a value from the Module_Name column from the 'transactions sheet
print datatable.Value ("Module_Name","Transactions")
This is how we can read values from the datatable in QTP.
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
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs