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

Selenide, Jenkins // After running jobs on locally deployed Jenkins, the screenshot in allure looks very strange (black screen) #366

Open
StasiukMarian opened this issue Jul 3, 2024 · 0 comments
Labels

Comments

@StasiukMarian
Copy link

StasiukMarian commented Jul 3, 2024

Jenkins and plugins versions report

Brief info:
I deployed Jenkins locally and configured the necessary plugins.
I take a screenshot during execution and in allure I see that screenshot is empty (black screen) in the report

Environment:
Allure Jenkins Plugin - Version 2.31.1
Selenide version - 7.3.2
Chrome version - 126.0.6478.127

What Operating System are you using (both controller, and any agents involved in the problem)?

Controller: Windows 11
Agents: Windows 11

Reproduction steps

  1. I configured code to take a screenshot which was working previosly:
@Listeners({TextReport.class})
public class BaseTest {
    @BeforeClass
    public void configuration() {
            SelenideLogger.addListener("AllureSelenide", new AllureSelenide()
                .screenshots(true)
                .savePageSource(false));
    } 
    }

also attached pom.xml file:
pom.txt

  1. I created locally freestyle job with a:
    Source code management - Git,
    Build Steps - Invoke top-level Maven targets - Goals: clean install
    Post-build Actions - Allure report

Expected Results

After bulid done should be created allure report with a screenshot if test failed:

Local execution from IntelliJIdea:
image

Actual Results

After bulid done created allure report with a screenshot if test failed:

Execution from Jenkins - Screenshot is empty (black screen if download):
image

Screenshot:
1719940956731 0

Anything else?

Notes:
With the same code everything works month ago.

After installing a new version Jenkins with Allure Jenkins Plugin - Version 2.31.1 this issue happens.

Also attaching github project:
https://github.com/StasiukMarian/sep-2023-aqa.git

Are you interested in contributing a fix?

No response

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

No branches or pull requests

1 participant