| |
GeekInterview.com > Tech FAQs > QTP
| Print | |
Question: Fetch Data From Specific Column
Answer: How to fetch data from the specific column in the data grid? How will standard check point help to capture data? |
| July 07, 2009 08:06:03 |
#1 |
| akothuru |
Member Since: April 2008 Total Comments: 49 |
RE: Fetch Data From Specific Column |
Standard check point will only verifies the Webtable object property values and is not possible to use check points to verify the cell value from WebTable.
Use WebTable object GetCellData method to retrieve the cell value and then use if condition to verify the value. It only the way, you can verify the cell value of the webtable.
E.g. varCellData = Browser().Page().WenTable().GetCellData(1,1) 'row, col If varCellData = "Desired Value" Then Repoerter.ReportEvent micPass, "Cell data verification is passed", "Pass"z Else Repoerter.ReportEvent micFail, "Cell data verification is failed. Expected value: 'Desired Value' and Actual value: " & varCellData, "Fail" End If |
| |
Back To Question | |