日志

时间:2018-05-23 05:19:54

标签: python robotframework

我有一个项目,我必须使用robotframework进行一系列测试。 在我的python 2.7环境中,我安装了robotframework 3.0.4。 此时我想将框架用于我的python代码(是一个django项目),如下所示:

from robot import run as run_test
run_test('<path of my html test file>.html')

测试开始并创建日志和报告文件,但在log.html中没有INFO和WARN消息。 现在,如果我打开IDLE并做同样的事情:

>>>from robot import run as run_test
>>>run_test('<same path above>.html')

测试运行并在log.html文件中我正确记录了我的FAIL,INFO和WARN消息!

对于相同的测试机器人框架,我的python代码怎么可能不记录INFO和WARN而从IDLE记录呢?

提前致谢

0 个答案:

没有答案