1. What do I need to prepare in advance?
programming Environment ,appium client,appium-desktop,1 test machine
In this case, Python is used as a programming language and tested using a An Zuojin machine.
2. Install the Android SDK
indicate: If you do not run the test using the Android emulator, you can skip it, however, it is recommended to install it, because some of the tools it comes with are appium testing must be used! such as Uiautomatorviewer.bat, often used to crawl page elements.
Unzip the downloaded Android SDK to get the following directory
Configure the Android environment variable in a way similar to the Java environment variable: The result of my local directory is:
D:\android\sdk
Set Environment variables below:
"My Computer" right-click menu, Properties, advanced environment variables--System variables--New environment variable Android_home
Locate the path variable name, "edit" to add:
3. Installing Appium-desktop
The Appium Mobile test has a very re-appium-server component, which is mainly used to listen to our mobile devices (real machines or simulators), then parse the Appium test scripts written in different programming languages and then drive the mobile device to run the tests.
But Appium-server has not been updated for a year or two. Windows edition Appiumforwindows_1_4_16_1.zip at the end of 2015
So, the new tool appium-desktop come! It comes to continuing the mission of Appium-server, of course, Appium-server is still available at the moment.
The installation process is too simple, double-click the exe file, and then wait for the installation finished, there is no need for you to set any options. So, this is not a map.
During the installation process, 360 prompts for a program to modify the DLL file, choosing to allow all actions of the program
The desktop will generate a purple appium icon, double-click to open the
The default is to display the monitored host and port, which is consistent with the appium-server. Click the "Start Server V 1.6.5" button to start the service.
4. Connect the real machine, execute the appium test script
This is the Huawei Test, which connects the phone and the computer via a data cable and performs the Phone Assistant Installation wizard.
Before you actually execute a test script, you should also configure the Python-selenium environment
Open Pycharm,settings-->default settins-->project interpreter--> install selenium and appium-python-client
Now start the real device, execute the Appium automated test script, and run the test through Appium-desktop.
Finally share a magical website, Android developed the latest packages and tools are all in this area can be down to.
: http://mirrors.neusoft.edu.cn/android/repository/
Appium Environment Construction