Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Issue 2854823007: Move screenshot capture to Java-side. (Closed)

Created:
3 years, 7 months ago by mikecase (-- gone --)
Modified:
3 years, 7 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, danakj+watch_chromium.org, jbudorick+watch_chromium.org, mikecase+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move screenshot capture to Java-side. Currently, the post-test screenshots are taken on the python after the test has finished (and Activity destroyed). Moving the screenshot capture into Android code so we can snap a pic before Activity is gone. Review-Url: https://codereview.chromium.org/2854823007 Cr-Commit-Position: refs/heads/master@{#470816} Committed: https://chromium.googlesource.com/chromium/src/+/fc8efc725e151ffc2f2584b75d9c52fd16cf3721

Patch Set 1 #

Patch Set 2 : Move screenshot capture to Java-side. #

Patch Set 3 : Move screenshot capture to Java-side. #

Patch Set 4 : Move screenshot capture to Java-side. #

Total comments: 15

Patch Set 5 : Move screenshot capture to Java-side. #

Total comments: 2

Patch Set 6 : Move screenshot capture to Java-side. #

Total comments: 6

Patch Set 7 : John's comments #

Patch Set 8 : Move screenshot capture to Java-side. #

Total comments: 7

Patch Set 9 : Yoland's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -17 lines) Patch
M base/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
A base/test/android/javatests/src/org/chromium/base/test/ScreenshotOnFailureStatement.java View 1 2 3 4 5 6 7 8 1 chunk +76 lines, -0 lines 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 2 3 4 5 6 7 8 6 chunks +42 lines, -17 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
mikecase (-- gone --)
3 years, 7 months ago (2017-05-05 00:42:06 UTC) #2
jbudorick
Super excited about this. https://codereview.chromium.org/2854823007/diff/60001/base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java (right): https://codereview.chromium.org/2854823007/diff/60001/base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java#newcode164 base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java:164: return super.withAfters(method, test, base); nit: ...
3 years, 7 months ago (2017-05-05 01:21:59 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/2854823007/diff/60001/base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java (right): https://codereview.chromium.org/2854823007/diff/60001/base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java#newcode164 base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java:164: return super.withAfters(method, test, base); On 2017/05/05 at 01:21:58, jbudorick ...
3 years, 7 months ago (2017-05-05 18:09:19 UTC) #4
mikecase (-- gone --)
https://codereview.chromium.org/2854823007/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/2854823007/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode657 build/android/pylib/instrumentation/instrumentation_test_instance.py:657: if args.gs_results_bucket: I think I actually have to change ...
3 years, 7 months ago (2017-05-05 18:19:30 UTC) #5
mikecase (-- gone --)
https://codereview.chromium.org/2854823007/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/2854823007/diff/80001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode657 build/android/pylib/instrumentation/instrumentation_test_instance.py:657: if args.gs_results_bucket: On 2017/05/05 at 18:19:30, mikecase wrote: > ...
3 years, 7 months ago (2017-05-05 18:44:16 UTC) #6
mikecase (-- gone --)
friendly ping, would like to land this and have some other CLs that depend on ...
3 years, 7 months ago (2017-05-08 16:50:24 UTC) #7
jbudorick
https://codereview.chromium.org/2854823007/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java File base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java (right): https://codereview.chromium.org/2854823007/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java#newcode55 base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java:55: return getTestFileOutputRoot() + "/" + path; Should this check ...
3 years, 7 months ago (2017-05-08 17:08:39 UTC) #8
mikecase (-- gone --)
CL is perfect now. PTAL https://codereview.chromium.org/2854823007/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java File base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java (right): https://codereview.chromium.org/2854823007/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java#newcode55 base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java:55: return getTestFileOutputRoot() + "/" ...
3 years, 7 months ago (2017-05-08 18:35:32 UTC) #9
jbudorick
lgtm https://codereview.chromium.org/2854823007/diff/140001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2854823007/diff/140001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode264 build/android/pylib/local/device/local_device_instrumentation_test_run.py:264: screenshot_device_file = None optional nit: could do something ...
3 years, 7 months ago (2017-05-08 22:32:06 UTC) #10
jbudorick
On 2017/05/08 18:35:32, mikecase wrote: > CL is perfect now. PTAL :) > > https://codereview.chromium.org/2854823007/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/UrlUtils.java ...
3 years, 7 months ago (2017-05-08 22:32:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854823007/140001
3 years, 7 months ago (2017-05-09 02:46:48 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/430732)
3 years, 7 months ago (2017-05-09 02:58:16 UTC) #19
mikecase (-- gone --)
+ agrieve@ for review of base/BUILD.gn
3 years, 7 months ago (2017-05-09 14:57:19 UTC) #21
the real yoland
https://codereview.chromium.org/2854823007/diff/140001/base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java File base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java (right): https://codereview.chromium.org/2854823007/diff/140001/base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java#newcode163 base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java:163: return super.withAfters(method, test, new ScreenshotOnFailureStatement(base)); nit: would be great ...
3 years, 7 months ago (2017-05-09 15:23:28 UTC) #22
mikecase (-- gone --)
Done, and retested. yoland please take another quick look. agrieve@, when you get the chance, ...
3 years, 7 months ago (2017-05-10 02:55:10 UTC) #23
the real yoland
lgtm
3 years, 7 months ago (2017-05-10 18:10:32 UTC) #24
agrieve
On 2017/05/10 18:10:32, the real yoland wrote: > lgtm base lgtm
3 years, 7 months ago (2017-05-10 18:22:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854823007/160001
3 years, 7 months ago (2017-05-10 19:17:35 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/408077)
3 years, 7 months ago (2017-05-10 19:26:45 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854823007/160001
3 years, 7 months ago (2017-05-10 20:08:58 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/423390)
3 years, 7 months ago (2017-05-11 01:54:40 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854823007/160001
3 years, 7 months ago (2017-05-11 04:10:59 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 05:09:16 UTC) #39
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/fc8efc725e151ffc2f2584b75d9c...

Powered by Google App Engine
This is Rietveld 408576698