QTP v10
TestAdvantage 2007 Volume 1 CLR 2.0 against same version of NetAdvantage
If I do a grid.SetCellData in my QTP script, it will completely lock the application under test and QTP as well, causing the application process to start consuming half the CPU consistently.
If I end the process on QTP my AUT is still running high CPU and in an unusable state, I have to forcibly kill it's process as well.
However, if I make sure that the very last line in the QTP script is SetCellData, it works fine. Only if I make any other GUI method or action call *after* the SetCellData call, will it lock up.
Hi Alan,
Yes, you have followed the problem correctly. Only when I try to set the data in the grid and click OK button, the AUT is hanging. If I don't set any data in the grid, the AUT does not hang when I click OK button. The developer ran the code in debug mode of Visual Studio and this is what he has to say:
When the user checks the checkbox in the Grid and clicks OK button, the AUT is making a Remoting Call to server. When the same steps are performed by QTP, No Remoting call was made to the server. Same problem is encountered when we are recording the steps in QTP. When we kill the process of the AUT, QTP will become responsive again. Is it a thread deadlock issue on QTP Testadvantage?
Here is the code which is setting the Checkbox in the Grid and clicking OK button:
SwfWindow("Exposure Manager").SwfWindow("Managing Groups").SwfTable("ultraGridManagingGroups").ActivateRow "0;3"SwfWindow("Exposure Manager").SwfWindow("Managing Groups").SwfTable("ultraGridManagingGroups").ActivateCell "0;3","SELECTED_COL"SwfWindow("Exposure Manager").SwfWindow("Managing Groups").SwfTable("ultraGridManagingGroups").SelectMultiple "","",""SwfWindow("Exposure Manager").SwfWindow("Managing Groups").SwfTable("ultraGridManagingGroups").SetCellData "0;3","SELECTED_COL","True"SwfWindow("Exposure Manager").SwfWindow("Managing Groups").SwfButton("OK").Click
Here are the Swftypename of the Grid and the OK button:
Grid: Infragistics.Win.UltraWinGrid.UltraGrid
OK button: System.Windows.Forms.Button
Also, here are the lines of code from the output window of VS just before the AUT hangs:
'C:\WINNT\assembly\GAC\Mercury.QTP.Agent\8.0.137.0__7d38df5e43b1c39a\Mercury.QTP.Agent.dll''EM.exe' (Managed): Loaded 'C:\WINNT\assembly\GAC\MngUtils\8.0.130.0__7d38df5e43b1c39a\MngUtils.dll''EM.exe' (Managed): Loaded 'c:\program files\hp\quicktest professional\bin\custombridge.dll''EM.exe' (Managed): Loaded 'C:\WINNT\assembly\GAC\Mercury.QTP.CustomServer\6.5.133.0__7d38df5e43b1c39a\Mercury.QTP.CustomServer.dll''EM.exe' (Managed): Loaded 'c:\program files\hp\quicktest professional\bin\remoting.dll'AUT: Entering MarshalUserObject'EM.exe' (Managed): Loaded 'C:\program Files\Infragistics\TestAdvantage for Windows Forms (HP) 2010.1\Bin\Infragistics2.QTPServer.WinExplorerBar.v10.1.dll''EM.exe' (Managed): Loaded 'C:\program Files\Infragistics\TestAdvantage for Windows Forms (HP) 2010.1\Bin\Infragistics2.QTPServer.Win.v10.1.dll''EM.exe' (Managed): Loaded 'C:\program Files\Infragistics\TestAdvantage for Windows Forms (HP) 2010.1\Bin\Infragistics2.QTPServer.Shared.v10.1.dll''EM.exe' (Managed): Loaded 'c:\program files\hp\quicktest professional\bin\Interop.NETDISPATCHSERVERLib.dll''EM.exe' (Managed): Loaded 'C:\WINNT\assembly\GAC\Infragistics.License\1.0.5005.10__7dd5c3163f2cd0cb\Infragistics.License.dll''EM.exe' (Managed): Loaded 'C:\WINNT\assembly\GAC_MSIL\Infragistics2.Win.UltraWinGrid.v10.1\10.1.20101.1007__7dd5c3163f2cd0cb\Infragistics2.Win.UltraWinGrid.v10.1.dll'AUT: Entering MarshalUserObject'EM.exe' (Managed): Loaded 'C:\program Files\Infragistics\TestAdvantage for Windows Forms (HP) 2010.1\Bin\Infragistics2.QTPServer.WinGrid.v10.1.dll'
Let me know if this informatin is what you were looking at?
Cheers,
Chandan
Chandran,
If I am following correctly the issue is occurring on replay of a script after you set the data in a grid cell and then press the OK button.
Does the replay of the button click work without issue if you didn't set a value of a cell in the grid? If so I would need to know more details about what events are handled in the grid and what is done in each of the events as well as what is being done in the button click to look into the issue.
If the replay of the button also fails without changing the data in a grid cell first, then I would need to know what is being done in the button click.
Let me know if you have any questions with this matter.
Alan
Please advice.
There is a Managing Group window which has checkboxes to be selected and we need to click OK button. I'm able to record and replay the actions till the Ok button click. The moment I click OK buttob, the Application is hanging.
I'm able to record and replay on my application. Here is are the lines of code recorded:
SwfWindow().SwfWindow().SwfTable().SetCellData "1;4", "SELECTED_COL", "True"
SwfWindow().SwfWindow().SwfButton().Click
swftypename of the controls which have this issue:
Infragistics.Win.UltraWinGrid.UltraGrid
System.Windows.Forms.Button
If I perform these steps manually, the application is NOT hanging.
If you are still seeing issues with QTP hanging when using TestAdvantage 2010 Volume 1 and NetAdvantage 2010 Volume 1, then the issue you are seeing now is different from the one that was fixed. To look into this issue I would need to know how to reproduce the issue.
What actions cause QTP to hang? Are you able to record and replay on your application without issue other than these controls? What is recorded for these controls? What is the swftypename of the controls that have this issue?
Please provide the details I have requested so that I may look into this issue.
Hi,
We coaxed our developers to upgrade to Infragistics NetAdvantage 2010 Volume 1 CLR 2.0. I'm currently using QTP 10 with Infragistics Test Advantage for Winforms 2010 CLR 2.0. Even now, my application is hanging when I do any action on the Combo box or Tree Views. Earlier, the application was on NetAdvantage 2005 Volume 3 CLR 1.0.
We were under the impression that by upgrading the NetAdvantage, our problem will be solved. But that is NOT the case. Please advice.
Regards,