本文從基本的點講述了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,但也有學習之處: