How verify a particular row item in data grid control?

Questions by kanta   answers by kanta

Showing Answers 1 - 12 of 12 Answers

savsri

  • Feb 28th, 2008
 

Hi,

Pls tell us if you mean data grid control as a Web grid(.net component).

If this is the case, the solution is as follows:
 retrive the value and compare it.
Browser().Page().Frame().WebGrid().Getcalldata (row,column)

to find row, coloumn, you can use Standard Check Point.
 
Pls specify if i am wrong..

Thanks,
Savsri

  Was this answer useful?  Yes

The test application is a windows based app where I need to enter some data which is displayed in a Data Grid. After entering I need to check whether entered item is displayed or not. When I tried to put check point in the row with particular item problem arise. It is not identifying any row/col. Instead it is identifying the grid as a whole. plz give me valuable solution.

 


  Was this answer useful?  Yes

1. The Grid is not a Standard Object as Per QTP

2. When QTP is identifying the whole Grid as One Object, please add it to OR and then try to fetch its data by the methods that are supported

2.1 In Case they are not getting fetch and the entire data of the Grid is reflected in the result, please create a function with Looping logic on the Distribution of the data in the grid b ysome specfic (special character among the row entries.)
2.2 Then Fetch the data and use (InStr) Function for ur Comparision.


Please revert in case of any confusion.


Regards,
Nawab

  Was this answer useful?  Yes

akothuru

  • Jun 6th, 2008
 

QTP directly cannot support DataGrid object. For that, user need to install corresponding Add-ins for support. If you are accessing Java application , install Java addins and if .Net, install .Net add-in etc...

After you install Add-in, QTP can recognize DataGrid control as WebTable object.

Browser("Bname").Page("PName").WebTable("WTName")

If you want to retrieve cell value from WebTable, use GetCellData method
Browser("Bname").Page("PName").WebTable("WTName").GetCellData(rowno, cellno)

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions