使用 pytest 生成 csv 文件报告 [英] Generate csv file report with pytest

查看:66
本文介绍了使用 pytest 生成 csv 文件报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能以某种方式在 csv 文件中生成测试执行报告?我使用 python、selenium、pytest.任何建议将不胜感激!

Is it possible somehow generate the test execution report in csv file? I use python, selenium, pytest. Any advise would be appreciated!

推荐答案

我一直在使用 pytest-excel生成xls文件报告.

I have been using pytest-excel to generate xls file report.

用法:

pip install pytest-excelpytest --excelreport=report.xls

它将生成 report.xls excel 文件.

It will generate report.xls excel file.

这篇关于使用 pytest 生成 csv 文件报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