J'utilise allure framework pour générer des rapports pour mes tests de pytest et mes tests de comportement (BDD). En pytest le code est:Comment attacher des captures d'écran au rapport html d'allure-sehave? Pour pytest il fonctionne bien mais «se comporte», aucune pièce jointe n'est ajoutée
import allure
from allure.constants import AttachmentType
#use the below statement to attach the screenshot
allure.attach('screenshot', self.driver.get_screenshot_as_png(), type=AttachmentType.PNG)
Cependant, je ne peux pas trouver un moyen similaire se comporte pour fixer les captures d'écran à mon rapport html
double possible de [Comment un dd une capture d'écran pour attirer le rapport avec python?] (https://stackoverflow.com/questions/29929244/how-to-add-a-screenshot-to-allure-report-with-python) –