Forum Discussion

DenisMedvedev's avatar
DenisMedvedev
Contributor
9 years ago

How to change Default Value in Project.Variables.MyVariable?

I have integer variable and I'd like to increase Default Value property during script running. Is it possible or not?

 

P.S. I notice that it is possible while test is running, but when test is stopped, Default Value in project variables screen is the same. 

  • The default value will always be the same default value. What changes in the course of the script is the dynamic value of the variable that is then utilized during the script.  Think of it as the same thing as declaring a variable in software code.  The declaration my have an initial value that, no matter what, whenever you run the application, that is what that value is.  However, the value changes during software run.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    The default value will always be the same default value. What changes in the course of the script is the dynamic value of the variable that is then utilized during the script.  Think of it as the same thing as declaring a variable in software code.  The declaration my have an initial value that, no matter what, whenever you run the application, that is what that value is.  However, the value changes during software run.