GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 614 of 684    Print  
How verify a particular row item in data grid control?

  
Total Answers and Comments: 4 Last Update: June 06, 2008     Asked by: kanta 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: akothuru
 

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)



Above answer was rated as good by the following members:
vamshi_g
February 28, 2008 00:52:21   #1  
savsri Member Since: December 2007   Contribution: 2    

RE: How verify a particular row item in data grid control?
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

 
Is this answer useful? Yes | No
February 28, 2008 03:04:42   #2  
kanta Member Since: January 2008   Contribution: 14    

RE: How verify a particular row item in data grid control?

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.



 
Is this answer useful? Yes | No
March 03, 2008 03:54:08   #3  
NawabShaikh Member Since: January 2007   Contribution: 238    

RE: How verify a particular row item in data grid control?
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

 
Is this answer useful? Yes | No
June 06, 2008 01:38:11   #4  
akothuru Member Since: April 2008   Contribution: 49    

RE: How verify a particular row item in data grid control?

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)


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape