<p>We are trying to integrate tests in our daily builds using TestComplete, so far we have a machine dedicated for testing and our build script copies to this machine everything TestComplete needs for its tests (Application, Database, Test script project and source files, etc).</p>

<p>Basically we can open the TestComplete project manually and run the tests.</p>

<p>Now we want to automate that process, so how do you do it? Or how do you think would be the simplest and best way to make this automation?</p>

<p>Keeping it short, we want to automate the process of opening TestComplete after each build, run all the tests and send an email with the test results.</p>

<p>Anyone can share some experience about this?</p>

<p>Thanks.</p>

Well, although I have not used TestComplete I have used a competing package called QA Wizard Pro. Since you are asking this question I am assuming that it isn't something that is natively supported by TestComplete. QA Wizard is the same way and they expect it to be run manually instead of automatically, though there are test run files that can be run. For QA Wizard I created a batch file that was run nightly from the task scheduler. The account to run the software must be able to interact with the desktop and a user must be logged in
with
a display. I used a free piece of software called
AutoHotKey
to automate the running of the tests and then some
Cygwin
tools to parse the results and trigger an email through
Blat
with the results. It isn't a perfect solution but it does work.