Commit Graph

61 Commits

Author SHA1 Message Date
Vadim Tryshev 8675deee02 Switching to setting QS on and off via writing settings.
We can do this now because we hav all 6 devices in the lab.

Change-Id: I5d5fcd89086a3f945ed3fc204461cacbdde61a8a
2019-03-04 16:49:50 -08:00
Vadim Tryshev ceedc95d4c Slowing down dismiss gesture to reduce flakiness
Change-Id: I13a1d2053e841994df537896c4fe397f68fa4a65
2019-02-26 17:24:08 -08:00
vadimt a31f7eb68d Using different swipe length to switch to Overview.
Depends on whether swiping from Workspace or Background.

Change-Id: I0f647e85080ee1458a0f18cb132b87890379260e
2019-02-25 16:26:43 -08:00
Sunny Goyal 50d5cb85f2 Reducing the swipe length for going to overview to account for
recent threshold changes

Bug: 125795067
Change-Id: I53a9b833cc1b73626fec13742f3ea5ccbfc6abb4
2019-02-25 14:32:37 -08:00
vadimt 5616670a5a Fixing swipe-up mode recognition in TAPL
It failed on Cuttlefish

Change-Id: I81e168f133d51d7c140897cd6847bf30da608d70
2019-02-15 18:04:54 -08:00
vadimt 2a648aa894 Moving state ordinals to TestProtocol
These checks immediately broke after recent change of ordinals.

Test: Tapl tests
Change-Id: Ie040f452d3f31c86f780e6f38c6f9afa0d0dcbf3
2019-02-14 17:47:11 -08:00
vadimt 0589b07829 Disable state checks.
They fails for a reason I don't understand.

Change-Id: Ie3b5407a8a3efa3bf5f0f75562191191b0e8e9a5
2019-02-14 17:10:43 -08:00
vadimt 42a88b9681 Sending state ordinals from Launcher to TAPL
This improves diagnostics.

Test: TAPL tests
Change-Id: I0ebb533513405372ea7c58a36910160cfb6d8368
2019-02-14 13:08:01 -08:00
Vadim Tryshev 9d2d694782 Merge "Always waiting for the drop bar to go away after an icon drag." into ub-launcher3-master 2019-02-13 21:16:44 +00:00
vadimt daa518f2a5 Always waiting for the drop bar to go away after an icon drag.
Should fix a test flake.

Test: affected tests
Change-Id: Icfb2a18aa625ba5435a3311d40ce30b5fdcc592e
2019-02-13 12:31:30 -08:00
Vadim Tryshev 0baa2b803a Merge "Quick plug to solve flakiness caused by switching QS on/off" into ub-launcher3-master 2019-02-13 18:45:35 +00:00
Sunny Goyal 56e3685904 Adding temporary workaround for for home click getting ignored
Also fixing a concurrent modification exception is recents callback

Bug: 124239413
Change-Id: Id7bf17505843c8e20bdaa3fc89481acd4e94290a
2019-02-12 13:30:04 -08:00
vadimt d4090431f5 Quick plug to solve flakiness caused by switching QS on/off
Will be followed by a better fix.

Test: Stress-testing with TAPL
Change-Id: Ie0ca1e9b7c6c9a885c752df5f76903898615e8fb
2019-02-11 10:52:31 -08:00
Vadim Tryshev 12a9f3f6e0 Merge "Waiting for the drop bar to go away after dragging an icon" into ub-launcher3-master 2019-02-09 02:20:30 +00:00
Vadim Tryshev 06344e7987 Slowing down workspace test fling
This will eliminate test flakiness

Test: tapl tests
Change-Id: I258f5e134771a93519fa1474ae09df3eac8a825f
2019-02-08 11:50:19 -08:00
Vadim Tryshev 2015b3bf65 Waiting for the drop bar to go away after dragging an icon
This should remove test flakes like: https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=2c560d05-9d50-4fad-9798-dc77858f2d11&target=com.android.launcher3.tests

Test: AOSP TAPL tests
Change-Id: I01899bec349ed507a03fd02196a35990c48fd46b
2019-02-07 10:43:43 -08:00
vadimt e743c80a14 Reducing speed of widgets fling
The hope is that this will solve flakiness of widgets tests in AOSP.

Test: TaplTestsLauncher3.testWidgets
Change-Id: I2ecc18b9eb7eeb3fd8b11fcc580a529f545c3af9
2019-02-05 08:37:17 -08:00
vadimt 8ac8d29121 Adding dismiss-all method
See the bug.

