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
Then the previous article1. Basic Python environment2. Install the NODE.JS,32 or 64-bit according to your own system to choose 3. Install. NET framwork4.5 4. Installing Appium After the installation is complete, run Appium.exe, open, click on the upper right corner icon, is running successfully, each use to open 5. Instal
This article is for reference only and thanks to my colleagues who helped me build my environment.Name of the operating system: MAC OS XVersion of operating system: 10.12.6Next we started to set up the road to build Appium+java+ios, this article only say a probably, after all, the machine has been installed, I do not toss, and spent a few days to get it done.One: Installation Appium1. The author system installed A
") driver.find_element_by_id ("Com.codoon.gps:id/tv_name"). Find_element_by_name ( "Foo")>>> return the driverelement (obj)(4) Find multiple target elements of the current page by element nameFind_elements_by_name ()Use the same way as find_elements_by_id, just change the match condition from ID to name. Please refer to Find_elements_by_id's invocation method, note that its return data type is list, not driverelement.Driver.find_elements_by_name ("foo") driver.find_element_by_id ("Com.codoon.gps
the original version of the Appium1.5.3gui, then why upgrade it? to be compatible with the latest versions of IOS10 and Android7Xcode8 Upgrade will not support the use of uiautomation, but instead use xcuitest, and Xcode8 support iOS 10, so the change is still very large. The development code must use XCODE8 to compile. Appium1.5.3 does not support the use of Xcode8, so upgrade Appium1.6 to match the testAppium1.6, use Xcuitest to support iOS9.3 and iOS10, and use UI Automator2 to support Androi
The previous period of time to learn appium, today is ready to appium environment to build the process of writing, so that we can take a few detours. 1. Install the JDK and make the environment variable configuration environment variable configuration: Add Java_home variable, value: JDK installation path, such as: D:\Java\jdk1.7.0_45 add Classpath variable, value
Appium Service Keywords
Key Words
Description
Example
automationName
The automated test engine you want to use
Appium(default) orSelendroid
platformName
The phone operating system you want to test
iOS, Android , orFirefoxOS
platformVersion
Mobile OS Version
For example: 7.1 ,4.4
deviceName
directory.Test your application:
Link: Http://pan.baidu.com/s/1skPrdVJ Password: BKVH
3. Create a new virtual machine or run a real machineThe simulator recommends using Genymotion, download the. exe directly, and double-click Install.
Website address: https://www.genymotion.com/download/
:
Link: http://pan.baidu.com/s/1nv3YXZz Password: 3u93
If you want to test with a real machine, then you need to turn on t
To be installed together are:1. JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html2, SDK(test installation app required, link to SDK24.4.1 version)http://down.tech.sina.com.cn/download/d_load.php?d_id=45703down_id=2ip=183.11.129.463, Appium client http://pan.baidu.com/s/1nvHXnmh password:n5c84, Xcode,appstore direct Download Installation5, node. JS installation, directly in the official website download installs, t
I. Installing node. js1: First find the appropriate node version of the computer to download.2:: Install the Select path.1) I install it under the D:\appium\node.js folder2) Verify that node is installed successfully:Enter NODE-V in CMD if the following results show that the installation is successful two stepsThe following results are required to add the node's
First, the Environment preparation1. JDK environment configuration A) download and install jdkhttp://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html B) Configure environment Variables B.1New JAVA_HOME System environment variable: C:\Program files\java\jdk1.8.0_25 b.2 Add%java_home%\bin;%java_home%\lib to the PATH environment variable; 2. Node install a) download and
Brief introductionThe following is used to do automated testing of the app is called favorite Catch doll, will later be renamed NetEase catch doll.The Appiumier project mentioned below will contain the APK package for testing and the automated test code.First, a pit.With the high level of customization of Android, some phones are like this, such as Vivo x9s, you in the process of testing debugging will eventually find that jump to some pages driver but not go to this page, Page_souce can not pri
app interface element positioning.
double-click Start. As shown in figure:
2.d:\androidsdk\build-tools\27.0.3\aapt.exe can get the apppackage and appactivity of the app.
Enter cmd:
aapt dump badging d:\quanshi.apk (or drag apk directly to the command line)
the following two lines are the application package name package and the entry activity name
, respectively Package:name= ' com.xxx.android.xx '
launchable-activity:name= ' com.xxx.android.xx.view.xxxrActivity '
3.D : \androidsdk\platform
Premise: According to the previous environment construction introduction, install the relevant environmentStep1: Launch Android emulatorStep2: Start the Appium serverStep3: Demo Code executionHere is the official Demo code: Address Book Management app, install Open app, and add a contact saved actionA. First go to download contactmanager.apk put to E disk E:\Cont
Appium is a good east, Android,ios support, and incredibly robotframework also support Appium, this is the appiumlibrary of this article to introduce.Using the previous article appium+robotframework to implement automated test -1:appium for mobile applications, you know that you can write
Appium Installation and Construction QaQ1: Installation failed when installing testng plug-in online, Tip: Cannot complete the install because one or more required items could is found.A: In the installation to see a lot of articles on the internet said that the direct next can be installed successfully, but the actual operation will appear to fail, I also failed to ins
Use of XPath in Appium
A recent problem in writing the Appium framework is the use of selenium XPath in Appium. There's no tag_name in the app. In fact, everyone has been cheated, no tag_name,classname can be replaced.
Instance:
The objective of this operation is to find the CheckBox above according to text= ' no reason '. According to the node relationshi
1. Open App,open application Http://localhost:4723/wd/hub platformname=android platformversion=4.3
devicename=127.0.0.1:62001 Apppackage=.debug appactivity=. Mainactivity.
I'm using the simulator, I need to manually add the device using the simulator, that is, the ADB connect 127.0.0.1:62001,devicename is the device name, which I write is 127.0.0.1:62001. If you use a real machine, you need to pass the query to know, ADB devices. Using the real machine, sometimes encounter the computer can not r
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.