TestComplete errors
Message - The file_name file does not exist.
The file_name file does not exist.
This error can occur if the script file has been moved to another directory.
The most insidious case is when you saved everything to your local computer, then OneDrive connected and started inserting
itself into the path to the file. In this case you can manually save the scripts to a directory on the local computer, removing OneDrive from the path
NameError: name 'TestedApps' is not defined
Python runtime error NameError: name \TestedApps\ is not defined Error location: Unit: "Calculator\\Calculator\Script\Unit" Line: 3 Column: 1.
This error can occur if the location of TestedApps has changed.
The most insidious case is when you saved everything to your local computer, then OneDrive connected and started inserting
itself into the path to the file.
In this case you can try removing the code that launches the application from the script altogether. For example, when
testing the calculator
the code was present
TestedApps.calc.Run()
You can try deleting it. You can also recreate the project using the correct (currently available) path to the application under test.
NameError name Aliases is not defined
Occurs if a test written in
Python
accesses an object that is not in
NameMapping.tcNM
Most likely this file is not filled in at all and TestComplete does not understand what
Aliases is and which object is needed.
The cause may be moving the script from another project in which all these
aliases were defined.
The solution is to find the project in which the script originally worked and copy
NameMapping.tcNM
into the new project entirely or the needed part of it
Article author: Andrei Olegovich