CN110609781A - Interface test method, device and storage medium - Google Patents
Interface test method, device and storage medium Download PDFInfo
- Publication number
- CN110609781A CN110609781A CN201910810663.2A CN201910810663A CN110609781A CN 110609781 A CN110609781 A CN 110609781A CN 201910810663 A CN201910810663 A CN 201910810663A CN 110609781 A CN110609781 A CN 110609781A
- Authority
- CN
- China
- Prior art keywords
- program interface
- tested
- interface
- test
- server
- 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
- 238000010998 test method Methods 0.000 title description 3
- 238000012360 testing method Methods 0.000 claims abstract description 240
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000012545 processing Methods 0.000 claims description 13
- 230000002159 abnormal effect Effects 0.000 abstract description 21
- 238000010586 diagram Methods 0.000 description 9
- 230000003993 interaction Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- SPBWHPXCWJLQRU-FITJORAGSA-N 4-amino-8-[(2r,3r,4s,5r)-3,4-dihydroxy-5-(hydroxymethyl)oxolan-2-yl]-5-oxopyrido[2,3-d]pyrimidine-6-carboxamide Chemical compound C12=NC=NC(N)=C2C(=O)C(C(=O)N)=CN1[C@@H]1O[C@H](CO)[C@@H](O)[C@H]1O SPBWHPXCWJLQRU-FITJORAGSA-N 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3409—Recording 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 for performance assessment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses an interface testing method, an interface testing device and a storage medium. The method comprises the following steps: the server receives a test request for testing the new program interface, wherein the server is provided with a tested program interface which is tested; the server simultaneously carries out interface test on the new program interface and the tested program interface according to the test request; and the server determines the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface. The tested program interface with abnormal performance caused by the new program interface can be found in time, so that the server can maintain the program interface with abnormal performance in time, and the working efficiency of the server is greatly improved.
Description
Technical Field
The present application relates to the field of interface testing technologies, and in particular, to an interface testing method and apparatus, and a storage medium.
Background
With the development of computer technology, more and more businesses are implemented by computer programs, such as financial services, social services, online shopping, and the like, and data interaction between various business services, such as interaction between the interior of a business system and interaction between the business system and a user, is implemented by calling various predefined program interfaces. In order to ensure that various program interfaces can meet the requirements for data interaction, the program interfaces need to be tested after being developed.
In the existing interface testing mode, when a newly developed new program interface is tested, only the newly developed new program interface is tested, and the tested program interface is not tested any more. However, the newly developed program interface is very easy to affect the tested program interface, so even if the test result of the new program interface indicates that the performance of the interface is good, it cannot be guaranteed that the new program interface does not affect other tested program interfaces, and the other tested program interfaces with abnormal performance caused by the new program interface cannot be found in time, thereby greatly reducing the working efficiency of the device.
Aiming at the technical problem that the existing testing mode only testing the newly developed new program interface in the prior art cannot timely discover other tested program interfaces with abnormal performance caused by the new program interface, so that the working efficiency of equipment is greatly reduced, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the disclosure provides an interface testing method, an interface testing device and a storage medium, so as to solve at least the technical problem that in the prior art, the existing testing mode of only testing a newly developed and completed new program interface causes that other tested program interfaces with abnormal performance caused by the new program interface cannot be found in time, thereby greatly reducing the working efficiency of equipment.
According to an aspect of the embodiments of the present disclosure, there is provided an interface testing method, including: the server receives a test request for testing the new program interface, wherein the server is provided with a tested program interface which is tested; the server simultaneously carries out interface test on the new program interface and the tested program interface according to the test request; and the server determines the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method described above is performed by a processor when the program is executed.
According to another aspect of the embodiments of the present disclosure, there is also provided an interface testing apparatus, including: the device comprises a receiving module, a testing module and a judging module, wherein the receiving module is used for receiving a testing request for testing a new program interface, and the device is provided with a tested program interface which is tested; the first testing module is used for simultaneously carrying out interface testing on the new program interface and the tested program interface according to the testing request; and the first determining module is used for determining the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
According to another aspect of the embodiments of the present disclosure, there is also provided an interface testing apparatus, including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: receiving a test request for testing a new program interface, wherein the device is provided with a tested program interface which is tested; according to the test request, simultaneously carrying out interface test on the new program interface and the tested program interface; and determining the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
In the embodiment of the present disclosure, the server tests the tested program interface that has been tested and is set on the server while testing the new program interface. The tested program interface with abnormal performance caused by the new program interface can be found in time, so that the server can maintain the program interface with abnormal performance in time, and the working efficiency of the server is greatly improved. And the problem that the existing test mode of only testing the newly developed new program interface can not find other tested program interfaces with abnormal performance caused by the new program interface in time is solved, so that the working efficiency of the equipment is greatly reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal for implementing the method according to embodiment 1 of the present disclosure;
fig. 2a is a schematic diagram of an interface test system according to embodiment 1 of the present disclosure;
fig. 2b is a schematic internal structure diagram of a server in the interface test system according to embodiment 1 of the present disclosure;
fig. 3 is a schematic flow chart of an interface testing method according to the first aspect of embodiment 1 of the present disclosure;
fig. 4 is a schematic diagram of an interface testing apparatus according to embodiment 2 of the present disclosure; and
fig. 5 is a schematic diagram of an interface testing apparatus according to embodiment 3 of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise 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 1
According to the present embodiment, an embodiment of an interface testing method is provided, it should be noted that the steps shown in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different than here.
The method provided by the embodiment can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or mobile device) for implementing the interface test method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the disclosed embodiments, the data processing circuit acts as a processor control (e.g., selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the interface testing method in the embodiment of the present disclosure, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the interface testing method of the application program. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via 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 transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
It should be noted here that in some alternative embodiments, the computer device (or mobile device) shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or mobile device) described above.
Fig. 2a is a schematic diagram of an interface test system according to the present embodiment. Fig. 2b is a schematic diagram of the internal structure of the server. Referring to fig. 2a and 2b, the system comprises: a terminal device 100 and a server 200. Wherein the terminal device 100 is a terminal device of the tester 110, and the server 200 is provided with a tested program interface which has completed testing and a new program interface to be tested, which are respectively: tested program interface 1, tested program interface 2, tested program interface 3 and new program interface 4.
Further, the tester 110 may send a test request requesting a test on the new program interface 4 to the server 200 through the terminal device 100. Meanwhile, the tester 110 may also edit and modify the test case through the terminal device 100. The test case calls a new program interface and a tested program interface. The above-described hardware configuration can be applied to both the terminal device 100 and the server 200 in the system.
Under the above operating environment, according to the first aspect of the present embodiment, an interface testing method is provided, which is implemented by the server 200 shown in fig. 2 a. Fig. 3 shows a flow diagram of the method, which, with reference to fig. 3, comprises:
s302: the server receives a test request for testing the new program interface, wherein the server is provided with a tested program interface which is tested;
s304: the server simultaneously carries out interface test on the new program interface and the tested program interface according to the test request; and
s306: and the server determines the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
As described in the background art, currently, with the development of computer technology, more and more businesses are implemented by computer programs, such as financial services, social services, and online shopping, and data interactions between various business services, such as interactions between the interior of a business system and interactions between the business system and a user, are implemented by invoking various predefined program interfaces. In order to ensure that various program interfaces can meet the requirements for data interaction, the program interfaces need to be tested after being developed. In the existing interface testing mode, when a newly developed new program interface is tested, only the newly developed new program interface is tested, and the tested program interface is not tested any more. However, the newly developed program interface is very easy to affect the tested program interface, so even if the test result of the new program interface indicates that the performance of the interface is good, it cannot be guaranteed that the new program interface does not affect other tested program interfaces, and the other tested program interfaces with abnormal performance caused by the new program interface cannot be found in time, thereby greatly reducing the working efficiency of the device.
In view of the problems in the background art, as shown in fig. 2a and fig. 2b, the server 200 provided in this embodiment receives a test request for testing a new program interface. Wherein the server 200 is provided with a tested program interface where the test is completed. For example: the server 200 receives a test request for testing the new program interface 4 from the terminal device 100 of the tester 110, and the server 200 is provided with a tested program interface 1, a tested program interface 2, and a tested program interface 3, which have completed the test. Then, the server 200 simultaneously tests the new program interface 4, the tested program interface 1, the tested program interface 2, and the tested program interface 3 according to the test request. And then determining the performance of each program interface comprising the new program interface 4, the tested program interface 1, the tested program interface 2 and the tested program interface 3 according to the test results of the tested program interface 1, the tested program interface 2, the tested program interface 3 and the new program interface 4.
Thus, in this way, the server 200 tests the new program interface and also tests the tested program interface that has been tested and is set on the server 200. The tested program interface with abnormal performance caused by the new program interface can be found in time, so that the server 200 can maintain the program interface with abnormal performance in time, and the working efficiency of the server is greatly improved. And the problem that the existing test mode of only testing the newly developed new program interface can not find other tested program interfaces with abnormal performance caused by the new program interface in time is solved, so that the working efficiency of the equipment is greatly reduced.
Optionally, the server performs an interface test operation on the new program interface and the tested program interface simultaneously, including: the server accesses a preset program interface information file by using a preset test program, wherein the program interface information file is used for recording interface information of a new program interface and a tested program interface; and the server tests the new program interface and the tested program interface according to the interface information by using the test program.
Specifically, the server 200 accesses a preset program interface information file using a preset test program. The api information file is used to record interface information of a new api (e.g. new api 4) and an tested api (e.g. tested api 1, tested api 2, and tested api 3), and the api information file may be stored in an Excel table or a database. The server 200 then tests the new program interface and the tested program interface using the test program according to the interface information. In this way, the server 200 only needs to use a preset test program to call a program interface information file stored in an Excel table or a database in advance, and test a new program interface and a tested program interface according to interface data in the program interface information file. Under the condition that different program interfaces to be tested need to be tested, the server 200 can test different interfaces without modifying codes of the test program, so that the efficiency of interface testing is further improved.
Optionally, the server performs an interface test operation on the new program interface and the tested program interface simultaneously, including: the server receives a test case edited by a user from the remote terminal equipment, wherein the test case calls a new program interface and a tested program interface; the server runs the test case and deploys the service corresponding to the test case; and implementing the service to test the new program interface and the tested program interface.
Specifically, the server 200 receives a test case edited by a user (e.g., the tester 110) from a remote terminal device (e.g., the terminal device 100). Wherein the test case calls the new program interface and the tested program interface. Then, the server 200 runs the test case and deploys the service corresponding to the test case. The deployed service is then implemented and testing of the new program interface and the tested program interface is performed. By the method, the new program interface and the tested program interface can be tested quickly, and the efficiency of interface testing is further improved.
In addition, the tester 110 may directly edit or modify the test parameters of the test case on the terminal device 100, so that the server 200 no longer needs to create the test case according to the test parameters edited or modified by the tester, but directly tests the new program interface and the tested program interface according to the edited or modified test case received from the terminal device 100 of the tester 110. Therefore, the efficiency of interface testing is greatly improved.
Optionally, the server performs an interface test operation on the new program interface and the tested program interface simultaneously, including: the server calls a new program interface under the condition of calling the tested program interface; and the server determines the performance of each program interface comprising the new program interface and the tested program interface according to the output parameters received from the tested program interface and the new program interface.
Specifically, the server 200 calls a new program interface in the case of calling a tested program interface. Then, in the process of testing the tested program interface and the new program interface, the server 200 may input parameters to the tested program interface and the new program interface and then receive output parameters from the tested program interface and the new program interface. At this time, the server 200 determines the performance of the tested program interface and the new program interface according to the output parameter, that is, the server 200 determines that the performance of the tested program interface and the new program interface is good when the output parameter matches the input parameter. Otherwise, the result is no. In this manner, server 200 may determine the performance of the tested program interface and the new program interface based on the received output parameters.
Optionally, the server performs an interface test operation on the new program interface and the tested program interface simultaneously, including: and simultaneously carrying out concurrent testing on the new program interface and the tested program interface by the server.
Specifically, the server 200 concurrently tests the new program interface and the tested program interface. For example: the server 200 concurrently tests the tested program interface 1, the tested program interface 2, the tested program interface 3 and the new program interface 4. In this way, the efficiency of testing the new program interface and the tested program interface by the server 200 is further improved.
Optionally, the operation of the server to concurrently test the new program interface and the tested program interface includes: the server determines the performance inflection points of a new program interface and a tested program interface; and the server determines a comprehensive inflection point related to the new program interface and the tested program interface according to the performance inflection points of the new program interface and the tested program interface.
Specifically, the server 200 first tests each new program interface and the tested program interfaces individually, and then determines performance inflection points of the respective interfaces. In practical application, a plurality of interfaces are combined to form a complete business process. For example: the four operations of registration, login, ordering and comment form a business process, wherein an interface corresponding to the operation of comment is a new program interface, and other operations are tested program interfaces. And the four operations are respectively realized through four interfaces, and the four interfaces respectively have own performance inflection points. At this time, the server determines a comprehensive inflection point associated with the new program interface and the tested program interface according to the performance inflection points of the new program interface (i.e., the comment interface) and the tested program interface (the registration interface, the login interface, and the order placement interface). Therefore, through each performance inflection point of the new program interface and the tested program interface, a comprehensive inflection point related to the new program interface and the tested program interface is obtained, and a performance result of a complete service flow is obtained.
Optionally, the method further comprises: the server determines a test plug-in which is matched with the test requirements of the new program interface and the tested program interface from the plurality of test plug-ins; and the server tests the new program interface and the tested program interface by using the test plug-in matched with the test requirement.
Specifically, the server 200 determines a test plug-in that matches the test requirements of the new program interface and the tested program interface from a plurality of test plug-ins (e.g., plug-ins for interface testing, plug-ins for test response, plug-ins for testing memory, etc.). The server 200 then tests the new program interface as well as the tested program interface using a test plug-in that matches the test requirements. Thus, in this manner, server 200 may select an appropriate test plug-in from a plurality of open source test plug-ins to test both the new program interface and the tested program interface. The testing efficiency of testing the new program interface and the tested program interface is further improved.
Further, referring to fig. 1, according to a second aspect of the present embodiment, a storage medium 104 is provided. The storage medium 104 comprises a stored program, wherein the method of any of the above is performed by a processor when the program is run.
Thus, according to the present embodiment, the server 200 tests the new program interface and also tests the tested program interface that has been tested and is set on the server 200. The tested program interface with abnormal performance caused by the new program interface can be found in time, so that the server 200 can maintain the program interface with abnormal performance in time, and the working efficiency of the server is greatly improved. And the problem that the existing test mode of only testing the newly developed new program interface can not find other tested program interfaces with abnormal performance caused by the new program interface in time is solved, so that the working efficiency of the equipment is greatly reduced.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode 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 is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 4 shows an interface test apparatus 400 according to the present embodiment, the apparatus 400 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 4, the apparatus 400 includes: a receiving module 410, configured to receive a test request for testing a new program interface, where the device is provided with a tested program interface that has completed testing; the first testing module 420 is configured to perform interface testing on the new program interface and the tested program interface simultaneously according to the testing request; and a first determining module 430, configured to determine, according to the test results of the tested program interface and the new program interface, the performance of each program interface including the new program interface and the tested program interface.
Optionally, the first testing module 420 includes: the access submodule is used for accessing a preset program interface information file by using a preset test program, wherein the program interface information file is used for recording the interface information of a new program interface and a tested program interface; and the first testing submodule is used for testing the new program interface and the tested program interface by using the testing program according to the interface information.
Optionally, the first testing module 420 includes: the receiving submodule is used for receiving a test case edited by a user from a remote terminal device, wherein the test case calls a new program interface and a tested program interface; the deployment submodule is used for running the test case and deploying the service corresponding to the test case; and the second testing submodule is used for realizing service and testing the new program interface and the tested program interface.
Optionally, the first testing module 420 includes: the calling submodule is used for calling a new program interface under the condition of calling the tested program interface; and a first determining submodule for determining the performance of each program interface including the new program interface and the tested program interface, based on the output parameters received from the tested program interface and the new program interface.
Optionally, the first testing module 420 includes: and the concurrent test submodule is used for simultaneously carrying out concurrent test on the new program interface and the tested program interface.
Optionally, the first testing module 420 includes: the second determining submodule is used for determining the performance inflection points of the new program interface and the tested program interface; and a third determining submodule for determining a composite inflection point associated with the new program interface and the tested program interface based on the performance inflection points of the new program interface and the tested program interface.
Optionally, the method further comprises: the second determining module is used for determining a test plug-in which is matched with the test requirements of the new program interface and the tested program interface from the plurality of test plug-ins; and the second testing module is used for testing the new program interface and the tested program interface by using the testing plug-in matched with the testing requirement.
Thus, according to the present embodiment, the interface test apparatus 400 tests the new program interface and also tests the tested program interface that has been tested and is set on the interface test apparatus 400. The tested program interface with abnormal performance caused by the new program interface can be found in time, so that the interface testing device 400 can maintain the program interface with abnormal performance in time, and the working efficiency of the server is greatly improved. And the problem that the existing test mode of only testing the newly developed new program interface can not find other tested program interfaces with abnormal performance caused by the new program interface in time is solved, so that the working efficiency of the equipment is greatly reduced.
Example 3
Fig. 5 shows an interface testing device 500 according to the present embodiment, which device 500 corresponds to the method according to the first aspect of embodiment 1. Referring to fig. 5, the apparatus 500 includes: a processor 510; and a memory 520 coupled to processor 510 for providing processor 510 with instructions to process the following process steps: receiving a test request for testing a new program interface, wherein the device is provided with a tested program interface which is tested; according to the test request, simultaneously carrying out interface test on the new program interface and the tested program interface; and determining the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
Optionally, the operation of performing interface test on the new program interface and the tested program interface simultaneously includes: accessing a preset program interface information file by using a preset test program, wherein the program interface information file is used for recording interface information of a new program interface and an tested program interface; and testing the new program interface and the tested program interface by using the test program according to the interface information.
Optionally, the operation of performing interface test on the new program interface and the tested program interface simultaneously includes: receiving a test case edited by a user from a remote terminal device, wherein the test case calls a new program interface and a tested program interface; running a test case, and deploying a service corresponding to the test case; and implementing the service to test the new program interface and the tested program interface.
Optionally, the operation of performing interface test on the new program interface and the tested program interface simultaneously includes: under the condition of calling the tested program interface, calling a new program interface; and determining the performance of each program interface including the new program interface and the tested program interface according to the output parameters received from the tested program interface and the new program interface.
Optionally, the operation of performing interface test on the new program interface and the tested program interface simultaneously includes: and simultaneously carrying out concurrent testing on the new program interface and the tested program interface.
Optionally, the operation of concurrently testing the new program interface and the tested program interface includes: determining performance inflection points of a new program interface and a tested program interface; and determining a comprehensive inflection point related to the new program interface and the tested program interface according to the performance inflection points of the new program interface and the tested program interface.
Optionally, the memory 520 is further configured to provide the processor 510 with instructions to process the following process steps: determining a test plug-in which is matched with the test requirements of the new program interface and the tested program interface from the plurality of test plug-ins; and testing the new program interface and the tested program interface by using the test plug-in matched with the test requirement.
Thus, according to the present embodiment, the interface test apparatus 500 tests the new program interface and also tests the tested program interface that has been tested and is installed on the interface test apparatus 500. The tested program interface with abnormal performance caused by the new program interface can be timely found, so that the interface testing device 500 can timely maintain the program interface with abnormal performance, and the working efficiency of the server is greatly improved. And the problem that the existing test mode of only testing the newly developed new program interface can not find other tested program interfaces with abnormal performance caused by the new program interface in time is solved, so that the working efficiency of the equipment is greatly reduced.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. An interface testing method, comprising:
the method comprises the steps that a server receives a test request for testing a new program interface, wherein the server is provided with a tested program interface which is tested;
the server simultaneously carries out interface test on the new program interface and the tested program interface according to the test request; and
and the server determines the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
2. The method of claim 1, wherein the operation of the server to perform interface testing on the new program interface and the tested program interface simultaneously comprises:
the server accesses a preset program interface information file by using a preset test program, wherein the program interface information file is used for recording interface information of the new program interface and the tested program interface; and
and the server tests the new program interface and the tested program interface according to the interface information by using the test program.
3. The method of claim 1, wherein the operation of the server to perform interface testing on the new program interface and the tested program interface simultaneously comprises:
the server receives a test case edited by a user from a remote terminal device, wherein the test case calls the new program interface and the tested program interface;
the server runs the test case and deploys the service corresponding to the test case; and
and realizing the service, and testing the new program interface and the tested program interface.
4. The method according to any one of claims 1 to 3, wherein the operation of the server to simultaneously perform interface test on the new program interface and the tested program interface comprises:
the server calls the new program interface under the condition of calling the tested program interface; and
the server determines the performance of each program interface including the new program interface and the tested program interface according to the output parameters received from the tested program interface and the new program interface.
5. The method according to any one of claims 1 to 3, wherein the operation of the server to simultaneously perform interface test on the new program interface and the tested program interface comprises: and the server simultaneously carries out concurrent testing on the new program interface and the tested program interface.
6. The method of claim 5, wherein the operation of the server to concurrently test the new program interface and the tested program interface comprises:
the server determines performance inflection points of the new program interface and the tested program interface; and
and the server determines a comprehensive inflection point related to the new program interface and the tested program interface according to the performance inflection points of the new program interface and the tested program interface.
7. The method of claim 1, further comprising:
the server determines a test plug-in which is matched with the test requirements of the new program interface and the tested program interface from a plurality of test plug-ins; and
and the server tests the new program interface and the tested program interface by using a test plug-in matched with the test requirement.
8. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 7 is performed by a processor when the program is run.
9. An interface testing apparatus, comprising:
the device comprises a receiving module, a testing module and a judging module, wherein the receiving module is used for receiving a testing request for testing a new program interface, and the device is provided with a tested program interface which is tested;
the first testing module is used for simultaneously carrying out interface testing on the new program interface and the tested program interface according to the testing request; and
and the first determining module is used for determining the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
10. An interface testing apparatus, comprising:
a processor; and
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps:
receiving a test request for testing a new program interface, wherein the device is provided with a tested program interface which is tested;
according to the test request, simultaneously carrying out interface test on the new program interface and the tested program interface; and
and determining the performance of each program interface comprising the new program interface and the tested program interface according to the test results of the tested program interface and the new program interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910810663.2A CN110609781A (en) | 2019-08-29 | 2019-08-29 | Interface test method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910810663.2A CN110609781A (en) | 2019-08-29 | 2019-08-29 | Interface test method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110609781A true CN110609781A (en) | 2019-12-24 |
Family
ID=68890679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910810663.2A Pending CN110609781A (en) | 2019-08-29 | 2019-08-29 | Interface test method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110609781A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111404778A (en) * | 2020-03-12 | 2020-07-10 | 深圳市吉祥腾达科技有限公司 | Gateway testing method and device and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120311385A1 (en) * | 2011-05-31 | 2012-12-06 | Hon Hai Precision Industry Co., Ltd. | Control server and method for switching running of test programs stored in multiple storage mediums of test server |
CN107329861A (en) * | 2017-06-12 | 2017-11-07 | 北京奇安信科技有限公司 | A kind of multiplex roles method of testing and device |
US20180089072A1 (en) * | 2016-09-23 | 2018-03-29 | International Business Machines Corporation | Automated testing of application program interface |
CN109189668A (en) * | 2018-08-03 | 2019-01-11 | 深圳市牛鼎丰科技有限公司 | Interface test method, device, computer equipment and storage medium |
CN109298997A (en) * | 2018-08-08 | 2019-02-01 | 平安科技(深圳)有限公司 | Interface test method, system, computer equipment and storage medium |
CN109710524A (en) * | 2018-12-19 | 2019-05-03 | 上海华兴数字科技有限公司 | A kind of automatic test approach, system and computer storage medium |
CN110058990A (en) * | 2019-03-12 | 2019-07-26 | 平安普惠企业管理有限公司 | Performance test methods and device, computer equipment, storage medium |
-
2019
- 2019-08-29 CN CN201910810663.2A patent/CN110609781A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120311385A1 (en) * | 2011-05-31 | 2012-12-06 | Hon Hai Precision Industry Co., Ltd. | Control server and method for switching running of test programs stored in multiple storage mediums of test server |
US20180089072A1 (en) * | 2016-09-23 | 2018-03-29 | International Business Machines Corporation | Automated testing of application program interface |
CN107329861A (en) * | 2017-06-12 | 2017-11-07 | 北京奇安信科技有限公司 | A kind of multiplex roles method of testing and device |
CN109189668A (en) * | 2018-08-03 | 2019-01-11 | 深圳市牛鼎丰科技有限公司 | Interface test method, device, computer equipment and storage medium |
CN109298997A (en) * | 2018-08-08 | 2019-02-01 | 平安科技(深圳)有限公司 | Interface test method, system, computer equipment and storage medium |
CN109710524A (en) * | 2018-12-19 | 2019-05-03 | 上海华兴数字科技有限公司 | A kind of automatic test approach, system and computer storage medium |
CN110058990A (en) * | 2019-03-12 | 2019-07-26 | 平安普惠企业管理有限公司 | Performance test methods and device, computer equipment, storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111404778A (en) * | 2020-03-12 | 2020-07-10 | 深圳市吉祥腾达科技有限公司 | Gateway testing method and device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255847B (en) | Page generation method and device | |
CN105376107B (en) | Terminal testing method and proxy server | |
US8255908B2 (en) | Managing tasks in a distributed system | |
CN104133765B (en) | The test case sending method of network activity and test case server | |
CN110688146A (en) | Method, device and storage medium for dynamically configuring monitoring system | |
CN110647462A (en) | Interface test method, device and storage medium | |
CN114398672A (en) | Authority-based flow creation method and device and storage medium | |
CN109726108A (en) | Front-end code test method, device, system and medium based on analogue data | |
CN113312083B (en) | Application generation method, device and equipment | |
CN105426192A (en) | Information modification method and terminal | |
CN110941634A (en) | Data processing method and device, storage medium and electronic device | |
CN110609781A (en) | Interface test method, device and storage medium | |
CN111026995A (en) | Method and device for information association between applications and storage medium | |
CN110597717A (en) | Code testing method, device and storage medium | |
CN111340911A (en) | Method and device for determining connecting line in k-line graph and storage medium | |
CN112416734A (en) | Test method, device and storage medium | |
CN115268969A (en) | Android system upgrading method and device and terminal equipment | |
CN104735079A (en) | Payment verification method and device based on domain name system (DNS) | |
US20130165099A1 (en) | Enhanced System and Method for Custom Programming of Large Groups of Phones Without Requiring Additional Equipment | |
CN113326186A (en) | Software testing method and device, electronic equipment and storage medium | |
CN114258007A (en) | SIM card management method, device and computer storage medium | |
CN110597574A (en) | Account matching method and device and storage medium | |
CN112486583A (en) | System, method, apparatus and storage medium for configuring parameters | |
CN110609701A (en) | Method, apparatus and storage medium for providing service | |
CN112581069A (en) | System, method, apparatus and storage medium for processing task |
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 | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240531 |
|
AD01 | Patent right deemed abandoned |