当前位置:网站首页>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
边栏推荐
- 首发!!lancet饿了么官方文档
- 大csv拆分和合并
- Second kill system 3 - list of items and item details
- 坚持输出需要不断学习
- 几种常见IO模型的原理
- win32创建窗口及按钮(轻量级)
- C语言刷题~Leetcode与牛客网简单题
- Baidu AI Cloud helps Shizuishan upgrade the smart health care model of "Internet + elderly care services"
- Location of software installation information and system services in the registry
- The difference between mutually exclusive objects and critical areas
猜你喜欢
Jvm-08-garbage collector
[system safety] 43 PowerShell malicious code detection series (5) automatic extraction of ten thousand words from abstract syntax tree
Popular understanding of decision tree ID3
[200 opencv routines] 217 Mouse interaction to obtain polygon area (ROI)
Second kill system 3 - list of items and item details
Halcon and WinForm study section 2
Create gradle project
Tensorflow realizes verification code recognition (I)
Jvm-02-class loading subsystem
WinDbg analysis dump file
随机推荐
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
How to use annotations such as @notnull to verify and handle global exceptions
Large CSV split and merge
Halcon and WinForm study section 2
Jvm-05-object, direct memory, string constant pool
Digital image processing -- popular understanding of corrosion and expansion
How are integer and floating-point types stored in memory
The wonderful use of do{}while()
百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
A Fei's expectation
秒殺系統3-商品列錶和商品詳情
VC下Unicode和ANSI互转,CStringW和std::string互转
Microservice - Nacos registration center and configuration center
Microservice - declarative interface call openfeign
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
Intelij idea efficient skills (III)
Popular understanding of random forest
Microservice API gateway
Halcon and WinForm study section 1
Jvm-04-runtime data area heap, method area