Forum Discussion
IStaroverov
6 years agoSmartBear Alumni (Retired)
This behavior is similar to a launching this code(e.g. in Python IDLE):
def test(): print "hello world" test()
but if you want to print the message in TestComplete, need to use: Log.Message("hello world")
- TanyaYatskovska6 years agoSmartBear Alumni (Retired)
- DKumar046 years agoContributor
but my question is not about printing it's about how test complete works when there is no class but only routines inside .py script file?
- TanyaYatskovska6 years agoSmartBear Alumni (Retired)
As far as I understand it works without the class. Do you have any errors?
- tristaanogre6 years agoEsteemed Contributor
Keep in mind... this is Python SCRIPT, not full Python. Not everything needs to have a class to be able to execute. You can use classes, but they are not required for execution of functions.
Related Content
- 2 years ago
Recent Discussions
- 2 days ago