문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top