How to set a global variable from an API respond value (Authentication token)

Hi Rick,

this way should work:

import internal.GlobalVariable

//

GlobalVariable.yourTokenVar = Token 

Please remember that token is persisted only at runtime. If you want to persist token permanently (for different test case(suite) execution), you have to save it into permanent memory (file, database, …).

1 Like