本論文研究在Android雲端測試平台上裝置即用性的兩個問題,分別對其提出解決的方法。首先Android測試平台中,以WiFi方式連接測試行動裝置是常見的做法,如待測程式改變測試裝置的WiFi設定或者將之關閉,將導致後續的測試活動無法在遭受影響的測試裝置正常執行。第二個是提供測試服務時,測試裝置的狀態經過使用後沒有復原,下次進行測試時,將導致測試裝置環境條件不一致,測試結果也可能被影響。在本論文中上述兩個問題,實作Agent在測試裝置上來解決。在Android雲端測試平台STF-CTP,Agent與的Integration Station互動來偵測測試的開始與結束,在測試結束後重新設定測試裝置的狀態。本論文用Robotium與UI Automator撰寫測試案例來說明WiFi設定與測試裝置狀態改變。
This thesis studies the following two device availability problems on Android testing platforms and proposes solution for each. First, connecting platform with testing devices over WiFi is a common approach. In such an approach, if the application under testing changes WiFi settings or turns off WiFi network on the testing device, the subsequent test cases would not be executed normally. Second, running a test case can change the device state. If the device state is not restored a correct state, the correctness of subsequent tests will be affected. In this thesis, the two problems are solved by implanting an agent on the testing device. In the Andirod cloud testing platform STF-CTP, the agent collaborates with the integration station to detect the beginning and ending of a test and for setting device state. The proposed solutions are demonstrated with test cases written in Robotium and UI Automator testing, respectively, that change WiFi setting and device state.