简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM