android Junit測試基本講解1

轉載自:

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,但也有學習之處:

按鍵代碼


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章