Forum Discussion

mc_stilet's avatar
mc_stilet
New Contributor
13 years ago

static code

Can I create in TestComplete static code using jscript and can I debug it?

3 Replies

  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi Vlad,



    Could you elaborate what do you mean by 'static code'?
  • hlalumiere's avatar
    hlalumiere
    Regular Contributor
    My guess is "static" in this instance means "shared", as in a static or shared variable, that is declared once across all instances of a class...



    But really there isn't much to go on from that one sentence...
  • Hi,



    If Hugo's guessing is right, then you have project suite and project variables, which you can create, update and/or delete during executions.



    To access from Test Complete UI, double click on the project or project suite and access to Variables tab. To access from code, write down "Project." or "ProjectSuite." and access the variables from there.



    But remember that in JScript you can declare global variables if you need to. I' can't tell you in the other supported languages, but I'm sure you can too.



    But if by "static" Vlad means constants, then every language should have its own ways to solve that



    Hope it helped!