Objective====================The roadmap for Web Automation testing is this: programming language Fundamentals---> Testing framework--->webdriver API---> Developing automated test Projects.The course of testing for mobile automation is longer: programming language Fundamentals---> Testing frameworks--->android/ios development testing Fundamentals---->appium API-----> Develop mobile automation projects.=====================
"Selenium Webdriver") specifies that a set of client-server-side protocols (that is, JSON wire Protocol) is used, based on this set of protocols, The client can send the HTTP request to the server appropriately, regardless of the language it is written in. In fact, there are now clients written in different popular languages. This means that you can use any of your favorite test execution process management platform and test framework, because you us
Appium Introduction
Appium is an open-source, cross-platform testing framework that can be used to test native and hybrid mobile applications. Appium supports testing on iOS, Android, and FirefoxOS. Appium uses the json wire protocol of WebDriver to drive the UIAutomation library of Apple and the UIAutomation framework
The features described in Appium's website are fascinating, just recently in the study of mobile Automation testing, so it's interesting to explore the appium of this young tool.But look at the official documents, is to let the beginning of I feel puzzled.So, I can only search the limited resources on the Internet, first from running Appium provide support Python,javascript,java,ruby and other language exam
command in the console and execute it, and if the following information is present, the Appium environment is configured successfully:Running Android Checks? Android_home is the set to "D:\DEVTOOL\ANDROID\SDK"? Java_home is set to "C:\Java\JDK8."? ADB exists at D:\DevTool\Android\sdk\platform-tools\adb.exe? Android exists at D:\DevTool\Android\sdk\tools\android.bat? Emulator exists at D:\DevTool\Android\sdk\tools\emulator.exe? Android Checks were suc
Summary of Some Problems in testing ios applications using the appium tool in java
Question 1
Version 1.3.7 seems to have a bug. You need to replace this file and go to the installation directory of apium to modify the node_modules/appium/node_modules/node-idevice file. Otherwise, the following error occurs. I don't know when to fix this bug ..
Org. openqa. selenium
After the installation, find Appium in the application, click its icon, if everything is OK, then there will be a appium after the start of the interface window, as shown in.1.1 IOS SettingsClick on the top of the Apple icon to eject the iOS Settings window as shown in.In this window you can set up the iOS app that will be tested, because next we write the script to run the test, so we can leave it all with
As the first two articles are mainly translated from the Appium official website, because I am not very good English, so please forgive the reader, but also thank you for your love and support.OK, let's start installing Appium in Windows, Appium in the article after the specific installation in OS X.In addition, the official network said first to install node. js
1. Documents:/applications/appium.app/contents/resources/node_modules/appium/node_modules/appium-android-driver/lib/ Driver.js, comment The following lines of codeawaitthis.adb.uninstallApk(this.opts.appPackage); awaithelpers.installApkRemotely(this.adb,this.opts); awaithelpers.resetApp(this.adb,this.opts.app,this.opts.appPackage,this.opts.fastReset); awaitthis.checkPackagePresent();2. Documents:/applicatio
The first article has successfully installed the Appium, and because the previous use of Monkeyrunne has been configured with a basic Android test development environment (JDK, SDK) and set the environment variables, but not enough.
This is mainly the configuration of environment variables: Android, Appium, and update Sdkmanager.
1. Add an Android environment variable
"My Computer" right-click menu---> Prop
British Civil Service Network: Http://appium.io/introduction.html?lang=zhAppium IntroductionAppium is an open source automated testing tool that supports native, mobile-browser-based, hybrid applications on iOS and Android platforms.
native app : Apps written only with iOS and Android Standard SDK
Mobile browser-based apps : Apps accessed with a mobile browser (Appium supports Safri on iOS and Chrom on Android or embedded "browser" apps)
Appium server capabilities tells Appium how to run automated tests, so you need to know more about them. Official documents:http://appium.io/slate/en/master/?ruby#appium-server-capabilitiesAppium Server CapabilitiesAutomationname:which automation engine is used, the default is AppiumPlatformName:which mobile operating system to use, IOS Android or Firefoxosplatfo
framework and platform (Eg:testng,jtest)
Third, use case writing process1, start Appium server;2, init driver;Desiredcapabilities settings: app, device, PlatformName, devicename, Udid, timeout, etc.3, use case execution: Simulate the user to do UI operation;4. Test Complete:1. 卸载app:removeapp 2. driver退出:driver.quit()Four, the common API element positioningThe Appium element positioning method relies
virtual machine. You can set it up in eclipse by selecting the following:The configured virtual machine settings are as follows:Sixth step: Start configuring the relevant development environment in Eclipse, primarily the jar package associated with jdk,selenium,appium-client (the package is downloaded on the Web by Appium's client package called Java-client.jar). Then you can start writing the test code, a
. Directly double-click the Appium-installer.exe file to install, the desktop will generate a appium icon3. Place the Node_modules Bin directory in the path path of the system:C:\Program Files (x86) \appium\node_modules\.bin4. Configure environment variables after successful installation. Check if the environment required for
Appium installation Process
node. JS was installed first. Download the exe installation file on node's official website.
Execute in node command line npm install -g appium to install Appium, error, invalid.
Go to appium.io official website, download the Appium compression pack. In fact, this package already con
I. Start AppiumAfter installation, find Appium in the desktop or menu, double-click or click to open Appium.exe, if everything is OK, then there will be a appium after the start of the interface window, as shown in.1.1 Android SettingsClick on the first robot icon in the top left corner to eject the Android Settings window as shown in.In this window you can set up the Android app that will be tested, becaus
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= ' n
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.