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.
Hello,
With the release of HP QuickTest Professional 10, there were breaking changes in the custom server provided by HP that we derive from to create the replay servers for TestAdvantage. Due to this change, there are some cases where applications may hang including when using SetCellData. Development is working with HP to determine and resolve these issues.
As you are using TestAdvantage 2007 Volume 1 for CLR 2.0, it is recommended to use QTP 9.5 or earlier as TestAdvantage 2007 Volume 1 is no longer maintained and there won't be any updates to the code for this volume of TestAdvantage.
Let me know if you have any questions with this matter.
Alan
Hi Alan,
I'm also facing the same issue. I'm forced to use Test Advantage 2005 Volume 3 CLR 1.0 for one of our window based applications built on Net Advantage 2005. We were using QTP 9.5 earlier and just now upgraded to QTP 10.0 But the momenyt I try to do a setcelldata on the Infragistics grid and click on a button, the application is hanging. I tried to bypass the setcelldata command by using Keyboard inputs. But there seems to be something wrong happening or something that is supposed to happen but is not being simulated by QTP. I'm able to manually run the same scenario and I know this has got nothing to do with our application. Request you to help me on this.
Regards,
Chandan
Chandran,
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.
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 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.
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,
Thank you for the additional information. I once come across an issue with remoting and QTP hanging. This issue was only reproducible in the customers application and would happen when any custom replay servers were used.
As such, I would like to know what happens if TestAdvantage is disabled. To test this, please use the Version Utility to set TestAdvantage to be disabled and then record clicking the CheckBox in the grid and the button that does the remoting call.
Once you have done the recording, playback the script. Does QTP still hang or does the call work without issue? Let me know the results so that I know what the next step should be for debugging this issue.
VLS,
Please be more precise with what is not identified that you expected to be identified. The steps provided disable TestAdvantage and only change record/replay for a Microsoft button to test a specific issue.
Hi,
Even I'm facing a issue around customer application hang with QTP 11 and TestAdvantage 2010 vol3. Tried the above option mentioned but when i change the SwfConfig.xml my scripts are not identifying the objects.
THanks
VLS
Chandan,I would like you to test record and playback on your application using the attached custom server for a Microsoft Button. This will determine if the issue is due to using any custom replay server or if it is specific to TestAdvantage.To test this you will need to modify the SwfConfig.xml file to point to the record and replay server and then simply record the same actions in your application. When replaying the script, see if the remoting call still hangs your application and let me know the results.Steps to update the SwfConfig.xml:1. Extract ButtonTest.zip to C:\ (This creates a ButtonTest folder)2. Create a backup of your SwfConfig.xml file (C:\Program Files\HP\QuickTest Professional\dat\SwfConfig.xml)3. Remove all of the mappings for record/replay servers from the SwfConfig.xml file. When done, you should have a file with the following content:<?xml version="1.0" encoding="UTF-8"?><Controls></Controls>4. Open the Configuration.xml file from the attached zip file (C:\ButtonTest\Configuration.xml)5. Copy all of the contents of Configuration.xml and paste them between the opening and closing Controls tags in the SwfConfig.xml filePlease note that the if you choose to use a directory other than C:\ to extract the test record and replay assembly to, the Configuration.xml file will need to be updated to match the location where you have extracted ButtonTest.zip. The ButtonTest.zip file also contains the code for the custom server in the code folder. Once you have tested this, you will want to restore your SwfConfig.xml file from the back up you have made.When you have completed the test, let me know if this hung your application like TestAdvantage does. Alan
If I disable the add-in, record and reply the steps, the application is NOT hanging.
But when I disable the add-in, SetCell data does NOT work. Only ActivateCell works and it does NOT serve the purpose as it is just clicking on the cell, irrespective of whether the checkbox is checked or NOT.