We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Identifying Grid using automated testing tools

Thread ID:

Created:

Updated:

Platform:

Replies:

16491 Jul 16,2004 08:29 AM Jan 14,2008 10:33 AM Windows Forms 19
loading
Tags: GridControl
Azfar Sajid
Asked On July 16, 2004 08:29 AM

Hello: I am helping the QA team at FRx Software to automate their testing efforts. My specialty is in Mercury Interactive tool set. We are using QuickTest Professional (QTP) with ".Net" addin to create test cases. My dilemma is with the Essential Grid control which is rendered in Virtual Mode. The QTP tool is not able to identify this control or any methods associated with it. While working with Mercury support they said that they support "standard" System.Window.Form controls and not 3rd party controls. Slowly Mercury is building their support for 3rd party controls, e.g. with ComponentOne or Infragistics. Do you have any suggestions or input as how to identify the Grid Control using automated testing toolset? Thanks,

Administrator [Syncfusion]
Replied On July 16, 2004 10:22 AM

One of our engineers is working on this issue for the Mercury tool, but it will be probably another 3 weeks or so before we can offer any help/advice (as the person handling this is on leave at the moment.)

Azfar Sajid
Replied On August 3, 2004 01:45 PM

Just wanted to follow-up and check if there are any updates on this issue. Thanks, >One of our engineers is working on this issue for the Mercury tool, but it will be probably another 3 weeks or so before we can offer any help/advice (as the person handling this is on leave at the moment.)

Administrator [Syncfusion]
Replied On August 3, 2004 02:16 PM

Not as yet. If you will submit a Direct Trac support incident, we can notify you when we have some information for you.

anuradha
Replied On December 29, 2004 01:28 AM

Hello: We are using QuickTest Professional (QTP) with ".Net" addin to create test cases. My question is any updates in QTP recognising third party controls like infragestics. Plz let me know the updates in this regard. Thanks, Anu >Hello: > >I am helping the QA team at FRx Software to automate their testing efforts. My specialty is in Mercury Interactive tool set. We are using QuickTest Professional (QTP) with ".Net" addin to create test cases. My dilemma is with the Essential Grid control which is rendered in Virtual Mode. The QTP tool is not able to identify this control or any methods associated with it. While working with Mercury support they said that they support "standard" System.Window.Form controls and not 3rd party controls. Slowly Mercury is building their support for 3rd party controls, e.g. with ComponentOne or Infragistics. Do you have any suggestions or input as how to identify the Grid Control using automated testing toolset? > >Thanks,

Azfar Sajid
Replied On January 12, 2005 09:49 AM

I have been successful in using SyncFusion Grid''s native methods to navigate around the grid. Mercury''s QuickTest Professional tool gives you the ability to use ".Object" property for an object to expose native properties and methods. The development environment of QTP is VB-Script. For example using the following statement: Set myGrid = SwfWindow("Forecaster Ion").SwfWindow("ACCOUNT").SwfObject("Account").Object Where SwfWindow("Forecaster Ion") is the main window; SwfWindow("ACCOUNT") is the tab control; and SwfObject("Account") is the Syncfusion grid. I can use: rows = myGrid.RowCount to get the number of rows. Similary to get a collection of selected rows (GridRangeInfo) in a Grid and display them I can do the follwoing: set GridRangeInfoList = myGrid.Selections.GetSelectedRows(true, false) cnt = GridRangeInfoList.Count for i = 0 to cnt -1 msgbox "''" & GridRangeInfoList.item(i) & "''" msgbox GridRangeInfoList.item(i).top msgbox GridRangeInfoList.item(i).bottom next My issue is that I cannot seem to create an instance of GridRangeInfo so that I can programmatically select rows in a Grid. Going through your Forum I discovered the following two statements: this.gridAvailHoldings.Selections.Add(sGrid.GridRangeInfo.Rows(iTop, iBottom)) and grid.Selections.Add(GridRangeInfo.Row(rowIndex)); which would allow a user to select a row or a range of rows but I am unable to create an instance of the "GridRangeInfo" object. Looking at the above examples if you can help me in creating an instance of ''GridRangeInfo" I will much appreciate it. I am also attaching a snapshot of the grid for your perusal. SyncFusion Grid_2267.zip

Administrator [Syncfusion]
Replied On January 12, 2005 11:37 AM

