NameError: name 'Aliases' is not defined

Originally posted by nrkarcher on October 02, 2025

After the latest update I am running into a “NameError: name ‘Aliases’ is not defined” error when attempting to run any test.

Name mapping hasn’t changed, the file is still in the same location in the project and the “highlight” function still correctly recognizes the application.

Is there an easy way to find links to older versions? Downgrading seems to be a common thing with TestComplete.

Originally posted by rraghvani on October 03, 2025

You haven’t mentioned the exact version or scripting language you are using, so I’m assuming you are using TC v15.77 and Python.

You can download a previous version of TestComplete via the URL https://downloads.smartbear.com/TestComplete1577SLM.exe - just change the version number to an appropriate value.

Originally posted by Hassan_Ballan on October 05, 2025

A possible workaround is to add the following at the start of the script:

import gc  
gc.collect()

This forces Python’s garbage collector to run, which can help resolve issues with Aliases not being initialized correctly after an upgrade.

Might be worth trying before reverting to an older version.

:robot: AI-assisted response
:+1: Found it helpful? Click Like
:white_check_mark: Issue resolved? Click Mark as Solution

Originally posted by erikgt on October 09, 2025

Older versions may be available through https://manage.smartbear.com as well

Though keep in mind that this website has a bug, where it will not load properly in Firefox (and possible Opera – showing ‘No licenses available’) until the browsers cookies and local storage have been emptied.

Originally posted by VStepI on November 18, 2025

Does not work. Just tested latest 15.79.5.7. Still the same error.

Only downgrade to 15.76 works

Originally posted by Hassan_Ballan on November 20, 2025

Since this thread is already marked as solved and the issue still occurs in 15.79.5.7, the best path forward is to open a support incident with SmartBear so they can investigate the regression.

https://support.smartbear.com

:robot: AI-assisted response
:+1: Found it helpful? Click Like
:white_check_mark: Issue resolved? Click Mark as Solution