TestComplete/TestExecute command line
Hi,
I'm trying to execute my projects via the command line and it's working except TC has to be not running.
If I try to run it with TC or TE open, it'll say its already open and won't proceed to run the project.
Is there any flag to override that and just run the project on the opened instance?
All of our commands have /exit, which should make sure it clears up the process for the next run. But sometimes there's always that one meddling kid (me) who manually opens up TC/TE then forgets the close the process on the test machine, and ruins all the subsequent command line triggers.
Help me protect myself from me.
Thanks!
You could use the taskkill command that has existed since Vista to kill TestComplete or TestExecute in your batch files.
TASKKILL /IM TestComplete.exe /T TASKKILL /IM TestExecute.exe /T
You can see the docs on it here: https://technet.microsoft.com/en-us/library/bb491009.aspx