Forum Discussion

murugans1011's avatar
murugans1011
Regular Contributor
10 years ago

How to create temporary variable from scripts

Hello



when creating variable from scripts all the variables are created as persistent variables.how to add to temporary variables?

1 Reply

  • Philip_Baird's avatar
    Philip_Baird
    Community Expert
    Hi Murugan S, as per the the Documentation




    "Note also that TestComplete does not restore the initial values of the project and project suite variables when the script has finished. Therefore, if your script modifies the project or project suite variable, the variable will not have the initial value the next time you run the script. In this case, the variables of simple types (integer, double, string, Boolean) would have the modified value, while the object type variables would have an empty value."


     


    it appears only persistent Project Variables can be created in Scripts.


     


    Regards,


    Phil Baird