Bug: 123259701
Change-Id: I4b41d2cfe14c53db1a99cb6a693d3047057fa925
Tests: testOverview
2019-01-30 10:36:52 -08:00
vadimt 446bf0092e Fixing flakiness of ShortcutsToHomeTest
More precisely, an experiment on whether this will help. The theory is
that the current implementation where we long-press an icon for a fixed
period of time sometimes doesn't work because Launcher might start
measuring the press time with some delay.

Now we keep pressed the icon until the menu appears.

Change-Id: I1cead505726a998316a73d81b10160517f17f08f
Tests:ShortcutsToHomeTest.testDragIcon
2019-01-29 11:40:59 -08:00
vadimt 982ff0714f Fixing swipe from background gesture
Change-Id: I5e49dca41308292250d8485faa4df56605cd94ce
Tests: StartLauncherViaGestureTests, TaplTests
2019-01-14 15:54:24 -08:00
vadimt 367a485599 Fixing menu tests when context menu caption is the first line
The tests mistakenly took the caption (if on top) as the first context
menu item.

Change-Id: Ibd3264814f2c818742ab164503bf7136fedcde31
Tests: com.android.launcher3.ui.ShortcutsToHomeTest
2019-01-11 13:26:02 -08:00
vadimt 1b094db2e1 Not precalculating launcher package in Tapl
It may change (say from 'need to choose' or 'nexus launcher' to
launcher3) during the test execution.

Test: Launcher3:com.android.launcher3.ui.AllAppsIconToHomeTest, fallback recents, TaplTests
Change-Id: I529dd5e28749012731af05edd0adaa4b7d205581
2019-01-10 14:54:02 -08:00
vadimt b4b88afda0 Better diagnostics for waitForLauncherObject
AOSP tests still fail, that's why.

Test: LauncherInstrumentation.getWorkspace
Change-Id: I98610040e571b5a7cb656908cfea328f1ae08c2c
2019-01-10 12:00:08 -08:00
vadimt 263fb0d72a Fixing AOSP tests using TAPL
They referred a wrong package name.

Change-Id: I40752028fd65df7ea33fd2587d992f3c5569ce45
Tests: OOP tests, Nexus Tapl tests, AOSP drag-icon, Fallback Overview
2019-01-09 11:09:06 -08:00
Vadim Tryshev ed01e28408 Moving TaplTests to AOSP
And fixing TAPL for AOSP.

Bug: 110103162
Test: TaplTests
Change-Id: Ib9fef02b789a9c7444643550d56b9dda4e085b03
2018-12-07 12:00:41 -08:00
Vadim Tryshev 8effd11e08 Requiring apps_view on workspace
Update TAPL to reflect that apps_view is visible on workspace.

Test: TaplTests
Change-Id: I27e0f43d9200c18571573acd0ddedc1dc064cdc3
2018-11-07 18:07:50 -08:00
Vadim Tryshev fdd1905e27 Convert more tests to TAPL
Bug: 110103162
Test: running these tests
Change-Id: I76b145eb4d16aca20ce30a5abca8f4568e3297e4
2018-11-05 10:32:01 -08:00
Vadim Tryshev ba8957b3c2 Converting ShortcutsLaunchTest gesture-stable
By converting to TAPL.

Bug: 110103162
Test; TaplTests

Change-Id: I788405f2e52cc0e29ebf69e58feda46b408e9eb9
2018-11-01 17:45:59 -07:00
Sunny Goyal 897931a56a Fixing overview package name chech in TAPL
Bug: 117568664
Change-Id: Icac29b4c2c600b90aa21d6db0a7a81403eb3c785
2018-10-11 13:41:27 -07:00
Vadim Tryshev 016ca90736 Merge "Keep hunting down flakes in testOpenCloseMessagesApp" into ub-launcher3-master 2018-10-10 02:02:31 +00:00
Sunny Goyal 4ed58d6c03 Adding tests for fallback recents when a 3rd party launcher is installed
Change-Id: I1d4da13cc779f49832008b12b9628d01631faffe
2018-10-09 14:25:01 -07:00
Vadim Tryshev 61d8afc628 Keep hunting down flakes in testOpenCloseMessagesApp
More logging + removing a deprecated method.

Bug: 110103162
Test: TaplTests
Change-Id: Icdf6e297b09d73fcadb1fbe82f80d980280d43c8
2018-10-08 17:15:34 -07:00
Vadim Tryshev c295098e18 Enabling "in test harness" flag with a direct call
This allows running in-proc tests without enabling test harness on
Android and restarting Launcher.

