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

Issue 2146713003: Refactor and add special test runner to support Espresso tests (Closed)

Created:
4 years, 5 months ago by the real yoland
Modified:
4 years, 4 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor and add special test runner to support Espresso tests The test runner is based off previously available GoogleInstrumentationRunner to provide Activity lifecycle status for Espresso test (because every interaction in Espresso is synced). BUG=627910

Patch Set 1 #

Total comments: 20

Patch Set 2 : Change after john and mike's comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -226 lines) Patch
M android_webview/tools/automated_ui_tests/BUILD.gn View 1 3 chunks +18 lines, -6 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml View 0 chunks +-1 lines, --1 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/java/res/layout/fullscreen_webview.xml View 0 chunks +-1 lines, --1 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/java/res/values/strings.xml View 0 chunks +-1 lines, --1 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java View 0 chunks +-1 lines, --1 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/javatests/AndroidManifest.xml View 1 chunk +2 lines, -2 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/LoadDataTest.java View 0 chunks +-1 lines, --1 lines 0 comments Download
A + android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewTestBase.java View 0 chunks +-1 lines, --1 lines 0 comments Download
A android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java View 1 1 chunk +164 lines, -0 lines 3 comments Download
D android_webview/tools/automated_ui_tests/java/AndroidManifest.xml View 1 chunk +0 lines, -28 lines 0 comments Download
D android_webview/tools/automated_ui_tests/java/res/layout/fullscreen_webview.xml View 1 chunk +0 lines, -17 lines 0 comments Download
D android_webview/tools/automated_ui_tests/java/res/values/strings.xml View 1 chunk +0 lines, -9 lines 0 comments Download
D android_webview/tools/automated_ui_tests/java/src/org/chromium/webview_ui_test/WebViewUiTestActivity.java View 1 chunk +0 lines, -41 lines 0 comments Download
D android_webview/tools/automated_ui_tests/javatests/AndroidManifest.xml View 1 chunk +0 lines, -25 lines 0 comments Download
D android_webview/tools/automated_ui_tests/javatests/src/org/chromium/webview_ui_test/test/LoadDataTest.java View 1 chunk +0 lines, -50 lines 0 comments Download
D android_webview/tools/automated_ui_tests/javatests/src/org/chromium/webview_ui_test/test/WebViewTestBase.java View 1 chunk +0 lines, -54 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
the real yoland
4 years, 5 months ago (2016-07-13 18:23:56 UTC) #2
jbudorick
https://codereview.chromium.org/2146713003/diff/1/android_webview/automated_ui_tests.isolate File android_webview/automated_ui_tests.isolate (right): https://codereview.chromium.org/2146713003/diff/1/android_webview/automated_ui_tests.isolate#newcode7 android_webview/automated_ui_tests.isolate:7: '<(DEPTH)/android_webview/tools/automated_ui_tests/test/data/', This shouldn't be necessary any more. We should ...
4 years, 5 months ago (2016-07-13 18:39:20 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/2146713003/diff/1/android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml File android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml (right): https://codereview.chromium.org/2146713003/diff/1/android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml#newcode1 android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml:1: <!-- On 2016/07/13 at 18:39:19, jbudorick wrote: > What's ...
4 years, 5 months ago (2016-07-13 19:38:20 UTC) #4
sgurun-gerrit only
https://codereview.chromium.org/2146713003/diff/1/android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml File android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml (right): https://codereview.chromium.org/2146713003/diff/1/android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml#newcode1 android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml:1: <!-- On 2016/07/13 19:38:20, mikecase wrote: > On 2016/07/13 ...
4 years, 5 months ago (2016-07-14 00:26:26 UTC) #6
the real yoland
https://codereview.chromium.org/2146713003/diff/1/android_webview/automated_ui_tests.isolate File android_webview/automated_ui_tests.isolate (right): https://codereview.chromium.org/2146713003/diff/1/android_webview/automated_ui_tests.isolate#newcode7 android_webview/automated_ui_tests.isolate:7: '<(DEPTH)/android_webview/tools/automated_ui_tests/test/data/', On 2016/07/13 at 18:39:19, jbudorick wrote: > This ...
4 years, 5 months ago (2016-07-14 03:10:00 UTC) #7
jbudorick
On 2016/07/14 00:26:26, sgurun wrote: > https://codereview.chromium.org/2146713003/diff/1/android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml > File android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml > (right): > > https://codereview.chromium.org/2146713003/diff/1/android_webview/tools/automated_ui_tests/apk/java/AndroidManifest.xml#newcode1 ...
4 years, 5 months ago (2016-07-14 17:46:13 UTC) #8
sgurun-gerrit only
https://codereview.chromium.org/2146713003/diff/20001/android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java File android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java (right): https://codereview.chromium.org/2146713003/diff/20001/android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java#newcode70 android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java:70: waitForIdleSync(); why is this needed? https://codereview.chromium.org/2146713003/diff/20001/android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java#newcode83 android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java:83: protected void ...
4 years, 5 months ago (2016-07-14 20:32:20 UTC) #9
aluo
4 years, 5 months ago (2016-07-15 23:42:13 UTC) #11
https://codereview.chromium.org/2146713003/diff/20001/android_webview/tools/a...
File
android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java
(right):

https://codereview.chromium.org/2146713003/diff/20001/android_webview/tools/a...
android_webview/tools/automated_ui_tests/apk/javatests/src/org/chromium/webview_ui_test/test/WebViewUiInstrumentationTestRunner.java:46:
ApplicationLifecycleMonitorRegistry.registerInstance(mApplicationMonitor);
Missing IntentMonitorRegistry logic (it's more involved to hook it up correctly,
see
MonitoringInstrumentation.java in android.support.test.runner)  Without it,
tests that use espresso-intents won't work.

Powered by Google App Engine
This is Rietveld 408576698