Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Attaching client side screenshots to test reports #100

Closed
wants to merge 9 commits into from

Conversation

mederic
Copy link

@mederic mederic commented Jan 17, 2017

Hi guys!

This is for #99.

After adding androidTestCompile 'com.shazam.fork:fork-client:2.1.0-SNAPSHOT' as app dependency, screenshots can be taken using Fork.screenshot(context).

This requires android 4.3 at least as it uses UiAutomator to grab screenshots. It will have no effect below.

Reports looks like that if some screenshots have been taken:

screenshot

This client could be used as well to host custom test annotations (@Systrace, @Gpu, ...) for detailed reports.

I look forward to hear your comments and reviews! :)

@iordanis
Copy link
Member

Hi Mederic!

I am not sure if it's worth the complexity to keep screenshots when we already have videos. Are there any compelling reasons? In which cases do you prefer screenshots?

@mederic
Copy link
Author

mederic commented Feb 1, 2017

Hi Iordanis!

Videos we have are perfect to investigate on failing tests, but here are some examples of screenshot usage we can't have with videos:

  • to automate play store screenshot generation/upload
  • to have a visual inspection of the app on multiple devices
  • to help non-technical people to read fork reports
  • ...

This feature allows choosing key points to capture. In more, screenshots are reported whatever the test result is. I think those are the main advantages over video :)

@alexstyl alexstyl force-pushed the master branch 2 times, most recently from 8635817 to 5f53120 Compare August 28, 2019 13:20
@silviul silviul closed this Sep 3, 2020
@silviul
Copy link
Contributor

silviul commented Sep 3, 2020

Closed because it's very old.

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.

None yet

4 participants