[android]android自动化测试三之设定AVD各项参数
来源:互联网 发布:php多维数组删除key 编辑:程序博客网 时间:2024/06/03 18:22
有时候我们需要设定虚拟机的语言地区等,我们可以使用-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]android自动化测试三之设定AVD各项参数
- [android]android自动化测试三之设定AVD各项参数
- [android]android自动化测试二之命令行创建AVD
- [android]android自动化测试二之命令行创建AVD
- [android]android自动化测试二之命令行创建AVD
- [android]android自动化测试二之命令行创建AVD
- android自动化测试中需要的使用avd等命令
- Android自动化测试之UIAutomator(三)---比对测试截图
- Android自动化测试之如何安装Android虚拟机(三)
- Android 自动化测试之Monkey参数介绍及其停止办法
- android自动化测试之MonkeyRunner使用实例(三)
- Android自动化测试之使用java调用monkeyrunner(三)
- android自动化测试之MonkeyRunner使用实例(三)
- android自动化测试之--MonkeyRunner使用实例(三)
- android自动化测试之MonkeyRunner使用实例(三)
- Android自动化测试之Robotium学习(三)
- android自动化测试Uiautomator源码分析之三
- android自动化测试Monkeyrunner源码分析之三
- [android]android自动化测试二之命令行创建AVD
- [Jenkins]email-ext报No such property的解决方案
- [android]android自动化测试二之命令行创建AVD
- [android]android自动化测试二之命令行创建AVD
- [android]android自动化测试二之命令行创建AVD
- [android]android自动化测试三之设定AVD各项参数
- 图片控件显示jpg图片的程序
- [Jenkins]开发jenkins插件第一步
- [android]android自动化测试三之设定AVD各项参数
- [Sciter系列] MFC下的Sciter–4.HTML与图片资源内置
- linux就是这个范儿之特种文件系统(2)
- Linux安装mysql——源码安装
- 邻接表的实现(下)
- vim 编码