Forum Discussion

cptusername's avatar
cptusername
New Contributor
4 days ago

'Project not defined' errors after updating to 15.77.6.7

My project was executing tests just fine on Friday. This morning when I launched TestComplete, I was prompted to update, so I applied the update and am at version 15.77.6.7 afterward.

Now, when I attempt to run tests, a 'Project not defined' error is preventing any of my scripts from running. The errors seem to be occurring with my import statements for my custom python script files (i.e., import CashDrawerPage_Script).

The ONLY thing that changed since the last successful run is the TestComplete update. I had previously updated TestComplete a week or so ago when the last update was available.

How do I either resolve the error or else roll back to a prior version of TestComplete?

5 Replies

    • cptusername's avatar
      cptusername
      New Contributor

      Thank you, that is the likely culprit. We were running fine under TestComplete version 15.76, so have rolled back to that version for the time being while we figure out what we need to change to accommodate the Python runtime changes.

      Again, nothing in our project changed between Friday and today, the sole change on any machine that had been running successfully on Friday was an update from 15.76 to this 15.77 version. A rollback has confirmed that is the cause of the change, as we are running fine again now under the prior version, so will now look into the Python support change(s).

      • scot1967's avatar
        scot1967
        Icon for Champion Level 2 rankChampion Level 2

        OK, if that resolves this issue don't for get to mark it and let us (the community) know what you needed to do for this update.  Thanks!

        Have a great day!

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    Hello cptusername,

    I agree with rraghvani.  You could check a few things however. 

    1. How far back were you on versions when you performed the update?  
    2. Ensure your scripts are in the right place.  (they should still be)
    3. Ensure your project isn't corrupt. 
      •  Remove (don't delete) the script file(s) and re-import the script files into the project.
    4. Make sure you are using variables correctly.  I have seen code that overwrites the 'Project' variable.  Unlikely here.
    5.  Consult the link below to ensure something has not changed in this version....

    https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/python.html

    ... If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