Skip to main content

How to wait till the current acitivity is in progress



I am creating a test case which will check for the Android application.





  1. It launches the application.



  2. It enters the user and pass.







I need to check whether it is logged in or not. For that I am trying to get the current activity. If it is logged in, it will show the next activity if not it will show the home activity itself.





How to get the current activity or help me in doing this above mentioned option.


Comments

  1. Have a look at Robotium . It's a UI testing framework for android and it's very easy to use. It also allows you to wait until an activity / text / etc. appears on the screen.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?