How to add a screenshot to allure report with python?

后端 未结 3 1778
悲&欢浪女
悲&欢浪女 2020-12-16 23:58

I have this code:

# coding: utf-8
from selenium import webdriver
import pytest
import allure


@pytest.yield_fixture(scope=\'session\')
def driver():
    _dr         


        
3条回答
  •  旧巷少年郎
    2020-12-17 00:42

    in your conftest.py add the following, make sure you already have a driver fixture as well:

    codeblock

提交回复
热议问题