Bug: 110103162
Test: TaplTests
Change-Id: Ife44eff4760eb1349a10847efe2c1f27643bf146
2018-10-04 16:33:45 -07:00
TreeHugger Robot 19e0e8ab1f Merge "Add support for testing in portrait mode" into ub-launcher3-master 2018-09-21 22:03:07 +00:00
Vadim Tryshev 802a28946c Add support for testing in portrait mode
Bug: 110103162
Test: TaplTests
Change-Id: I7f633405c04984ea8f04acdc6dd4ad21019d3409
2018-09-21 14:53:11 -07:00
TreeHugger Robot ce21dc3f74 Merge "Add more checks to AppIcon.launch()" into ub-launcher3-master 2018-09-21 05:11:58 +00:00
Vadim Tryshev 3c6607e298 Add more checks to AppIcon.launch()
Apparently, one platform tests starts Messages, and Messages
simply doesn't start.

This check will help to hunt down the problem.

Bug: 110103162
Test: affected tests
Change-Id: I8d781647a2e680e31e96db40d94b89e7728aaf11
2018-09-18 20:03:28 -07:00
Vadim Tryshev 66408d90e1 Adding logging pressHome()
Will help understanding flakiness of platform smoke tests.

Bug: 110103162
Test: TaplTests
Change-Id: I7c112554f8281ebe0e62026644e5705a7d1218a2
2018-09-18 14:44:21 -07:00
Vadim Tryshev ee598ada79 Adding logging to debug jank test problems
Bug: 110103162
Test: TaplTests
Change-Id: I0bae4f2242031ebcdbb24638f61a6b8d37b162e2
2018-09-13 14:56:49 -07:00
Vadim Tryshev e02e06a9d4 Including go/tapl in error messages
Bug: 110103162
Test: making a test fail, checking a link
Change-Id: If64948a6656214c5065150803b2a1a7020fb82c5
2018-09-07 15:46:59 -07:00
Vadim Tryshev 0831c7cefb Adding README for TAPL
Bug: 113287120
Test: Opening http://go/tapl
Change-Id: I77faf1474c582b08386298ed45ff4392885b05a7
2018-09-05 18:08:55 -07:00
TreeHugger Robot b75f5366f9 Merge "Removing tryGetAllApps" into ub-launcher3-master 2018-09-04 21:01:05 +00:00
Vadim Tryshev 46e81de3d2 Not assuming that all accessibility events contain bundle
Bundles come from Launcher being explicitly asked a question.
When waiting for ANY event, it may contain any parcelable, so it's
incorrect to cast it to Bundle.

See this:
https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=9b8d0d26-f81d-427f-8857-b8d71e012504&target=android.test.appsmoke

Bug: 110103162
Test: will watch for reducing flakes in platform tests.
Change-Id: I989cee018183140d7fd672c0a925f03441ca339c
2018-08-30 12:07:39 -07:00
Vadim Tryshev a90d17b411 Removing tryGetAllApps
There were plans to use it from platform tests, but this turned to be
unnecessary.

Bug: 110103162
Test: compiling
Change-Id: I39bf3f4cff57018bec87dcb3e8dfee522121d85b
2018-08-29 11:54:49 -07:00
Vadim Tryshev 530c3cd018 Removing AllApps.getObjectDeprecated()
I was planning to use it from platform tests, but managed to avoid this.

Bug: 110103162
Test: TaplTests
Change-Id: Ic7bd6afe2097d64f8baca59b74d61e2ff7ff9c76
2018-08-29 18:33:39 +00:00
Vadim Tryshev fd34b94b33 Passing instrumentation to LauncherInstrumentation
UiDevice, the old param, belongs to a support lib; as TAPL switched to
AndroidX, it became impossible to pass it from platform tests
that still use the old support lib.

Bug: 110103162
Test: TaplTests
Change-Id: I1f82099b432912fa40da96df0d6179579aab66a3
2018-08-21 18:45:02 -07:00
TreeHugger Robot 23bb710b3d Merge "Converting tests to Androidx" into ub-launcher3-master 2018-08-22 01:22:56 +00:00
Vadim Tryshev 0a9f3ab4a6 Converting tests to Androidx
Bug: 112610679
Change-Id: I712826e668f1fbeb4e47cc541d4f5296d8eb74c0
2018-08-21 15:04:48 -04:00
Vadim Tryshev 923b81c14f Reducing time of TaplTests run
From ~245 to ~150 sec.

Done by removing testing behaviors that don't depend on QS from tests
marked with QuickstepOnOff attribute.

Also fixing a bug that went unnoticed: now restoring Launcher QS mode
after each test.

Bug: 110103162
Test: TaplTests suite
Change-Id: I715158b47ac1e370f578b8d4f13d9633283763fe
2018-08-16 17:55:34 -07:00
Vadim Tryshev b6398a1eb8 Sharing protocol constants between Launcher and TAPL
Bug: 110103162
Test: TaplTests
Change-Id: I5b2a2b8576a7a6ea4a156f00858711496d6b5bba
2018-08-14 19:53:43 -07:00