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"/>
-
Start Appium GUI App
-
Open Developer Settings of Appium GUI app
-
Put a tick in Enabled
-
Put a tick in Custom Server Flags
-
In the text field of the Custom Server Logs put--native-instruments-lib
-
Open General Settings and make sure Server Address was 0.0.0.0 and Port is 4725
-
Open IOS Settings
-
In IOS Settings, Basic tab
-
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)
-
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
-
In IOS Settings, Advanced tab
-
Put a tick in use Native Instruments Library
-
Put a tick in Instruments Launch Timeout, add 900,000 ms
-
Press Launch btn in Appium GUI app ---Click on the launch button to change to stop
-
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