xiaofans / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Robotium is broken with Android 4.2 #352

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write simple test, for instance:
solo.sleep(5000);
assertTrue(solo.getViews() != null);
solo.sleep(5000);
2. Run on device/emulator with Android 4.2

What is the expected output? What do you see instead?

solo.getViews() return null

I think, there are similar problems with other getters.

java.lang.NullPointerException
at 
com.jayway.android.robotium.solo.ViewFetcher.getNonDecorViews(ViewFetcher.java:1
63)
at com.jayway.android.robotium.solo.ViewFetcher.getAllViews(ViewFetcher.java:85)
at com.jayway.android.robotium.solo.Searcher.searchFor(Searcher.java:158)
at com.jayway.android.robotium.solo.Waiter.waitForView(Waiter.java:214)
...

Please provide any additional information below.

Original issue reported on code.google.com by Michal.S...@bitbar.com on 15 Nov 2012 at 2:41

Attachments:

GoogleCodeExporter commented 9 years ago
On Monday 3.6 will be released with full support for Android 4.2 (API Level 17)

Original comment by renasr...@gmail.com on 15 Nov 2012 at 3:50

GoogleCodeExporter commented 9 years ago
This has been fixed in Robotium 3.6.

Original comment by renasr...@gmail.com on 19 Nov 2012 at 6:06