clearing logs and work without git
I'm trying to solve two issues:
1. At the end of my script I am exporting the logs to a network location so I don't really need to keep the logs in TestComplete. Is it possible to script the removal (clearing) of log files after the log export (SaveResultsAs) has completed?
2. When I manually start up TestComplete I get a prompt to which i always reply "Work Without Git" (see attachment). I have created a scheduled task that runs my scripts at night after i've left work but this prompt is getting in my way.. Is it possible to supress the Work Without Git prompt when Test Complete is started without unbinding the project?
1) There is no "in code" way of removing logs. However, you can set up an environment setting within TestComplete that applies to ALL projects on that machine. Under Tools -> Options -> Engines -> Log you can set the maximum number of logs to keep. You can set this as low as 1 and, each time a project is run, the logs auto-delete.
2) I'm curious... how is the project bound to Git if Git is not actually installed on the machine in question? How did it get bound in the first place? In your scheduled task, have you tried the "/SilentMode" switch?