问题
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