CN112416763A - Method, device and equipment for automatically testing interface and storage medium - Google Patents

Method, device and equipment for automatically testing interface and storage medium Download PDF

Info

Publication number
CN112416763A
CN112416763A CN202011284725.XA CN202011284725A CN112416763A CN 112416763 A CN112416763 A CN 112416763A CN 202011284725 A CN202011284725 A CN 202011284725A CN 112416763 A CN112416763 A CN 112416763A
Authority
CN
China
Prior art keywords
current
interface
flow chart
current flow
parameter
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
CN202011284725.XA
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.)
DBAPPSecurity Co Ltd
Hangzhou Dbappsecurity Technology Co Ltd
Original Assignee
Hangzhou Dbappsecurity Technology Co Ltd
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 Hangzhou Dbappsecurity Technology Co Ltd filed Critical Hangzhou Dbappsecurity Technology Co Ltd
Priority to CN202011284725.XA priority Critical patent/CN112416763A/en
Publication of CN112416763A publication Critical patent/CN112416763A/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/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Abstract

The invention discloses a method, a device, equipment and a storage medium for automatically testing an interface, wherein the method comprises the following steps: acquiring a current flow chart and current parameters, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameters; processing the current parameter to obtain the current parameter, transmitting the current parameter to an interface next to the current interface in the current flow chart, determining the interface to which the current parameter is transmitted as the current interface, and returning to execute the step of calling the current interface to process the current parameter until the calling of all the interfaces is completed; and judging whether the current parameters are correct, if so, arranging all interfaces according to the current flow chart to obtain corresponding aggregate files, and performing automatic test on the aggregate files, otherwise, adjusting the current flow chart, determining the adjusted current flow chart as the current flow chart, and returning to execute the step of determining the first interface in the current flow chart as the current interface. The test accuracy can be effectively improved.

Description

