Using the Script project item editor you can specify the script’s main routine. This routine will be executed as a “test” provided by the Script project item. For instance, this routine is executed by a test item associated with the Script project item (with the project item, not with a script routine). This routine is also run if you command TestComplete to execute the Script project item through TestComplete’s command-line arguments.
调用另外一个Unit的Function要使用Uses,查一下帮助文档就知道怎么用了。