aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-07-02match DefaultAccessibilityValidator to TalkBack behaviorandroid-cts-5.1_r9android-cts-5.1_r8android-cts-5.1_r7android-cts-5.1_r6android-cts-5.1_r5android-cts-5.1_r4android-cts-5.1_r3android-cts-5.1_r28android-cts-5.1_r27android-cts-5.1_r26android-cts-5.1_r25android-cts-5.1_r24android-cts-5.1_r23android-cts-5.1_r22android-cts-5.1_r21android-cts-5.1_r20android-cts-5.1_r2android-cts-5.1_r19android-cts-5.1_r18android-cts-5.1_r17android-cts-5.1_r16android-cts-5.1_r15android-cts-5.1_r14android-cts-5.1_r13android-cts-5.1_r10android-cts-5.1_r1android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.1.1_r9android-5.1.1_r8android-5.1.1_r7android-5.1.1_r6android-5.1.1_r5android-5.1.1_r4android-5.1.1_r38android-5.1.1_r37android-5.1.1_r36android-5.1.1_r35android-5.1.1_r34android-5.1.1_r33android-5.1.1_r30android-5.1.1_r3android-5.1.1_r29android-5.1.1_r28android-5.1.1_r26android-5.1.1_r25android-5.1.1_r24android-5.1.1_r23android-5.1.1_r22android-5.1.1_r20android-5.1.1_r2android-5.1.1_r19android-5.1.1_r18android-5.1.1_r17android-5.1.1_r16android-5.1.1_r15android-5.1.1_r14android-5.1.1_r13android-5.1.1_r12android-5.1.1_r10android-5.1.1_r1android-5.1.0_r5android-5.1.0_r4android-5.1.0_r3android-5.1.0_r1android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-releaselollipop-mr1-wfc-releaselollipop-mr1-releaselollipop-mr1-fi-releaselollipop-mr1-devlollipop-mr1-cts-releaselollipop-devlollipop-cts-releaseKevin Jin
Change-Id: I6c9659336b07e4a74e3435f55c9b40ce4b4fd043
2014-06-27add validators for exmpted classes and scroll actionKevin Jin
Change-Id: Iad22351b46df771e7a9f92edb9d84df44b5fe572
2014-06-25Clean up some toString methodsKevin Jin
fix DefaultAccessibilityValidator remove dead/wrong code in StepBasedScroller Change-Id: I2b847fda53e759f4eada975791fd45b7b22847a8
2014-06-16expose setAccessibilityNodeInfoCacheClearerKevin Jin
Change-Id: I39780422d66133738978b028252c960765490623
2014-06-12add Validator interface and DefaultAccessibilityValidatorKevin Jin
refactor for cleaner implementation Change-Id: I6ba13c5a46e444806f492bc7de365405fecae0d5
2014-06-05add AccessibilityDriver for testing AccessibilityKevin Jin
This is the first cut with known issues, e.g. needs to handle click on EditText differently, etc. Thic cl sets up the architecture of AccessibilityDriver; details will be filled in follow-up cls. Change-Id: I2881b28075eba478a5aad9d7e945b5d55e78da89
2014-05-16Roll back change to doScroll and add comment on why.Jake Slack
Change-Id: I3cbe232df929ca48bea81817a86782f9e1b684b4
2014-05-13Simplify scroll call in doScroll.Jake Slack
Change-Id: I0d64f9f5aaade6a14143d924a4357412fb5e3adf
2014-05-08add UiDevice.pressBack for convenienceKevin Jin
Change-Id: Ifafeda79d9569d853948ac254d34cec66f896232
2014-05-06fix BaseUiDevice.wakeUp when the root is invisibleKevin Jin
The old code called getRootElement().perform(POWER_ON). UiElement.perform() checks that the UiElement is visible. So wakeUp only worked when the root UiElement is launcher, which has the visible attribute even when the screen is off. The new implementation always works because we don't use the root now. Change-Id: I6edf9c9f8d0d112cff669ee2a04f123a30ec0b5e
2014-05-06change default scrollSteps to 55 and make it configurableKevin Jin
And the same for flingSteps Change-Id: Ie3f4aac798e078c526dacc02e3fe53060387e0d6
2014-04-23consolidate ByAttribute, MatchStrategy by PredicateKevin Jin
also simplified SentinelStrategy using Predicate. fix TestRunner when no activities are on back stack. remove deprecated UnrecoverableFailure since callers on old branches have been fixed. Change-Id: Ib9f59a6a0cd733eecec2e414588286f173628516
2014-04-21remove deps on GuavaKevin Jin
This is to simplify the build and deployment set-up for DroidDriver clients. Change-Id: I02238d8721d4d3a505a851138c40cb086d2ff11f
2014-04-04Merge "add selection-[start|end} attributes for TextView"Kevin Jin
2014-04-04add selection-[start|end} attributes for TextViewKevin Jin
Change-Id: I0fb7214437c450ffcccc7fb2ce94e32d7ec759dc
2014-04-04Resetting test state after a failed flaky test.Jake Slack
Currently, we do not tear down and re-setup a flaky test on the next attempt. This means, if part of the test puts the app in some state that is not expected at the beginning of the test, the test will fail. Change-Id: Ie1caeb9505c490536add60da88409b66b939c4cf
2014-04-01Always log uncaughtExceptionKevin Jin
This is needed when the uncaughtException occurs in InstrumentationTestRunner Change-Id: If62e43e5cba2d6a98722c9c5c82c5896f7dd4355
2014-03-31move ProgressBarScrollStepStrategy to ScrollersKevin Jin
Change-Id: I928c86024f8f498dde46298804969998eeb56ba2
2014-03-31add two new scroll APIsKevin Jin
ForwardingScrollStepStrategy and NullAccessibilityEventScrollStepStrategy Change-Id: I16efb179f35d3fc178801c596a1d896c8b1e7644
2014-03-28add PollingListeners.tryFindAndClick, which may often be usefulKevin Jin
Change-Id: I76feb10b5b5d275881495df2a7e7d51324cc9b50
2014-03-27Add comment on why scroll returns true even on null eventKevin Jin
Change-Id: If61d43ddcd088eac5260a416553a8d8c6f4b539a
2014-03-25Synchronize access to TestRunner.activities and viewsKevin Jin
Change-Id: I18ff2332147e8fc53dcef6c54cfee39da9b6d207
2014-03-13Overrides InstrumentationTestCase.runTest() to fail fastKevin Jin
when the test is annotated as FlakyTest and we should skip remaining tests (the failure is fatal). Change-Id: I5f4840fd697f1e3eb8798860f01b9e392b7ccdca
2014-03-10Wraps calls to UiAutomation API.Kevin Jin
Currently supports fail-fast if UiAutomation throws IllegalStateException. Change-Id: I1e6472d113a63b14d3615ef0084ea00d209f7e63
2014-03-06add a time-limited version of runOnMainSyncKevin Jin
Change-Id: I40b23d4f6cdbf05fb34d7252f1b98eef9d442a43
2014-03-04We should make sure listeners are called on every poll.Jake Slack
We often set timeouts of 0ms when scrolling. When we do this, we will not check the listeners because we will timeout if we don't find the target element. We should make sure the listeners are called so that we can still dismiss dialogs. Bug: 13303035 Change-Id: I45d8178b194ba3992c5b5d9aab80542a78bf8b4e
2014-02-27dump hprof if onFailure causes OutOfMemoryErrorKevin Jin
Change-Id: If582e3815a3f4e303cecdf1319763474823f297e
2014-02-25AccessibilityEventScrollStepStrategy needs to be retrieving the lastJake Slack
event in the queue after scrolling. Change-Id: I27e07dab6f9f004f4ce11d008f3ee973f7f8d277
2014-02-25fix the hanging when the app is constantly busy (no idle)Kevin Jin
The main thread may not enter the idle state when animation is playing, for example, the ProgressBar. Do not call waitForIdleSync in UiAutomationDriver. Change-Id: If3c355c8aa302a076895fd62a6428874b24f5d39
2014-02-04delete DroidDriver samples to remove dep on actionbarsherlockKevin Jin
add sync on UI thread idle in UiAutomationDriver refine AccessibilityEventScrollStepStrategy api Change-Id: I176eb1a40f0a914121c60b887784760ebe354ae4
2014-02-03Add more method for the class and also open up the event variable to beMingyu Wu
able to access from inheritted class. Change-Id: If247d6a8d411ffebdee246e0cd0932c693055b7a
2013-12-12add helpers/PollingListenersKevin Jin
remove reference to newIdentityHashSet so that DroidDriver works with older Guava Change-Id: Ia7bb1f564c7764f43cfcafa0ad59ce1fa481f3d1
2013-12-03add ScrollStepStrategy.doScroll for customizationKevin Jin
make SwipeAction margin ratios adjustable Change-Id: I848471d1d72d0e1d7009f64ff242ff281cff7017
2013-11-22add driver as a parameter to the ScrollStepStrategy hooks in order to allowKevin Jin
more customization Change-Id: If50126e82bdeb18511379e6e588c14fa66e28562
2013-11-21add hooks in ScrollStepStrategy: beginScrolls and endScrollsKevin Jin
A possible usage is the implementations can use the hooks to set/reset internal data Change-Id: I882faf2a6f35098ef6742d9a61a9351533ab9cf9
2013-11-14warn the brittle SwipeAction.toFling and remove its use in StepBasedScrollerKevin Jin
optimize AccessibilityEventScrollStepStrategy to match UiAutomator Change-Id: Iacac499659ca6d94daf82f5889700234b231e4d9
2013-11-13adjust fling steps for GingerBreadKevin Jin
fix NoSuchMethodError for GingerBread Change-Id: I4883c8b90a5e6aee6a4392e67f038139edb85fe5
2013-11-12fix NPE in ActivityTestCase#scrubClassKevin Jin
Change-Id: I1fd5c48682527fa0fee2b34eea95abc263138b5c
2013-11-11add VisibleBounds for debuggingKevin Jin
Change-Id: Ie8d73605ae7f2527d95f0e10d10b461089431a8d
2013-11-07consolidate XPath code into ByXPathKevin Jin
dumpUiElementTree now includes invisible UiElements Change-Id: Ib7e1346e4e16dac0a05bb911aec4389483daaf8a
2013-11-06introduce AccessibilityEventScrollStepStrategy which isKevin Jin
a simple ScrollStepStrategy for UiAutomation and behaves like UiScrollable. rename SentinelScroller to StepBasedScroller Change-Id: I424140817d53c63165a66a5fffb5cae24c47288b
2013-11-05Merge "Adjust the screenshot origin if the root view is not at (0,0). Move ↵Kevin Jin
comments on immutable UiElement attributes to the ctors."
2013-11-04Adjust the screenshot origin if the root view is not at (0,0).Kevin Jin
Move comments on immutable UiElement attributes to the ctors. Change-Id: I3936c11342511c0d843a5096e954d8f754f8e931
2013-11-05Merge "Take snapshot of the underlying View or AccessibilityNodeInfo tree. ↵Kevin Jin
This improves reliability. Add JavaDoc on order of getChildren."
2013-11-04Take snapshot of the underlying View or AccessibilityNodeInfo tree.Kevin Jin
This improves reliability. Add JavaDoc on order of getChildren. Change-Id: Iec4a4b693ef29eea1e067d538bab0078699e3d50
2013-10-30Remove deprecated DroidDriverBuilderKevin Jin
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=55866629
2013-10-23add helpers: DroidDrivers, BaseDroidDriverTest, UnrecoverableFailureKevin Jin
add By.withChild and By.withDescendant Change-Id: If739957750074fefa3450903d8b866c62c4390a5
2013-10-10catch unchecked exceptions in takeScreenshot (mainly OOME)Kevin Jin
Change-Id: I7da816c6d4cf570b037ac0dcfb215858640ab1ab
2013-10-04adjust steps in SwipeAction for faster executionKevin Jin
Change-Id: Id46e7343f26bd7880e66dd88975688011fb4d126
2013-09-05cosmetic changes for JavaDoc and logging for scrollKevin Jin
Change-Id: I5bf1044c51b642d682d4a0b3b4dc18aabe3a12cd