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 analyze API use case configuration

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

How to carry out API use case configuration analysis, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

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

The following is a textual description of the api of the use case configuration:

Mapping:

Used for similar UI libraries in PO encapsulation, mapping, reducing script maintenance costs

Guide:

APP Boot Page function

Login/loginCheck/logout:

The login function contains three keywords: login (login), loginCheck (login check), and logout (logout)

Login logic:

First loginCheck checks whether the user is logged in.

If the user has logged in, logout logs out. After logging out, login logs in to the specified account.

If the user is not logged in, login logs in directly to the specified account

The structure of the three keywords is the same, the outer layer is a json array [], and the operation of each subitem is a json format {}

Before:

Keyword is used for actions performed before the traversal begins and after logging in

After:

Keyword is used for actions performed after the traversal ends and before the report is completed

CaseName:

Represents the name of the use case

Chain:

The path chain entered for the first time

Xpath:

Unique path identification for control positioning

LoopTimes:

The number of cycles to find the control

If it is left empty, the default value is 1

TimeSpacing:

The interval between searching for controls (in s), which needs to be used with loopTimes

Index:

Represents the index of multiple controls on a page, which is not used by default

Action:

Action type

ActionGap:

Indicates the interval between the steps of the use case, with a default of 1 second left empty

EnableAlter:

Allow to configure the path, handle the dialog box yourself, and click the true to configure the path for yourself.

ErrorMessage:

A custom prompt when a path goes wrong

Count:

The use case is repeated number of times, can only be used in the configured use case, and the needSearch should be false.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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