UI Object repository, “An item with same key has already been added”

Hi All

Can any one please let us know how to overcome this scenario.

We are in the process of capturing all the controls in one of our application through assertion and adding it to UI Control map.  After doing this and recorded the application while generating the code an error occured , mentioned as
“An item with same key has already been added”

Thanks and Regards




This seems to be a known issue refer this for the discussionhttp://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/6e628b13-21c3-4667-9512-28a3df05d6bc/Recording on a new UI test map is a workaround. Add new coded ui test map item.refer this for working on multiple coded ui mapshttp://blogs.msdn.com/b/anutthara/archive/2010/02/10/walkthrough-using-multiple-coded-ui-maps-in-test-automation.aspx /