Skip to content

Add multiple screenshots to one test with junit5 #106

@tuemeister

Description

@tuemeister

In my test I am taking multiple screenshots and after taking the screenshot I call the embed method. But only one screenshot is in the target folder and therefore only one screenshot is visible in the report. I am calling the method like so:

ChainPluginService.getInstance().embed(identifier, screenshotDestination, "image/png");

Where identifier is identical for all calls (like it is for the log method, which works fine) and screenshotDestination is the File object of the screenshot.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions