Forum Discussion

mante_bos's avatar
mante_bos
New Contributor
9 years ago

change default value variable

Hi

 

I created some KeywordTests with variables. These variables have a default value defined.

Is it possible to change the default value of these variables within a script?

 

I tried to use KeywordTests.variables.<varName> = value.

But this only changes the current value and once the test has ran, the default value is set to its original value.

 

Best regards

Mante

3 Replies

    • mante_bos's avatar
      mante_bos
      New Contributor

      If I'm not mistaken, the persistent variables exist only at project level, and not at the KeywordTest level.

      So that wouldn't be a solution for me

      • baxatob's avatar
        baxatob
        Community Hero
        Yes, you're right, but Project variables are visible for all keyword tests inside the project.