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

How to configure 4399AT API globally

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

Share

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

What this article shares with you is about how to configure 4399AT API globally. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

API is mainly divided into three parts, including global configuration, use case configuration and operation events.

The editor mainly gives a text description of the globally configured api:

Duration:

Control subject / use case traversal time, unit second, time less than 10, unlimited traversal, more than 10, traversal according to time

Searchable:

Whether to traverse the switch, false does not traverse, true traverses

Installable:

Test the installation and uninstall switch of the installation package, true, and be sure to uninstall and install again. False will determine whether the installation will not be installed if the version is the same, and uninstall the installation if it is not the same.

CaseGap:

Invisible wait, representing the time interval between use cases, in seconds, used to configure use cases

TryTimes:

The number of retries after the use case execution failed

Depth:

The level of traversal based on the main activity is independent of the configuration use case

Timeout:

The maximum time for the appium service to find the control. When left empty, the default is 3 seconds, which is suitable for traversal.

Interval:

The interval (waiting) time for each operation. When it is left empty, the default is 3 seconds, which is suitable for traversal.

DurationIgnoreCase:

When the configuration is true with searchable, durationIgnoreCase is false and traversal time is controlled. No true is restricted.

Uninstalls:

The name of the package to be uninstalled, which is used to test program A, without the need for program B to have a test installed on the phone.

Alter:

For prompt box click: the processing logic of the dialog box is to check whether there is a dialog box on the current page before each control operation.

If it exists, it will be disposed of.

Only one dialog box is processed at a time

PermissionAlter:

For continuous prompt box click: (such as permission prompt box)

The processing logic of the dialog box is to check whether there is a dialog box on the current page before each control operation.

If it exists, it will be disposed of.

One operation can deal with continuous pop-up dialog boxes, so it is suitable for permission dialog boxes, which may occur many times in a row.

Black:

The blacklist indicates that these elements are not manipulated and traversed during automatic traversal.

Contains a keyword black

The blacklist is an json array, and each item in it is an json data.

It should be noted that if the manually configured use case has a button to operate on the blacklist, it will also be executed, and it will not say not to do so.

Black is special. It directly adopts the positioning principle of uia control, not xpath.

UselessActivity:

Get activity without statistics.

The above is how to configure 4399AT API globally, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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