Method, device and equipment for automatically testing interface and storage medium
Technical Field
The present invention relates to the field of software testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically testing an interface.
Background
A software interface (interface for short) refers to a type of reference that defines an agreement, and like a class, an interface may include methods, attributes, indexers, events, and the like as members. After the interface is written, the interface is usually required to be tested to determine whether the interface is written correctly, in the prior art, each interface is usually tested separately to determine whether each interface is written correctly, but because there is an association between different interfaces, the method does not consider the association between different interfaces when the interface is tested, so that the accuracy of the test result obtained by the test is not high.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for automatically testing an interface, which can effectively improve the testing accuracy.
In order to achieve the above purpose, the invention provides the following technical scheme:
a method of automated testing of an interface, comprising:
acquiring a preset flow chart as a current flow chart, acquiring an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter;
determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of calling the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is finished;
and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface.
Preferably, the transmitting the current parameter to the interface next to the current interface in the current flowchart further includes:
encrypting the current parameters;
before returning to the step of calling the current interface to process the current parameter, the method further comprises the following steps:
and decrypting the current parameter.
Preferably, the encrypting and decrypting the current parameter includes:
and acquiring a jar packet which is imported by using a Jmeter plug-in advance, and encrypting and decrypting the current parameter by using the jar packet.
Preferably, the automated testing of the aggregate file includes:
uploading the aggregate file to a server by using a git tool;
and automatically testing the set file in the server by adopting a Jenkins continuous integration tool to obtain a corresponding test result and generate a test report containing the test result.
Preferably, the automated testing of the aggregate file in the server is performed by using a Jenkins continuous integration tool, which includes:
and when the aggregate file is updated or a preset time interval is reached, adopting a Jenkins continuous integration tool to automatically test the aggregate file in the server.
Preferably, after generating the test report containing the test result, the method further includes:
and sending the test report to a designated terminal for displaying at the designated terminal.
Preferably, after generating the test report containing the test result, the method further includes:
and sending the test report to a specified mailbox for a user of the specified mailbox to obtain.
An apparatus for automated test interface, comprising:
an acquisition module to: acquiring a preset flow chart as a current flow chart, acquiring an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter;
a calling module to: determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of calling the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is finished;
a determination module configured to: and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface.
An apparatus for automated test interface, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of automated testing of an interface as claimed in any preceding claim when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of automated testing an interface according to any one of the preceding claims.
The invention provides a method, a device, equipment and a storage medium for automatically testing an interface, wherein the method comprises the following steps: acquiring a preset flow chart as a current flow chart, acquiring an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter; determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of calling the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is finished; and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface. The method comprises the steps of firstly obtaining a flow chart, then realizing calling of each interface according to the calling sequence of each interface in the flow chart, determining whether the calling sequence of each interface is correct or not by judging whether the result obtained by calling each interface is correct or not after the calling is finished, and not returning to execute the corresponding step when the calling sequence is incorrect, or returning to execute the step of realizing calling of each interface according to the calling sequence of each interface in the flow chart after the flow chart is adjusted until the correct calling sequence of each interface is obtained, and realizing automatic testing of each interface according to the correct calling sequence of each interface; because the interface calling sequence reflects the association between different interfaces, the correct interface calling sequence is determined by the method, and then the automatic test is realized according to the interface calling sequence, namely the correct association between different interfaces is determined, and then the automatic test of each interface is realized based on the association, so that the test accuracy can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for automatically testing an interface according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus of an automatic test interface according to an embodiment of the present invention.
Detailed Description
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.
Referring to fig. 1, a flowchart of a method for automatically testing an interface according to an embodiment of the present invention is shown, where the method includes:
s11: the method comprises the steps of obtaining a preset flow chart as a current flow chart, obtaining an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter.
The execution main body of the method for automatically testing the interface provided by the embodiment of the invention can be a corresponding device, and the interfaces mentioned in the embodiment of the application are software interfaces. It should be noted that, in the embodiment of the present application, a developer may provide all interface flow relationships to a tester in advance, and the tester uses the flow chart to assemble the interfaces to obtain a preset flow chart in the embodiment of the present application; specifically, the interface flow relationships are the sequence in which each interface is called when a certain function or service operation is executed, that is, the relationship between different interfaces exists, and the preset flow chart is a flow chart showing the interface flow relationships.
The input parameter is a parameter that needs to be input to the corresponding interface, the input parameter acquired in step S11 is a parameter that needs to be input to the first interface in the flowchart, and after determining the current interface that needs to be called and the parameter that needs to be input to the current interface that needs to be called, the current parameter may be input to the current interface, that is, the current interface is called to process the current parameter.
S12: determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of executing the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is completed.
Calling a current interface to process a current parameter to obtain a corresponding processing result, which can be called as a parameter output in the embodiment of the application; then, the exit parameter is taken as the entry parameter of the interface which is located behind the current interface and is closest to the current interface in the flowchart (i.e. the entry parameter of the interface next to the current interface in the flowchart), the interface which is located behind the current interface and is closest to the current interface in the flowchart is called, the corresponding entry parameter is processed, and the corresponding processing result can be obtained, that is, the exit parameter of the interface which is located behind the current interface and is closest to the current interface in the flowchart is also the entry parameter of the interface next to the interface which is located behind the current interface and is closest to the current interface in the flowchart, and so on until all the interfaces are called. Briefly, when the calling of each interface included in the current flow chart is realized according to the current flow chart, a first interface in the current flow chart is called to process a corresponding input parameter to obtain a corresponding output parameter, the output parameter is taken as the input parameter of a second interface in the current flow chart, the second interface in the current flow chart is called to process the corresponding input parameter to obtain a corresponding output parameter, the output parameter is taken as the input parameter of a third interface in the current flow chart, and the like until all interfaces in the current flow chart are called.
S13: and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface.
After the calling of all the interfaces in the current flow chart is completed, the final output parameters can be obtained, namely the final output parameters are the results of calling each interface according to the current flow chart to realize corresponding functions or business operations and the like, namely the latest current parameters; a tester can set a range of the latest current parameter according to actual needs, and if the latest current parameter is in the range, the calling sequence of each interface in the current flow chart is correct, so that each interface included in the current flow chart can be arranged according to the current flow chart, a set file including the interfaces and arranged according to the calling sequence in the current flow chart is obtained, and the set file is subjected to automatic testing; if the latest current parameter is not within the range, a prompt indicating that a tester adjusts the call sequence of the interface in the current flowchart can be output, and after the tester adjusts the call sequence of the interface in the current flowchart, the adjusted current flowchart is taken as the latest flowchart to realize the corresponding cycle step, so that the interface call sequence according to which the automatic test is finally realized is correct when the corresponding function or business operation is realized, that is, the determined association between the interfaces when the corresponding function or business operation is realized is correct.
The method comprises the steps of firstly obtaining a flow chart, then realizing calling of each interface according to the calling sequence of each interface in the flow chart, determining whether the calling sequence of each interface is correct or not by judging whether the result obtained by calling each interface is correct or not after the calling is finished, and not returning to execute the corresponding step when the calling sequence is incorrect, or returning to execute the step of realizing calling of each interface according to the calling sequence of each interface in the flow chart after the flow chart is adjusted until the correct calling sequence of each interface is obtained, and realizing automatic testing of each interface according to the correct calling sequence of each interface; because the interface calling sequence reflects the association between different interfaces, the correct interface calling sequence is determined by the method, and then the automatic test is realized according to the interface calling sequence, namely the correct association between different interfaces is determined, and then the automatic test of each interface is realized based on the association, so that the test accuracy can be effectively improved.
The method for automatically testing an interface according to the embodiment of the present invention may further include, before transmitting the current parameter to a next interface of the current interface in the current flowchart, that:
encrypting the current parameters;
before returning to the step of calling the current interface to process the current parameter, the method further comprises the following steps:
and decrypting the current parameter.
According to the embodiment of the application, when the current parameter is transmitted between different interfaces through the network, the current parameter can be transmitted in an encrypted mode, the ciphertext display of the interfaces in the network transmission process is ensured, and the safety is improved; specifically, before transmitting the current parameter to the next interface of the current interface, the current parameter may be encrypted, and then the encrypted current parameter is transmitted to the next interface of the current interface, and when the interface receives the transmitted encrypted current parameter, the encrypted current parameter may be decrypted first, and then the decrypted current parameter is processed.
The method for automatically testing the interface provided by the embodiment of the invention is used for carrying out encryption processing and decryption processing on the current parameter, and comprises the following steps:
and acquiring a jar packet imported by using a Jmeter plug-in advance, and encrypting and decrypting the current parameter by using the jar packet.
The embodiment of the application can realize encryption and decryption transmission of the interface through the Jerner plug-in, and realize the automation of the interface on the basis of the plug-in, thereby improving the effectiveness and the simplicity of the encryption and decryption transmission of the interface; specifically, the embodiment of the application can use a j emeter plug-in to import an encryption/decryption jar packet, and use the jar packet to execute the operations of encryption processing and decryption processing; of course, other arrangements according to actual needs are within the protection scope of the present invention.
The method for automatically testing the interface provided by the embodiment of the invention is used for automatically testing the collection file, and comprises the following steps:
uploading the collection file to a server by using a git tool;
and automatically testing the set files in the server by adopting a Jenkins continuous integration tool to obtain corresponding test results and generate a test report containing the test results.
It should be noted that, when the application performs the automated test on the aggregate file, the local aggregate file may be uploaded to the server by using a git tool, and the Jenkins continuous integration tool is used to automatically execute the interface by constructing and running a corresponding script, so as to generate the test result and the test report containing the test result, where the test result may include, but is not limited to, the correct range of the input parameter input to each interface, the output parameter output by each interface, and the output parameter output by the last interface, thereby effectively implementing the automated test of the aggregate file.
The method for automatically testing the interface provided by the embodiment of the invention can further comprise the following steps after generating the test report containing the test result:
sending the test report to a designated terminal for displaying at the designated terminal;
or sending the test report to a specified mailbox for a user of the specified mailbox to obtain.
In order to facilitate the testers to know the test results and further realize corresponding operations such as development and maintenance, the test reports can be sent to the designated terminals corresponding to the testers, so that the testers can check the test reports on the designated terminals, and can also send the test reports to the designated mailbox for the testers to check after obtaining the test reports from the designated mailbox, and of course, other settings carried out according to actual needs are also within the protection scope of the invention.
The method for automatically testing the interface provided by the embodiment of the invention adopts a Jenkins continuous integration tool to automatically test the collection file in the server, and can comprise the following steps:
and when the aggregate file is updated or a preset time interval is reached, automatically testing the aggregate file in the server by adopting a Jenkins continuous integration tool.
The method and the device can be executed when the automatic test of the aggregate file is realized or executed at regular time (for example, once per week), wherein the version release is that the aggregate file is updated, and the regular execution is that the preset time interval is reached every time, so that the automatic test of the aggregate file is started through the conditions, the corresponding test can be realized in time after a new aggregate file is generated, the automatic test of the aggregate file can be realized at different time, and the effective realization of an automatic test interface is facilitated.
Therefore, the encryption and decryption jar packet is led in by the jemeter plug-in, the interface is encrypted in the parameter transmission process, the result returned by the interface is used as the parameter of the next interface, encryption and decryption transmission is carried out again, and the cryptograph display of the interface in the network transmission process is ensured. In addition, local aggregate files are uploaded to the server by using a git tool, and a Jenkins continuous integration tool is adopted to automatically execute an interface to generate a test result and a test report by constructing and operating a script when a version is released or is regularly executed, so that automation of the continuous integration operation interface is utilized, the labor cost is reduced, regression test is facilitated, and the test efficiency is improved.
It should be noted that, when the Jenkins continuous integration tool is used to perform the automated test on the aggregate file in the server, the invocation of each interface in the aggregate file is specifically realized according to the processes from step S11 to step S12, but the difference is that the information such as the first interface and the next interface is determined according to the arrangement sequence of different interfaces in the aggregate file without acquiring the flowchart, which is not described herein too much. In addition, different ip ports can be set for different aggregate files after the aggregate files are formed, so that the corresponding ip ports can be called when the automated test of the aggregate files is realized, the same set of test scripts can be conveniently used in a test environment and a production environment, and the test scripts are convenient to check.
An embodiment of the present invention further provides an apparatus for automatically testing an interface, as shown in fig. 2, the apparatus may include:
an obtaining module 11, configured to: acquiring a preset flow chart as a current flow chart, acquiring an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter;
a calling module 12 for: determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of calling the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is finished;
a judging module 13, configured to: and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface.
The device for automatically testing the interface provided by the embodiment of the invention can also comprise:
an encryption and decryption module for: the current parameter is encrypted before being transmitted to the next interface of the current interface in the current flow chart; and before returning to the step of calling the current interface to process the current parameter, decrypting the current parameter.
In an apparatus for automatically testing an interface according to an embodiment of the present invention, an encryption/decryption module may include:
an encryption and decryption unit configured to: and acquiring a jar packet imported by using a Jmeter plug-in advance, and encrypting and decrypting the current parameter by using the jar packet.
In an apparatus for automatically testing an interface according to an embodiment of the present invention, a determining module may include:
a test unit to: uploading the collection file to a server by using a git tool; and automatically testing the set files in the server by adopting a Jenkins continuous integration tool to obtain corresponding test results and generate a test report containing the test results.
In an apparatus for automatically testing an interface according to an embodiment of the present invention, a test unit may include:
a test subunit to: and when the aggregate file is updated or a preset time interval is reached, automatically testing the aggregate file in the server by adopting a Jenkins continuous integration tool.
The device for automatically testing the interface provided by the embodiment of the invention can also comprise:
a first sending module configured to: and after generating a test report containing the test result, sending the test report to the specified terminal so as to be displayed at the specified terminal.
A second sending module, configured to: and sending the test report to a specified mailbox for a user of the specified mailbox to obtain.
An embodiment of the present invention further provides an apparatus for automatically testing an interface, which may include:
a memory for storing a computer program;
a processor for implementing the steps of the method of automated testing of an interface as claimed in any one of the preceding claims when executing a computer program.
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 steps of the method for automatically testing an interface as described above.
It should be noted that for the description of the relevant parts in the apparatus, the device and the storage medium for automatically testing an interface provided in the embodiment of the present invention, reference is made to the detailed description of the corresponding parts in the method for automatically testing an interface provided in the embodiment of the present invention, and details are not repeated herein. In addition, parts of the above technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for automated testing of an interface, comprising:
acquiring a preset flow chart as a current flow chart, acquiring an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter;
determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of calling the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is finished;
and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface.
2. The method of claim 1, wherein transmitting the current parameter to the next interface of the current interface in the current flow chart further comprises:
encrypting the current parameters;
before returning to the step of calling the current interface to process the current parameter, the method further comprises the following steps:
and decrypting the current parameter.
3. The method of claim 2, wherein encrypting and decrypting the current parameter comprises:
and acquiring a jar packet which is imported by using a Jmeter plug-in advance, and encrypting and decrypting the current parameter by using the jar packet.
4. The method of claim 3, wherein automatically testing the aggregate file comprises:
uploading the aggregate file to a server by using a git tool;
and automatically testing the set file in the server by adopting a Jenkins continuous integration tool to obtain a corresponding test result and generate a test report containing the test result.
5. The method of claim 4, wherein automatically testing the aggregate file in the server using a Jenkins persistent integration tool comprises:
and when the aggregate file is updated or a preset time interval is reached, adopting a Jenkins continuous integration tool to automatically test the aggregate file in the server.
6. The method of claim 5, wherein after generating the test report containing the test results, further comprising:
and sending the test report to a designated terminal for displaying at the designated terminal.
7. The method of claim 5, wherein after generating the test report containing the test results, further comprising:
and sending the test report to a specified mailbox for a user of the specified mailbox to obtain.
8. An apparatus for automated testing of an interface, comprising:
an acquisition module to: acquiring a preset flow chart as a current flow chart, acquiring an input parameter as a current parameter, determining a first interface in the current flow chart as a current interface, and calling the current interface to process the current parameter;
a calling module to: determining that the parameters obtained by processing the current parameters are the current parameters, transmitting the current parameters to the next interface of the current interface in the current flow chart, determining that the interface to which the current parameters are transmitted is the current interface, and returning to the step of calling the current interface to process the current parameters until the calling of all the interfaces in the current flow chart is finished;
a determination module configured to: and after the calling of all the interfaces in the current flow chart is finished, judging whether the current parameters are correct, if so, arranging all the interfaces according to the current flow chart to obtain a corresponding aggregate file, and performing automatic test on the aggregate file, otherwise, adjusting the current flow chart, determining that the adjusted current flow chart is the current flow chart, and returning to execute the step of determining that the first interface in the current flow chart is the current interface.
9. An apparatus for automated testing of an interface, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of automated testing interface of any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of automated testing an interface according to any one of claims 1 to 7.
CN202011284725.XA 2020-11-17 2020-11-17 Method, device and equipment for automatically testing interface and storage medium Pending CN112416763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011284725.XA CN112416763A (en) 2020-11-17 2020-11-17 Method, device and equipment for automatically testing interface and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011284725.XA CN112416763A (en) 2020-11-17 2020-11-17 Method, device and equipment for automatically testing interface and storage medium

