Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Klov require absolute path for image upload to klov server #89

@iamakshayshar

Description

@iamakshayshar

Hi @anshooarora, When working for UI Automation the right practice is that we pass the path of the image which is not from the local machine path, so as when we share the extent report along with the screenshot folder, the images should work and not break the path. Thus we follow the code as below,

String relativePathForReport = "./" + ReportsManager.getScreenShotFolderPath() + "/" + screenshotName
+ ".png";
ReportsManager.getTest().info("Snapshot below: " + screenshotName,
MediaEntityBuilder.createScreenCaptureFromPath(relativePathForReport ).build());

But when using Klov, the images don't get uploaded as it requires the absolute path of the image to get uploaded to the klov server.

request you to please fix this.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions