Forum Discussion

trajmo's avatar
trajmo
Occasional Contributor
4 years ago
Solved

Use wtext property as a parameter or variable

Hello,

I have a simple question, can i use wText propery as a parameter or variable, in order to use that random value in another test.

Thanks in advance,

  • What do you mean "by another test" ?

    Var is persistent inside one test script

    It can be persistent between several scripots if you put it in a shared unit (//USEUNIT)

    Or you can use file to store value for other test..

3 Replies

  • Wamboo's avatar
    Wamboo
    Community Hero

    Hey, sure you can.

    Example:

     

    var wTextValue = Aliases.obj.wText;

     

    You can do anything you want with this variable.

    • BenoitB's avatar
      BenoitB
      Community Hero

      What do you mean "by another test" ?

      Var is persistent inside one test script

      It can be persistent between several scripots if you put it in a shared unit (//USEUNIT)

      Or you can use file to store value for other test..

      • sonya_m's avatar
        sonya_m
        SmartBear Alumni (Retired)

        Thank you Wamboo, Benoit!

         

        Hi trajmo! Does the advice help?