Appium steps:Basic Environment1. The simulator or the real machine is required due to the operation of the mobile phone terminalItools Simulator, Real machine2.appium operation app, what do you need to know about the app? Need to know the app package name1. Ask Development2. Use the ADT AAPT command to view3. Use the Appium operation app-to identify the elements
speaking, if the speed of the extras is allowed, the time is abundant, it is all downloaded, should be good things. But at first, you can use only three of the installation, Android support Repository, Android Supportlibrary, and Google USB Driver.Configure the SDK HOME to append the \platform-tools "and" \tools "paths to the system environment variable path, as Check: ADB version4. Installing the ADT plugin for EclipseOnline installation (not recommended, reason you understand: slow)
original link: http://blog.csdn.net/bear_w/article/details/50345283
1. Create a session frequently with commands:
Desiredcapabilities cap = new desiredcapabilities (); cap. Setcapability ("Browsername", "" "); Web browser name (' Safari ', ' Chrome ', etc.). If the application is tested automatically, the value of this keyword should be empty. Cap. Setcapability ("PlatformName", "Android");//The Phone operating system cap you want to test. Setcapability ("Platformversion", "4.4");/
Installation Appium spent a lot of time, Baidu has a variety of methods have failed. Finally succeeded. Record the installation process:1. Install nodeApt-get install NODE.JS2, installing Npmapt-get installed NPM3, installing CNPMNPM install-g CNPM4, Installation AppiumCNPM install-g Appium5. Start Appium~$ Appium [Appium
. Install Appium,cmd under Administrator Rights Command installation: NPM install-g [email protected]; Note the latest version of the installation Appium will be reported to install failed at the [email protected] error;-can omit this step, directly install appiumforwindows_1.4.16.1 try;4, install the appiumforwindows_1.4.16.1, after the installation of the configuration
Appium runs in the background, saves the startup Appium command as a shell file, and the file name contains Appium, such as start_appium.sh. To kill the Appium service that has been started before starting,Build_id=Dontkillme #防止执行脚本被杀死PS-ef |grepAppium |grep-Vgrep|awk '{print $}'|Xargs Kill-9#杀已经启动的appiumnohup
After installing the Mobile Automation test environment in accordance with the installation documentation, including: SDK, JDK, node. js, Appium, and client, Appium-doctor can successfully detect each companion version. Such as:However, the run from Appium import webdriver error, escalation: Importerror:cannot Import name invalidargumentexception error.I view the
Automated functional testing with Appium the coolest thing is that you can write your test code in any language that has the most appropriate test tool for you. One of the most selected test programming languages is Python. It's easy to write test code for iOS and Android apps using Appium and Python.
In this post we will explain in detail the steps involved in testing an iOS sample app using the example c
Description of the Capabilities passed to the Appium server to enable the corresponding Android Automation session.
Desired Capabilities is a set of key-value pairs sent by the client to the Appium server to tell the server which session we want to start. Some key-value pairs are used to modify the behavior of the server during the automation process. For example, we can set the capability value of the key
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
The purpose of this article is to deepen the understanding of the role played by Appium server by analyzing the log printed by Appium server.This entire process is performed by a test case to the end, and the object being tested is the SDK's own notepad.apk. Test case is simple: Open the Notepad program and click on the android menu options button to bring up the "Add Note" menu button, then click the butto
Some days ago, the configuration of the Appium test environment, as for the environment how to build, reference: http://www.cnblogs.com/tobecrazy/p/4562199.htmlAndroid Client Login: http://www.cnblogs.com/tobecrazy/p/4579631.htmlIn the process of using appium, some appium pits are found (which will be described in detail in the rear).
ADB Basic Command Summ
1. Appium testing (function testing, user acceptance testing, black box testing)-Rating: 8
Appium testing is equivalent to black box testing. Only test the UI logic correctness. Therefore, the Appium testing framework provides limited methods. Obtain an AppiumDriver object. This object only has a lot of findElements() To obtain the UI element. The UI element is
* * * If you just want to know the image similarity recognition, see the first step directly* * * If you want to know appium according to image recognition Click Coordinates, need to see tertiary stepBackground |when you do a UI test, you find that the iOS custom UI control is not recognized by Appium. So consider finding coordinates by identifying the image and then solving the problem by clicking on the c
Small partners who are familiar with selenium automation should know that Webdriver provides eight element positioning methods:IdNameClass nameTag nameLink textPartial link textXpathCSS Selector appium element positioning and webdriver slightly different, specific differences, the following will be described in detail, Before we do this, we open uiautomatorviewer.bat (under the Sdk/tools path) Appium
General boot Appium Service method:Open cmd, Run command: #>appium-a 127.0.0.1-p 4723 When the program outputs such as information, indicating that the Appium started successfully, it can be run at this timeTestThe script. Write UI Automation using the Appium frameworkTest Cases, always need to start
The main reference article "Insect Master" Automated deployment tutorial, but in combination with some of their own circumstances recorded this blog ~1. Preparing the installation package1) JDK;The download and installation process is omitted, I downloaded the jdk1.7 version.2) adtsdk;The SDK downloads a combined version of Eclipse and SDK, and after downloading it needs to update the Android version required in the SDK Manager, and I
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.