Geeks Talk

Prepare for your Next Interview




Identify Rows columns in datagrid control

This is a discussion on Identify Rows columns in datagrid control within the QTP forums, part of the Software Testing category; Why QTP 9.1 does not identify rows/cols in datagrid control? In my application i need to enter some data in a webEdit, after submiting the data displayed in ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-22-2008
Junior Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
kanta is on a distinguished road
Identify Rows columns in datagrid control

Why QTP 9.1 does not identify rows/cols in datagrid control?

In my application i need to enter some data in a webEdit, after submiting the data displayed in adatagrid . Now I need to verify whether the entered data is displayed in the datagrid or not. Here i am facing the problem the in the datagrid it dose not identify rows/cols in fact it detects the grid as a whole. so how can i verify one particular item in the grid? can anybody please help me ?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-25-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 180
Thanks: 3
Thanked 13 Times in 13 Posts
NawabShaikh is on a distinguished road
Re: Identify Rows columns in datagrid control

In Case the DataGrid is been captured as one of the Tables then you need to fetch the data using Methods associated with the Table....u might not get the Data as an Individual Object...

Regards
Nawab
Reply With Quote
  #3 (permalink)  
Old 02-25-2008
Junior Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
kanta is on a distinguished road
Re: Identify Rows columns in datagrid control

Thanks for your response. The Data Grid is identifying as single TDBgrid object i can not access individual rows and cols to match the item. I would be grateful to you if u can tell me which property shall i used to check previously entered item.

Regards
Kanta


Quote:
Originally Posted by NawabShaikh View Post
In Case the DataGrid is been captured as one of the Tables then you need to fetch the data using Methods associated with the Table....u might not get the Data as an Individual Object...

Regards
Nawab

Last edited by kanta : 02-25-2008 at 03:36 AM.
Reply With Quote
  #4 (permalink)  
Old 02-25-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 180
Thanks: 3
Thanked 13 Times in 13 Posts
NawabShaikh is on a distinguished road
Re: Identify Rows columns in datagrid control

When you go for the DOM Model in QTP you might get some methods like

Bowser().Page().Frame().WbFgrid.Cell()...or soemthing else..here you can locate the Cell of the WebTable...I hope that will help!

Regards,
Nawab
Reply With Quote
The Following User Says Thank You to NawabShaikh For This Useful Post:
  #5 (permalink)  
Old 02-25-2008
Junior Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
kanta is on a distinguished road
Re: Identify Rows columns in datagrid control

The main problem is it does identify as wbfgrid just it is showing as TDBGrid object and no cell ar rows/col.
Reply With Quote
  #6 (permalink)  
Old 02-25-2008
Junior Member
 
Join Date: Feb 2008
Location: bangalore
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
ksuresh.testing is on a distinguished road
Re: Identify Rows columns in datagrid control

Quote:
Originally Posted by kanta View Post
The main problem is it does identify as wbfgrid just it is showing as TDBGrid object and no cell ar rows/col.
Have you check with Object Repository for that object? Can you attach the Object repository screen shot to this question?

Thanks,

Suresh K
Reply With Quote
The Following User Says Thank You to ksuresh.testing For This Useful Post:
  #7 (permalink)  
Old 02-26-2008
Junior Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
kanta is on a distinguished road
Re: Identify Rows columns in datagrid control

I was trying to write descriptive program.
Reply With Quote
  #8 (permalink)  
Old 07-30-2008
Junior Member
 
Join Date: Jul 2008
Location: Dallas
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
veda.forum is on a distinguished road
Re: Identify Rows columns in datagrid control

Quote:
Originally Posted by kanta View Post
Why QTP 9.1 does not identify rows/cols in datagrid control?

In my application i need to enter some data in a webEdit, after submiting the data displayed in adatagrid . Now I need to verify whether the entered data is displayed in the datagrid or not. Here i am facing the problem the in the datagrid it dose not identify rows/cols in fact it detects the grid as a whole. so how can i verify one particular item in the grid? can anybody please help me ?
Kanta, I am using DevExpress.XtraGrid and I am also facing the same problem as you mentioned 'QTP grid as a whole and I cannot access rows and columns'. Please help me if you have already found the solution.
I appreciate anyone who can help me for this. Thank you.
Reply With Quote
  #9 (permalink)  
Old 07-31-2008
Junior Member
 
Join Date: Jul 2008
Location: mumbai
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
premk_reddy is on a distinguished road
Re: Identify Rows columns in datagrid control

when u enter some data in to ur web edit it will displays some values on web table...if u verifies rows and coloumns...u can go this way...

dim row= browser("b name").page("p.name").web table.getrowcount
dim col =browser("b name").page("p.name").web table.get col count

for i=1 to rows
for j=1 to col
msgbox browser("b name").page("p.name").web table.getcell data(i,j)

next
next
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to add values to other columns Mohamed_Rafi Oracle 10 03-27-2008 12:35 AM
Set columns as not null jency SQL 2 12-06-2007 01:12 AM
Pivot columns Sant_parkash Oracle 3 10-24-2007 10:35 AM
How to convert rows into columns in Teradata rashnyo Data Warehousing 0 07-12-2007 01:52 AM
How do I transpose Rows into Columns? Anasuya1031 SQL 2 07-09-2007 05:37 AM


All times are GMT -4. The time now is 06:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved