Forum Discussion

judie's avatar
judie
New Contributor
12 years ago

Another Name Mapping Issue

I am hoping someone in the community may have faced this problem and have a solution. Since recording the original regression suite of scripts for a desktop app, the Developer Express version has been upgraded and we have also upgraded TC ver 9 to the latest Test Complete Version (10.10.752.7).



I have a .NET desktop application with devexpress contrrols (ver 13.2.5). A suite of regression scripts and keyword tests were written for this app last year using TC ver 9. Since upgrading to TC ver 10, none of the keyword tests or scripts will run. A check in the object browser reveals that the form names no longer match the original recordings. The only way I have been able to get anything to run at all is to manually rename the objects but as this is a complete regression suite for the application this will be a very long process.



Using the Object Spy, I can only highlight certain areas of the form (not the buttons that will load a new form) as the application is using wrappers: eg

 

Aliases.FreshPackApples.wndWindowsForms10Window8app0cf4527r11ad1.WindowsForms10Window8app0cf4527r11ad1.Window("WindowsForms10.Window.8.app.0.cf4527_r11_ad1", "FreshPackApples.UI.Win", 1).Window("WindowsForms10.Window.8.app.0.cf4527_r11_ad1", "", 1).Window("WindowsForms10.Window.8.app.0.cf4527_r11_ad1", "", 3).Window("WindowsForms10.Window.8.app.0.cf4527_r11_ad1", "Main Navigation", 1)



I have attached a screenshot of the object browser tree and the name mapping.

2 Replies

  • judie's avatar
    judie
    New Contributor
    Thanks for your quick response Tanya. Although it didn't fix the problem, it did set me off in the right direction and I noticed that TC was testing as if it was a 'blackbox' app, i.e. not recognising .NET at all no matter what I did. Solution: Uninstall and reinstall TC and now it is at least recognising the forms and controls correctly. I did notice that we have quite a number of new Devexpress controls that do not appear in TC's Properties-->Object Mapping list as we are currently using ver 13.2.5 which I hope will not cause any grief.