Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何为非活动类编写 Robotium 测试?我已经看到了很多活动课程的例子,但没有看到非活动课程的例子。是否可以?
谢谢你。
Robotium 对于在测试用例中与您的应用程序交互非常有用。这些交互通常与活动有关。
如果您想测试其他类,则无需使用 Robotium。您可能会查看Robolectric以在您的计算机上的 JVM 中运行测试。
在这个非常简单的代码示例中,消息每隔一段时间就会丢失。这里有什么问题?
public class AndroidTesterActivity extends Activity { private static final int END = 500000; private static int i = 0; @Override public