Hello, Android Developers! I have some question for you.
I want to write testcases for my android application using JUnit. And
I faced some problems.
Is it possible to check that activity displays some dialog at current
moment? Here is a small piece of my test application:
...
Instrumentation instr = getInstrumentation();
monitor = instr.addMonitor(MainActivity.class.getName(), null,
false);
/* Click on login button */
TouchUtils.clickView(this, mLoginButton);
/* wait MainActivity */
mMainActivity = instr.waitForMonitorWithTimeout(monitor, 3);
assertNotNull(mMainActivity);
/* Here a want to check that progress dialog displayed on
mMainActivity */
Thanks in advance!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en