[Automated testing] Appium environment settings

The environment configuration required to start Appium is a bit complicated. Here we sort out the required environment configuration, and attach the effective tutorials tested by the bloggers. Some tutorials are a little old, and the bloggers also made notes, and there are some older steps. The master made a new graphic tutorial based on the existing situation. You can refer to the attached tutorial and new instructions to realize the environment settings of Appium step by step.
Main references:
https://blog.csdn.net/qq_23579405/article/details/124971377
1 Install Node.js
https://blog.csdn.net/qq_48485223/article/details/122709354
2 Configure JDK environment
https:/ /zhuanlan.zhihu.com/p/528004292
https://blog.csdn.net/qq_44684757/article/details/117405753
https://blog.csdn.net/qq_63282514/article/details/125793108
3
Suggestions for configuring the Android SDK environment Install android studio, with its own SDK and the emulator needed later
https://zhuanlan.zhihu.com/p/528196912
[From downloading and installing android studio to SDK installation, emulator installation, and creating project files, it is very complete, but Not new, you can refer to it properly]
https://www.bilibili.com/video/BV1S44y1572j/?vd_source=25ae627060b2531580e5a2c7933589d1
[Online SDK installation]
https://www.cnblogs.com/lc-blogs/p/17012523.html [Local SDK installation and SDK environment configuration are available]
4 Install Appium desktop version
https://blog.51cto. com/busy/5450128
It is worth noting that it is slightly different from what is written in the tutorial. After clicking inspectorMoved, a gitub page will appear instead of Appium’s session 5. Configure the Python environment as written in the tutorial
insert image description here
. , Install selenium, Appium-Python-Client library
[There are many tutorials about python, so I won’t repeat them here]
6 Install the emulator
https://jingyan.baidu.com/article/e73e26c0ba406265adb6a7b6.html
https://blog.csdn .net/raspi_fans/article/details/125241703
Attach the page where the current version (2022) of the blogger appears:

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
7 Appium desktop version configuration
After completing the above steps, test on the Appium session interface, and an error message is displayed: Error
Could not connect to server; are you sure it's running? If you are using the browser version, also ensure your Appium server has been started with --allow-cors.
This tutorial gave a little idea: https://www.cnblogs.com/ximaomao/p/16170646.html
but still reported an error, but the above tutorial gave another tutorial link: https: //stackoverflow.com/questions/69533160/appium-inspector-not-starting-session-allow-cors-error
This tutorial says: Set "Allow CORS" to true from the advanced menu. Therefore, on the startup page of the Appium desktop version, click "Advanced", check "Allow CORS", and then start Appium to configure successfully!

insert image description here

Guess you like

Origin blog.csdn.net/weixin_47970003/article/details/130540044