Forum Discussion

ritesh_chauhan's avatar
ritesh_chauhan
Contributor
12 years ago

How to declare public constants in Test Complete

How to declare public constants in Test Complete



We have tried as below:




Consts test_type = "testType";


  • Hi Ritesh,



    If you are using, VBScript then , You can declare Public Constant like below-



    Public CONST PI = 3.14

    Sub Test

           log.Message(PI)

    End Sub



    This may help you !
  • Ravik's avatar
    Ravik
    Super Contributor
    Hi Ritesh,



    If you are using, VBScript then , You can declare Public Constant like below-



    Public CONST PI = 3.14

    Sub Test

           log.Message(PI)

    End Sub



    This may help you !