Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed process of building Appium environment

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report