Forum Discussion

TylerSadler's avatar
TylerSadler
New Contributor
6 years ago

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: www.mysite.com, www.dev.mysite.com, www.q...
  • AlexKaras's avatar
    6 years ago

    Hi,

     

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

     

  • kevin_kapell's avatar
    6 years ago

    You can use wild cards in the name mapping.

    *.mysite.com* 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 = *.mysite.com