Forum Discussion

kaboodle's avatar
14 years ago

Workaround for varying class names



Hi, I've recently pulled down the trial version of TestComplete to see whether it may be suitable for automating testing on the range of products we produce, however I've hit something of a snag in that when attempting to expand the tree view, the WinFormsAdapter is sometimes incremented.



e.g.



Call Aliases.TRNA_Admin_Tool.HwndSource_AdmControllerForm1.WinFormsAdapter.TreeView.ClickItem("|10.200.2.57:1484|engine|analysis|Service1|Instance1")



Call Aliases.TRNA_Admin_Tool.HwndSource_AdmControllerForm1.WinFormsAdapter1.TreeView.ClickItem("|10.200.2.57:1484|engine|analysis|Service1|Instance1")





Any suggestions on a way I can work around this type of thing?

1 Reply

  • Hi Andy,



    Go to the Name Mapping editor and check recognition criteria for WinFormsAdapter and WinFormsAdapter1. Most probably, WinFormsAdapter is just mapped by a property whose value changes. You need to remove this property from your NM scheme to avoid such problems.