Forum Discussion

Lagencie's avatar
Lagencie
Frequent Contributor
6 years ago

Create Table Variable on Project Level

Hello Community,

 

I know it is possible to create a Variable of the type "Table" within a script with Project.Variables.AddVariable("xyz","Table")

 

But is it possible to create a table like within a keyword test, because when I go on the project -> variables -> add ... I can not chose table and the created table variable doesnt show there either - even though I can use it within tests, only problem I have to initialize it within the script also, because it doesn't save those values I put in and on the next run it is empty again and i have to initialize it again.

 

 

Can I create a table variable like in keyword tests just with chosing the values and make a permanent project variable with type table?

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    On the project level, there are two different types of variables, Temporary and Persistent.  If you right click in the Persistent variables section, you are correct, you cannot add a table variable.  However, you can do so in the temporary.