In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Introduction to Appium
Appium is an open source, cross-platform testing framework, which can be used to test Native App, hybrid applications, mobile Web applications (H5 applications) and so on. It is also an important tool for Internet enterprises to achieve mobile automation testing. The testing philosophy that Appium adheres to:
There is no need for the user to modify or recompile the App, the App should be Born to be Automated.
Users should not be restricted to writing and executing tests in a specific language or framework.
The API of the mobile test framework should be stable, reasonable, and should not repeatedly build wheels for automated API.
The mobile testing framework should be open source, including "mental and physical".
This article is an environment configuration tutorial for Appium.
The difference between Appium, Appium-desktop and Appium Client
Appium: is the core of the Appium system, because it is also a web interface service, so it will also be called appium server, including 4723 and other ports opened by default.
Appium-Desktop: in order to make Appium easier to use, to make it easier for rookies to get started, and to make debugging and interface analysis more convenient, the official development of GUI's tool Appium-desktop.
Appium Client:Appium is just a Web interface, it accepts HTTP requests, so each language can encapsulate and send requests, so there are various subprojects under appium. The following is the language support for Appium Client.
Language/Framework Github Repo and Installation Instructions
Ruby https://github.com/appium/ruby_lib[1]
Https://github.com/appium/ruby_lib_core[2]
Python https://github.com/appium/python-client[3]
Java https://github.com/appium/java-client[4]
JavaScript (Node.js) https://github.com/admc/wd[5]
JavaScript (Node.js) https://github.com/webdriverio/webdriverio[6]
JavaScript (Browser) https://github.com/projectxyzio/web2driver[7]
Objective C https://github.com/appium/selenium-objective-c[8]
PHP https://github.com/appium/php-client[9]
C # (.NET) https://github.com/appium/appium-dotnet-driver[10]
RobotFramework https://github.com/jollychang/robotframework-appiumlibrary[11]Appium installation (Mac version) check before installation # check whether the following software is installed # check whether the java environment installs java-version# check whether git installs git-- version# check whether ruby installs ruby-v# check if brew installs brew-v# if there is no brew Need to execute ruby-e "$(curl-fsSL https://raw.github.com/Homebrew/homebrew/go/install)"# to see if android-sdk installs adb``
Install NodeJS
# check node and npm versions of node-vnpm-v by installing nodebrew install node# through brew
Install Appium
Method 1: npm installation (official installation)
# install directly through node, which is prone to network timeout and other exceptions. Npm install-g appium is not recommended.
Method 2: cnpm installation (recommended)
Toggle Taobao NPM image
What is Taobaoyuan mirror image?
This is a full npmjs.org image, which you can use instead of the official version (read-only). The synchronization frequency is currently 10 minutes to ensure that it is synchronized with the official service as much as possible.
Why choose Taobao npm image?
Because the Node installation plug-in is downloaded from a foreign server, it is greatly affected by the network, slow and abnormal. So it would be nice if npm's server was in China, so the Taobao team (Aliyun, Alibaba's business), which we are happy to share, offered this benefit.
# Taobaoyuan installation command npm install-g cnpm-- registry= https://registry.npm.taobao.org# is installed through the npm image of Taobaoyuan. # the installation time may be a little long, so you need to wait patiently for cnpm install-g appium# installation to complete the verification under appium- v# overall check whether the appium environment is installed successfully # you need to install appium-doctor,# through cnpm and then execute appium-doctorcnpm install-g appium-doctorappium-doctor
Installation of Appium (Windows version)
Pre-installation inspection
1. Download address: https://nodejs.org/zh-cn/download/ selects the .msi corresponding to win to download 2. Download completed and install. The next step along the way is 3. After installation, configure C:\ Program Files\ nodejs\; (Ps: here is the path to the corresponding node installation) under the Path variable. Check the node environment, check node-v npm-v separately
Appium environment installation
The installation steps are the same as Mac. It is recommended to install Appium in Taobaoyuan image.
Installation of Appium-desktop
# first, go to the official website to download the dmg file. Official website address: https://github.com/appium/appium-desktop/releases/tag/v1.10.0# download is completed. Double-click the dmg file to install it.
Appium Client (Java&Python) # java version can import related pom dependencies. Io.appium java-client 7.0.0#python version needs to execute pip install Appium-Python-Client.
References
Hogwarts testing School official website: https://testing-studio.comAppium official website: http://appium.io/Appium Client related documents: https://github.com/appium/appium/blob/master/docs/en/about-appium/appium-clients.mdbrew official website: https://brew.sh/node official website: https://nodejs.org/zh-cn/ Taobaoyuan NPM official website: https://npm.taobao.org/
First-tier famous enterprises push channels + process
Download channel of software test data
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.