I have an issue with my Robotium tests. On one of my Activity A, I am clicking on a button. Clicking on this button launches another activity B. So in my robotium test I have something like this :
Button myBtn = (Button) solo.getView(R.id.myBtn);
so after this action, the emulator is automatically launching activity B. Now, the problem is that I do not have any possibility of going back to the activity under test (A) in the code.
Can you please tell me how to avoid getting jailed in the activity B when clicking on the button that trigger its launch ? In other words, is it possible to go back to the activity under test ?
FYI : I need to go back to the activity under test because there are other test methods waiting to be fired.
thanks in advance,
- You must login to post comments