How to update global variable during run time?

There are two options for you.

  1. Set global variable in TC1 and use it in TC2 (within test suite run) - variable won’t be persisted after execution
  2. Store your variable externally (file, database, …) and read it - variable is persisted after execution