I'm migrating a regression test from QTP 9.2 to 10.0 for a Windows .Net application that has been upgraded from NetAdvantage 2006 Vol. 2 CLR 1.x to NetAdvantage 2008 Vol. 2 CLR 2.0 and I'm having issues with QTP 10 not selecting Restore Default Layout from the Context Menu when I right-click on a grid (I have the correct versions of TestAdvantage).
Here is the original code from QTP 9.2:
SwfWindow("Company").SwfTable("ugBranches").RightClick "0","0;Region"Wait 1SwfWindow("Company").SwfWindow("Save Layout Name").SwfToolbar("SwfToolbar").Select "Restore Default Layout"
When I migrated the test to QTP 10.0 and tried to execute the same code, I received the following error: "The 'SwfToolbar' object was not found in the Object Repository." I tried re-recording the selection of Restore Default Layout from the Context Menu, but all that records is the right-click:
SwfWindow("Company").SwfTable("ugBranches").RightClick "0","0;Region"
I seem to recall that there was a similar issue with TestAdvantage 2006 Vol. 2 CLR 1.x until a hotfix was released, so I'm just curious if there is a similar hotfix that is needed for TA 2008 Vol. 2 CLR 2.0 that I might have missed along the way. If so, how can it be downloaded? Thank you.
Hi Dennis,
There are a number of ways to implement a contextmenu of the grid, I would first verify that it is our popup control via the ObjectSpy. Which assuming it is, if you said a hotfix fixed it in 6.2, it is possible that it was fixed while both were already released and therefore I would recommend getting the latest TestAdvantage service release from the website. As long as you have it registered through our website, you should be able to get all related service release. If you have any trouble you can contact our sales department and they will help lookup your registration information.
Let me know if the problem persists after the latest hotfix.