#Tutorials

Published: 11 February 2023
on channel: RoadToAutomation -- Sadik
174
2

In this tutorials you will learn how to skip and fail test with reason

@pytest.mark.skip(reason="Failing due to defect and reported Jira Ticket 123")
pytest.skip("Test Inprogress")

@pytest.mark.skipif(sys.platform.startswith("win"), reason="Only for linux or Mac")

if sys.platform.startswith("win"):
pytest.skip("skipping windows-only tests", allow_module_level=True)

XFail: mark test functions as expected to fail
@pytest.mark.xfail
@pytest.mark.xfail(reason="There are some defect in scenario and issue reported in Jira with ID")
@pytest.mark.xfail(sys.platform == "win32", reason="There are some defect in scenario and issue reported in Jira with ID")


On this page of the site you can watch the video online #Tutorials with a duration of hours minute second in good quality, which was uploaded by the user RoadToAutomation -- Sadik 11 February 2023, share the link with friends and acquaintances, this video has already been watched 174 times on youtube and it was liked by 2 viewers. Enjoy your viewing!