当前位置:网站首页>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




边栏推荐
猜你喜欢

Summary of JVM knowledge points

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

Wechat payment -jsapi: code implementation (payment asynchronous callback, Chinese parameter solution)

App移动端测试【4】apk的操纵

Distributed task scheduling XXL job

Digital image processing -- popular understanding of corrosion and expansion

Please be prepared to lose your job at any time within 3 years?

Unityshader - materialcapture material capture effect (Emerald axe)

Automatic generation of client code from flask server code -- Introduction to flask native stubs Library

Seckill system 2 redis solves the problem of distributed session
随机推荐
驱动与应用程序通信
Go语言自学系列 | golang switch语句
Microservices - load balancing ribbon
Seckill system 3- product list and product details
How are integer and floating-point types stored in memory
潘多拉 IOT 开发板学习(HAL 库)—— 实验5 外部中断实验(学习笔记)
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
从 flask 服务端代码自动生成客户端代码 -- flask-native-stubs 库介绍
秒杀系统1-登录功能
自定义注解
Shell script import and export data
Visual upper system design and development (Halcon WinForm) -2 Global variable design
Principles of several common IO models
Nifi from introduction to practice (nanny level tutorial) - flow
Detailed pointer advanced 2
Calibre LVL
How to use annotations such as @notnull to verify and handle global exceptions
Jvm-09 byte code introduction
Halcon and WinForm study section 2
Tensorflow realizes verification code recognition (I)