Ask a Question

NameMapping - Can You Use A Project Variable And Add To It Like A Constant?

New Contributor

NameMapping - Can You Use A Project Variable And Add To It Like A Constant?

I am aware that you can use either a Constant or a Project Variable, but is there a way to use both?

For instance if I have multiple environments such as:,, and my test goes to how can I do something along the lines of
(Property, URL)/account/profile/update so that the NameMapping and tests can be ran on all environments without changing anything but the URL?

I came from Ranorex and this was a normal thing, but I cannot seem to find it in TestComplete. Any help would be greatly appreciated.

Champion Level 3



Considering your example, you may use www.** as a constant value for the URL property when mapping page object.


  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
Frequent Contributor

You can use wild cards in the name mapping.

** works for all of the cases you prested.

Also you can set project variables and use

URLValue = Project.Variables.MyURL + "/account/profile/update "


where Project.Variables.MyURL = *

Showing results for 
Search instead for 
Did you mean: