CN111090457A - Interface analysis method, terminal device and computer-readable storage medium - Google Patents
Interface analysis method, terminal device and computer-readable storage medium Download PDFInfo
- Publication number
- CN111090457A CN111090457A CN201911307670.7A CN201911307670A CN111090457A CN 111090457 A CN111090457 A CN 111090457A CN 201911307670 A CN201911307670 A CN 201911307670A CN 111090457 A CN111090457 A CN 111090457A
- Authority
- CN
- China
- Prior art keywords
- interface
- data
- analysis method
- scene
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
Abstract
The invention provides an interface analysis method, terminal equipment and a computer readable storage medium. The interface analysis method provided by the invention comprises the following steps: displaying a preset information acquisition interface; receiving interface parameter information input through the information acquisition interface; acquiring interface scene data according to the interface parameter information; and outputting the interface scene data. According to the invention, the interface entry parameter information is acquired through the preset information acquisition interface, on the basis, the interface scene data meeting the conditions in the production environment is obtained, the analysis result is displayed in a visual mode, each interface calling scene has specific data support, the accuracy and the reliability of the test data are improved, and the test data has more credibility.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an interface analysis method, a terminal device, and a computer-readable storage medium.
Background
When the interface calling scene analysis is performed, after a specified interface parameter is input to a certain specified interface, the possible values of other interface parameters associated with the interface parameter need to be known, or after different interface parameters are combined, the response content which may be returned by the interface needs to be predicted. However, at present, an operator can only search for a code or interface information which may correspond to an interface entry by looking up the interface document or the code, and the code or the interface information obtained by the interface document or the code through the combing lacks a real interface request and response related to a scene as data support, that is, specific scene information cannot be directly inquired.
Disclosure of Invention
The invention mainly aims to provide an interface analysis method, terminal equipment and a computer readable storage medium, and aims to solve the problem that codes or interface information obtained by combing interface documents or codes at present cannot be directly associated with specific scene information.
In order to achieve the above object, the present invention provides an interface analysis method, which includes the following steps:
displaying a preset information acquisition interface;
receiving interface parameter information input through the information acquisition interface;
acquiring interface scene data according to the interface parameter information;
and outputting the interface scene data.
Optionally, before the step of displaying the preset information acquisition interface, the interface analysis method further includes:
acquiring parameter entering condition information;
and generating a preset information acquisition interface according to the parameter entering condition information.
Optionally, the interface entry information includes:
at least one of an interface type, an interface parameter, and an interface parameter combination parameter.
Optionally, the step of obtaining interface scene data according to the interface entry information includes:
acquiring running data of application running in a terminal;
searching target operation data matched with the interface access parameter information in the operation data;
and obtaining the interface scene data according to the target operation data.
Optionally, the interface scene data includes:
and when the application program corresponding to the target operation data operates, calling interface request data and interface response data of the interface.
Optionally, after the step of obtaining the interface scene data according to the target operation data, the interface analysis method further includes:
generating an interface calling scene list according to the interface scene data;
and displaying the interface calling scene list.
Optionally, the step of generating an interface call scenario list according to the interface scenario data includes:
generating a data set according to the interface request data and the interface response data;
extracting attribute information of the interface request data and the interface response data in the data set;
and generating the interface calling scene list according to the attribute information.
In order to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a control program of an interface analysis method stored in the memory and executable on the processor, and the control program of the interface analysis method implements the steps of the interface analysis method as described above when executed by the processor.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a control program of an interface analysis method is stored, and the control program of the interface analysis method, when executed by a processor, implements the steps of the interface analysis method as described above.
The technical scheme of the invention is that a preset information acquisition interface is displayed; receiving interface parameter information input through the information acquisition interface; acquiring interface scene data according to the interface parameter information; and outputting the interface scene data. Interface entry parameter information is acquired through a preset information acquisition interface, interface scene data meeting conditions in a production environment are fished based on the interface entry parameter information, an analysis result is displayed in a visual mode finally, each interface calling scene is supported by specific data, accuracy and reliability of test data are improved, and the test data are more convincing.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an interface analysis method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating an interface analysis method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating an interface analysis method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating an interface analysis method according to a fourth embodiment of the present invention;
fig. 6 is a flowchart illustrating an interface analysis method according to a fifth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back) are involved in the embodiment of the present invention, the directional indications are only used for explaining the relative positional relationship, the motion situation, and the like between the components in a certain posture, and if the certain posture is changed, the directional indications are changed accordingly.
In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: displaying a preset information acquisition interface; receiving interface parameter information input through the information acquisition interface; acquiring interface scene data according to the interface parameter information; and outputting the interface scene data.
In the prior art, codes or interface information obtained by combing interface documents or codes lack scene-related and real interface requests and responses as data support.
The invention provides an interface analysis method, which comprises the steps of displaying a preset information acquisition interface; receiving interface parameter information input through the information acquisition interface; acquiring interface scene data according to the interface parameter information; and outputting the interface scene data. The method solves the technical problem that codes or interface information obtained by combing the interface documents or codes in the prior art lack real interface requests and responses related to scenes as data support.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a server or a terminal server with a test function.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard priority interface, a wireless interface (e.g., a WiFi interface). The memory 1005 may be a high-speed RAM memory, or may be an NVM (non-volatile memory), such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein a control program of an operating system, a network communication module, and an interface analysis method.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a control program of the interface analysis method stored in the memory 1005, and perform the following operations:
displaying a preset information acquisition interface;
receiving interface parameter information input through the information acquisition interface;
acquiring interface scene data according to the interface parameter information;
and outputting the interface scene data.
Further, the processor 1001 may call the control program of the interface analysis method stored in the memory 1005, and also perform the following operations:
acquiring parameter entering condition information;
and generating a preset information acquisition interface according to the parameter entering condition information.
Further, the processor 1001 may call the control program of the interface analysis method stored in the memory 1005, and also perform the following operations:
acquiring running data of application running in a terminal;
searching target operation data matched with the interface access parameter information in the operation data;
and obtaining the interface scene data according to the target operation data.
Further, the processor 1001 may call the control program of the interface analysis method stored in the memory 1005, and also perform the following operations:
generating an interface calling scene list according to the interface scene data;
and displaying the interface calling scene list.
Further, the processor 1001 may call the control program of the interface analysis method stored in the memory 1005, and also perform the following operations:
generating a data set according to the interface request data and the interface response data;
extracting attribute information of the interface request data and the interface response data in the data set;
and generating the interface calling scene list according to the attribute information.
Based on the hardware architecture, the embodiment of the interface analysis method is provided.
Referring to fig. 2, fig. 2 is a first embodiment of the interface analysis method of the present invention, which includes the following steps:
step S10, displaying a preset information acquisition interface;
step S20, receiving interface parameter information input by the information acquisition interface;
in this embodiment, the preset information collection interface is a user-defined parameter input information collection interface in a data analysis tool (server), and a user can input parameter input information of an interface to be analyzed according to the information collection interface, where the parameter input information of the interface includes an interface to be analyzed, an interface parameter input value, a value combination of a plurality of interface parameters, and the like.
Step S30, acquiring interface scene data according to the interface parameter information;
and step S40, outputting the interface scene data.
In this embodiment, the data analysis tool retrieves interface scene data satisfying the interface entry parameter information from the production environment according to the interface entry parameter information input by the user, and then visually displays the interface scene data, and after retrieving the interface scene data satisfying the interface entry parameter information, the data analysis tool further combines the interface scene data into a data set corresponding to the interface scene data.
In the embodiment, the interface entry parameter information is acquired through the preset information acquisition interface, on the basis, the interface scene data meeting the conditions in the production environment is fished, the analysis result is displayed in a visual mode finally, each interface calling scene is supported by specific data, the accuracy and the reliability of the test data are improved, and the test data is more convincing.
Referring to fig. 3, fig. 3 is a second embodiment of the interface analysis method according to the present invention, and based on the first embodiment, before step S10, the method further includes:
step S50, acquiring the parameter entering condition information;
and step S60, generating a preset information acquisition interface according to the parameter entering condition information.
In this embodiment, the parameter entry condition information includes: at least one of an interface type, an interface parameter, and an interface parameter combination parameter. The user can randomly combine the parameter entering condition information in the data analysis tool to generate the information acquisition interface aiming at different types and different acquisition contents.
In the embodiment, the type of the information acquisition interface is customized by the user, so that the user can conveniently input the corresponding interface access parameter information according to the actual condition, redundancy is avoided, and the acquisition of the interface access parameter information has pertinence.
Referring to fig. 4, fig. 4 is a third embodiment of the interface analysis method of the present invention, and based on the first or second embodiment, step S30 includes:
step S31, acquiring running data of the application program running in the terminal;
in this embodiment, the operation data is all data generated by the application program operating in an actual production environment, that is, the operation data includes the interface scene data.
Step S32, searching target operation data matched with the interface parameter information in the operation data;
and step S33, obtaining the interface scene data according to the target operation data.
In this embodiment, the data analysis tool matches corresponding target operation data from the operation data according to the acquired interface entry parameter information, and uses the target operation data as the interface scene data, where the interface scene data includes interface request data and interface response data.
In the embodiment, the system associates the interface scene data generated in the actual operating environment with the interface parameter information to match the corresponding scene for the interface parameter information, so that the accuracy and reliability of data analysis are improved.
Referring to fig. 5, fig. 5 is a fourth embodiment of the interface analysis method according to the present invention, and based on the third embodiment, after step S33, the method further includes:
step S34, generating an interface calling scene list according to the interface scene data;
and step S35, displaying the interface calling scene list.
In this embodiment, when the interface entry parameter information input by the user is matched in the operation data, a large amount of interface scene data may be obtained, and the data analysis tool automatically sorts the interface scene data to generate an interface call scene list, so that the user can visually check the interface scene data.
Referring to fig. 6, fig. 6 is a fifth embodiment of the interface analysis method according to the present invention, and based on the fourth embodiment, step S34 includes:
step S341, generating a data set according to the interface request data and the interface response data;
step S342, extracting attribute information of the interface request data and the interface response data in the data set;
step S343, generating the interface call scene list according to the attribute information.
In this embodiment, the data analysis tool generates the interface scene data matched with the interface entry parameter information into a data set of the interface entry parameter information, and the system extracts attribute information of the interface scene data before displaying the interface scene data, where the attribute information may be information such as data occurrence frequency and access time. And sequencing the interface scene data according to the attribute information to generate an interface calling scene list.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. An interface analysis method, characterized in that the interface analysis method comprises the following steps:
displaying a preset information acquisition interface;
receiving interface parameter information input through the information acquisition interface;
acquiring interface scene data according to the interface parameter information;
and outputting the interface scene data.
2. The interface analysis method of claim 1, wherein prior to the step of displaying a preset information-gathering interface, the interface analysis method further comprises:
acquiring parameter entering condition information;
and generating a preset information acquisition interface according to the parameter entering condition information.
3. The interface analysis method of claim 1, wherein the interface entry information comprises:
at least one of an interface type, an interface parameter, and an interface parameter combination parameter.
4. The interface analysis method according to claim 1, wherein the step of obtaining interface scene data according to the interface entry information comprises:
acquiring running data of application running in a terminal;
searching target operation data matched with the interface access parameter information in the operation data;
and obtaining the interface scene data according to the target operation data.
5. The interface analysis method of claim 4, wherein the interface scenario data comprises:
and when the application program corresponding to the target operation data operates, calling interface request data and interface response data of the interface.
6. The interface analysis method of claim 5, wherein after the step of deriving the interface scenario data from the target operational data, the interface analysis method further comprises:
generating an interface calling scene list according to the interface scene data;
and displaying the interface calling scene list.
7. The interface analysis method of claim 6, wherein the step of generating an interface call scenario list from the interface scenario data comprises:
generating a data set according to the interface request data and the interface response data;
extracting attribute information of the interface request data and the interface response data in the data set;
and generating the interface calling scene list according to the attribute information.
8. A terminal device, characterized in that the terminal device comprises a memory, a processor, and a control program of an interface analysis method stored on the memory and executable on the processor, the control program of the interface analysis method implementing the steps of the interface analysis method according to any one of claims 1 to 7 when executed by the processor.
9. A computer-readable storage medium, characterized in that a control program of an interface analysis method is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the interface analysis method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911307670.7A CN111090457A (en) | 2019-12-17 | 2019-12-17 | Interface analysis method, terminal device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911307670.7A CN111090457A (en) | 2019-12-17 | 2019-12-17 | Interface analysis method, terminal device and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111090457A true CN111090457A (en) | 2020-05-01 |
Family
ID=70396052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911307670.7A Pending CN111090457A (en) | 2019-12-17 | 2019-12-17 | Interface analysis method, terminal device and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111090457A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112487163A (en) * | 2020-11-30 | 2021-03-12 | 广州品唯软件有限公司 | Execution method of automation process and acquisition method and device of interface data of automation process |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109002334A (en) * | 2017-06-05 | 2018-12-14 | 阿里巴巴集团控股有限公司 | A kind of operation platform and its data processing method |
CN109688202A (en) * | 2018-12-04 | 2019-04-26 | 北京腾云天下科技有限公司 | A kind of processing method of interface data, calculates equipment and storage medium at device |
CN109788031A (en) * | 2018-12-17 | 2019-05-21 | 平安普惠企业管理有限公司 | Business datum acquisition methods, device, computer equipment and storage medium |
CN110069464A (en) * | 2019-03-16 | 2019-07-30 | 平安普惠企业管理有限公司 | Log analysis processing method, device, equipment and readable storage medium storing program for executing |
CN110188083A (en) * | 2019-05-29 | 2019-08-30 | 口碑(上海)信息技术有限公司 | Interface message method for digging and device |
-
2019
- 2019-12-17 CN CN201911307670.7A patent/CN111090457A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109002334A (en) * | 2017-06-05 | 2018-12-14 | 阿里巴巴集团控股有限公司 | A kind of operation platform and its data processing method |
CN109688202A (en) * | 2018-12-04 | 2019-04-26 | 北京腾云天下科技有限公司 | A kind of processing method of interface data, calculates equipment and storage medium at device |
CN109788031A (en) * | 2018-12-17 | 2019-05-21 | 平安普惠企业管理有限公司 | Business datum acquisition methods, device, computer equipment and storage medium |
CN110069464A (en) * | 2019-03-16 | 2019-07-30 | 平安普惠企业管理有限公司 | Log analysis processing method, device, equipment and readable storage medium storing program for executing |
CN110188083A (en) * | 2019-05-29 | 2019-08-30 | 口碑(上海)信息技术有限公司 | Interface message method for digging and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112487163A (en) * | 2020-11-30 | 2021-03-12 | 广州品唯软件有限公司 | Execution method of automation process and acquisition method and device of interface data of automation process |
CN112487163B (en) * | 2020-11-30 | 2024-04-12 | 广州品唯软件有限公司 | Execution method of automatic flow and method and device for acquiring interface data of execution method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200302712A1 (en) | Vehicle detection method, apparatus and vehicle diagnostic device | |
CN111104324A (en) | Test case generation method, test case generation device and computer-readable storage medium | |
CN108334626B (en) | News column generation method and device and computer equipment | |
CN111026670B (en) | Test case generation method, test case generation device and storage medium | |
CN113741898A (en) | Form generation method, device and equipment | |
CN110737711A (en) | Report exporting method and device, computer equipment and storage medium | |
CN111090457A (en) | Interface analysis method, terminal device and computer-readable storage medium | |
CN108764369B (en) | Figure identification method and device based on data fusion and computer storage medium | |
CN111026669B (en) | Test log management method, test log management device and storage medium | |
CN111191087B (en) | Character matching method, terminal device and computer readable storage medium | |
CN111901383B (en) | Data request processing method, device, computer equipment and storage medium | |
CN112667212A (en) | Buried point data visualization method and device, terminal and storage medium | |
CN109710436B (en) | Space cleaning method, device, equipment and computer readable storage medium | |
CN111125205A (en) | Signboard data display method, terminal and storage medium | |
US9471650B2 (en) | System and method for contextual workflow automation | |
CN115617780A (en) | Data import method, device, equipment and storage medium | |
CN110457089B (en) | Data acquisition method, data acquisition device, computer readable storage medium and computer equipment | |
CN116266482A (en) | Equipment software upgrading method and device | |
CN111143416A (en) | Data cache-based query method, terminal and storage medium | |
CN108182202B (en) | Content update notification method, content update notification device, electronic equipment and storage medium | |
CN114371866A (en) | Version reconfiguration test method, device and equipment of service system | |
CN112785418A (en) | Credit risk modeling method, credit risk modeling device, credit risk modeling equipment and computer readable storage medium | |
CN109101515B (en) | Rule configuration method, server and computer-readable storage medium | |
CN111078518A (en) | Data acquisition method, terminal device and computer-readable storage medium | |
CN112214532A (en) | Service data auditing method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |