CN114579438A - Interface information detection method, device, equipment and storage medium - Google Patents

Interface information detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN114579438A
CN114579438A CN202210186143.0A CN202210186143A CN114579438A CN 114579438 A CN114579438 A CN 114579438A CN 202210186143 A CN202210186143 A CN 202210186143A CN 114579438 A CN114579438 A CN 114579438A
Authority
CN
China
Prior art keywords
interface
logic
input parameters
target
flow direction
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
Application number
CN202210186143.0A
Other languages
Chinese (zh)
Inventor
刘奎呈
王文彬
顾冠雄
马骁雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202210186143.0A priority Critical patent/CN114579438A/en
Publication of CN114579438A publication Critical patent/CN114579438A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for detecting interface information, wherein the method comprises the following steps: acquiring preprocessed interface input parameters, and inputting the interface input parameters to a target interface corresponding to a service function, wherein the interface input parameters comprise detection marks; after the logic processing of the service function is completed based on the target interface, acquiring the data flow direction of the detection mark in the logic processing; and determining the interface logic corresponding to the target interface based on the data flow direction. In the prior art, for the conditions of interface logic document loss and the like of an inventory interface, a code is tracked line by line to comb service logic for knowing service logic and interface information; according to the scheme, the detection mark is used as a part of the input parameter of the interface, and after the target interface completes the logic processing of the business function, the interface logic carding can be realized by acquiring the data flow direction of the detection mark, so that the carding efficiency is improved, and the investment cost is saved.

Description

Interface information detection method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of interfaces, in particular to an interface information detection method, device, equipment and storage medium.
Background
The interface test is mainly used for detecting interactive interfaces between systems and among subsystems in the systems. In the life cycle of the existing system, problems of long service time of the system, high mobility of developers, missing of assets such as interface documents and the like are often encountered, which brings great challenges to understanding of the system, modification of business logic of the interface and testing of the interface by future people. In the existing project management method, for an inventory interface which has long running time, no responsible person and document loss, no matter a developer or a tester wants to know business logic and an interface or relates to transformation and test, only codes can be traced line by line to comb the business logic, so that not only is a large amount of manpower and time cost consumed, but also errors can occur due to manual code reading. Therefore, an interface-related method is needed to solve the above-mentioned problems.
Disclosure of Invention
The invention provides an interface information detection method, device, equipment and storage medium, which aim to solve the problem of interface logic combing.
According to an aspect of the present invention, there is provided an interface information detecting method, including:
acquiring preprocessed interface input parameters, and inputting the interface input parameters to a target interface corresponding to a service function, wherein the interface input parameters comprise detection marks;
after the logic processing of the service function is completed based on the target interface, acquiring the data flow direction of the detection mark in the logic processing;
and determining the interface logic corresponding to the target interface based on the data flow direction.
According to another aspect of the present invention, there is provided an interface information detecting apparatus including:
the parameter input module is used for acquiring the preprocessed interface input parameters and inputting the interface input parameters to a target interface corresponding to the business function realization, wherein the interface input parameters comprise detection marks;
a data flow direction obtaining module, configured to obtain a data flow direction of the detection flag in the logic processing after the logic processing of the service function is completed based on the target interface;
and the interface logic determination module is used for determining the interface logic corresponding to the target interface based on the data flow direction.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the interface information detection method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the interface information detection method according to any one of the embodiments of the present invention when the computer instructions are executed.
The embodiment of the invention discloses a method, a device, equipment and a storage medium for detecting interface information, wherein the method comprises the following steps: acquiring preprocessed interface input parameters, and inputting the interface input parameters to a target interface corresponding to a service function, wherein the interface input parameters comprise detection marks; after the logic processing of the service function is completed based on the target interface, acquiring the data flow direction of the detection mark in the logic processing; and determining the interface logic corresponding to the target interface based on the data flow direction. In the prior art, for the conditions of interface logic document loss and the like of an inventory interface, in order to know service logic and interface information, the service logic needs to be combed by tracking codes line by line, and the problems of investment cost and efficiency are considered; according to the technical scheme, the detection mark is used as a part of the input parameter of the interface, and after the target interface completes the logic processing of the business function, the interface logic carding can be realized by acquiring the data flow direction of the detection mark, so that the carding efficiency is improved, and the investment cost is saved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an interface information detection method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an interface information detection apparatus according to a second embodiment of the present invention;
FIG. 3 shows a schematic diagram of an electronic device that may be used to implement an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the 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 is to be understood that the terms "target," "initial," and the like in the description and claims of the invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of an interface information detection method according to an embodiment of the present invention, where the present embodiment is applicable to a case where a system interface is combed, and the method may be executed by an interface information detection apparatus, where the interface information detection apparatus may be implemented in a form of hardware and/or software, and the interface information detection apparatus may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, obtaining the preprocessed interface input parameters, and inputting the interface input parameters to a service function to realize a corresponding target interface.
In this embodiment, the interface may be understood as an abstract interaction mode provided by the system to the outside, so that the interface can modify internal logic without affecting a communication mode of external services, and the purpose of the interface is to satisfy interaction between the outside and the system without knowing internal components of the system. The interface here may refer to an interface between systems, and may also refer to an interface between internal subsystems. In this embodiment, the target interface may be understood as the interface to be combed. When a user needs to know the interface logic of a certain interface for realizing a certain service function, the interface can be determined to be a target interface, and the interface input parameters need to be input into the target interface. For example, in the case of long system running time and missing interface documents, the known system includes 10 interfaces such as interface 1, interface 2, interface 3, etc., and in order to understand the interface logic of interface 1 or modify and test the internal logic of interface 1, interface 1 may be determined as the target interface.
Wherein the interface input parameter comprises a detection flag. According to the technical scheme, a mode similar to an isotope labeling method is adopted, a detection mark is used as a special mark, and the interface logic of a target interface is determined by observing the position where the detection mark appears in the whole process of logic processing of the target interface. The principle of the isotope labeling method is: in a chemical reaction process, certain specific atoms in reactants are replaced by their isotopes (tracer elements), and then the reactants are allowed to react to determine the law that the atoms follow in the chemical reaction by detecting the position of the isotopes in the product, which is an isotopic labeling method. Similarly, in the technical scheme, the detection mark is used as a 'tracing element', and the interface logic is determined by observing the flow direction of the detection mark. In order to observe the position where the detection mark appears, input parameters of a target interface need to be combed in advance, the detection mark is designed, and the detection mark and the input parameters combed in advance are combined to obtain processed interface input parameters; and inputting the interface input parameters into a corresponding target interface realized by the service function so as to carry out logic processing.
And S120, after the logic processing of the service function is completed based on the target interface, acquiring the data flow direction of the detection mark in the logic processing.
The data flow may specifically be understood as a transmission direction of data between related interfaces when the target interface performs the service function processing. Inputting the preprocessed interface input parameters into a target interface, and inputting the detection marks into an interactive associated interface when the target interface performs logic processing. Also, during the logical processing, the detection flag is transmitted to the next associated interface. When the detection mark appears in the next interface, it can be determined that the data flows from the interface to the next interface and is recorded. Similarly, in the interface related to the logic processing corresponding to the target interface, the data transmission direction between every two interfaces interacting with each other is recorded. And summarizing the recorded data transmission directions between every two interfaces in sequence, so that the data flow direction of the detection mark in the logic processing can be obtained. This step records the processing flow of the interface from the perspective of the data stream.
And S130, determining interface logic corresponding to the target interface based on the data flow direction.
In this step, the interface logic may specifically be understood as an interface and an interaction relationship between interfaces required for implementing a certain function. According to the data flow direction, the interface associated with the target interface and the interaction relation between the interfaces can be determined. For example, assuming that the interface 1 is a target interface, the interface logic corresponding to the interface 1 may be expressed as: the realization of its function needs interface 1, interface 2, interface 4. The interactive relation is that the interface input parameters are input into the interface 1, the interface 1 processes the interface input parameters and transmits the processed parameters to the interface 2, the interface 2 processes the data transmitted from the interface 1 and transmits the processed data to the interface 4, and the interface 4 processes the data transmitted from the interface 2 and finally outputs the processing result.
The embodiment of the invention discloses a method, a device, equipment and a storage medium for detecting interface information, wherein the method comprises the following steps: acquiring preprocessed interface input parameters, and inputting the interface input parameters to a target interface corresponding to the business function, wherein the interface input parameters comprise detection marks; after the logic processing of the service function is completed based on the target interface, the data flow direction of the detection mark in the logic processing is obtained; and determining the interface logic corresponding to the target interface based on the data flow direction. In the prior art, for the conditions of interface logic document loss and the like of an inventory interface, in order to know service logic and interface information, the service logic needs to be combed by tracking codes line by line, and the problems of investment cost and efficiency are considered; according to the technical scheme, the detection mark is used as a part of the input parameter of the interface, and after the target interface completes the logic processing of the business function, the interface logic carding can be realized by acquiring the data flow direction of the detection mark, so that the carding efficiency is improved, and the investment cost is saved.
Optionally, the preprocessing step of the interface input parameter may be specifically expressed as:
a) initial input parameters of the target interface are determined.
Specifically, this step is performed before step S110. The target interface is an interface to be combed, and input parameters of the interface to be combed need to be combed in advance. Illustratively, the input parameters of the carding interface 1 comprise a parameter A, a parameter B and a parameter C.
b) And setting a detection mark corresponding to the target interface.
The detection mark can be similar to the trace element in the isotope labeling method, and is used as a special mark for identifying the trend of data. The detection flag may be expressed in the form of a special flag field. It should be noted that, step a) and step b) may be operated independently, and the sequence is not limited.
c) And combining the initial input parameters with the detection marks to generate interface input parameters.
Specifically, the initial input parameters are reprocessed, the detection marks are used as a part of the interface input parameters, the initial input parameters and the detection marks are combined, and the interface input parameters are generated and used as the input parameters of the logic processing. Meanwhile, the initial input parameters and the detection marks of the interfaces can be summarized and stored in a data wide table mode.
As an optional embodiment of the present invention, on the basis of the foregoing embodiment, after the logical processing of the service function is completed based on the target interface, the data flow direction of the detection flag in the logical processing is obtained, which may be specifically optimized as follows:
and S121, sequentially determining the flow information of the detection marks among the associated interfaces.
The associated interface may be understood as an interface that completes a certain service together with the target interface, and is an interface related to the logic of the combing target interface. The flow information can be understood as the data transmission direction between every two adjacent interfaces. It can be clear that based on the problem to be solved by the present solution, it is not known which interfaces are involved by the associated interfaces and how data transfer is to be performed between these interfaces. Considering that the target interface and the associated interfaces interact with each other during the logic processing, according to the position of the detection mark, each interface associated with the target interface can be determined, and according to the sequence position of the detection mark on each interface, the flow information of the detection mark among the associated interfaces can be determined.
For example, assuming that interface 1 is a target interface, and the detection flag is α, the interface logic corresponding to interface 1 may be expressed as: the realization of its function needs interface 1, interface 2, interface 4. The interactive relationship is that when the interface input parameter is input into the interface 1, the flow information can be recorded as alpha01(ii) a Interface 1 processes the interface input parameters and transmits them to interface 2, and then its flow information can be recorded as alpha12(ii) a Interface 2 processes the data transmitted from interface 1 and transmits the processed data to interface 4, and then the flow information can be recorded as α24(ii) a The interface 4 processes the data transmitted from the interface 2 and finally outputs the processing result.
And S122, determining the data flow of the detection marks in the logic processing according to the flow information.
It should be noted that each piece of flow information may represent a logic processing sequence of each associated interface corresponding to the target interface. And the flow information is arranged and summarized in sequence, so that the data flow direction of the detection mark in the logic processing can be determined. Continuing with the example of step S121, each piece of flow information corresponding to interface 1 is α01、α12、α24It can be seen that when the interface input data is input into the interface 1, the output result is obtained through the logic processing, and the logic processing sequence is as follows: data is input into an interface 1, data processed by the interface 1 is input into an interface 2, data processed by the interface 2 is input into an interface 4, and an output result is obtained after the interface 4 processes the data.
As an optional embodiment of the present invention, on the basis of the above embodiment, based on the data flow direction, determining the interface logic corresponding to the target interface may specifically be optimized as follows: and determining the associated interface corresponding to the target interface and the logical relationship of the associated interface according to the data flow direction.
In this step, the logical relationship of the associated interfaces may be understood as the transfer relationship of the interfaces. After the data flow direction of the target interface for realizing a certain service function is obtained, which interfaces are used in the logic processing and the sequence of the calling interfaces can be determined according to the data flow direction.
Optionally, after determining the interface logic corresponding to the target interface, the method further includes: and constructing an interface information association table based on the association interface corresponding to the target interface and the logical relationship of the association interface so that the user can obtain the required interface information.
Specifically, the association interface corresponding to the target interface and the logical relationship of the association interface may be represented in the form of an interface information association table, and when the user wants to clarify the interface logic of the target interface, the user only needs to look up the interface information association table to directly obtain the required interface information. The interface information association table may be represented in a tree form, and is not limited herein.
Optionally, the method further includes: and after the target interface completes the logic processing of the service function, verifying the service logic of the target interface according to the processing result.
It can be clear that, when the interface input parameters are input to the target interface, the target interface outputs the processing result after completing the logic processing of the service function. The output processing result may be success or failure, and when the output result is success, the correct service logic of the target interface can be verified; when the output result is failed, the wrong business logic of the target interface can be verified.
In this optional embodiment, a step of preprocessing an interface input parameter is embodied, and a step of obtaining a data flow direction of the detection flag in the logic processing and a step of determining an interface logic corresponding to the target interface are embodied; in the embodiment, interface processing is performed by designing specially marked data, processing of the interface is recorded from the perspective of data flow, work such as interface combing, business logic verification and the like is completed, and the combing and recording of the whole system interface can be realized.
Example two
Fig. 2 is a schematic structural diagram of an interface information detection apparatus according to a second embodiment of the present invention. The interface information detection device can be realized in the form of hardware and/or software and can be configured in the electronic equipment. As shown in fig. 2, the apparatus includes a parameter input module 21, a data flow direction obtaining module 22 and an interface logic determining module 23,
the parameter input module 21 is configured to obtain a preprocessed interface input parameter, and input the interface input parameter to a target interface corresponding to a service function, where the interface input parameter includes a detection flag;
a data flow direction obtaining module 22, configured to obtain a data flow direction of the detection flag in the logic processing after the logic processing of the service function is completed based on the target interface;
and the interface logic determining module 23 is configured to determine, based on the data flow direction, an interface logic corresponding to the target interface.
Further, the apparatus further includes an interface input parameter generating module, which may be specifically configured to:
determining initial input parameters of a target interface;
setting a detection mark corresponding to a target interface;
and combining the initial input parameters with the detection marks to generate interface input parameters.
Further, the data flow obtaining module 22 may specifically be configured to:
sequentially determining the flow information of the detection marks among all the associated interfaces;
and determining the data flow direction of the detection mark in the logic processing according to the flow information.
Further, the interface logic determining module 23 may specifically be configured to:
and determining the associated interface corresponding to the target interface and the logical relationship of the associated interface according to the data flow direction.
Optionally, the apparatus further includes an information association table building module, configured to:
and constructing an interface information association table based on the association interface corresponding to the target interface and the logical relationship of the association interface so that the user can obtain the required interface information.
Further, the device also comprises a business logic verification module,
and the service logic verification module is used for verifying the service logic of the target interface according to the processing result after the target interface completes the logic processing of the service function.
The interface information detection device provided by the embodiment of the invention can execute the interface information detection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
FIG. 3 shows a schematic block diagram of an electronic device 30 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 30 includes at least one processor 31, and a memory communicatively connected to the at least one processor 31, such as a Read Only Memory (ROM)32, a Random Access Memory (RAM)33, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 31 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)32 or the computer program loaded from a storage unit 38 into the Random Access Memory (RAM) 33. In the RAM 33, various programs and data necessary for the operation of the electronic apparatus 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other via a bus 34. An input/output (I/O) interface 35 is also connected to bus 34.
A plurality of components in the electronic device 30 are connected to the I/O interface 35, including: an input unit 36 such as a keyboard, a mouse, etc.; an output unit 37 such as various types of displays, speakers, and the like; a storage unit 38 such as a magnetic disk, an optical disk, or the like; and a communication unit 39 such as a network card, modem, wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 31 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 31 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 31 performs the various methods and processes described above, such as the interface information detection method.
In some embodiments, the interface information detection method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 38. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 30 via the ROM 32 and/or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the interface information detection method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the interface information detection method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An interface information detection method, comprising:
acquiring preprocessed interface input parameters, and inputting the interface input parameters to a target interface corresponding to a service function, wherein the interface input parameters comprise detection marks;
after the logic processing of the service function is completed based on the target interface, acquiring the data flow direction of the detection mark in the logic processing;
and determining the interface logic corresponding to the target interface based on the data flow direction.
2. The method of claim 1, wherein the step of preprocessing the input parameters of the interface comprises:
determining initial input parameters of the target interface;
setting a detection mark corresponding to the target interface;
and combining the initial input parameters with the detection marks to generate interface input parameters.
3. The method according to claim 1, wherein obtaining the data flow direction of the detection flag in the logical process after the logical process of the business function is completed based on the target interface comprises:
sequentially determining the flow information of the detection marks among all the associated interfaces;
and determining the data flow direction of the detection mark in the logic processing according to each flow information.
4. The method of claim 1, wherein determining the interface logic corresponding to the target interface based on the data flow direction comprises:
and determining an associated interface corresponding to the target interface and a logical relationship of the associated interface according to the data flow direction.
5. The method of claim 4, after determining the interface logic corresponding to the target interface, further comprising:
and constructing an interface information association table based on the association interface corresponding to the target interface and the logical relationship of the association interface so that a user can obtain the required interface information.
6. The method of claim 1, further comprising:
and after the target interface completes the logic processing of the service function, verifying the service logic of the target interface according to a processing result.
7. An interface information detection apparatus, comprising:
the parameter input module is used for acquiring the preprocessed interface input parameters and inputting the interface input parameters to a target interface corresponding to the business function realization, wherein the interface input parameters comprise detection marks;
a data flow direction obtaining module, configured to obtain a data flow direction of the detection flag in the logic processing after the logic processing of the service function is completed based on the target interface;
and the interface logic determination module is used for determining the interface logic corresponding to the target interface based on the data flow direction.
8. The apparatus of claim 7, further comprising an interface input parameter generation module to:
determining initial input parameters of the target interface;
setting a detection mark corresponding to the target interface;
and combining the initial input parameters with the detection marks to generate interface input parameters.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the interface information detection method of any one of claims 1-6.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the interface information detection method according to any one of claims 1 to 6 when executed.
CN202210186143.0A 2022-02-28 2022-02-28 Interface information detection method, device, equipment and storage medium Pending CN114579438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210186143.0A CN114579438A (en) 2022-02-28 2022-02-28 Interface information detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210186143.0A CN114579438A (en) 2022-02-28 2022-02-28 Interface information detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114579438A true CN114579438A (en) 2022-06-03

