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

How to install the Appium environment

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is about how to install the Appium environment. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

one

Environmental preparation

It mainly includes the preparation of the following environments:

Install JDK and configure environment variables

Install SDK and configure environment variables

Install Node.js

Install the Appium desktop version

Install Appium client

This article will provide the official website download address, if the official website installation package download is slow, you can also reply in the official account backstage according to the keywords provided at the end of the article, and get the Baidu network disk download link of all installation packages with one click.

Note: the installation of this article is carried out in win10 environment.

two

JDK installation configuration

one

JDK environment installation

After ① enters the official website, you can download the latest version, and JDK can download the portal:

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

When the ② download is complete, double-click to start the installation.

③ selects the next step by default, and the installation location remains the default, so it is recommended that you do not modify it.

two

JDK configuration environment variables

After the ① JDK installation is complete, configure the JDK environment variable. On the computer desktop, right-click this computer, and then select Properties-Advanced system Settings-Environment variables.

② in the environment variables pop-up page, click New.

③ create a new environment variable page, enter the variable name and value.

Variable name: JAVA_HOME

Variable value: C:\ Program Files\ Java\ jdk1.8.0_77

(your own actual installation location)

As shown in the figure:

④ select path and enter the following three environment variables in turn:

% JAVA_HOME%\ bin

% JAVA_HOME%\ lib\ tools.jar

% JAVA_HOME%\ jre\ bin

As shown in the figure:

⑤ shortcut win+R, type cmd, open the dos window, type java-version to see if the installation is successful.

two

SDK installation configuration

one

Download and install SDK

① goes to the official website and chooses the version suitable for your system to download, and SDK downloads the portal:

Http://tools.android-studio.org/index.php/sdk

As shown in the figure, select the windows version to download:

After the ② download is completed, decompress the package in the following directory:

③ double-click SDK Manager.exe in the directory and check the first three items of Tools: Android SDK Tools, Android SDK Platform tools, and Android SDK Build-tools.

④ select Google USB Driver in Extras, and then click install in the lower right corner to install.

⑤ check "Accept License" to accept the agreement and click install.

After the ⑥ download is complete, the sdk directory is updated as follows:

two

Configure SDK environment variables

The configuration of the ① SDK environment is similar to that of the JDK environment. Click New and enter the variable name and value.

Variable name: ANDROID_HOME

Variable value: d:\ software\ dev\ sdk\ android-sdk-windows

(your actual installation location)

As shown in the figure:

② Click path and add the following environment variables in turn:

% ANDROID_HOME%\ tools

% ANDROID_HOME%\ platform-tools

As shown in the figure:

After the ③ configuration is complete, the shortcut key win+R, enter cmd to open the dos window, and enter the command: adb-- help to see if sdk is installed and configured successfully.

three

Install Node.js

① goes to the official website and chooses the version suitable for your system to download, and node.js downloads the portal:

Https://nodejs.org/zh-cn/download/

As shown in the figure, select 64 bits:

After downloading ②, double-click and install it all the way by default.

After the ③ installation is complete, check whether the installation is successful or not, enter the command: node-v

C:\ Users\ 96984 > node-v

V12.16.1

four

Install Appium

① goes to the official website of Appium, and you can choose the version suitable for your system to download. Appium downloads the portal:

Https://github.com/appium/appium-desktop/releases/tag/v1.18.0-2

As shown in the figure, select the windows version to download:

After the ② download is complete, double-click the program installation and wait for the installation to complete.

When ③ opens appium, the effect is as follows:

five

Install Appium client

The main programming language of this series is Python, so Appium python client is installed.

① installation command: pip install appium-python-client

After the ② installation is successful, enter python shell mode and type: from appium import webdriver

At this point, the entire Appium environment is installed.

Thank you for reading! This is the end of the article on "how to install the Appium environment". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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

Internet Technology

Wechat

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

12
Report