allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

[Bug?] Screenshot is not added in generated allure reported

Open lynn57blocks opened this issue 1 year ago • 12 comments

Describe the bug When I run my playwright tests with allure-playwright, below is allure-playwright config playwright.config.ts: ["allure-playwright",{ detail: true, outputFolder: "./allure-results", suiteTitle: true, autoAttachScreenshots: true, categories: [{ name: "Outdated tests", messageRegex: ".FileNotFound.", }, ], }, ] Before generate allure report, I can see the screenshot under directory: allure-results. 截屏2024-09-05 下午5 14 11

After I run commands "allure generate ./allure-results -o ./allure-report", and then open the allure report, I can't find any screenshot. 截屏2024-09-05 下午5 31 39

Expected behavior The screenshot should be added to generated allure report automatically. Is there a way to add screenshot when generate allure report after playwright running?

Desktop (please complete the following information):

  • OS: Mac Pro
  • Browser: Chrome
  • Version: 128.0.6613.114
  • Playwright Version: 1.44.0
  • Allure-playwright: 3.0.0-beta.10

lynn57blocks avatar Sep 05 '24 09:09 lynn57blocks

I have the same problem reporter: [ ["allure-playwright", {outputFolder: "./allure-results/"}], ["line"] ], use: { trace: "retain-on-failure", headless: false, screenshot: { mode: "only-on-failure", fullPage: true, } }

mikicymulate avatar Sep 29 '24 05:09 mikicymulate

image It seems that the files are not saved in the right place. Can it be fixed?

mikicymulate avatar Sep 29 '24 05:09 mikicymulate

very annoying

asi4 avatar Sep 29 '24 06:09 asi4

I also see this. It also seems to attach screenshots so the last "step" (eg: test.step(() => { ... })) if a failure occurs inside one, instead of hosting the screenshot to the top level.

jmoses avatar Oct 07 '24 19:10 jmoses

I am seeing this issue as well. My screenshot is under the afterHooks for playwright integration

neighborhoodhacker avatar Oct 17 '24 15:10 neighborhoodhacker

I also have that issue, it started to occur after I updated allure-playwright to version 3.x.x, is there any workaround to fix it?

kamilulianowski-aqa avatar Nov 20 '24 14:11 kamilulianowski-aqa

@baev

ivan-krupskyi avatar Nov 21 '24 07:11 ivan-krupskyi

@baev

ivan-krupskyi avatar Dec 05 '24 10:12 ivan-krupskyi

I have the same issue.

borecz avatar Dec 06 '24 16:12 borecz

@baev do we have an ETA for this? Playwright is the most important framework so I think this is very relevant.

borecz avatar Dec 09 '24 20:12 borecz

Is there a version I can go back to that resolves this issue? Just spent too much time today trying to figure out why I had no screenshots in my pipeline reports to stumble on this thread and realize they were there all along.

clymerrm avatar Dec 13 '24 21:12 clymerrm

@clymerrm it works on any version before 3.x.x

kamilulianowski-aqa avatar Dec 23 '24 23:12 kamilulianowski-aqa