Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1040
Selecting Restore Default Layout doesn't record using TA 2008 Vol. 2 CLR 2.0
posted

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 1
SwfWindow("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.

Parents
No Data
Reply
  • 7695
    Offline posted

    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.

Children
No Data