Provide for the ability to view logs outside of TC? Our logs are getting too large to keep in the 'Log' directory as part of our regular backup and we don't want to lose the testing history. I would like to move the log folders somewhere else but without a view this is far too tedious.
View Logs Outside of TC
- Marsha_RModerator
http://support.smartbear.com/viewarticle/55128/
Take a look at the Exporting Results From Tests section. You can output the results to an .mht file from your test and that's viewable in IE.
- william_roeSuper Contributor
There are hundreds of log files and they can only be dowloaded one at a time... and the must be named individually.
william_roe wrote:Provide for the ability to view logs outside of TC? Our logs are getting too large to keep in the 'Log' directory as part of our regular backup and we don't want to lose the testing history. I would like to move the log folders somewhere else but without a view this is far too tedious.
. This is far too tedious. - Marsha_RModerator
Really? We have the name and the path built into the test so the log goes where we want it and has a user friendly name. It can be viewed in IE if necessary or ignored forever (which is usually the case lol).
Where is the tedious part for you?
- william_roeSuper Contributor
Moving the logs to another directory so they are not included in the backup. Whether exporting or detaching (remove without deleting) and attaching (existing files) the task can only be done one log at a time. Is there an option to set a log directory not under the project directory?
- Marsha_RModerator
You build your own filepath for the exported logs. The examples are for the project path, but it will work for any path as long as each test machine can reach it.
- william_roeSuper Contributor
That is exactly what were looking for. THANK YOU!
william_roe wrote:Provide for the ability to view logs outside of TC? Our logs are getting too large to keep in the 'Log' directory as part of our regular backup and we don't want to lose the testing history. I would like to move the log folders somewhere else but without a view this is far too tedious.
- Marsha_RModerator
Sure. Happy Friday!
- william_roeSuper Contributor
Do you have any sample code which creates the concatinated file format to match the Test Complete naming convention: 3_15_2015_4_45 PM_04_25.mht?
function SaveLogResults(){ // ... // Specifies the path to the file that will contain // the test results in the MHT format var FileName = "C:\\Users\\svcmrtprdaccpt\\Documents\\TestComplete 10 Projects\\CMWeb Logs\\MyResults.mht"; var result = Log.SaveResultsAs(FileName, lsMHT); }
- Marsha_RModerator
Do you have any dark chocolate?
- william_roeSuper Contributor
Absolutely. I'm almost there myself
var f = aqConvert.DateTimeToFormatStr(aqDateTime.Today(), "%y_%m_%d");
william_roe wrote:Provide for the ability to view logs outside of TC? Our logs are getting too large to keep in the 'Log' directory as part of our regular backup and we don't want to lose the testing history. I would like to move the log folders somewhere else but without a view this is far too tedious.
Related Content
- 9 years ago
- 7 years ago