Forum Discussion

trajmo's avatar
trajmo
Occasional Contributor
6 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,

  • For as long as I know, it's not possible. So I don't use 'Database Table Checkpoint' in my tests. But I have scripts that I wrote myself to read and validate single values, rows or tables from database (task-dependent)

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
        Icon for Alumni rankAlumni

        Thank you Wamboo, Benoit!

         

        Hi trajmo! Does the advice help?