Generate csv file report with pytest

江枫思渺然 提交于 2019-12-24 08:47:05

问题


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


回答1:


You can use pytest's plugin API to do so - see e.g. pytest-json for something similar.




回答2:


I wrote a pytest-csv plugin, hope this helps.




回答3:


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

Usage:

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

It will generate report.xls excel file.



来源:https://stackoverflow.com/questions/43480615/generate-csv-file-report-with-pytest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!