aboutsummaryrefslogtreecommitdiff
path: root/libs/UiAutomatorLib/src/com/android
AgeCommit message (Collapse)Author
2017-08-24Add a utility function in Base AfwTestCase class.xhjia
Bug: 64197345 Change-Id: I31add57ad9dc9c03bf3828a40bdc0f8ea2c9c6b4
2017-07-04Disallow page skipping of Google Services PageInsaf Latypov
Change-Id: Ic5b48927d15f382b5a7d75404bf9c71c34d8549e
2017-06-15PageSkipper is added to be used instead of intent.Insaf Latypov
Sending intent to open AddAccountPage from Setup Wizard is not reliable enough and does not represent a real user scenario. Therefore this logic was replaced by adding PageSkipper before AddAccountPage to skip all pages mainly related to network setup and irrelevant for the testcase. Change-Id: Id04b45a2c7a4ef37f5c6ec010223b8803cdaf461
2017-06-08Adjust Google Services page w.r.t. changes in GmsCore v12Vladislav Kuzkokov
Label on the button has been changed to "AGREE" which causes AfwTestUiWatcher to click it automatically. Change-Id: I934f909411660e0cf2ec4b30a5aa8d8a8b235fc3
2017-05-08Add id:next_button to cover new gmscore versionMariano Giardina
am: 61c4a8fd2e Change-Id: Ie8dabdf1d735879dc8f0ef998f3abd11ac2c74d0
2017-05-08Add id:next_button to cover new gmscore versionMariano Giardina
Bug: 38027913 Change-Id: I19fb7588a3850525a09e683cae1ccda5d1f840de
2017-05-03Add disabling page skipping in AfwTestUiWatcher.Insaf Latypov
Change-Id: Ia1bf22bd0808459e186058c922444a1e30ba17ab
2017-04-21Revert "Fix issue with closing add account page. am: ead36201ce"Insaf Latypov
This reverts commit b5193bae4fed9f1eacb0ee8cfc3ced933ec4ae9d. Change-Id: I98758157627ccdbb409189f1f66400c7dce3bdc3
2017-04-21Fix issue with closing add account page.Insaf Latypov
am: ead36201ce Change-Id: Ibbb6da3eedf9a47b74ffdc03edbbce6297e1c4c8
2017-04-21Fix issue with closing add account page.Insaf Latypov
Waiting two seconds for keyboard appearance is not reliable enough, because sometimes it take more then two seconds. Fix introduces retries and check if keyboard has appeared. Bug: 33073810 Change-Id: I3128d2668d057a30c0f2cb018d56fdb3f135d434 (cherry picked from commit 1dd99755da7c7641ff67ca6d41ba144ba862b559)
2017-04-19resolve merge conflicts of b766bcc to o branchJinhui Wang
Change-Id: Ib9fbc304e309018ea212d798784ce0258920ef6f
2017-04-19Merge "Make test harness pass on large display" into nyc-devJinhui Wang
2017-04-18Make test harness pass on large displayJinhui Wang
BUG: 37484156 Change-Id: I22b76863918e0ca16cae6fb0658e4cf45838036f
2017-04-06Added retries on getVisibleBounds call on scroll.Insaf Latypov
Bug: 36898931 Change-Id: Icefe3bd2253491ea5ec714f1609801beb3d436e3
2017-04-06Added retries on getVisibleBounds call on scroll.Insaf Latypov
Change-Id: Icefe3bd2253491ea5ec714f1609801beb3d436e3
2017-04-04Fixed skipping object search after the last scroll. DO NOT MERGEInsaf Latypov
Also, utility methods for finding objects are changed to make multiple attempts. BUG:36898931 Change-Id: I14fdd17f50914c0747aacc0809293fe0c6a454a8 (cherry picked from commit f9652006edc6119469c71773a6b722b4f95ef719)
2017-04-04Remove checking if the element is scrollable. DO NOT MERGEInsaf Latypov
Some scrollable elements are not marked as scrollable, so it is not possible to rely on scrollable property of widgets. BUG:36898931 Change-Id: I9612da368f344340e980d117b3e331863250135f (cherry picked from commit e8dd2e54a9c2b36f78d3e54ea67eb72d9ca88bb2)
2017-04-04Add scrolling using UiObject2 capabilities. DO NOT MERGEInsaf Latypov
Scrolling implemented in UiScrollable is considered obsolete, so a scrolling using modern UiObject2 is implemented. BUG:36898931 Change-Id: I086775447f371bb21b8345c28247e91d881d2086 (cherry picked from commit 38f581eb6ed227c0b8b8f67db2266c485e55873a)
2017-03-29Fix testDisallowedProvisioning testMariano Giardina
ErrorPage text changed in OC Change-Id: I749ff090c7426478b1fffcd5a52b79cc279caa26
2017-03-03Add scrollToItemAndClick method to WidgetUtils.Insaf Latypov
Change-Id: I363bc8e8b43fcf162330e8c1132f8966d5025881
2017-03-02Fix GoogleServicesPage as regards changes in UI.Insaf Latypov
Change-Id: I34f3583687be6feba4d4724683f3e37db8565aa8
2017-02-23Fix issue with closing add account page.Insaf Latypov
Waiting two seconds for keyboard appearance is not reliable enough, because sometimes it take more then two seconds. Fix introduces retries and check if keyboard has appeared. Change-Id: I3128d2668d057a30c0f2cb018d56fdb3f135d434
2017-02-17Set max attempts for WidgetUtils.safeGoBackUntilFound()Jinhui Wang
Without limit, it will loop for ever until timeout. Change-Id: I6484c6ccc8849ceb838ee52a81a322ef89aa4f69
2017-02-13Don't use UiDevice.waitForIdle()Jinhui Wang
Change-Id: I60a0552ef76eea20f59082474e532927ed7e7408
2017-02-03Added a method to WidgetUtil.Insaf Latypov
Added a method to WidgetUtil to press back until specified element is found. Change-Id: I0542c89992bb688072bdc34e72f27db94ee84b5c
2017-01-25Refactor several testdpc pagesJinhui Wang
- Rename SetupFinishPage to FinishSetupPage as that's what it says on the real UI - Renamed SetupFinishedAddAccountPage to SetupFinishedPage and add options for the next step. Change-Id: Ib58685a2874a7cd6f5a2a208cb49386b84d5ae8d
2017-01-24Fixed skipping object search after the last scroll.Insaf Latypov
Also, utility methods for finding objects are changed to make multiple attempts. Change-Id: I14fdd17f50914c0747aacc0809293fe0c6a454a8
2017-01-19Remove checking if the element is scrollable.Insaf Latypov
Some scrollable elements are not marked as scrollable, so it is not possible to rely on scrollable property of widgets. Change-Id: I9612da368f344340e980d117b3e331863250135f
2017-01-19Merge "Fix DO/PO/NFC/QR test failures on O"Jinhui Wang
2017-01-19Add scrolling using UiObject2 capabilities.Insaf Latypov
Scrolling implemented in UiScrollable is considered obsolete, so a scrolling using modern UiObject2 is implemented. Change-Id: I086775447f371bb21b8345c28247e91d881d2086
2017-01-18Fix DO/PO/NFC/QR test failures on OJinhui Wang
BUG: 34167779 Change-Id: I88a0367ae532b717d00fa063b66b60820d851126
2017-01-13Update WidgetUtils for NYC.Charles He
am: 26b2324d4a Change-Id: I49a8bc2450ef90c0df5f105471d0e86874cff170
2017-01-11Update WidgetUtils for NYC.Charles He
In NYC, the Settings app changes how its scroll navigation is implemented. Therefore we need to update the utility class to accommodate for this change. Test: run cts -c com.google.android.afwtest.devicepolicy.SystemUpdatePolicyTest Bug: 24972495 Change-Id: I61d9a999f89f9299e1412b75c077b7c458c1bd4b
2017-01-09Add ListView helper and systemui pkg name constant. am: a2234d9b0aCharles He
am: fe256a71ae Change-Id: Ic4d9adf5c44fd6f892d332168c5f61fc79d2ce12
2017-01-09Add ListView helper and systemui pkg name constant.Charles He
am: a2234d9b0a Change-Id: I5c02af5bf4b68c1ef49babeff7b1fc8d5bbbcf18
2017-01-05Add ListView helper and systemui pkg name constant.Charles He
In WidgetUtils, we add a helper method to open an item in a general ListView. In Constants, we add "com.android.systemui" as a new public string. Both changes are necessary to support the new OTA policy tests. Test: run cts -c com.google.android.afwtest.devicepolicy.SystemUpdatePolicyTest Bug: 24972495 Bug: 30961046 Bug: 33101785 Change-Id: I7f8a9dcbe19723806c6d7ee02df6205ec5513be1
2016-11-14Update UiWatcher to auto-close new app crash dialogJinhui Wang
am: 43dca72e9a Change-Id: Ie8679cd1e00ab28a8b95ec4596d12eb04cc2c4fc
2016-11-14Update UiWatcher to auto-close new app crash dialogJinhui Wang
The new app crash dialog's button has resource id: android:id/aerr_close Change-Id: I48f41119bdaeb7a922c0318b540f8b015dae6c11
2016-11-09Migration to CTSv2Insaf Latypov
AFW Test Harness and all the tests are migrated to use CTS version 2 Change-Id: Ieed7a300e5a65490a2e38603c1a124bd24812ce3
2016-11-08Make test harness support new "next" button res idJinhui Wang
am: 3558d008b7 Change-Id: I266f0acc92b13962ffecc9589ed0949f7734c0e3
2016-11-07Make test harness support new "next" button res idJinhui Wang
Change-Id: I1dd6266fb6519b9243e4f12de99bc3b5fbd6d019
2016-11-07resolve merge conflicts of 2e9b2d2 to NJinhui Wang
Change-Id: Ia93a8a9ac32bf2d33dd699903f0172ce78249083
2016-11-07Make GMS pages loading timeout to be 5 minsJinhui Wang
It might wait too long if we depend on timeout size; let's set a hard timeout for all gms pages. Change-Id: I95e299f773adf3fff6aa4d0ce6c23205cbc46881
2016-11-04resolve merge conflicts of 1cc2284Jinhui Wang
Change-Id: I4840d81924d031b67b6cc395cb6c1a1b0241d951
2016-11-04Add optional "Back up to Google drive" pag to DO/PO testsJinhui Wang
Change-Id: I85d0e8e07b30ebd90b81184fffaa305b6a00e8e8
2016-11-03Fix switch off auto-backups in Setup WizardMariano Giardina
Use WidgetUtils.safeWaitAndClick(device, BySelector parent, BySelector child) to operate an object. Change-Id: Ibdd0a3d8396af36f2f97a0d468aa4747e316a838
2016-11-03Wait for a child widget into their parent.Mariano Giardina
am: 9db22f8e0c Change-Id: Ic34c7e2c52cb37e44fe344221af4ef2ad3df076d
2016-11-03Wait for a child widget into their parent.Mariano Giardina
Also: - Fix waitAndClick(N attemps) Change-Id: Ic629b34b4225065cca978f2ac11b31a5ad0567f7
2016-11-03Auto click "I agree" button.Jinhui Wang
am: 60d9243922 Change-Id: I78e6daf969e9880783df51b816ed942c6fed7941
2016-11-02Auto click "I agree" button.Jinhui Wang
Change-Id: I8fbe5b31a101b6a6b5bb085ba9b19da32a754204