risangprisaltomo / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

PressBack is flaky #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
pressBack() is flaky for me... sometimes ( maybe 1% ) it just fails ( mostly on 
real devices, like the S3 ).

When it works I see this in the logs:

22076   22076   ViewInteraction     info    11-26 14:04:54.860  Performing 'send keyCode: 
4, metaState: 0 key event' action on view is a root view.
22155   22076   ESP_TRACE       verbose 11-26 14:04:54.870  EventInjector:Injecting event 
for character (??) with key code (4) downtime: (23949649)
22076   22076   ESP_TRACE       verbose 11-26 14:04:54.870  UiControllerImpl: 
MessageQueue.next(): { what=3 when=0 arg1=1551 }, with target: 
android.os.Handler, callback: no callback.
22155   22076   ESP_TRACE       verbose 11-26 14:04:54.870  EventInjector:Injecting event 
for character (??) with key code (4) downtime: (23949653)

When it doesn't work I see this in the logs:

233 9233    ViewInteraction     info    11-26 14:46:51.329  Performing 'send keyCode: 4, 
metaState: 0 key event' action on view is a root view.
9325    9233    ESP_TRACE       verbose 11-26 14:46:51.339  EventInjector:Injecting event 
for character (??) with key code (4) downtime: (26322247)
681 360 InputDispatcher     info    11-26 14:46:51.339  Delivering key to: action: 0x0 
(0)

Original issue reported on code.google.com by YogurtE...@gmail.com on 26 Nov 2014 at 10:24

GoogleCodeExporter commented 9 years ago
Is this still an issue with espresso 2.0?

Original comment by vale...@google.com on 27 Jan 2015 at 7:13

GoogleCodeExporter commented 9 years ago
Not sure. I haven't upgraded yet.  

I started down that road, but moving from 1.x GoogleInstrumention to 2.x 
MonitoringInstrumentation loses the IntentSpy support, which I need. 

Any timeframe on open sourcing intento? :) 

Original comment by YogurtE...@gmail.com on 27 Jan 2015 at 11:23

GoogleCodeExporter commented 9 years ago
I still get flaky tests around pressBack() but it might also be a result of 
https://code.google.com/p/android-test-kit/issues/detail?id=55.  Are you seeing 
the flakiness when you use pressBack() to trigger activity transitions?

Original comment by jabKnows...@gmail.com on 9 Feb 2015 at 7:23

GoogleCodeExporter commented 9 years ago

Original comment by nkors...@google.com on 5 May 2015 at 5:53