First, install the Python libraryThere are many ways to install the Python library, such as PIP installation, source file installation, and run package installation, but the most common use is to install with PIPAppium+python do the automated testing of the mobile end, you need to install the following Python library, open the cmd command:InstallationAppium-Python-ClientPip Install Appium-python-clientInstallationschematicsPip Install schematicsInstal
2.1 Light-weight Interface Automation test (not read carefully)For this part of the test, the most straightforward way is to validate the request from the interface level.Using the Open Source Test tool JMeter as the engine, the sending interface request, as well as the parsing and assertion of the results are given to JMeter's basic functions.2.2 Appui level of automation (iOS only)1. Instrument-based UI A
1.monkeyMonkey is Google's own thing, it can generate some pseudo-random user event streams such as analog user clicks and other gestures, as well as some system-level events. It should be the originator of the current popular mobile automation framework or tools. Monkey should be considered as a client-side Performance testing Tool , testing the stability of client applications, robustness is quite good. M
is successful, view the current Appium version via Appium-v, and directly enter Appium to start the Appium server sideAs shown in the following:Fifth Step install Appium clientAppium Client for capturing location information on app: https://github.com/appium/appium-desktop/releases/tag/v1.2.1As shown in the following:Double-click the installation, the desktop will have a appium shortcut after successful installation.As shown in the following:All the environments that windows-android-appium here
/1hqggrvaThis is the Android Framework Source Code, which is downloaded and decompressed to copy or move the entire folder to .../android-sdk-windows/sources folder , and then reopen SDK Manager. exe. For the sake of insurance, in case of later use and not installed, so here all installed.Click "AVD Manager.exe" below to create the android emulator. Click "Create .... " "If the display resolution is lower, try to choose a low-resolution "Device".Click "OK" in the AVD Manager window and click "St
But more explanations, please click the link to see the course catalogue you knowMobile app Test starts from scratch (beginner)Http://edu.51cto.com/course/course_id-1923.htmlMobile app Test starts from scratch (intermediate)Http://edu.51cto.com/course/course_id-2078.htmlMobile app Test starts from scratch (xx article)Going onlineMobile app Test starts from scratch (xx article)Going online"Video" mobile app features, performance,
First, install the Java environment:The Java environment is a JDK and JRE, and the JDK is Java development Kit. Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment.The JRE is the Java runtime enviroment, which is the Java Runtime Environment, and is the user of Java-oriented programs.Install yourself here Baidu.After configuring the Java-related environment variables, verify that Java is successful: Second, install Android ADT
Install Wxpythona, install dependenciesWxPython is a very well-known GUI library for Python because RIDE was developed based on this library, so this must be installed.B, installation process: http://www.wxpython.org/download.phpFind the appropriate version on the official web download, exe executable file, double-click the button.3.1 Open the installation package click Next3.2 Click Agree agreement then next3.3 Continue clicking Next3.4 dialog box appears select "Yes" to start the installation3
: Installation Ideviceinstaller1. Description: cross-platform libraries and tools for communicating with iOS devices to install uninstall apps or backup apps for iOS devices. The tool is based on Libmobiledevice, so the first step is to complete the Libmobiledevice compilation installation. 2. Terminal execution: Brew install Ideviceinstaller3. Check if the installation is successful and if it appears, the installation is successful.V: Install Xcode1. Install: can be opened and downloaded in App
Appium Installation1. Installing Nodejs2. Installing AppiumiOS Side Environment installation1. Install Xcode2. Install Xcode Command Line ToolsAndroid Side Environment installation1. Download and install the JDK, set the JAVA_HOME environment variable (: reference website)2. Download and install the SDK, set the ANDROID_HOME environment variable (: reference website)Environment validation: Execute CMD command node Appium-doctor.js,check environment installation(Note: Mac description-for Java_hom
The click Element keyword is used to simulate clicking an element on the app interface, which receives a parameter [locator], where locator refers to the way the interface element is positioned.Example 1: Use the click Element keyword to simulate clicking on a button, where locator uses name to locate the element that needs to be clicked, and still uses the app interface previously used to do the operation example.Open application Http://localhost:4723/wd/hub platformname=android platformversion
The Click a point keyword is used to simulate clicking a dot on the app interface, which receives two three parameters [x=0 | y=0 | duration=100],x and y represent the coordinate position of the point, and duration represents the duration of the click. If these three parameters are not passed in, the default x=0,y=0,duration=100 will be divided into tables.Example 1: This is still done using the app interface above, using the click a point keyword to simulate clicking on a button and entering th
Write in front:
Appium environment is set up, Genymotion Simulator is also configured OK, then began to write the first demo
First, get the APK package name
Open cmd, enter the instruction AAPT dump badging D:\test\xxx.apk (full name of the APK, such as magic Diffuse camera apk). If the package name is obtained through Appium, it may not be accurate.
Package Name: com.manboker.headportrait
Ii. acquisition of Launcheractivity
Take the previous step, and th
Build your system environment: WINDOWS7 version 64-bit systemFirst, the Environment preparation
jdk8.0.151
Android-sdk_r20.3.4-windows
python3.5
appium1.4.16.1
Node-8.9.3
Second, the above tool installation processPlease self-Baidu, here skipThird, test the installation environment1.JDK environment, input java-version on cmd command line2.ANDROID-SDK environment, enter android at cmd command line, Open SDK Manager interface3.python environment, enter python on the cmd command
Poptest is the only training institute for developing Test and development engineers in China, aiming at the ability of the trainees to be competent in automated testing, performance testing and testing tools development. Poptest Test Development Engineer Employment Training please consult qq:908821478) Mobile automation testing is the technical requirements of future Test engineers, we need to lay a good f
results, the first input box was positioned through xpath=//android.widget.edittext[1], and the second input box was positioned through xpath=//android.widget.edittext[2].Example 3: Positioning elements by accessibility_id, accessibility_id corresponding to the Android app, its corresponding property is Content-desc, here is still using the above app interface as an example, But we added the Content-desc property to the first EditText input box, as shown in.Open application Http://localhost:472
The mobile web front end you want is here!
Large front end direction: Mobile Web Front end, native Client, node. js,
Large Front End frame: React, Vue.js, Koa
Cross-terminal technology: HTML 5, CSS 3, JavaScript
Cross-platform framework: React Native, Cordova
Front-end Engineering: Grunt, Gulp, Webpack
Front-end precompilation: Babel, Sass, less
Automated testing: Jasmine, M
The mobile web front end you want is here!
Large front end direction: Mobile Web Front end, native Client, node. js,
Large Front End frame: React, Vue.js, Koa
Cross-terminal technology: HTML 5, CSS 3, JavaScript
Cross-platform framework: React Native, Cordova
Front-end Engineering: Grunt, Gulp, Webpack
Front-end precompilation: Babel, Sass, less
Automated testing: Jasmine, Mocha, Kar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.