Forum Discussion
I understand you have an existing script that runs perfectly in project A, and in project B you used "Add Existing Item" to add project A script; however, this script fails to run under project B as it is not finding the NameMapping references.
If I correctly understood your scenario, you are missing an important fact that each project also contains it's own NameMapping database that is not shared with other projects in the suite.
You could design you projects to share scripts as well as the required NameMapping https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-to/merge.html and that requires careful consideration and planning in addition to deep understanding of NameMapping https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/index.html
💬 Found the answer helpful? Give it a Kudos by clicking Like!
✅ Got your issue resolved? Click Mark as Solution so others can find it quickly.
Dear Hassan, thanks for sharing this info - this is not my question thread (just lurking since I have same issue), so I leave J.Gibbs to decide if this resolves....
Reading info you shared, seems the nameMapping needs to be performed again and again, after new nameMappings are added or changed :( Also what about mapping of three (or four or five..) NameMappings? is that even possible? Is there a limit?
All considered I still don't see NameMapping value-added for my current project, and have disabled it. Thanks for sharing info all the same, perhaps may help a future project :)