@allure.step
@allure.step('Step with placeholders in the title, positional: "{0}", keyword: "{key}"')
@allure.step('step in conftest.py')
------------------------------------
allure.attach(body, name, attachment_type, extension)
with allure.step("Taking screenshot"):
allure.attach(self.driver_get_screenshot_as_png(), name="Screenshot", attachment_type=AttachmentType.PNG)
------------------------------------
@allure.description_html(<string that is HTML>)
@allure.description(<string>)
-------------------------------------
@allure.title(<string>)
@allure.title("Parameterized test title: adding {param1} with {param2}")
@pytest.mark.parametrize('param1,param2,expected', [
(2, 2, 4),
(1, 2, 5)
])
def test_with_parameterized_title(param1, param2, expected):
assert param1 + param2 == expected
-------------------------------------
@allure.link('https://www.youtube.com/watch?v=4YYzUTYZRMU')
@allure.link('https://www.youtube.com/watch?v=Su5p2TqZxKU', name='Click me')
@allure.issue('140', 'Pytest-flaky test retries shows like test steps')
@allure.testcase(TEST_CASE_LINK, 'Test case title')
----------------------------------Check how it works on doc
@allure.testcase(TEST_CASE_LINK, 'Test case title')
@allure.story('epic_1')
@allure.feature('feature_2')
-----------------------------------
@allure.severity(allure.severity_level.TRIVIAL) # NORMAL, CRITICAL, BLOCKER, MINOR