Open Bug 980970 Opened 11 years ago Updated 2 years ago

Output a screenshot to the test log on Android when a test fails

Categories

(Testing :: Mochitest, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

Bug 968200 is an example where Firefox would show an alert and would time out waiting for somebody to click it. We should log a screenshot when a test times out. With that, debugging what's happening in that bug would take minutes rather than weeks.
I think for Android 4 this is not hard, I have an alias sitting around that does: adb shell /system/bin/screencap -p /sdcard/screenshot.png I'm not sure if that exists on 2.{2,3}.
blobber will help here too: pull screenshot.png to MOZ_UPLOAD_DIR and we are done!
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.