Hi Azfar, Use GridRangeInfo.Cell(row, col) to create an instance of a range object for one cell. Other methods are: GridRangeInfo.Cells, GridRangeInfo.Row, GridRangeInfo.Rows, GridRangeInfo.Table, GridRangeInfo.Col, GridRangeInfo.Cols and GridRangeInfo.Empty. All these static methods create an instance of GridRangeInfo. Stefan >I have been successful in using SyncFusion Grid''s native methods to navigate around the grid. Mercury''s QuickTest Professional tool gives you the ability to use ".Object" property for an object to expose native properties and methods. The development environment of QTP is VB-Script. For example using the following statement: > >Set myGrid = SwfWindow("Forecaster Ion").SwfWindow("ACCOUNT").SwfObject("Account").Object > >Where SwfWindow("Forecaster Ion") is the main window; SwfWindow("ACCOUNT") is the tab control; and SwfObject("Account") is the Syncfusion grid. > >I can use: >rows = myGrid.RowCount >to get the number of rows. > >Similary to get a collection of selected rows (GridRangeInfo) in a Grid and display them I can do the follwoing: > >set GridRangeInfoList = myGrid.Selections.GetSelectedRows(true, false) > >cnt = GridRangeInfoList.Count > >for i = 0 to cnt -1 >msgbox "''" & GridRangeInfoList.item(i) & "''" >msgbox GridRangeInfoList.item(i).top >msgbox GridRangeInfoList.item(i).bottom >next > >My issue is that I cannot seem to create an instance of GridRangeInfo so that I can programmatically select rows in a Grid. Going through your Forum I discovered the following two statements: >this.gridAvailHoldings.Selections.Add(sGrid.GridRangeInfo.Rows(iTop, iBottom)) >and >grid.Selections.Add(GridRangeInfo.Row(rowIndex)); >which would allow a user to select a row or a range of rows but I am unable to create an instance of the "GridRangeInfo" object. Looking at the above examples if you can help me in creating an instance of ''GridRangeInfo" I will much appreciate it. > >I am also attaching a snapshot of the grid for your perusal. > > >SyncFusion Grid_2267.zip > >

Azfar Sajid
Replied On January 12, 2005 01:16 PM

Thank you much for your reply. Looking at the following examples to create an instance of the Grid object as well as a collection of GridRangeInfo object do you think you can help me in constructing a statement which would create an instance of a range object as you have mentioned. I am not sure of the class heirarchy as how to create GridRangeInfo.Cell object. If I simply do the follwoing: set myRange = myGrid.Selections.Ranges, I think I am creating a Range object but I still cannot seem to add rows in the collection. Set myGrid = SwfWindow("Forecaster Ion").SwfWindow("ACCOUNT").SwfObject("Account").Object Set GridRangeInfoList = myGrid.Selections.GetSelectedRows(true,false) >Hi Azfar, > >Use GridRangeInfo.Cell(row, col) to create an instance of a range object for one cell. > >Other methods are: GridRangeInfo.Cells, GridRangeInfo.Row, GridRangeInfo.Rows, GridRangeInfo.Table, GridRangeInfo.Col, GridRangeInfo.Cols and GridRangeInfo.Empty. > >All these static methods create an instance of GridRangeInfo. > >Stefan > >>I have been successful in using SyncFusion Grid''s native methods to navigate around the grid. Mercury''s QuickTest Professional tool gives you the ability to use ".Object" property for an object to expose native properties and methods. The development environment of QTP is VB-Script. For example using the following statement: >> >>Set myGrid = SwfWindow("Forecaster Ion").SwfWindow("ACCOUNT").SwfObject("Account").Object >> >>Where SwfWindow("Forecaster Ion") is the main window; SwfWindow("ACCOUNT") is the tab control; and SwfObject("Account") is the Syncfusion grid. >> >>I can use: >>rows = myGrid.RowCount >>to get the number of rows. >> >>Similary to get a collection of selected rows (GridRangeInfo) in a Grid and display them I can do the follwoing: >> >>set GridRangeInfoList = myGrid.Selections.GetSelectedRows(true, false) >> >>cnt = GridRangeInfoList.Count >> >>for i = 0 to cnt -1 >>msgbox "''" & GridRangeInfoList.item(i) & "''" >>msgbox GridRangeInfoList.item(i).top >>msgbox GridRangeInfoList.item(i).bottom >>next >> >>My issue is that I cannot seem to create an instance of GridRangeInfo so that I can programmatically select rows in a Grid. Going through your Forum I discovered the following two statements: >>this.gridAvailHoldings.Selections.Add(sGrid.GridRangeInfo.Rows(iTop, iBottom)) >>and >>grid.Selections.Add(GridRangeInfo.Row(rowIndex)); >>which would allow a user to select a row or a range of rows but I am unable to create an instance of the "GridRangeInfo" object. Looking at the above examples if you can help me in creating an instance of ''GridRangeInfo" I will much appreciate it. >> >>I am also attaching a snapshot of the grid for your perusal. >> >> >>SyncFusion Grid_2267.zip >> >>

