CN114968769A - Interface test method, device and equipment - Google Patents
Interface test method, device and equipment Download PDFInfo
- Publication number
- CN114968769A CN114968769A CN202210507657.1A CN202210507657A CN114968769A CN 114968769 A CN114968769 A CN 114968769A CN 202210507657 A CN202210507657 A CN 202210507657A CN 114968769 A CN114968769 A CN 114968769A
- Authority
- CN
- China
- Prior art keywords
- interface
- test
- information
- configuration
- testing method
- 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
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention relates to the technical field of detection, and discloses an interface testing method, device and equipment, wherein the method comprises the steps of downloading corresponding process logs based on a preset test case; analyzing the flow log based on a preset analysis rule to obtain an interface set; generating an interface configuration relation according to the interface set; executing an interface test process on the interface to be tested according to the interface configuration relation, and verifying whether an interface test result is a target output result; if so, the interface test of the interface to be tested passes. The method and the device solve the technical problems that the professional requirement on the test is high and the test process consumes time and labor due to the fact that the interface assembly is carried out to carry out the interface test by considering the sequence of the test flow only from the known interface data in the prior art, and achieve the technical effects of reducing the professional of the interface automation flow, reducing the difficulty of completing the interface automation test and improving the efficiency of the interface automation test.
Description
Technical Field
The embodiment of the invention relates to the technical field of detection, in particular to an interface testing method, device and equipment.
Background
The automatic interface testing method in the present stage starts from known interface data, and then manually assembles the interfaces by using the sequence of the testing process, so as to achieve the purpose of testing the interface process. However, this method has high requirements on the professional performance of the interface test service, high labor cost and long time consumption.
Disclosure of Invention
The embodiment of the invention provides an interface testing method, device and equipment, and solves the technical problems that the requirement on the test specificity is high, and the test process is time-consuming and labor-consuming because the interface testing is performed by performing interface assembly according to the sequence of a test flow only from the known interface data in the prior art.
In a first aspect, an embodiment of the present invention provides an interface testing method, where the interface testing method includes:
downloading a corresponding process log based on a preset test case;
analyzing the flow log based on a preset analysis rule to obtain an interface set, wherein the interface set comprises interface execution sequence information and message data;
generating an interface configuration relationship according to the interface set, wherein the interface configuration relationship comprises a parameter transmission relationship and a general parameter configuration relationship of a front interface and a rear interface;
executing an interface test process on the interface to be tested according to the interface configuration relation, and verifying whether an interface test result is a target output result;
and if so, the interface test of the interface to be tested passes.
In a second aspect, an embodiment of the present invention further provides an interface testing apparatus, where the interface testing apparatus includes:
the log downloading unit is used for downloading corresponding process logs based on a preset test case;
the log analysis unit is used for analyzing the process log based on a preset analysis rule to obtain an interface set, wherein the interface set comprises interface execution sequence information and message data;
the configuration generating unit is used for generating an interface configuration relationship according to the interface set, wherein the interface configuration relationship comprises a parameter transmission relationship and a general parameter configuration relationship of a front interface and a rear interface;
the test execution unit is used for executing an interface test process on the interface to be tested according to the interface configuration relation and verifying whether an interface test result is a target output result or not;
and the result output unit is used for passing the interface test of the interface to be tested if the judgment result of the test execution unit is positive.
In a third aspect, an embodiment of the present invention further provides an interface test device, where the interface test device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the interface testing method according to any of the first aspect of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the interface testing method according to any one of the first aspect of the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, where the computer program, when executed by a processor, implements the interface testing method according to any one of the first aspect of the embodiment of the present invention.
The embodiment of the invention discloses an interface testing method, device and equipment, wherein the method comprises the steps of downloading corresponding process logs based on a preset test case; analyzing the flow log based on a preset analysis rule to obtain an interface set; generating an interface configuration relation according to the interface set; executing an interface test process on the interface to be tested according to the interface configuration relation, and verifying whether an interface test result is a target output result; if so, the interface test of the interface to be tested passes. The method and the device solve the technical problems that the professional requirement on the test is high and the test process consumes time and labor due to the fact that the interface assembly is carried out to carry out the interface test by considering the sequence of the test flow only from the known interface data in the prior art, and achieve the technical effects of reducing the professional of the interface automation flow, reducing the difficulty of completing the interface automation test and improving the efficiency of the interface automation test.
Drawings
Fig. 1 is a flowchart of an interface testing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another interface testing method provided by the embodiment of the invention;
FIG. 3 is a flowchart of another interface testing method provided by the embodiment of the present invention;
FIG. 4 is a flowchart of another interface testing method provided by the embodiment of the present invention;
FIG. 5 is a flowchart of another interface testing method provided by the embodiment of the present invention;
FIG. 6 is a block diagram of an interface testing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an interface test apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that the terms "first", "second", and the like in the description and claims of the present invention and the accompanying drawings are used for distinguishing different objects, and are not used for limiting a specific order. The following embodiments of the present invention may be implemented individually, or in combination with each other, and the embodiments of the present invention are not limited in this respect.
Fig. 1 is a flowchart of an interface testing method according to an embodiment of the present invention. The interface test method can be suitable for all service scenes needing interface test. The interface testing method may be performed by an interface testing apparatus, which may be implemented in hardware and/or software, and may be generally integrated in a server. According to the technical scheme, the data acquisition, storage, use, processing and the like meet the relevant regulations of national laws and regulations.
As shown in fig. 1, the interface testing method specifically includes the following steps:
and S101, downloading a corresponding process log based on a preset test case.
Specifically, firstly, the information of an already-done test flow needs to be acquired, and then, based on the information of the test flow, a flow log required by the corresponding already-done flow is downloaded from a background server; the processed test flow information is a preset test case, and the preset test case is a test case which is preset and designed by a tester and uploaded to the interface test device.
S102, analyzing the process log based on a preset analysis rule to obtain an interface set, wherein the interface set comprises interface execution sequence information and message data.
Specifically, after the flow log is downloaded and obtained, the flow log is analyzed through a certain preset analysis rule to obtain an interface set, where the interface set is interface configuration information obtained by filtering according to filtering configuration information generated in the analysis process, that is, "useful" log information, such as interface execution time, a specific employee number, a specific interface type, and the like.
The interface set comprises interface execution sequence information and message data, wherein the interface execution sequence information is information obtained by sequencing the extracted interface configuration information according to the time sequence, and the message data is used for the subsequent interface test.
S103, generating an interface configuration relationship according to the interface set, wherein the interface configuration relationship comprises a parameter transmission relationship and a general parameter configuration relationship of the front interface and the rear interface.
Specifically, in order to obtain a target output result, an interface needs to transmit data according to a certain sequence when transmitting data, which requires to obtain a parameter context, where the parameter context is an interface configuration relationship and needs to be generated according to an analyzed interface set; meanwhile, the interface configuration relationship comprises a universal parameter configuration relationship besides the parameter transfer relationship, the universal parameter configuration relationship is a set of universal message parameter replacement rules in an XML format and can contain transaction serial number, test time, employee information, mechanism information, part of client information and other universal parameter rules, and the universal parameter configuration relationship can automatically call assignment when the interface test is carried out.
And S104, executing an interface test process on the interface to be tested according to the interface configuration relation, and verifying whether the interface test result is a target output result.
And S105, if so, passing the interface test of the interface to be tested.
Specifically, after the interface configuration relationship is obtained, an interface test process is executed on the interface to be tested according to the interface configuration relationship, and after the test process is completed, whether the output interface test result is a target output result is verified, for example, if the target test result is an output financing purchase contract, and the interface test result is also a financing purchase contract, it indicates that the interface test of the interface to be tested passes. After the interface test is finished, various data information in the interface test process is collected and sorted, and a corresponding test report is generated for subsequent checking and use.
According to the method and the device, testing does not need to be carried out from known interface data in advance, interface testing does not need to be carried out by obtaining specific transmission message data, the extraction of the interface set is carried out by utilizing the completed flow in the flow log, the interface configuration relation is generated through the extracted interface set, and finally the message data are transmitted through the interface configuration relation, so that the test process of the automation execution of the interface to be tested is carried out, the whole process does not need high professional requirements, a large amount of labor cost is reduced, and the test time is shortened.
The method and the device solve the technical problems that in the prior art, the requirement on the specialty of the test is high and the time and labor are consumed in the test process due to the fact that the interface assembly is carried out to carry out the interface test only from the known interface data by means of the sequence of the test process, and achieve the technical effects of reducing the specialty of the interface automation process, reducing the difficulty of completing the interface automation test and improving the efficiency of the interface automation test.
On the basis of the foregoing technical solutions, fig. 2 is a flowchart of another interface testing method provided in the embodiment of the present invention, and as shown in fig. 2, before S101, the interface testing method further includes:
s201, receiving a preset test case.
S202, analyzing the preset test case to obtain test process information, wherein the test process information comprises process log information, and the process log information is used for inquiring a corresponding process log.
Specifically, the preset test case needs to be acquired before downloading the corresponding flow log based on the preset test case. The preset test case is an automatic test case designed by a tester for the test process of the interface to be tested, and then the preset test case is uploaded to a preset storage area of the interface test device.
After the interface test device receives the preset test case, the preset test case is analyzed to obtain the designed test flow information carried in the preset test case, and then the corresponding flow log is inquired and downloaded from the background server according to the flow log information contained in the test flow information.
On the basis of the above technical solutions, S101 specifically includes: acquiring server login information through an interface configuration file; and logging in the server based on the server login information, and downloading the corresponding process log from the server based on the process log information.
Specifically, after test flow information analyzed through a preset test case is obtained, login information of a background server needs to be obtained through an interface configuration file, wherein the login information specifically comprises a login account, a login password and login port information; after the login information is obtained, the server is logged in based on the login information, and then the process log needing to be downloaded is obtained through inquiry according to the process log information in the test process information and is downloaded.
On the basis of the above technical solutions, fig. 3 is a flowchart of another interface testing method provided in the embodiment of the present invention, and as shown in fig. 3, S102 specifically includes:
s301, filtering configuration information is generated based on the target filtering condition.
S302, reading the process logs based on the filtering configuration information, and reserving the process logs meeting the filtering configuration information.
Specifically, in the process of analyzing the flow log, filtering configuration information may be automatically generated according to a preset target filtering condition, where the filtering configuration information may be interface execution time, a specific employee number, a specific interface type, and the like, and the flow log is extracted according to the generated filtering configuration information, so as to obtain the flow log meeting the filtering configuration information.
S303, extracting interface configuration information and message data from the reserved process log.
S304, the extracted interface configuration information is subjected to time sequence sequencing to obtain interface execution sequence information.
Specifically, after the process log meeting the filtering configuration information is obtained, the interface configuration information and the message data are extracted from the process log, and the extracted interface configuration information is subjected to time sequence sequencing, so that interface execution sequence information is obtained.
On the basis of the above technical solutions, fig. 4 is a flowchart of another interface testing method provided in the embodiment of the present invention, and as shown in fig. 4, S103 specifically includes:
s401, traversing the response message data based on the time sequence, and sequentially inquiring whether a next interface exists except the current interface when traversing each message data.
Specifically, the interface needs to transmit data in a certain order when transmitting data, so that the response message data needs to be traversed in a time order, after one message data is transmitted to the interface a (i.e., the current interface), the interface a generates a response message, and while the response message of the interface a is read, whether the next interface B exists behind the interface a is queried to determine whether the interface to be tested, which is consistent in the interface configuration relationship, exists.
S402, if yes, judging whether the field information of the current interface request message data is consistent with the field information of the next interface request message data.
Specifically, if there is a next interface B, it is further determined whether field information of the request packet data of the interface a is consistent with field information of the request packet data of the interface B.
And S403, if the field information of the two interfaces is consistent, generating a configuration relationship between the two interfaces, and storing for later use.
Specifically, if the field information of the interface a is consistent with the field information of the interface B, it indicates that a parameter transmission relationship exists between the two interfaces, that is, the two interfaces need to transmit parameters, and then a configuration relationship between the two interfaces is generated and stored for standby. And the above processes are sequentially circulated until there is no next interface B after interface a.
On the basis of the above technical solutions, the interface testing method further includes: and if the field information of the two interfaces is inconsistent, not generating the configuration relationship between the two interfaces.
Specifically, if the field information of the interface a is inconsistent with the field information of the interface B, it indicates that there is no parameter relationship between the two interfaces, and it is only necessary to continue to query the next interface after the interface B without generating a configuration relationship.
On the basis of the above technical solutions, fig. 5 is a flowchart of another interface testing method provided in an embodiment of the present invention, and as shown in fig. 5, S104 specifically includes:
s501, reading a corresponding interface to be tested according to the interface execution sequence information;
s502, if the interface to be tested exists, transmitting message data to the interface to be tested based on the interface configuration relation to obtain an interface test result;
s503, verifying whether the interface test result is consistent with the target output result.
Specifically, after the interface configuration relationship is obtained, reading the corresponding interfaces to be tested in sequence based on the interface execution sequence information, transmitting the corresponding message data based on the interface configuration relationship, if the corresponding interfaces to be tested exist in the reading process, executing the transmission of the message data to obtain an interface test result, and if the corresponding interfaces to be tested do not exist, exiting the testing process; after the interface test result is obtained, verifying whether the interface test result is consistent with the target output result, if so, indicating that the interface test is passed, otherwise, indicating that the interface test is not passed, and exiting the test process.
Fig. 6 is a structural diagram of an interface testing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the interface testing apparatus includes:
the log downloading unit 61 is used for downloading corresponding process logs based on a preset test case;
the log analysis unit 62 is configured to analyze the flow log based on a preset analysis rule to obtain an interface set, where the interface set includes interface execution sequence information and message data;
the configuration generating unit 63 is configured to generate an interface configuration relationship according to the interface set, where the interface configuration relationship includes a parameter transfer relationship and a general parameter configuration relationship between a front interface and a back interface;
the test execution unit 64 is used for executing an interface test process on the interface to be tested according to the interface configuration relationship and verifying whether the interface test result is a target output result;
and a result output unit 65, configured to pass the interface test of the interface to be tested if the determination result of the test execution unit is yes.
Optionally, before the log downloading unit 61 downloads the corresponding flow log based on the preset test case, the interface testing apparatus further includes:
the case receiving unit is used for receiving a preset test case;
the case analysis unit is used for analyzing the preset test case to obtain test process information, wherein the test process information comprises process log information, and the process log information is used for inquiring the corresponding process log.
Optionally, the log-based downloading unit 61 is specifically configured to:
acquiring server login information through an interface configuration file;
and logging in the server based on the server login information, and downloading the corresponding process log from the server based on the process log information.
Optionally, the log parsing unit 62 is specifically configured to:
generating filtering configuration information based on the target filtering condition;
reading a process log based on the filtering configuration information, and reserving the process log meeting the filtering configuration information;
extracting interface configuration information and message data from the reserved flow log;
and sequencing the time sequence of the extracted interface configuration information to obtain interface execution sequence information.
Optionally, the configuration generating unit 63 is specifically configured to:
traversing the response message data based on the time sequence, and sequentially inquiring whether a next interface exists except the current interface when traversing each message data;
if yes, judging whether the field information of the current interface request message data is consistent with the field information of the next interface request message data;
and if the field information of the two interfaces is consistent, generating a configuration relationship between the two interfaces, and storing for later use.
Optionally, the configuration generating unit 63 is further configured to:
and if the field information of the two interfaces is inconsistent, not generating the configuration relationship between the two interfaces.
Optionally, the test execution unit 64 is specifically configured to:
reading a corresponding interface to be tested according to the interface execution sequence information;
if the interface to be tested exists, transmitting message data to the interface to be tested based on the interface configuration relation to obtain an interface test result;
and verifying whether the interface test result is consistent with the target output result.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The interface testing device provided by the embodiment of the invention has the same technical characteristics as the interface testing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Fig. 7 is a schematic structural diagram of an interface test apparatus according to an embodiment of the present invention, as shown in fig. 7, the interface test apparatus includes a processor 71, a memory 72, an input device 73, and an output device 74; the number of the processors 71 in the interface test device may be one or more, and one processor 71 is taken as an example in fig. 7; the processor 71, the memory 72, the input device 73 and the output device 74 in the interface test apparatus may be connected by a bus or other means, which is exemplified in fig. 7.
The memory 72 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the interface testing method in the embodiment of the present invention (for example, the log downloading unit 61, the log parsing unit 62, the configuration generating unit 63, the test executing unit 64, and the result outputting unit 65 in the interface testing apparatus). The processor 71 executes various functional applications and data processing of the interface test apparatus by executing software programs, instructions and modules stored in the memory 72, that is, implements the above-described interface test method.
The memory 72 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 72 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 72 may further include memory located remotely from processor 71, which may be connected to the interface test equipment over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 73 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the interface test apparatus. The output device 74 may include a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions for performing an interface testing method when executed by a computer processor.
Specifically, the interface testing method includes:
downloading a corresponding process log based on a preset test case;
analyzing the flow log based on a preset analysis rule to obtain an interface set, wherein the interface set comprises interface execution sequence information and message data;
generating an interface configuration relationship according to the interface set, wherein the interface configuration relationship comprises a parameter transmission relationship and a general parameter configuration relationship of the front interface and the rear interface;
executing an interface test process on the interface to be tested according to the interface configuration relation, and verifying whether an interface test result is a target output result;
if so, the interface test of the interface to be tested passes.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the interface testing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the interface testing apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Embodiments of the present invention also provide a computer program product comprising computer-executable instructions, which when executed by a computer processor, are configured to perform the interface testing method provided in any of the embodiments of the present invention.
Of course, the computer program product provided in the embodiments of the present application, whose computer executable instructions are not limited to the method operations described above, may also execute the relevant operations in the method provided in any embodiment of the present invention.
In the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Finally, it should be noted that the above-mentioned embodiments are only preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
1. An interface testing method, characterized in that the interface testing method comprises:
downloading a corresponding process log based on a preset test case;
analyzing the flow log based on a preset analysis rule to obtain an interface set, wherein the interface set comprises interface execution sequence information and message data;
generating an interface configuration relationship according to the interface set, wherein the interface configuration relationship comprises a parameter transmission relationship and a general parameter configuration relationship of a front interface and a rear interface;
executing an interface test process on the interface to be tested according to the interface configuration relation, and verifying whether an interface test result is a target output result;
and if so, the interface test of the interface to be tested passes.
2. The interface testing method of claim 1, wherein before downloading the corresponding flow log based on the preset test case, the interface testing method further comprises:
receiving a preset test case;
analyzing the preset test case to obtain test process information, wherein the test process information comprises process log information, and the process log information is used for inquiring corresponding process logs.
3. The interface testing method of claim 2, wherein downloading the corresponding flow log based on the preset test case comprises:
acquiring server login information through an interface configuration file;
and logging in the server based on the server login information, and downloading a corresponding process log from the server based on the process log information.
4. The interface testing method of claim 1, wherein parsing the flow log based on a preset parsing rule to obtain an interface set comprises:
generating filtering configuration information based on the target filtering condition;
reading the process logs based on the filtering configuration information, and reserving the process logs meeting the filtering configuration information;
extracting interface configuration information and message data from the reserved flow log;
and sequencing the time sequence of the extracted interface configuration information to obtain the interface execution sequence information.
5. The interface testing method of claim 1, wherein the generating an interface configuration relationship according to the interface set comprises:
traversing and responding the message data based on the time sequence, and sequentially inquiring whether a next interface exists except the current interface when traversing each message data;
if yes, judging whether the field information of the message data requested by the current interface is consistent with the field information of the message data requested by the next interface;
and if the field information of the two interfaces is consistent, generating a configuration relationship between the two interfaces, and storing for later use.
6. The interface testing method of claim 5, further comprising:
and if the field information of the two interfaces is inconsistent, not generating the configuration relationship between the two interfaces.
7. The interface test method according to claim 1, wherein the performing an interface test process on the interface to be tested according to the interface configuration relationship and verifying whether the interface test result is a target output result comprises:
reading a corresponding interface to be tested according to the interface execution sequence information;
if the interface to be tested exists, the message data is transmitted to the interface to be tested based on the interface configuration relation, and an interface test result is obtained;
and verifying whether the interface test result is consistent with the target output result.
8. An interface test apparatus, the interface test apparatus comprising:
the log downloading unit is used for downloading corresponding process logs based on a preset test case;
the log analysis unit is used for analyzing the process log based on a preset analysis rule to obtain an interface set, wherein the interface set comprises interface execution sequence information and message data;
the configuration generating unit is used for generating an interface configuration relationship according to the interface set, wherein the interface configuration relationship comprises a parameter transmission relationship and a general parameter configuration relationship of a front interface and a rear interface;
the test execution unit is used for executing an interface test process on the interface to be tested according to the interface configuration relation and verifying whether an interface test result is a target output result;
and the result output unit is used for passing the interface test of the interface to be tested if the judgment result of the test execution unit is positive.
9. An interface test apparatus, characterized in that the interface test apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement an interface testing method as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the interface testing method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements an interface testing method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210507657.1A CN114968769A (en) | 2022-05-10 | 2022-05-10 | Interface test method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210507657.1A CN114968769A (en) | 2022-05-10 | 2022-05-10 | Interface test method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114968769A true CN114968769A (en) | 2022-08-30 |
Family
ID=82981046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210507657.1A Pending CN114968769A (en) | 2022-05-10 | 2022-05-10 | Interface test method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114968769A (en) |
-
2022
- 2022-05-10 CN CN202210507657.1A patent/CN114968769A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110532168B (en) | Full-link interface pressure measurement method and device, computer equipment and storage medium | |
CN109885496B (en) | Test log management method and system | |
CN109600280B (en) | Pressure testing system, method, device and computer readable storage medium | |
CN111475417A (en) | Automatic testing method, device, equipment and storage medium | |
CN109560996B (en) | Automatic testing system and method for terminal of Internet of things | |
US11514731B2 (en) | Method and system for remote vehicle diagnostics | |
JP2009017298A (en) | Data analysis apparatus | |
CN111211934A (en) | Cluster remote communication test method and system | |
CN114564387A (en) | Scene type automatic testing method and system for OpenStack cloud platform | |
CN114844811A (en) | Vehicle-mounted terminal testing method and system | |
CN114531345A (en) | Method, device and equipment for storing flow comparison result and storage medium | |
CN112948262A (en) | System test method, device, computer equipment and storage medium | |
CN111949537A (en) | Interface test method, device, equipment and medium | |
CN109614382B (en) | Log segmentation method and device for application | |
CN114968769A (en) | Interface test method, device and equipment | |
CN115269269A (en) | Drill method, device, backup server, medium, server cluster and system | |
CN112231194B (en) | Index abnormity root analysis method and device and computer readable storage medium | |
CN112988591A (en) | Charging logic verification method, device, equipment and storage medium | |
CN114519008A (en) | Recommendation method, device, medium and equipment for regression test case | |
CN110533432B (en) | Service processing method, device, server and client | |
CN114244427A (en) | Method and device for checking optical fiber network port resources and computer readable medium | |
CN114371866A (en) | Version reconfiguration test method, device and equipment of service system | |
CN113656302A (en) | WAF rule automatic testing method, system, storage medium and terminal equipment | |
CN111159988A (en) | Model processing method and device, computer equipment and storage medium | |
CN112148621A (en) | Test method and device and electronic equipment |
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 |