-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Screenshots in android example #548
Comments
Robotium 4.2 has screenshot capability built-in: http://robotium.googlecode.com/svn/doc/index.html This should make it easy to embed the image bytes from |
I would recommend to have a look here: https://github.com/calabash/screenshotTaker This little helper from the calabash guys works much better, than the one from robotium, with which I had a few issues like:
|
I am trying to resolve this bug. Max, how do I grab a hold of the failed object when running with cucumber instrumentation? |
@arunks I'm not sure what your mean by "failed object". Inside CucumberInstrumentation, the AndroidReporter is used to report a status back to the Instrumentation. That's where you can find out what the current Feature, Scenario and Step is. |
@aslakhellesoy is this just a request to extend the examples or is this about adding functionality to capture screenshots from within cucumber android? |
It's both :-). Would be nice to run the android example and see a report with a screenshot of the UI. |
I just discovered the "scenario parameter in hooks"-feature and the I am unsure if it makes sense to embed such a functionality into cucumber-android, but I will at least provide an example. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is an extension of #547.
We should have an after hook that calls
scenario.embed
to embed a screenshot. The current android formatter just ignores them, but it should be improved so that the screenshots can be accessed on the local filesystem after the run.Alternatively they could use HTTP to post them somewhere.
The text was updated successfully, but these errors were encountered: