def print_output(self):
""" Prints the dump of the xml object to the file specified.
This function can be used for debugging purpose and
its called at the end of the functional calls.
:Arguments:
resultfile = Result File
:Returns:
None
"""
try:
import Framework.Utils.config_Utils as config_Utils
resultfile = config_Utils.resultfile
tree = ET.ElementTree(self.root)
tree.write(resultfile)
except UnicodeDecodeError as e:
print_exception(e)
except Exception as err:
print_exception(err)
testcase_utils_class.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录