Learn about appium capabilities for ios device, we have the largest and most updated appium capabilities for ios device information on alibabacloud.com
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
target machine, and if not, will find the target app based on Appactivity and Apppackage to the target machine.
apppackage : Can be obtained by using the SDK's own tool AAPT
appactivity: Also available through the tools above. One thing to note is that the value can be attached packagename, or not attached, which means that the following two methods of filling are right. Noteslist "and" Com.example.android.notepad.NotesList "
Appium
target app on the target machine. If not, the app will be searched for on the target machine based on appActivity and appPackage.
AppPackage: You can use the aapt tool provided by the sdk.
AppActivity: You can also use the above tools. One thing to note is that the value can be appended with packageName or not, that is, the following two filling methods are correct. notesList "and" com. example. android. notepad. notesList"
Appium server
Desired capabilities must be provided at the start of the session.Desired capabilities is essentially an object of key value, and it tells Appium server something like:
Does this test start a browser or start a mobile device?
Start Andorid or start iOS?
What
Brief introductionDesired capabilities is a collection of some key-value pairs. Python uses a dictionary approach.The client sends these key-value pairs to the server and tells the server how we want to test them. For example, we can set PlatformName's capability to Android, which is to tell the Appium server that we want an Android session instead of an IOS one.
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
environment is ready , use the command : Appium-doctor3. in the real machine operation also need to install ideviceinstaller, used to control the app on the computer on the loading and unloading of the open, etc. . same Use Brew installation :Brew Install Ideviceinstaller4. finally , test scripts that use the python language . to install python -related modules : selenium,appium-python-client. You can inst
Appium-android against IOSAuthor: Max.baiTime: 2014/10Appium-android against IOSAppium support for Android also supports iOS. But there is a very big difference between the two, I use appium one months, just started to be Android, followed by iOS. So it was a lot harder for iOS
the TestApp in the demo.
Launch Appium->appium doctor-add app
6.Creating test Cases
Open Eclipse and add the following code:
PackageCom.dbyl.core;Importorg.openqa.selenium.WebElement;ImportOrg.openqa.selenium.remote.CapabilityType;Importorg.openqa.selenium.remote.DesiredCapabilities;ImportOrg.testng.Assert;ImportOrg.testng.annotations.AfterClass;ImportOrg.testng.annotations.BeforeCl
, start the terminal and enter the terminal Xcode-select--installNine: Mobile terminal installation WebdriveragentThe new version of Xcode for iOS testing requires the use of webdriveragent, a simple explanation, you need to use Xcode to install a signing certificate on the real machine before testing, you can see the test device will install a webdriveragent app and then through the app To test the app bei
ObjectiveThe small partners who have done the app test on iOS should know that the normal user installs the app from the AppStore, installs the test version of the app, is usually developed to the QR Code Scan code installation,or develop an. IPA installation package file, which is installed through itools. It's not that easy to install app testing on an iOS simulator for a small partner who doesn't have an
Launch.
3. Recording:Click Inspector, the emulator app can be opened, Appium display emulator interface is OK. Turn on the recording feature,In the appium to find the elements to be manipulated, then click or enter the contents of the operation, the simulator will have a correspondingThe change is OK!4. Convert the recorded code into a test code1) Create a MAVEN project in eclipse2) Replace the Pom.xm
so on. On IOS, the value of this keyword must be one of the available device names that you get using ' instruments-s devices '. On Android, this keyword does not work at this time. || ' app ' | '. The local absolute path or remote path where the IPA ' or '. apk ' file is located, or it can be a '. zip ' that includes either. Appium will first try to install the
ro.build.version.releaseModify host add 127.0.0.1 localhost does not appear after server startup is not connectedOpen Interface Modify server address to 127.0.0.1Click Start Service v1.8.0See that a start is successfulClick the button inside the red circle of the pictureStart if the picture configuration modifies Platformversion (System version number), DeviceName (device name), Apppackage (package name), Appactivity (startup page) according to its o
install this app binary on the appropriate device first. e.g.:/abs/path/to/my.apk or Http://myapp.com/app.ipaI used http://sssss/x.zip for the convenience of centrally managing the installerThe problem of the pit Dad, Android is not supported, error can not find the app providedIOS is OK, can be installed, but the test found a lot of controls and put on the local completely not an effect ...So let's just use the local settings.PS: Seemingly 1.3 solve
: Startup activity similar to Android. such as: Io.appium.TestApp.Force Device: Yes DeviceNameUDID: The identity of the real machine.Platform The version number of the Version:ios system.It will be used when running the real machine:Ideviceinstaller. The installation method is as follows:A, install homebrew by the This commandruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"B, installation Ideviceinstaller run:
Question one:There is no communication between the Appium and the device.error Log Fragment : encountered internal error running command:Error:Installing xx.xx.xx failedcause : The lockdown service is hung up, causing appium and devices to communicate.Resolution :1. ideviceinstaller-l see if it is because the lockdown service has been hung, resulting in a failure.2, if confirm is lockdown service hangs, ter
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.