UI Automation related Tools1. Appium Platform2, Apple's uiautomation3, Google's uiautomationA brief introduction to these tools:1, Appium IntroductionAppium uses Webdriver's JSON wire protocol to drive the UIAutomation Library of the Apple system and the Uiautomator framework of the Android system.Appium uses standard automation APIs on different platforms, so th
store directory be set up. For example: User/sun/workspace9) Install ADT PluginOnline installation: (slower, also available as a second offline installation.) )
Open Eclipse, menu bar Help->install New Software
Then, in the popup window, click Add on the back of work with
Name:androidlocation:https://dl-ssl.google.com/android/eclipse/Click OK.3. Select the ADT version that appears in the list and follow the prompts to install. Resta
enter a value, there is no text, and you cannot find the path. In addition, you can use fuzzy matching, XPath has a contains function. Usage//android.widget.textview[contains (@text, "Shopping cart"). You can also find the "Add to Cart" location. Scene: Locate Please enter the password this input box, no ID, text, Content-desc,classname also have a lot of repetitionUsing XPath, handwriting positioning1. Select the login button as the node firstandroid.widget.textview[@text = ' Login ']2. Re-
1. Appium working principle, life cycle, how to executeIn general, the Appium server is used as a broker, passing the specification of the test script to the Appium server, and then communicating with the underlying tools Appium the server.The bottom tool and the mobile phone for communication operations, the operation
second method to installThe second method installs the Appium.Download the appropriate appium for the operating system from the Appium official websiteversion Appium compressed package, https://bitbucket.org/appium/appium.app/downloads/, I'm using Appiumforwindows_1_4_16_1.zip, To decompress a compressed package:Doubl
rest of Appium caps, e.g., "Apppackage"Fix bug with custom KeyStore apk signingAllow multi actions without an elementSelendroidFix command timeout bugSource Code (Zip)3. appium1.1 MilestonesThe following features are added to the Appium 1.1 milestone
Support for Android alert messages
Support for genymotion virtual machines
Support for internati
devices. The tool is based on Libmobiledevice, so the first step is to complete the Libmobiledevice compilation installation. 2. Terminal execution: Brew install Ideviceinstaller3. If step 2 performs an error, it is possible that the Carthage is not installed and the terminal executes the brew install Carthage4. Check if the installation is successful and if it appears, the installation is successful.The usefulness of Ideviceinstaller1. Command idevice_id-l can get Udid2. Name Ideviceinstaller-
Recently feel appium quite fire, read some information, originally want to use NPM online installation, meet various problems, first simply say:Use command in cmd window: npm install-g appium Install, Report no Python error, OK, download python (environment variable autoconfiguration), I download is 3.3, also hint Python version is wrong, according to prompt, need 2.5 to 3.0 version, downloaded Python2.7,ok
BackgroundSince the start of the iOS, then the first step is to run the demo to see the effect, "Appium learning-First Glimpse" in the text has already put the official demo run up. Now it's time to do something else.Inspector ProblemsInspector is a tool used by the Appium client to probe the layout of iOS elements. Of course Android is also available, but
Summary of Appium principleAPI interface calls Selenium interface, Android bottom with Android instrumentation (api2.3+ by binding another independent Selendroid project), Uiautomator interface (api4.2+ ), iOS UIAutomation interface with iOS underlying.Client/serverarchitectureAppium The server is written in node. js, and installing node. JS can be used directly
Configur E android_home. WARN appiumdoctor-manually Configure Java_home. WARN appiumdoctor-manually Configure Android_home and run Appium-doctor again.info appiumdoctor # # #info appiumdoctor inf o appiumdoctor Bye, run Appium-doctor again when all manual fixes has been applied!info AppiumdoctorSome of the above software is not installed, next make up.A.xcode Command Line Tools$ xcode-select--installxcode
1, the Python environment to build, here do not do too much introduction2. Install node. js2.1, official website Download node.js:https://nodejs.org/en/download/2.2, get to the installation file, directly double-click the installation file, according to the program prompts, complete the installation of Nodejs.2.3, after the installation is complete, run cmd, enter Node–v, if the installation is successful, will output the following version information:3. And
Those pits that run Appium automation on the real machine
First pit, how to start appium to ensure it communicates with Appium server,
Appium-u UDID--app Bundle ID
A second pit,
Selenium.common.exceptions.webdriverexception:message:u ' A new session could not be created. (Original error:instruments crashed on startu
transmitted.The most important role of desired capabilities is to tell the server the context of this test. Do you want to do a browser test or a mobile test this time? If it's a mobile test, Android or iOS, what app do we test if we test Android? Server of these questions desired capabilities must answer, otherwise the server does not buy, nature will not be able to complete the mobile app or browser laun
environment variables:New variable: Android_home value: D:\AUTOTEST\ADT\SDK (Just an example, change to your installation directory)Modify the Path value:%android_home%\tools;%android_home%\platform-tools
Go to the SDK installation directory and run SDK Manager.exe
Enter Tools-options and do the following settings.
HTTP Proxy Server Input mirrors.neusoft.edu.cnHTTP Proxy Port Input 80Also select Force https:sources to be fetched using HTTP ....Last click Close closes the setti
This problem exists because Appium is incompatible with the latest version of mac10.12.Since 10.12 is the latest Mac version, appium1.5.3 does not provide support, so:In terminal input GREP-RL "Could not detect Mac OS X version from Sw_vers output:"/applications/appium.app/Locate the contained file and modify the version number.Here's how to modify it:Http://stackoverflow.com/questions/40129794/how-to-fix-error-could-not-detect-mac-os-x-version-from-s
:~ guowenxie$ Npm-v2.0.0-alpha-51.7 AppiumYou can now start installing Appiumguowenxie-macbookair:~ guowenxie$ Appium-v1.2.0You can also download the APPIUM:APPIUM-0.18.0.DMG directly here1.8 WDNPM Install WD1.9 Xcode and Android SDKI'm not talking about this.1.10 Checking the environmentAppium provides a doctor that runs Appium-doctorguowenxie-macbookair:~ guowe
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.