pytest-allure attach screenshots to the report

import allure
from allure.constants import AttachmentType

allure.attach('screenshot', self.driver.get_screenshot_as_png(), type=AttachmentType.PNG)

That's all...

Comments

  1. Nice post. My company know about anworth services limited 2. If you want to know about anworth services limited 2 then know please contact with my company.
    Thanks.

    ReplyDelete

Post a Comment

Popular Posts