I am trying to troubleshoot a problem we are having when we record actions against the WinUltraGrid in our .NET program.
We have a grid full of data, and we want to filter down to one row using the grid filters.
When we record filtering of the grid we get code like this is generated in HP QTP.
SwfWindow("Returns - TaxSolver").SwfWindow("Return List").SwfTable("grdReturnList").SetFilter "0;Data Entry Type", "Manual" SwfWindow("Returns - TaxSolver").SwfWindow("Return List").SwfTable("grdReturnList").SetFilter "0;State", "ME" SwfWindow("Returns - TaxSolver").SwfWindow("Return List").SwfTable("grdReturnList").SetFilter "0;Return Name", "ME ST-7 IMPORTED Amended"
When we playback the recording, HP QTP successfully clicks the correct column filter icon, which drops down the menu, and a filter is selected/highlighted, and then the playback pauses, like it is waiting for something.
I have to press the windows key to draw the focus away from the program, which makes the filter drop down go away. It does not appear to actually clicked the filter, because no filter gets applied.
However, no error is actually generated, it thinks it selected the filters, and continues to the next step in the test.
If the next step is to filter on a second column, the same thing happens again, it tries to select a filter, but just pauses after selecting one, and the drop down stays up, until I press the windows key.
Any help would be greatly appreciated.
I am using HP QTP 10 with a trial version of the Infragistics Test Advantage Net Addin for QTP 2009.1 and NetAdvantage 2009.1
Verison Information - Sample DLLs from each program. (Infragistics2.QTPServer.WinGrid.v9.1.dll - Infragistics.QTPServer.WinGrid.v9.1 9.1.20091.1000) (Infragistics2.Win.UltraWinGrid.v9.1.dll - Infragistics2.Win.UltraWinGrid.v9.1 - 9.1.20091.1000)
Hello,
This behavior was fixed in May 8th 2010, in service releases for TestAdvantage 2009 Volume 1 through 2010 Volume 1, and in the release build of 2010 Volume 2 forward. This behavior was likely caused by the implementation of support for the NetAdvantage Excel style filtering released in 2009 Volume 1, and should not be an issue prior to that release.
I am also facing the same Issue. The Version I am using is 6.3.20063.28. I think I need to update the vesrion. Please confirm on the same and let me know the latest version which I can use?
Thanks in Advance
Regards
Kirtee
Hi Kirtee,
If you are experiencing the exact issue as described then you would need to upgrade your application to a minimum of NetAdvantage 2009 Volume 1 as well as use TestAdvantage 2009 Volume 1 with the latest service release to correct this issue. If you believe the issue may differ even slightly I would recommend starting a new thread based on your specific issue so that we can address it directly.
We're experiencing the same issue using QTP 11 and Infragistics TestAdvantage for Windows Forms (HP) 2010.3 (10.3CLR2.0 according to TestAdvantage Version Utility).
Using "SetFilter Method" on an UltraWinGrid SwfTable, the AutoFilter value is highlighted but is not selected and applied to the grid. Below are the QTP steps that select the column label, right-click, select "Auto Filter" from the context menu, and "(Custom)" or filter value is highlighted but not actually selected.
SwfWindow("Traffic / Log Management").SwfWindow("Log Editor").SwfTable("_grid").Click x, y, micRightBtn
SwfWindow("Traffic / Log Management").SwfWindow("Log Editor").SwfTable("_grid").WinMenu("ContextMenu").Select "Auto Filter"
SwfWindow("Traffic / Log Management").SwfWindow("Log Editor").SwfTable("_grid").SetFilter "0;CAT_ID", "(Custom)"
I'd appreciate your opinion as to whether this issue has returned in 2010.3 or if you have another solution.
Regards,
Jim
Jim,
I don't really understand what you are doing with this ContextMenu selection and I don't know how you are applying it to the grid. I have attached a sample application to this forum thread and I find that when I run this script in QTP11 against this sample I do not get an error. Here is the script I am using which is based on the script that you provided:
SwfWindow("Fun with Filters").SwfTable("ultraGrid1").ActivateRow "0"SwfWindow("Fun with Filters").Move 600,85SwfWindow("Fun with Filters").SwfTable("ultraGrid1").ActivateRow "1"SwfWindow("Fun with Filters").SwfTable ("ultraGrid1").Click x, y,micRightBtn SwfWindow("Fun with Filters").SwfTable("ultraGrid1").WinMenu("ContextMenu").Select "Auto Filter"SwfWindow("Fun with Filters").SwfTable("ultraGrid1").SetFilter "0;City", "(Custom)"
Could you test this script with the sample that I attached and let me know the result you get? Or could you modify the sample so that it more close resembles what you are testing and let me know how it goes?