How to append logs of Pytest into Allure Report
问题 How can i get to show all the logs of pytest into Allure. and what are stdout and stderr used for ? Please check the Highlighted Code which i am referring to 回答1: The stdout and stderr are used to display output produced by tests to those steams. To get them (and log ) populated in Allure report your test or application executed by test have to produce output to corresponding streams. import logging import sys logger = logging.getLogger() logger.setLevel(logging.DEBUG) def test_001(): logger