Forum Discussion

jpatterson's avatar
jpatterson
New Contributor
5 years ago
Solved

What is the best practice for project wide counter in TestComplete?

Hello,   I am fairly new to TestComplete and am looking for ways to impliment a project wide counter using JavaScript.  I can think of two ways in which the variable will not lose scope: Global V...
  • tristaanogre's avatar
    tristaanogre
    5 years ago

    You could also use the mechanic in JavaScript of module.export and requires to add variables and objects to other code units.