Configuration--Running QTP 9.5 with TestAdvantage 2006 Volume 3 CLR 1.x.
The application has UltraToolbars in it. I have code that will select items on the tool bar.
Example:
SwfWindow("PPlus-Main").SwfToolbar("Add_Edit_Toolbar").ClickToolbarTool "Edit","New"
The line above will successfull click the New button on the Add_Edit_Toolbar.
SwfWindow("PPlus-Main").SwfWindow("Addresses").SwfToolbar("Add_Edit Toolbar").ClickToolbarTool "Edit","New"
This code that should select the New button in the Add_Edit_Toolbar of a spawned child window.
Problem is that the child window action errors with the following exception:
An unexpected exception was raised (Exception from HRESULT: 0x80040205)Line (19): "SwfWindow("PPlus-Main").SwfWindow("Phones").SwfToolbar("Add_Edit Toolbar").ClickToolbarTool "Edit","New"".
Has anyone encountered this before?
I tried running the same scripts which came with install of TestAdvantage and they too are generating this exception.
Unfortunately I have not seen this before. The only useful information I was able to garner from the web on HRESULT: 0x80040205 is that it seems to be an EVENT_E_INTERNALEXCEPTION . That doesn't limit much. I would suggest contacting the Infragistics Developer Support, as they will be able to work closer with you better possibly determine the cause.
I took a sledgehammer approach to this issue. I had a collegue try my code on his box and he wasn't gettin this error...so I reinstalled everything on my machine and the error has gone away.
<shrugs> not sure what the cause was but I have fixed it. :)
Maryanne
Gotta love the sledgehammer approach, the only side effect of using a big hammer, is all your problems start to look like nails... :)
Glad to hear it worked out for you,
apparenlty the re-install trick was a temporary fix,.
The error is back. Now its occuring on ClickToolbarTool actions for parent as well as child windows.
:(
I would go back to my initial recommendation, which is to contact our developer support directly, they would be able to help you a little closer than I would be able to via the forums.
I have a support ticket open on the dev side to see if they can help. Was hoping maybe someone else had seen this as well.