1
votes

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

3
No, but you can probably convert the xml or json (separate module) outputs pretty easily.thebjorn
Do you have any example?olia
Ok I'll try to search:) thank you anywayolia

3 Answers

0
votes

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

0
votes

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

0
votes

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.