Re-use variable which is randomly generate


Here is my first part of code :

{CREA_AUTO}= Lexify CREA_AUTO_???* *Length Should Be {CREA_AUTO} 13

In this code, I generate randomly a string with the “Lexify” library.

On the second part of the code :
Input text locator ${CREA_AUTO}

In this code, I would input the ${CREA_AUTO} value on a field.

My issue is as the random string is not on the same keyword, I can’t collect the value.
And i can’t group the 2 keywords (2 different use).

How can I declare as global variable the random string? I try Set global variable keyword but it doesn’t work (or I don’t know how to use it)

Thanks !