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 ...
View Logs Outside of TC
william_roe
10 years agoSuper Contributor
Here's what I did (same net affect). Chocolate, wine AND roses should be arriving in a day or two. Have a great weekend and THANKS
function SaveTestResult(){ // Specifies the path to the file that will contain // the test results in the MHT format var currentTime = aqDateTime.Time(); // Return the hours, minutes and seconds parts of the current time value and then post them to the log hours = aqDateTime.GetHours(currentTime); minutes = aqDateTime.GetMinutes(currentTime); seconds = aqDateTime.GetSeconds(currentTime); var f = aqConvert.DateTimeToFormatStr(aqDateTime.Today(), "%Y_%m_%d_") + hours + "_" + minutes + ".mht"; var result = Log.SaveResultsAs("C:\\Users\\svcmrtprdaccpt\\Documents\\TestComplete 10 Projects\\CMWeb Logs\\"+f, lsMHT); }
Related Content
- 8 years ago
- 7 years ago