Family

ID=81771772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210186143.0A Pending CN114579438A (en) 2022-02-28 2022-02-28 Interface information detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114579438A (en)

Similar Documents

Publication Publication Date Title
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN107357721B (en) Method and device for testing system
CN109447553A (en) A kind of checking method of inventory, system and terminal device
CN116089258A (en) Data migration test method, device, equipment, storage medium and program product
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
CN115599679A (en) Test rule base updating method and device, electronic equipment and storage medium
CN114579438A (en) Interface information detection method, device, equipment and storage medium
CN114443493A (en) Test case generation method and device, electronic equipment and storage medium
CN115618777A (en) File generation method, device, equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN114217790A (en) Interface scheduling method and device, electronic equipment and medium
CN114637672A (en) Automatic data testing method and device, computer equipment and storage medium
CN114490408A (en) Test case generation method, device, equipment, storage medium and product
CN114116688A (en) Data processing and data quality inspection method, device and readable storage medium
CN115617462A (en) Test script generation method, device, equipment and storage medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN115268880A (en) Code generation method and device, electronic equipment and storage medium
CN115599689A (en) Test logic display method, device, equipment and storage medium
CN115794609A (en) Script sharing method and device, electronic equipment and storage medium
CN115756575A (en) Submission record acquisition method, device, equipment and storage medium
CN117608943A (en) Method, device, equipment and medium for generating report document of financial transaction file
CN115757095A (en) Product testing method, system, electronic equipment and storage medium
CN115481090A (en) File processing method and device, electronic equipment and storage medium
CN115983222A (en) EasyExcel-based file data reading method, device, equipment and medium

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