Forum Discussion
4 Replies
- vthomeschoolmomSuper ContributorAnd / or how to delete just the current log would also be helpful.
- YMinaev
Staff
Hi,
You can make TestComplete delete old logs automatically by using the "Number of recent logs to keep" option (see the Log Options Dialog help topic). It allows you to specify the number of logs to keep in your project. - vthomeschoolmomSuper ContributorOK cool, I might be able to make that work. My questions are:
- the help topic mentioned speaks of a "Number of Test Runs". Is a test run defined by project? Project suite? If I have a project with several Test Items in it, will each of those be considered a "test run"? If no, if I have a project suite, with several projects in it, would each project be considered a "test run"?
- If this option is set in Tools/ Options, this is based on the Test Complete installation not the project I assume. Is this correct? Is there any way to flip this dynamically in code, batch or some such?
- How is this determined when using test player without a full test complete installed?
I appreciate the help! - YMinaev
Staff
Hi,
1. A "test run" is not related to specific items. When you start anything in your project suite (the entire suite, a project, a test item, etc.), let it work and stop, this is considered a be a test run. If you run multiple projects without stopping playback between them, it is a single test run, if you start just a script routine which posts a message to the log and returns without calling anything else, this is a single test run too.
2. Yes, this option affects TC itself. It won't depend on projects. As for changing it dynamically, there's no way to change its value outside the Options dialog.
3. TestExecute has its own set of options (its Options dialog is accessible via the context menu of its tray icon). The 'Number of recent logs to keep' option works in it in the same way as it does in TC. Note that TC and TE are different applications, and you need to change options for them individually.