目前還沒有 Black-box 的完全方法 (待測物與測試程式不需要經過特殊手段或處理),通常都要 re-sign 程式,或者需要 root 權限
會持續 survey 找出比較合理的方式
在尋找過程中,值得紀錄的一件事情是通常單元測試要指定一個 target package,且要存在於 Eclipse 中。但是 Robotium 網站提供一個方法可以避開,值得推薦。因為解決這個小問題,所以可以測試的對象大增,而只剩下 re-sign key 的問題而已。
目前找到的方案:
ID | Method | Description | Type | Note | Test Result |
1 | By Android instrumentation | Instrumentation | Semi-Blackbox or Blackbox | 1. Follow http://ppt.cc/IP-~ 2. Instrumentation code | TBC (Do not know if have signed key problem) |
2 | TestDroid | Semi-Blackbox | Need AUT in Eclipse at this moment. | TBC | |
3 | Selenium | Semi-Blackbox | TBC | TBC | |
4 | Robotium | Semi-Blackbox | 1. Follow http://ppt.cc/IP-~ 2. Instrumentation code 3. Re-sign key | OK | |
5 | Sikuli | Semi-Blackbox | 1. Install Sikuli IDE 2. Setup screenpast or remote control | OK |
開發時的環境: (△: Probably yes)
ID | Method | Need rooted phone | Need AUT in Eclipse | Need re-sign key | Need external library | Need external plugin / tool | Others |
1 | Android instrument class | X | V | △ | X | X | Run by Eclipse or adb shell |
2 | TestDroid | X: Current ver △: Next ver | V: Current ver X: Next ver | X V | V V | V V | Eclipse plugin and based on Robotium |
3 | Selenium | △ | △ | △ | V | X (Has also) | Rich environment |
4 | Robotium | △ | △ | △ | V | X | |
5 | Sikuli | △ | X | X | X | V |
沒有留言:
張貼留言