Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Conversation

@email2vimalraj
Copy link
Collaborator

Currently, the extent report support to add the screen shot image as file. This PR proposes a new method to add the screen shot image as base64 string.

Why?
Most of the times, we send the report through email. This needs the image files also zipped together with the report html file. To avoid this, the user can use the base64 string of the png image file and add that in a report file using the method provided.
This solves the problem of email-able report also. 100% single report file.

Also, added the unit test package using which we can test the pieces of code. Currently, just added the unit test only for this method. I'll try to come up with unit tests for other methods in my future PRs.

@email2vimalraj
Copy link
Collaborator Author

Attached the sample report generated using the new method addBase64ScreenShot()
report.html.zip

@email2vimalraj
Copy link
Collaborator Author

@anshooarora : Please review

@anshooarora anshooarora merged commit 8719e4f into anshooarora:master Mar 23, 2016
@anshooarora
Copy link
Owner

Merged, this is a good addition.

@aonarun
Copy link

aonarun commented Jul 25, 2016

Hi Vimal,

Can you please share the code how you captured the snap using the Base64 and stored to a server. since am getting the snap in the report in my machine & not able to see the same in other machine. Am also having the same problem as you hava, while sharing the image files.

Thanks,
Arun

@moinuddin14
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants