当前位置:网站首页>Win10 installing appium environment
Win10 installing appium environment
2022-06-09 04:19:00 【Yu_ monotonously 】
1 Appium Environmental Science
1.1 install Node.js
Node.js The installation of is relatively simple , Download installation package install ( Installation package node-v16.13.1-x64.msi), Then you can go on with the next step 
After installation , Input in the terminal node -v, If the version number is displayed, the installation is successful 
1.2 JDK Installation and environment variable configuration
Download installation package , Double click Install Package (jdk-8u333-windows-x64.exe), Then go crazy all the way to the next step 

!!! Pay attention to the installation position , The default is C:\Program Files\Java, Try not to modify .
If you want to modify :
First of all : Remember to create a new one under the target path Java Folder , Because after changing the path , It's not automatically created Java Folder .
second : The installation path must be clear , Because the environment variables to be configured later are .
After installation , You need to add environment variables
In turn :
Right click on my computer , Click properties 
Click Advanced System Settings 
Click environment variable 
Click New
Try to click the browse directory to find the variable value , Do not enter manually , Avoid wrong folder name input , Or the path cannot be found due to the wrong path input .
Variable name :JAVA_HOME
A variable's value : Yours jdk Install under directory jdk1.8.0_191 Folder ( The number in the name will vary with the version number ), Try not to enter the variable name manually , It is recommended to click Browse directory , Find the folder , Click ok 
Variable name : Fixed write on the picture , A variable's value : To find you JDK The folder after installation , Click OK when finished 
Find the name Path Variable name , Click edit
In the following window , Create the following three environment variables , You can paste directly
%JAVA_HOME%\bin
%JAVA_HOME%\lib\tools.jar
%JAVA_HOME%\jre\bin
stay Path Add three environment variables in the , And save exit
Input... At the terminal java and javac, The following screen appears , Description installation successful 
1.3 SDK install
1.3.1sdk Introduce
build Android Platforms are not necessary , If you don't want to use it Android If the simulator runs tests, it can skip , however , Proposed installation .
1) Android SDK What tools are provided for us
stay Android SDK Install under directory tools and platform-tools There are some very important tools in the folder , Such as dx,emulator,adb,ddms,aapt etc. . These tools guarantee java The code is compiled and deployed to the simulator .
2) What do these tools do
dx.exe yes Android SDK The compiler , When running Java When you file ,dx.exe Will create a with .dex Postfix file ,Dalvik The virtual machine can recognize and execute the file .
emulator.exe To start Android Simulator .Android The simulator is used in a virtual Android Run your... In the environment Android Applications .
adb.exe be located platform-tools Folder , Developers can use it to install and launch applications on the simulator .
ddms.exe Used to start Android Debugging tools .
aapt.exe For viewing .apk file , Is the disassembly tool for Android programs .
reference :Android SDK brief introduction
1.3.2 sdk install
Download installation package , decompression sdk Installation package (android-sdk_r24.4.1-windows.zip), Unzipped directory , Put it in your own designated position . Remember the location of this directory , And there should be no Chinese in the catalog 

Click Run... In the extracted file SDK Manager.exe
explain :
• SDK Manager It's just one. Android Software development kit Manager , It's like a bridge , Connect local and server , Download Android development tools from the server to the local .

The first three must be installed 
Google USB Driver Must install
In addition to these four mandatory items , Other automatically checked items , It's OK to install it or not , at will .
Click on the Install 4 packages…
Click to accept , Click on the install
Will download for a while , It's going to be fast
When the download is complete , Yours sdk Under the folder , It should be 
After that, you also need to add environment variables , and jdk Same operation , Click New , add to
Variable name :ANDROID_HOME
A variable's value : Yours sdk Install under directory android-sdk Folder , Try not to enter the variable name manually , It is recommended to click Browse directory , Find the folder , Click ok 

