Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lynn57blocks opened this issue Sep 5, 2024 · 5 comments
Open

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

lynn57blocks opened this issue Sep 5, 2024 · 5 comments

Comments

@lynn57blocks
Copy link

lynn57blocks commented Sep 5, 2024

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
@mikicymulate
Copy link

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
Copy link

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

@asi4
Copy link

asi4 commented Sep 29, 2024

very annoying

@jmoses
Copy link

jmoses commented Oct 7, 2024

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.

@neighborhoodhacker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants