在我的示例中,我已经通过记录创建了测试的完整调试输出。一切正常,我将其移交给文件。
一些问题:
我用于第一个信息https://docs.python.org/3/library/logging.html
任务
使用的模块
import testcore
from testcore.control.ssh import SSH
import unittest
from test import support
import logging
import os
使用的调试信息
logging.basicConfig(filename='test.log', level=logging.DEBUG,
format='%(asctime)s:%(created)f:%(levelno)s:%(message)s:%(process)d')
答案 0 :(得分:0)
我已经回答了这个问题和我自己的问题。现在,我使用了日志记录包,并根据测试用例进行了适当的处理。