The appium automation environment is perfectly built

The desktop version of appium provides a way to visually operate the main functions of appium, which is very suitable for beginners.
How to install the appium desktop version on the windows platform is roughly divided into two steps, which are dependent software installation and appium desktop version installation. The following is a description of the dismantling text and pictures of these two steps.

01 Rely on software installation

The dependent software is the following 4 items: JDK, SDK, node and emulator.

1、JDK

At present, jdk1.8 is generally used. After downloading jdk1.8, the next step along the way can complete the installation.

You can refer to the screenshot to configure the JDK environment variables .

insert image description here
insert image description here
insert image description here

Test whether the jdk environment variable configuration is correct.

As shown in the screenshot below, the version number information can be queried, which proves that the environment variable configuration is correct.

insert image description here

 

2、SDK

Unzip the SDK package to complete the installation.

You can refer to the screenshot to configure the SDK environment variables.

insert image description here
insert image description here

Test whether the SDK environment variable configuration is correct.

Check the adb version number under %ANDROID_HOME%\platformtools to prove whether the SDK environment variable configuration is correct.

As shown in the screenshot below, the version number information can be queried, which proves that the environment variable configuration is correct.

insert image description here

Note: The following is my adb local disk path.

insert image description here

 

3.node

Double-click node-v12.13.1-x64.msi, and then follow the next step to complete the node installation according to the guide.

After the installation is complete, the environment variables are usually automatically configured.

Then, test whether the node environment variable configuration is correct.

insert image description here

The version of node and npm is required to be higher than 4. If an error is reported, it is generally a problem with the environment configuration, and the environment variable PATH needs to be manually set.

Before setting the PATH environment variable, you need to find the local installation path of node. The screenshot below shows my own local installation path of node.

insert image description here

Modify or increase the installation path of node in the PATH environment variable.

insert image description here

 

4. Simulator

The official website address of the MuMu simulator is as follows, http://mumu.163.com/ Then double-click to download the mumu installer (exe extension), and follow the guidance to complete the installation of the mumu simulator.

insert image description here

Find the port number for adb to connect to the mumu emulator through the configuration file with the extension nemu as follows.

insert image description here
insert image description here

02 appium desktop version installation

The operation steps of the appium desktop version under the windows platform are divided into download and installation.

1. Download

Official website address to download appium, the address is as follows: http://navo.top/6RZjim

insert image description here

If the official website is slow to download, you can download it through the Baidu cloud address. The Baidu cloud address is as follows:

2. Installation

Click the appium installer Appium-windows-1.15.1.exe, and the installation guide will complete the installation.

After installation, find the round appium icon with a purple wheel on the desktop, double-click the appium icon to start appium.
 

 insert image description here

insert image description here

First make adb connection, the specific operation is to enter the following command in the CMD window.

insert image description here

After configuring the session connection parameters, click [Start Session] to debug and connect to the mumu simulator for testing.

insert image description here

 When the home page appears after the tested APP starts, it means that the appium desktop version is installed successfully.

 

Finally, I would like to thank everyone who has read my article carefully. Reciprocity is always necessary. Although it is not a very valuable thing, you can take it away if you need it:

These materials should be the most comprehensive and complete preparation warehouse for [software testing] friends. This warehouse has also accompanied tens of thousands of test engineers through the most difficult journey, and I hope it can help you! Partners can click the small card below to receive 

Guess you like

Origin blog.csdn.net/okcross0/article/details/130160812