Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Appium II: parameter configuration and initial knowledge of inspector

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Premise:

Open the simulator in xcode and install the APP to be tested

Action:

Step1. Open the appium graphical interface

Step2.appium is configured as follows (be sure to follow the official steps step by step):

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 Custom Server Logs put-native-instruments-lib

Open General Settings and make sure Server Address is 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 correct path to the APP being tested)

Force Device, mine is iPhone 5, Platform 9.2, if you still get errors, in the appium log available devices are listed, find 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 900000 ms

Press Launch btn in Appium GUI app-after clicking the launch button, it becomes the stop button

Press Inspector btn in Appium GUI app-the magnifying glass icon in the image above. Click on it and automatically pull up the application to be tested in the simulator. At the same time, the following screen appears for positioning elements.

According to the above steps, after the configuration is complete, you can open the inspector interface, which is the first step in appium testing!

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

With small help:

1. The directory of the simulator is here:

/ Users/ the user name you are currently logged in / Library/Application Support/iPhone Simulator/

Your App is here by XCode Build:

/ Users/ the user name you are currently logged in / Library/Developer/Xcode/DerivedData/YOURPROJECTNAME_SOMETHINGSOMETHING/Build/Products

2. How to display all file directories under mac (hide folders)

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

"defaults write com.apple.Finder AppleShowAllFiles YES"

After the configuration is completed, restart the Finder to take effect.

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report