How to create multiple test case in Allure report python

Viewed 292

I am trying to integrate allure report with python, so i have a single python class(Unit test) which contains three methods setup, test, tearDown In test method i read a excel file[loop through it] and verify some content but in allure report only 1 test is displayed, Is there any way to mark this looping method as a individual test case, so that in allure reported multiple test cases should be displayed.

1 Answers

A testcase is a function. So you could turn to pytest.mark.parametrize.

Related