0

我想问一个普遍的问题,

我在单处理器平板电脑的帮助下使用机器人工具进行自动化测试。在执行某些操作时,我的测试用例失败,例如 INSTRUMENTATION TEST RUN FAILED DUE TO JAVA.LANG.OUT OF MEMORY 错误。

我需要的是内存不足错误是否也取决于设备处理器速度,或者纯粹取决于应用程序和测试代码。

任何解决方案都可以帮助我很多

4

1 回答 1

1

The OutOfMemoryError indicates that you've probably run out of heap space in the application. The device's kernel may set the limits on heap, but your problem is probably in your application and test code.

Does your test run out of memory while executing large tests?

You may want to profile your application for Memory Usage and start resolving memory leaks first.

It can also help if your robotium tests don't run for extended periods of time, but is only a band-aid if your application has memory leaks.

于 2015-03-25T22:09:44.423 回答