Here, I have integrated framework like (API + UI) in single framework using pytest and I want to use below hook with pytest framework:
@pytest.mark.hookwrapper
def pytest_runtest_makereport(item, call)
but when I'm using above hook in conftest.py file, it's launching web browser and saving screenshots for ui and api both types of testcase but here my requirement is that I only want browser should be launch and save screenshots for ui and not for api testcases .
Requirement:
is there any way in pytest framework or generally if we can customized browser launching and failure screenshots capturing for UI testcases only and not for api testcases. ?