Skip to content

assertCurrentActivity() doesn't work on ICS #304

@renas

Description

@renas

From Xavier.B...@gmail.com on February 08, 2012 05:44:26

What steps will reproduce the problem? 1. Create an Activity A with a button which launch another Activity B
2. In the test case start Activity A and click on the button.
3. Sleep for 5 seconds (to allow the activity to be launch)
4. Then do assertCurrentActivity(B.class) What is the expected output? What do you see instead? The assertCurrentActivity fail. It says that the current activity is A whereas the activity B is launched. What version of the product are you using? On what operating system? I'm using the latest version of Robotium (3.1) on a Samsung Nexus S (Android 4.0.3). Please provide any additional information below. I tested the same test on another versions of Android (HTC Vision with 2.3.3 and emulator with 2.1) and it works.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions