RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

waitForFragment on vers < 3.0 #668

Closed renas closed 9 years ago

renas commented 9 years ago

From federico...@gmail.com on March 19, 2014 08:19:29

Reproduce the error

expected result:

tools and os:

Android studio 0.5.1 Test running on Android < 3.0

Infos:

The bug is probably inside the Waiter class inside the method waitForFragment on line 556.

If the fragment is not found using getSupportFragment and you are using a FragmentActivity, it tries to use getFragment who calls getFragmentManager that is invalid method FragmentActivity throwing NoSuchMethodError

        if(getSupportFragment(tag, id) != null)
            return true;

        if(getFragment(tag, id) != null)
            return true;

Original issue: http://code.google.com/p/robotium/issues/detail?id=589

renas commented 9 years ago

From renasr...@gmail.com on March 19, 2014 11:10:24

Thanks for reporting this.

Status: Accepted
Owner: renasr...@gmail.com

renas commented 9 years ago

From renasr...@gmail.com on June 18, 2014 08:13:00

Thanks again for reporting this. This has been fixed in Robotium 5.2.1.

Status: Verified