English 中文(简体)
服务中STAST-STICKY测试
原标题:Test for START_STICKY in a service

我有一个由长期运行服务构成的应用程序。 我从StartCommand的这项服务方法中返回了START_STICKY。 现在我想测试START_STICKY是否正常工作。 那么我如何测试我的服务因记忆减少而被机器人OS杀死的情景, 以及如何测试它又被机器人OS和StartCommand的方法再次调用。 我无法等待数小时来测试这个方案。 请建议一条出路 。

问题回答

您可以尝试从 DDMS 中杀死进程。 在这种情况下, OS 可能会重新启动它 。

您可以使用任务 Killer 尝试杀死服务( 如果您在电话上测试)





相关问题
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 ...

热门标签