Closed vladyslavstetsenko closed 2 years ago
Any updates on this?
Any updates on this?
you can try @allure.link(f"{test_param}")
hey @vladyslavstetsenko you can do it with the following ways:
@pytest.mark.parametrize("test_link",
[pytest.param("https://example.com",
marks=pytest.mark.allure_link("https://example.com",
name='example',
link_type='link'))]
)
def test_link_by_param(test_link):
pass
@pytest.mark.parametrize("test_link",
[pytest.param("https://example.com")]
)
def test_link_by_dynamic(test_link):
allure.dynamic.link(test_link)
@pytest.fixture()
def test_link_fixture(request):
allure.dynamic.link(request.param)
return request.param
@pytest.mark.parametrize("test_link_fixture",
[pytest.param("https://example.com")],
indirect=True)
def test_link_by_fixture(test_link_fixture):
pass