当前位置:网站首页>App mobile terminal test [3] ADB command
App mobile terminal test [3] ADB command
2022-07-03 15:52:00 【Leo_ Eagle】
Adb(android Debug Bridge), It allows real machines and simulators ( Or mobile assistant ) communicate . This greatly improves the equipment ( Real machine ) Convenient operation .
1.ADB The cognitive
1.1 Adb The cognitive
Adb(android Debug Bridge), It allows real machines and simulators ( Or mobile assistant ) communicate . This greatly improves the equipment ( Real machine ) Convenient operation
The teacher's , Android sdk The path is as follows :D:\Program Files (x86)\Android\android-sdk\platform-tools, In this directory, you can see adb At the beginning 3 File ,
verification adb Whether the configuration is complete . stay Cmd Input in adb
Cmd
Adb
1.2 Adb How it works
start-up adb client , The client will communicate with the local TCP port (5037) binding , Then start listening adb All commands issued by the client , Then use the port 5037 And adb Server communication .
1.3 Enable adb debugging
It must be started on the mobile phone usb debugging , Only then can we carry on adb debugging ( If you don't know how to turn on your mobile phone usb debugging , Please check the previous article :uiautomator
++App Mobile Testing 【2】 Android simulator deployment ++).
1.4 Adb The basic order of
stay cmd The following is executed in
- see adb edition
C:\Users\Leo>adb version
- View device information
C:\Users\Leo>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
GWY0217306003796 unauthorized
2. ADB The basic order of
2.1 Adb The basic order of
- see adb edition
C:\Users\Leo>adb version
- View device information
C:\Users\Leo>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
GWY0217306003796 unauthorized
- Connect the simulator
C:\Users\Leo>adb connect 127.0.0.1:62001
matters needing attention : The first of the night God simulator 1 The port of the simulator is 62001, The first 2 The stage is 62025, The first 3 platform 62025+1.
C:\Users\Leo>adb connect 127.0.0.1:62001
adb server version (36) doesn't match this client (40); killing...
reason : The above (adb server version (36) doesn’t ….) The reason for the hint , Because android sdk Medium adb Version and simulator adb Different versions result in .
Solution :
hold android sdk Next 3 individual adb Opening file ( Here's the picture ), Copy to the simulator , Replace simulator (D:\Program Files\Nox\bin) Corresponding 3 File ( Here's the picture ).
- Adb shell
Adb shell
When there are multiple devices ( Simulator Links pc When )
C:\Users\Leo>adb -s 127.0.0.1:62001 shell
[email protected]:/ #
Format adb –s Simulator required ip And port shell
Test intensive video
If you don't find your article enjoyable , You can see the detailed video tutorial .
《 Necessary skills for Mobile Testing 》
UI automated testing :Selenium3 automated testing
【 Test the full series of video courses 】
The learning route is as follows




边栏推荐
- Popular understanding of linear regression (II)
- 详解指针进阶1
- Digital image processing -- popular Canny edge detection
- Go语言自学系列 | golang中的if else语句
- Microservice API gateway
- Visual upper system design and development (Halcon WinForm) -4 Communication management
- qt使用QZxing生成二维码
- Popular understanding of decision tree ID3
- Popular understanding of linear regression (I)
- 利用MySQL中的乐观锁和悲观锁实现分布式锁
猜你喜欢

《微服务设计》读书笔记(下)

Reentrantlock usage and source code analysis

Jvm-05-object, direct memory, string constant pool

子类隐藏父类的同名函数

【OpenCV 例程200篇】217. 鼠标交互获取多边形区域(ROI)

Halcon and WinForm study section 1

软件逆向破解入门系列(1)—xdbg32/64的常见配置及功能窗口

如何使用 @NotNull等注解校验 并全局异常处理

Popular understanding of ovo and ovr

Subclass hides the function with the same name of the parent class
随机推荐
大csv拆分和合并
Go语言自学系列 | golang中的if else if语句
Brush questions -- sword finger offer
阿飞的期望
需要知道的字符串函数
Create gradle project
几种常见IO模型的原理
Summary of concurrent full knowledge points
工资3000,靠“视频剪辑”月入40000:会赚钱的人,从不靠拼命!
qt使用QZxing生成二维码
Jvm-08-garbage collector
Jvm-02-class loading subsystem
Reflection on some things
子类隐藏父类的同名函数
VS2017通过IP调试驱动(双机调试)
Popular understanding of linear regression (II)
Unity function - unity offline document download and use
Backtracking method to solve batch job scheduling problem
关于网页中的文本选择以及统计选中文本长度
“用Android复刻Apple产品UI”(3)—优雅的数据统计图表