Synchronization in Robotium
문제
How long does robotium wait for a new activity to show up? Is it possible to set the timeout manually for the Solo instance?
해결책
What do you want that timeout for?
If you want to wait for the new activity to show up, you can use:
getInstrumentation().waitForIdleSync();
But since you are using Robotium I guess they already do that for you.
다른 팁
If you not specify timeout manually, method solo.waitForActivity()
will have default timeout 10 seconds. Because Robotium is open source project you can look it yourself by opening source code / class Waiter.
제휴하지 않습니다 StackOverflow