[android]android自動化測試三之設定AVD各項引數
有時候我們需要設定虛擬機器的語言地區等,我們可以使用-prop引數,例如日本。
The -prop command line option allows us to set any of the properties we could set:
$ emulator -avd test -no-window -no-audio -no-boot-anim -port 5580
-prop persist.sys.language=ja -prop persist.sys.country=JP &
To verify that our settings were successful, we can use the getprop command to
verify them, for example:
$ adb –s emulator-5580 shell "getprop persist.sys.language"
ja
$ adb –s emulator-5580 shell "getprop persist.sys.country"
JP
If you want to clear all the user data after playing with the persistent settings, you
can use the following command:
$ adb -s emulator-5580 emu kill
$ emulator -avd test -no-window -no-audio -no-boot-anim -port 5580\
-wipe-data
And the emulator will start afresh.
有的時候我們需要指定虛擬機器需要用得網路環境,網路型別以及網速。
Option Description Speeds [kbits/s]
-netspeed gsm GSM/CSD up: 14.4, down: 14.4
-netspeed hscsd HSCSD up: 14.4, down: 43.2
-netspeed gprs GPRS up: 40.0, down: 80.0
-netspeed edge EDGE/EGPRS up: 118.4, down: 236.8
-netspeed umts UMTS/3G up: 128.0, down: 1920.0
-netspeed hsdpa HSDPA up: 348.0, down: 14400.0
-netspeed full no limit up: 0.0, down: 0.0
-netspeed <num> select both upload and up: as specified, down: as
download speed specified
-netspeed <up>:<down> select individual up and up: as specified, down: as
down speed specified
-netdelay gprs GPRS min 150, max 550
-netdelay edge EDGE/EGPRS min 80, max 400
-netdelay umts UMTS/3G min 35, max 200
-netdelay none no latency min 0, max 0
-netdelay <num> select exact latency latency as specified
-netdelay <min>:<max> select min and max latencies minimum and maximum
latencies as specified
This is an example of an emulator using these options to select the GSM network
speed of 14.4 kbits/sec and a GPRS latency of 150 to 500 msec.
$ emulator -avd test -port 5580 -netspeed gsm -netdelay gprs
The -prop command line option allows us to set any of the properties we could set:
$ emulator -avd test -no-window -no-audio -no-boot-anim -port 5580
-prop persist.sys.language=ja -prop persist.sys.country=JP &
To verify that our settings were successful, we can use the getprop command to
verify them, for example:
$ adb –s emulator-5580 shell "getprop persist.sys.language"
ja
$ adb –s emulator-5580 shell "getprop persist.sys.country"
JP
If you want to clear all the user data after playing with the persistent settings, you
can use the following command:
$ adb -s emulator-5580 emu kill
$ emulator -avd test -no-window -no-audio -no-boot-anim -port 5580\
-wipe-data
And the emulator will start afresh.
有的時候我們需要指定虛擬機器需要用得網路環境,網路型別以及網速。
Option Description Speeds [kbits/s]
-netspeed gsm GSM/CSD up: 14.4, down: 14.4
-netspeed hscsd HSCSD up: 14.4, down: 43.2
-netspeed gprs GPRS up: 40.0, down: 80.0
-netspeed edge EDGE/EGPRS up: 118.4, down: 236.8
-netspeed umts UMTS/3G up: 128.0, down: 1920.0
-netspeed hsdpa HSDPA up: 348.0, down: 14400.0
-netspeed full no limit up: 0.0, down: 0.0
-netspeed <num> select both upload and up: as specified, down: as
download speed specified
-netspeed <up>:<down> select individual up and up: as specified, down: as
down speed specified
-netdelay gprs GPRS min 150, max 550
-netdelay edge EDGE/EGPRS min 80, max 400
-netdelay umts UMTS/3G min 35, max 200
-netdelay none no latency min 0, max 0
-netdelay <num> select exact latency latency as specified
-netdelay <min>:<max> select min and max latencies minimum and maximum
latencies as specified
This is an example of an emulator using these options to select the GSM network
speed of 14.4 kbits/sec and a GPRS latency of 150 to 500 msec.
$ emulator -avd test -port 5580 -netspeed gsm -netdelay gprs
相關文章
- Android 自動化測試之 MonkeyAndroid
- Android 談談自動化測試Android
- android 5個自動化測試Ui框架AndroidUI框架
- Android自動化測試入門(四)單元測試Android
- 測試開發之自動化篇-自動化測試框架設計框架
- 如何設定自動化測試斷言?
- Android LayoutInflater.inflate各個引數作Android
- Android UXSS階段性小結及自動化測試AndroidUX
- Android之Service設定android:process作用Android
- Android Jenkins引數化配置AndroidJenkins
- 【測試】Android Studio 相關下載及引數Android
- Mac Jenkins 構建 Android App 時動態設定程式碼引數MacJenkinsAndroidAPP
- 自動化測試系列(三)|UI測試UI
- Android自動化測試第二篇 Appnium環境搭建AndroidAPP
- Android Studio 設定自動清除無效 importAndroidImport
- Android:平臺自動設定Pinctrl的預設配置Android
- 深圳軟體測試培訓學習:Android常用自動化測試工具【千鋒】Android
- 解放雙手 - Android 開發應該嘗試的 UI 自動化測試AndroidUI
- selenium自動化測試框架之PO設計模式框架設計模式
- UI自動化測試之AirtestUIAI
- Android 自動化測試及效能資料採集的 Python 指令碼AndroidPython指令碼
- 工作專案經驗總結(1)-- 投影儀自動化測試 (Android)Android
- 自動化測試系列 —— UI自動化測試UI
- 面試Tip:Android優化之APP啟動優化面試Android優化APP
- Android UI 測試指南之 EspressoAndroidUIEspresso
- .net持續整合測試篇之Nunit引數化測試
- Android設定app開機自啟AndroidAPP
- AutoRunner 功能自動化測試專案實訓之自動化測試原理(一)
- 記學習滲透測試之報告測試引數三
- 介面自動化之引數動態生成替換
- 3分鐘瞭解Appium:使用appium做Android手機自動化測試!APPAndroid
- Android + Appium 自動化測試完整的環境配置及程式碼詳解AndroidAPP
- Android常用9種自動化測試框架對比,Appium有哪些優勢?Android框架APP
- 測試 之Java單元測試、Android單元測試JavaAndroid
- Android面試題之Android中的設計模式Android面試題設計模式
- 記錄Android學習-遇到的第一個問題,AS自帶AVD無法啟動Android
- 深圳軟體測試學習:如何在Android手機上進行自動化測試【千鋒】Android
- 自動化測試的三兩事兒
- 【自動化測試入門】自動化測試思維