Get the App
SLTechnology News&Howtos  ›  Servers  › 

Detailed process of building Appium environment

Shulou Source: shulou.com Published: 2022-06-01 19:25:02 10月01日 Update

This article mainly introduces "the detailed process of building the Appium environment". In the daily operation, I believe many people have doubts about the detailed process of building the Appium environment. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the detailed process of building the Appium environment". Next, please follow the editor to study!

Students who first know Appium will be dizzy by its complex environmental construction work. I believe many people give up directly because of this! In this article, I will explain the construction of the Appium environment in the Windows10 environment. Please follow me step by step to download each software (attached link) and install it. I believe that the Appium environment will be built successfully. At the same time, I will also tell you in the article why you need so much software to let you understand its essential reasons.

Install Java jdk 1.8

Default installation is fine.

Https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

Install Android sdk

You can download the latest version of android studio directly (

Https://developer.android.google.cn/studio), which includes both Android IDE and Android SDK, can be installed by default. After the installation is completed, Android sdk will be installed automatically. The default installation path is C:\ Users\ your user\ AppData\ Local\ Android\ Sdk

Install nodejs

Download the latest version of nodejs, http://nodejs.cn/, and install it by default

Add environment variabl

Add environment variables JAVA_HOME and ANDROID_HOME (note: do not name other variables)

JAVA_HOME points to the jdk root directory

ANDROID_HOME points to the sdk root directory

Add the following variables to the windows system Path variable

% JAVA_HOME%,% ANDROID_HOME%\ tools,% ANDROID_HOME%\ platform-tools

Install nodejs

Download the latest version of nodejs, http://nodejs.cn/, and install it by default

Download the jar package required for IDE

IDE: Eclipse (you can also use the Android Studio downloaded earlier)

Download the jar package required for automated test development

Http://appium.io/downloads.html( is currently: java-client-7.5.1-all.jar), which is introduced into the Java project after downloading.

Install Appium Desktop

Download Appium desktop and install it by default, download address

Https://github.com/appium/appium-desktop/releases/tag/v1.20.2-4

Note: it can also be installed through npm install (not recommended)

Explain and explain

At this point, when the Appium environment is built, click Appium.exe to launch appium server, as shown below:

You may ask why it is so troublesome to install appium, and you need to install so many things. Let me explain one by one here:

1. Because appium needs to use uiautmator in Android sdk to operate android's app, we need to install Android SDK

2.Android SDK depends on JDK, so you need to install JDK

3.Appium is written in nodeJS, so you naturally need to install NodeJS

4. The variables JAVA_HOME and ANDROID_HOME are added because they are required for Appium Server to run, as shown in the following figure:

5. Java-client-7.5.1-all.jar is the api we need for automated testing, and we can use it to develop scripts for automated testing, as shown below:

At this point, the study on "the detailed process of building an Appium environment" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Environment variables processes learning versions testing automation at the same time pointing articles more root directory software work help development interpretation complexity utility success Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi MySQL Microsoft Linux