Forum Discussion

DanH's avatar
DanH
Contributor
7 years ago
Solved

Problem creating constants

Hello, I'm just starting with Test Complete...  I'm probably being stupid but... I can't create constants.  I have read the help at:  https://support.smartbear.com/viewarticle/10990/.  my problem is I can't see  'Variables | Constants'  when I follow the direction to 'Select Variables | Constants from the main menu of Automated Build Studio '.  Is there an option or setting I am missing?

  • That help document is for Automated Build Studio.  You're working with Test Complete.  Two different tools. :)

     

    So... you want to create a constant or equivalent in TestComplete?

     

    Different script languages have the ability to create constants depending upon their syntax.  However, I'm assuming you are wanting to do something different.

     

    Look into Project Variables, Project Suite Variables, and Keyword Test Variables in the TestComplete help documentation.  While these are variables, you can give them a default value and, so long as you don't assign anything new to the variable, that default value will act as a constant.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    That help document is for Automated Build Studio.  You're working with Test Complete.  Two different tools. :)

     

    So... you want to create a constant or equivalent in TestComplete?

     

    Different script languages have the ability to create constants depending upon their syntax.  However, I'm assuming you are wanting to do something different.

     

    Look into Project Variables, Project Suite Variables, and Keyword Test Variables in the TestComplete help documentation.  While these are variables, you can give them a default value and, so long as you don't assign anything new to the variable, that default value will act as a constant.

    • DanH's avatar
      DanH
      Contributor

      Doh!.... sorry, I knew I was being stupid :catsad: :catvery-happy: