Forum Discussion

JamesP's avatar
JamesP
Occasional Contributor
5 years ago
Solved

Object mapping for multiple environments

Hello, 

I am new to TestComplete v14.5 and am preparing some keyword tests to be used across all of our test environments.

I have found that the name mapping uses the full URL by default to id the object.

This means that each URL needs to be manually modified to replace the "www.website.com/" with * to enable it to work on different servers. 

 

Is there a way of avoiding this manual step and having the objects recorded only referring to the data to the right of the / (e.g. /extranet/do/rlLogin)?

 

Thanks for your help,

James

 

6 Replies

    • JamesP's avatar
      JamesP
      Occasional Contributor

      Thanks Marsha_R,

       

      I found using the search and replace feature to replace the variable website part of the URL with a wildcard can be done quickly across all the occurrences. But I still haven't found a way of having it not recorded in the first place. I'll keep the pots updated it I do!

       

      Cheers,

      James

      • AlexKaras's avatar
        AlexKaras
        Icon for Champion Level 2 rankChampion Level 2

        Hi James,

         

        If you prepare a proper NameMapping (and Aliases) for tested web page before recording, then recorder should make recording in terms Aliases.Page.<...> syntax, not in the Sys.Browser(URL).<...> one.