Administrator [Syncfusion]
Replied On January 12, 2005 05:34 PM

Just calling GridRangeInfo.Cell(2,2) creates a GridRangeInfo object for the cell 2,2. Calling GridRangeInfo.Row(2) creates a row range holding row 2. So, in C#, the first example would look like: GridRangeInfo range = GridRangeInfo.Cell(2,2);

Arnab Mondal
Replied On May 18, 2005 02:40 PM

Hi, I''m having a similar problem as mentioned in the thread. I''m also automating through QTP, and unable to set a row. I tried the method mentioned by you. but it''s still not working. Plz check the attached screenshot. So, could you plz tell me how i can select a row? Arnab >Just calling GridRangeInfo.Cell(2,2) creates a GridRangeInfo object for the cell 2,2. Calling GridRangeInfo.Row(2) creates a row range holding row 2. So, in C#, the first example would look like: > >GridRangeInfo range = GridRangeInfo.Cell(2,2); QTP_Error_4046.zip

Administrator [Syncfusion]
Replied On May 18, 2005 04:03 PM

You can select a row (2) using: grid.Selections.Ranges.Add(GridRangeInfo.Row(2));

Rotem Dotan
Replied On August 21, 2005 05:41 AM

Hi, I saw your previous conversation, and I also have the same problem. I was wondering if you have any updates about communicating between SyncFusion controls and the QTP... We are trying to use the Mercury''s .Net extensibility, but we experiencing a lot of problems... Is there a chance that you have a better solution? Thanks in advance, Rotem.

Administrator [Syncfusion]
Replied On August 21, 2005 07:18 AM

Here is a link to a doc with the latest information we have on automated testing. http://www.syncfusion.com/Support/user/uploads/AutomatedTesting_1ba05928.zip

Ramamoorthy Vegi
Replied On January 10, 2006 08:22 PM

Hi, We are using lot of Syncfusion grids in our application. We are using QTP to test the application. From the above posts I was able to get the Row count. Is there a way to get text from a particulkar cell ? Thanks, Naidu

stanleyj [Syncfusion]
Replied On January 11, 2006 12:15 AM

Hi Naidu, We have almost completed for our grids to be recognized in QTP. Please open an incident through DirectTrac and we will provide you the information. Thank you for using Syncfusion products. Best regards, Stanley

Herb Henderson
Replied On January 17, 2006 05:04 PM

What is the status of your solution to the QTP .net add-in extensibility API ? I am just another QA user of QTP testing a Syncfusion grid in a windows environment. Will you test your dll before you send it out

Herb Henderson
Replied On January 17, 2006 05:15 PM

Stanley, any progress on the dll solution ?

stanleyj [Syncfusion]
Replied On January 17, 2006 11:23 PM

Hi Herb, Your DT incident is updated. Thank you for using Syncfusion products. Regards, Stanley

Sandeep Bantode
Replied On May 2, 2007 05:03 AM

Hi,

I am another user who is facing same problem with infragistics web grid. So I have used QTP 9.2 with .Net add-ins. But still problem is persists.

B.Sandeep

>Hi Herb,
>
>Your DT incident is updated. Thank you for using Syncfusion products.
>
>Regards,
>Stanley

Ajinkya Deshpande
Replied On January 14, 2008 10:33 AM

Mr Clay,

Simply calling
GridRangeInfo range = GridRangeInfo.Cell(32,25). Isn't working.

Can you please give a sample working code?

>Hi,
>
>I'm having a similar problem as mentioned in the thread. I'm also automating through QTP, and unable to set a row. I tried the method mentioned by you. but it's still not working.
>
>Plz check the attached screenshot. So, could you plz tell me how i can select a row?
>Arnab
>
>>Just calling GridRangeInfo.Cell(2,2) creates a GridRangeInfo object for the cell 2,2. Calling GridRangeInfo.Row(2) creates a row range holding row 2. So, in C#, the first example would look like:
>>
>>GridRangeInfo range = GridRangeInfo.Cell(2,2);
>
>QTP_Error_4046.zip
>
>


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;