Appium Two: Parameter configuration and initial knowledge inspector

Source: Internet
Author: User

Premise:

Open the emulator in Xcode and install the app you want to test.

Operation:

Step1. Open the Appium graphical interface

Step2.appium set the following steps (be sure to follow the official step-by-step configuration):

650) this.width=650; "src=" http://note.youdao.com/yws/res/1386/WEBRESOURCEfd31323360abd18e64bace1d79f38e4b "style = "WIDTH:497.963PX;" alt= "webresourcefd31323360abd18e64bace1d79f38"/>

  1. Start Appium GUI App

  2. Open Developer Settings of Appium GUI app

  3. Put a tick in Enabled

  4. Put a tick in Custom Server Flags

  5. In the text field of the Custom Server Logs put--native-instruments-lib

  6. Open General Settings and make sure Server Address was 0.0.0.0 and Port is 4725

  7. Open IOS Settings

  8. In IOS Settings, Basic tab

  9. Add app Path, mine is/users/temp_user/downloads/uicatalog.app (yes, this is the popular tutorial App) (see the Help section below to find the AP being tested P the correct path)

  10. Force Device, Mine was IPhone 5, Platform 9.2, if you still get errors, in the Appium log available devices are listed, fin d them and select to force device with data from the list or find device from Xcode simulators list

  11. In IOS Settings, Advanced tab

  12. Put a tick in use Native Instruments Library

  13. Put a tick in Instruments Launch Timeout, add 900,000 ms

  14. Press Launch btn in Appium GUI app ---Click on the launch button to change to stop

  15. Press Inspector btn in Appium GUI app ---magnifier icon, click to automatically pull up the simulator in the application to be tested, while the following screen for positioning elements to use;

Following the above steps, after the configuration is complete, you can open the Inspector interface, which is the first step in the Appium test!

650) this.width=650; "src=" http://note.youdao.com/yws/res/1403/WEBRESOURCE2b49c4b45c5f47a59588f1c2fd04eb87 "alt=" webresource2b49c4b45c5f47a59588f1c2fd04e "/>

With inspector, you can view the distribution of elements on different pages and locate and locate elements.

Elementary Help:

1. The simulator directory is here:

/users/the user name you are currently logged/Library/Application Support/iphone simulator/

Your app is here by Xcode build:

/users/the user name you are currently logged into/library/developer/xcode/deriveddata/yourprojectname_somethingsomething/build/products

2. How to display all file directories under Mac (hidden folder)

Copy or enter the following command (case-sensitive) in terminal:

"defaults write Com.apple.Finder appleshowallfiles YES"

After the setup is complete, restart the Finder to take effect;

3. To quickly locate a path in the Finder, press "command+ shift+ G";


Appium Two: Parameter configuration and initial knowledge inspector

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.