Mobile terminal special test environment deployment

With the widespread use of smartphones, apps have become one of the indispensable tools in people's lives.

I have also heard many people often complain that the app has problems like this: it crashes from time to time, the phone is very hot after being used for a long time, it is really stuck...

For app testers, even though they have already done a complete functional test, why do so many problems still occur? That's because it's difficult to achieve through ordinary functional testing methods. In this context, new methods have to be born to solve this problem. That's the special test.

Today let’s talk about the deployment environment first.

1 Install SDK

What is SDK?

Android SDK (full name: Software Development Kit, Software Development Kit) is a collection of development tools used by software development engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. It provides the use of Android API libraries and building development tools for testing and debugging applications. Simply put, the Android SDK can be regarded as a software used to develop and run Android applications.

2 Go to the following website:

If you want to enter the download section of the official website https://android-sdk.en.softonic.com/download to download the sdk, you need to access the Internet scientifically, as you know.

A more convenient and quick way is to search for the third-party SDK download address provided by the third party on Baidu and download it:

The apk file download is usually placed under the address D:\android\sdk\platform-tools

3 Command line execution:

 Use cmd to enter the android-sdk-windows\platform-tools directory

 Enter adb install xxx.apk to install

4 After the execution is completed, we need to configure the environment variables:

1. Add a variable to the system variables, name the variable ANDROID_HOME, and fill in your own sdk path (do not add a semicolon at the end)

2. Add to path

%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;

5 After the environment variables are configured, you need to check the sdk environment variable configuration.

1. Open a command line window

2. Enter adb version on the command line to display the adb version.

Note: Be sure to make sure that only one adb exists on the computer, otherwise unexpected conflicts will occur due to conflicts.

Note: The latest version of adb may have problems on some models. You can download adb 1.0.39 for use.

6 Android emulator installation

1. genymotion emulator

• Official website https://www.genymotion.com

• Register an account first, then visit the download address below

https://www.genymotion.com/downloads/

2. After the installation is complete, perform preliminary settings on the simulator.

3. Download the zip package of ARM-TRANSTION

Download ARM_Translation_Oreo.zip

Drag the zip package to the 8.0 emulator and restart

Of course, during actual operation, other simulators may be used to simulate mobile terminal operations, such as lightning simulators, etc.

7 Enable adb debugging, how adb works

First, let’s talk about what adb is?

Android Debug Bridge (adb, full name Android Debug Bridge) As the name suggests, it is a bridge connecting the PC side and the Android side. is a versatile command line tool that allows you to communicate with your device. The adb command issues commands to various devices, facilitates direct operations (such as installing and debugging applications, file transfers, etc.), and provides access to a Unix shell that can be used to run various commands on the device. It is a client-server interactive program consisting of the following three components:

• Client: used to send commands. The client runs on the development computer. You can call the client directly by issuing adb commands from the command line terminal.

• Server: Manages communication between clients and daemons. The server runs as a background process on the development computer.

8 Understand how adb works

When an adb client starts, the client will first check whether there is an adb server process running.

If not, it will start the server process first. After starting, it will bind and listen to TCP port  5037 on the PC , and process the commands issued by the adb client (all adb client communications are established through TCP with port 5037 on the PC. connection communication).

The interaction process is as follows:

After performing the above steps, the adb server will establish connections with all running devices so that it can interact with the devices. In TCP connection mode, it searches for the emulator by scanning  odd-numbered ports between 5555  and  5585  (these ports are used by the emulator). Once the server scans the adb daemon (adbd), it will establish a connection with the corresponding port. , and each emulator uses a pair of ports in sequence:

Even-numbered ports are used for console connections, and odd-numbered ports are used for adb connections.

> adb devices
List of devices attached

* daemon not running; starting now at tcp:5037
* daemon started successfully
xxxxxxxxx     device

Finally: The complete software testing video tutorial below has been compiled and uploaded. Friends who need it can get it by themselves [guaranteed 100% free]

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.

Guess you like

Origin blog.csdn.net/AI_Green/article/details/133095446