Handling of abnormal use case titles in HTML reports generated by allure

The abnormal situation generated is as follows:
Insert picture description here
This situation is due to the use of pytest.mark.parametrize to parameterize the batch generation of test cases, and ids will be used as the title of the application case, as follows: the
Insert picture description here
Chinese unicode code will be displayed here, You need to create a new file conftest.py at the same level or parent level of the test case, and add the following code to process.
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/Love_Polaris/article/details/112986017