Publications (1)

Publication Number Publication Date
CN112416763A true CN112416763A (en) 2021-02-26

Family

ID=74832619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011284725.XA Pending CN112416763A (en) 2020-11-17 2020-11-17 Method, device and equipment for automatically testing interface and storage medium

Country Status (1)

Country Link
CN (1) CN112416763A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115629990A (en) * 2022-11-15 2023-01-20 四川无限智达科技有限公司 Service testing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528418A (en) * 2016-10-28 2017-03-22 广东浪潮大数据研究有限公司 Test method and device
CN106776349A (en) * 2017-02-07 2017-05-31 武汉斗鱼网络科技有限公司 A kind of method to set up and system of interface testing process
CN107977308A (en) * 2016-10-25 2018-05-01 传化物流集团有限公司 interface test method and device
CN109344076A (en) * 2018-10-22 2019-02-15 浙江执御信息技术有限公司 A kind of automatic interface testing method and its device based on JMeter and Jenkins
CN109857667A (en) * 2019-02-03 2019-06-07 苏州市龙测智能科技有限公司 Automatic interface testing method, test device, test equipment and storage medium
CN111679982A (en) * 2020-06-08 2020-09-18 广东赛百威信息科技有限公司 Automatic testing method for REST API (representational State transfer) interface software

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977308A (en) * 2016-10-25 2018-05-01 传化物流集团有限公司 interface test method and device
CN106528418A (en) * 2016-10-28 2017-03-22 广东浪潮大数据研究有限公司 Test method and device
CN106776349A (en) * 2017-02-07 2017-05-31 武汉斗鱼网络科技有限公司 A kind of method to set up and system of interface testing process
CN109344076A (en) * 2018-10-22 2019-02-15 浙江执御信息技术有限公司 A kind of automatic interface testing method and its device based on JMeter and Jenkins
CN109857667A (en) * 2019-02-03 2019-06-07 苏州市龙测智能科技有限公司 Automatic interface testing method, test device, test equipment and storage medium
CN111679982A (en) * 2020-06-08 2020-09-18 广东赛百威信息科技有限公司 Automatic testing method for REST API (representational State transfer) interface software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115629990A (en) * 2022-11-15 2023-01-20 四川无限智达科技有限公司 Service testing method and device, electronic equipment and storage medium
CN115629990B (en) * 2022-11-15 2023-04-07 四川无限智达科技有限公司 Service testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107294808B (en) Interface test method, device and system
CN108647141B (en) Automatic test method, device, computer readable medium and electronic equipment
US7979532B2 (en) Systems and methods for using an access point for testing multiple devices and using several consoles
CN106294102B (en) Application program testing method, client, server and system
CN109376088B (en) Automatic test system and automatic test method
CN108052474B (en) Data format conversion method, device, equipment and computer readable storage medium
CN108509344B (en) Daily cutting batch test method, equipment and readable storage medium
CN112988608B (en) Data testing method and device, computer equipment and storage medium
CN112733369A (en) Intelligent equipment maintenance method, terminal and system and electronic equipment
CN112882927A (en) Interface automatic testing method, device, equipment and medium
CN106972983B (en) Automatic testing device and method for network interface
CN108121606B (en) Method and device for generating coded data based on joint debugging interface
CN112565003B (en) Communication data testing method and device, storage medium and electronic equipment
CN107040504A (en) Method of testing and device
CN112416763A (en) Method, device and equipment for automatically testing interface and storage medium
CN110908708B (en) Code release method, device and system
CN112559348B (en) Test analysis method, system, equipment and medium based on jacoco
CN114116448A (en) Pressure testing method and device of application program, storage medium and computer equipment
CN113031569B (en) Monitoring method, system, terminal and medium of nuclear fusion control system
CN114564387A (en) Scene type automatic testing method and system for OpenStack cloud platform
CN112199229A (en) Data processing method, device, equipment and storage medium
CN111352802A (en) Monitoring processing method, device, equipment and storage medium of network bus
CN111984543B (en) Instruction testing method, device and system
CN113037526A (en) Security detection method, terminal, system and storage medium
CN111881060B (en) Interface performance testing 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226