Forum Discussion
baxatob
8 years agoCommunity Hero
1. You can use the following code for taking a screenshot:
def take_screenshot(path): Sys.Desktop.Picture().SaveToFile(path)
'''
path should be a string with full path to your destination,
e.g. "C:\\Users\\User\\Desktop\\shot.jpg"
Sys.Desktop will provide a screenshot from the whole desktop.
You can use any mapped object instead of Sys.Desktop
'''
2. Enable Post image on error option in your Project -> Properties -> Playback -> Log
3. Currently TestComplete does not have an option to export log to Excel format, however you can create a feature request.