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

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

Open
iamakshayshar opened this issue Jan 19, 2022 · 0 comments
Open

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

iamakshayshar opened this issue Jan 19, 2022 · 0 comments

Comments

@iamakshayshar
Copy link

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.

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

1 participant