Forum Discussion

nrkarcher's avatar
nrkarcher
Frequent Visitor
3 months ago
Solved

NameError: name 'Aliases' is not defined

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.

  • 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.

     

5 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    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.

     

  • 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.

    🤖 AI-assisted response
    👍 Found it helpful? Click Like
    ✅ Issue resolved? Click Mark as Solution

    • VStepI's avatar
      VStepI
      Occasional Contributor

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

      Only downgrade to 15.76 works

      • Hassan_Ballan's avatar
        Hassan_Ballan
        Icon for Champion Level 3 rankChampion Level 3

        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

        🤖 AI-assisted response
        👍 Found it helpful? Click Like
        ✅ Issue resolved? Click Mark as Solution

  • 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.