The attention is to find , It's not new
Add environment variables , It can be copied directly
%ANDROID_HOME%\tools
%ANDROID_HOME%\platform-tools
Add two environment variables
Click OK when finished , Return to the upper menu , Make sure that , preservation
Input... At the terminal adb version
The above information shows that the installation is successful
Use after installation PC End and mobile end use USB Wire connection
When connecting mobile terminal equipment , Input... At the terminal adb devices, When the device information appears, the connection is successful 
1.4 install Appium
Download installation package , Unzip the installation package Appium-Server-GUI-windows-1.22.0.zip, Unzip the directory and put it in the specified location , Click on Appium Server GUI.exe To run successfully 
When running an automated test program PC The mobile terminal needs to be connected , And keep it appium server Turn on
1.5 install appium-inspector
This step is not required , No installation . If you need to redevelop the automated test program , The tool can be installed for positioning app Elements .
Download installation package , Unzip the installation package directly Appium-Inspector-windows-2022.2.1.zip file , Click on Appium Inspector.exe To run successfully , The premise of operation is to connect the mobile terminal equipment , And start first Appium Server.app Refer to the following contents and screenshots for the operating parameters of , The equipment related information needs to be modified according to the connected mobile terminal equipment :
{
“platformName”: “Android”,
“platformVersion”: “10.0”, # android System version
“deviceName”: “CD2131321312331223”, # equipment id
“appPackage”: “com.test.zzpackage”, # app Package name
“appActivity”: “com.test.zzpackage.Activitys.MainActivity” # app Startup page
}

To get the package name and startup page, you can refer to :
adb View the currently applied package name of the mobile phone , Package name and installation location of all applications
appium Report errors Stderr: ‘Security exception: Permission Denial: starting Intent { act=android.inte… explain
边栏推荐
- (3)数据绑定指令
- This artifact is highly recommended. One line command will convert the web page to PDF!
- MySQL: common statistics, grouping statistics and time format conversion
- Expansion chip, hisi3559av100 I2C debugging
- App上看到就忍不住点的小红点是如何实现的?
- (5) 双向数据绑定
- Wechat applet: (exception) expected begin_ Object but was string at line 1 column 1 path $solution and analysis process
- Rich color changes
- 全国大学生信息安全竞赛(CISCN)-reverse-复现(部分)
- number-precision--使用/实例
猜你喜欢
![[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)](/img/9f/3ccef9a39e29472ed6ed00d7082012.png)
[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)

openGL_ 03 use different VAO and VBO, and different shaders

如何计算NFT的稀有度?

golang---並發runtime包

My creation anniversary
![[SWPU2019]ReverseMe](/img/82/e8160f4128bfa09af53443cf219491.png)
[SWPU2019]ReverseMe

举例说明tf中LSTMCell的cell、num_unit是什么意思

全国大学生信息安全竞赛(CISCN)-reverse-复现(部分)

Golang - - paquet d'exécution simultané

Golang --- comparison operation of various types of variables
随机推荐
5. Quick (Group) sort
lua 运算符
proteus仿真Arduino
P5354 [ynoi2017] yoyo OJ (tree section and bit operation)
Binary processing of opcv image
Template: constant coefficient homogeneous linear recurrence (linear algebra, polynomial)
(6) Events
MySQL queries which table in the database has the most fields
Rigidbody2d SweepTest Rigidbody2D.Cast 但用于rotation 旋转
call apply bind 的作用和区别
JVM interview
golang---並發runtime包
Online Morse code online translation and conversion tool
微信小程序开发的页面组件
OpenInfra基金会发起“定向基金”计划,推行成功开源治理经验
openGL_ 02 point line surface triangle
openGL_03使用不同的VAO与VBO,以及不同的shader
Give an example to illustrate the cell and num of lstmcell in TF_ What does unit mean
MMdet修改检测框字体大小、位置、颜色、填充框
VS Code `launch. Json` and `task Predefined variables available in json`