Forum Discussion
As with any coding environment, if you want a variable to be accessible to all code, you need to declare it at a higher scope than where you are calling it and then make sure that you reference that scope.
Probably the EASIEST way to do this in TestComplete is to use Project Variables. Define a project variable for the components you want and then reference Project.Variables.<variable name>.
For Python, you can declare all your variables globally in one unit of code and then reference that unit in all your other units. See https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/python.html
A third alternative: Learn to use NameMapping and Aliases. With Aliases, you could easily just build an alias for that login that would be referenced as Aliases.user_name_box and you can then use that EVERYWHERE. See https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/overview.html#about-the-mapped-objects-and-aliases-trees and related topics.