-
Notifications
You must be signed in to change notification settings - Fork 344
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
Command to take screenshot during test execution #632
Comments
@jgwilson42 The following is a workaround/hack. Let me know what you think. |
Interesting approach. Assuming this works with relative paths this would be fine. The reason for needing relative paths is that the tests are run from travis and then the report is zip'd up and moved to google storage. |
So, I was needing take screenshot for each step, then, I use Selenium to take picture and use Gauge.writeMessage to add image in report. It's working for me.
Another approach, I created a step to take screenshot between scenarios.
Congratulations Gauge team, it's a fantastic application, I imagine incredible possibility of using this tool like: Automation Test, Performance Test, Load Test, Functional Specification... |
I am going to start work on this. Notes:
Thoughts/Feedback welcome. |
reason for not have them as separate files ? |
Mostly historic. It used to be a single page application, but had performance issues when loading huge suite results. We did not externalize the screenshots when we used the Golang templating. So, given the current implementation, it is simpler to include the screenshots as inline base64 images. I would like to know if the preference is to have files. |
personally yes. when filing e.g. a bug ticket i do not need to somehow link the whole report with all its files, but can simply add this one screenshot that shows the failure to the ticket |
Language runner support: |
Should be available in nightly >= 18/07/2018 |
allow screenshots to be taken via test code, getgauge#632 tests for screenshot mapping, getgauge#632 fixed vendoring, travis and appveyor build scripts remove godep, use go 1.10 use proto.Equal to check proto message equality reduce build log, use --verbose to print details run appveyor tests in parallel
Added Screenshot for scenarios and specs, getgauge/gauge#632
added support for capturing screenshot in Step, getgauge/gauge#632
This is a feature request.
Expected behavior
I would like to be able to take a screenshot at a specific point in the test execution. In the same way that I can use
Gauge.writemessage()
I would like a command likeGauge.screenshot()
.Currently I am using the following to write the screenshot to the disk, it would be much better to include the screenshot in the gauge report.
Gauge version
The text was updated successfully, but these errors were encountered: