Forum Discussion
rraghvani
Champion Level 3
2 months agoI've installed the latest version, TestComplete 15.79.5.7. Python now works, with additional changes required to the scripts - as Python 3.13 treats each global objects e.g. Log, Project, and Sys as a regular scoped object, you now have to pass these as parameters. As an example, Log is being passed as a parameter -
MainTest.py
import MyFunctions
def main():
MyFunctions.greet(Log, "Alice")
MyFunctions.py
def greet(Log, name):
Log.Message(f"Hello, {name}!")
More information can be found in Working with TestComplete Global Objects in Python 3.13