Build the Appium tool environment

insert image description here

1. Install the Java Development Kit (JDK)

Go to the Oracle official website to download the JDK.

Find the latest version of the JDK at https://www.oracle.com/java/technologies/javase-jdk11-downloads.html. Select the appropriate version according to the operating system, and download the installer according to the instructions.

Install JDKs. Run the downloaded installer and follow the instructions to install it.

Configure the JAVA_HOME environment variable. Open the system environment variable settings, create a new variable called JAVA_HOME, and set the JDK's installation path as the variable value. Make sure to add that path to your system's PATH variable.

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

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.

picture

2. Install Android Studio and Android SDK

Go to Android Studio official website (https://developer.android.com/studio) to download the latest version of Android Studio.

Install Android Studio. Run the downloaded installer and follow the instructions to install it. This will also install the Android SDK.

Configure the Android SDK path. After starting Android Studio, click the "Configure" button and select the "SDK Manager" option. In the window that opens, find the "Android SDK Location" field and copy the SDK path.

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

picture

picture

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.

picture

3. Install Node.js

Go to the Node.js official website (https://nodejs.org/) and download the latest version of the Node.js installer.

Install Node.js. Run the downloaded installer and follow the instructions to install it.

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

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

picture

4. Install Appium

Open a command line window. You can use the command prompt (CMD) on the Windows system and the terminal on the Mac system.

Execute the following command to install Appium:

npm install -g appium

5. Install Appium Server

Appium relies on Appium Server for testing, so Appium Server needs to be installed and started.

In a command line window, execute the following command to install Appium Server:

npm install -g appium

6. Configure Appium environment variables

Configure the ANDROID_HOME environment variable. Open the system environment variable settings, create a new variable called ANDROID_HOME, and set it to the path of the Android SDK.

Configure the APPIUM_HOME environment variable. Open the system environment variable settings, create a new variable called APPIUM_HOME, and set the path to the Appium installation directory as the variable value.

After completing the above steps, the Appium tool environment is installed, and Appium can be used for automated testing and development of mobile applications.

Finally: The complete software testing video tutorial below has been organized and uploaded, and friends who need it can get it by themselves【保100%免费】
insert image description here

Software Testing Interview Documentation

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 Ali, Tencent, and Byte, and some Byte bosses have given authoritative answers. Finish this set The interview materials believe that everyone can find a satisfactory job.
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/m0_67695717/article/details/132430074