English 中文(简体)
我如何检验一个取决于另一个正在创造的活动?
原标题:How can I test an Activity that depends on another one being created?

单位测试新元。

I want to test an activity called Login. I m extending ActivityInstrumentationTestCase2<Login> from the out-of-the-box api to develop the testing class. The problem is that the Login Activity is started after another Activity, which in turn, is started by a splash screen Activity.

这项活动始于中间阶段,开始提供一些服务,并初步设定了洛林活动一号所需的一些物体,试图对工作进行适当测试,因此,我需要首先这样做。

我如何能够这样做?

提前感谢。

最佳回答
问题回答

您可在您需要的所有事项启动后播放<代码>Intent,然后创建BraodcastRecevier,以启动标识程序。

或者,在开展新活动时,你可以使用电文/手稿通信处理。





相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签