android Junit测试基本讲解1

来源:互联网 发布:约会吧软件靠谱吗 编辑:程序博客网 时间:2024/04/30 12:43

转载自:

android unit test tutorial

本文从基本的点讲述了Junit测试中的功能测试(算数运算)和界面测试。作为入门资料不错。

对文中引用的函数的说明:

(1)senKeys(String keySequence):

引用官网解释:Sends a series of key events through instrumentation and waits for idle. The sequence of keys is a string containing the key names as specified in KeyEvent, without the KEYCODE_ prefix.

关键字1:key events

关键字2:key‘s name ,表示key event的关键字

下面引用的是一篇关于按键代码的文章,虽然对应的不是android,但也有学习之处:

按键代码


原创粉丝点击