Issues upgrading from 15.7 to 15.8 version
Dear,
After upgrade TestComplete from 15.7 to 15.8 version, some issues appeared.
Python runtime error - NameError: name 'Aliases' is not defined
Python runtime error - NameError: name 'Log' is not defined
Python runtime error - NameError: name 'Project' is not defined
Python runtime error - NameError: name 'aqObject' is not defined
Python runtime error - NameError: name 'ADO' is not defined
The support team suggested us to add this header line to all the project scripts:
from tc import *
And to add this prefix:
tc.Aliases.Client ...
tc.Log.Message(...)
tc.aqObject.GetVarType(ColumnId)
tc.ADO.CreateADOQuery()
But, this solutions not resolves the issues.
Has someone had the same problem in order to help us ?
Thanks, Xavi
I would like to explain you the used way to resolve our latest problems with TC and Python.
The problem is when we use scripts stored in a different root path. When the scripts are stored in subfolders, they can’t be found.
We applied the “Centralizing Global Imports in a Shared Configuration File” for this link:
Working with TestComplete Global Objects in Python 3.13 | TestComplete Documentation
This global file, is important to create in the root path:
After create the global file, the scripts stored in the root path don’t need a prefix to refer to the objects.
The scripts stored in subfolders, need to use a prefix to refer to the objects:
import globals_tc as ag
ag.Aliases.Client…
ag.Log…
…Thanks,