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

Make screenshot storage more explicit #82

Open
simonmeggle opened this issue Dec 9, 2022 · 1 comment
Open

Make screenshot storage more explicit #82

simonmeggle opened this issue Dec 9, 2022 · 1 comment

Comments

@simonmeggle
Copy link

simonmeggle commented Dec 9, 2022

Hi,
the argument save_to_disk is currently implying that you do not want to embed the file into the HTML log.
Imho, it is suboptimal to control two different things with one argument. It should be configurable independently.

Concrete use case is e2e monitoring with Robot Framework/Robotmk and Checkmk. The HTML log gets transferred to the Checkmk server, where it gets stored on file system and linked in the WUI. The embedded screenshots are really helpful here.
But in addition to embedding there is still a strong need to keep the screenshot files on the test client itself:
Sometimes the SUT shows a fatal error in the interface, which the development team wants to track down in the server logs.
If we had the screenshots all in one directory on the client, we could simply sort them by time and browse through them - the timestamp of this error could be easily determined.
Currently, I would have to open each individual HTML log file, expand the nodes, and see if the error image I'm looking for is in there.

My proposal is to add embed as optional parameter:

# only link in log (store = False, embed=False) 
Take Screenshot
# link in log, store on disk
Take Screenshot  save_to_disk=True
# embed in log, store on disk
Take Screenshot  save_to_disk=True  embed=True

Before I create a PR, what is your opinion about this?

@rticau
Copy link
Owner

rticau commented Dec 12, 2022

Hi @simonmeggle. I do not see any problem with having the possibility to both embed and store screenshots on disk. Thanks for taking the time to provide a PR.

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

2 participants