How to avoid changing URL in name mapping manually for each object?
We created some tests in out TC project. We want to be able to run them in multiple environments (each environment has base URL and some test data) so we created project variables like baseURL. We use a script running before tests to load base URL from configuration file, so we do not need to update variable manually in each test when we want to run tests in specific environment. The problem is that in Name Mapping objects still have hardcoded values like "ObjectType: URL, Page: website-qa.com". Now when we run tests in UAT env, test step opens page correctly in UAT env, but fails because object in Name Mapping is pointing to website-qa.com.
This can be solved by using wildcards Using Wildcards | TestComplete Documentation (smartbear.com). However, we have dozens of objects in Name Mapping under browser object pointing to some URL. Updating them manually will be very time consuming and every time we create new test by recording script, new objects with URLs are added to Name Mapping.
Is there a way to make our tests work in multiple environments without updating URL for each object in Name Mapping manually?
Thank you,
Maksim