Forum Discussion
OK, before I go any further, 2 things:
1) It's probably a good idea that, for a different issue, to start a new thread. That will help other folks having the same issue to find your thread and either comment or read your solution.
2) I don't do this for a living so, expecting the document to explain the issue means you're expecting me to sit down and do a full analysis of what you're doing to determine "Hey, there's a problem here!" Best rule of thumb: Declare the problem in the OP and provide screenshots and documentation for evidence.
That said... you're code has
Log.SaveResultsAs(outFile, lsMHT, 2)
While the parameters after outfile are optional, I think you might want to actually expand to all 4 parameters so that the "2" at the end is properly indicating the scope. Change to
Log.SaveResultsAs(outFile, lsMHT, false, 2)
and see if that corrects.
Sorry for causing inconvenience
The issue still remain the same.
Thanks
- nisgupta5 years agoValued Contributor
Finally Support Team has resolved the issue in TestCOmplete 14.20. If we want to export the log of current TestITems in MHT format then we can use the following function
Log.SaveResultsAs(outfile, lsMHT, true, 2);
- tristaanogre5 years agoEsteemed Contributor
The log scope SHOULD handle it. If it's not, then it sounds like something you should message the SmartBear support staff. I seem to remember that someone else reported a similar issue and there may be a patch that you can apply.
- nisgupta5 years agoValued Contributor
According to the support team
I've tried reproducing the behavior on my side, and it looks like the SaveResultsAs function cannot export the current test item log. I contacted our developers to find out what they think about the situation - whether it's a bug or a known limitation.
Thanks
NG
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Thanks for the update, nisgupta.
Please keep us informed.