CN110647462A - Interface test method, device and storage medium - Google Patents

Interface test method, device and storage medium Download PDF

Info

Publication number
CN110647462A
CN110647462A CN201910810247.2A CN201910810247A CN110647462A CN 110647462 A CN110647462 A CN 110647462A CN 201910810247 A CN201910810247 A CN 201910810247A CN 110647462 A CN110647462 A CN 110647462A
Authority
CN
China
Prior art keywords
test case
interface
testing
modified
tested
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
CN201910810247.2A
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.)
Fanpu Digital Technology Co Ltd
Original Assignee
Fanpu Digital 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 Fanpu Digital Technology Co Ltd filed Critical Fanpu Digital Technology Co Ltd
Priority to CN201910810247.2A priority Critical patent/CN110647462A/en
Publication of CN110647462A publication Critical patent/CN110647462A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application discloses an interface testing method, an interface testing device and a storage medium. Wherein, the method comprises the following steps: displaying an interface for editing a test case in a webpage; displaying a test case for testing a program interface to be tested of a remote server in an interface, wherein the state of the test case is an editable state; generating a modified test case according to the modification operation of the test case by the tester; and sending the modified test case to a server. The test personnel visually edit and modify the test cases displayed in the webpage through the terminal equipment, so that the modification process of the test cases is visual, and the situation that the test personnel repeatedly modify the test cases is avoided as much as possible. Meanwhile, the server does not need to adjust the test case according to the modified test parameters any more, but directly tests the program interface to be tested according to the received modified test case. Therefore, the efficiency of interface testing is greatly improved.

Description

Interface test method, device and storage medium
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.
Most of the existing interface test modes are that a tester sets test parameters, then the test parameters are sent to a server, and the server executes a test case for creating a program interface to be tested according to the set test parameters so as to complete the interface test. Under the condition that a tester needs to adjust and modify the test parameters, the tester opens a test parameter page needing to be modified, modifies the test parameters, then sends the modified test parameters to a server, and the server modifies the test cases according to the modified test parameters. By the method, in the interface test process, a tester cannot edit and modify the test case on the webpage, the visualization degree is low, the situation that the test case is repeatedly modified is easily caused, and the interface test efficiency is greatly influenced.
Aiming at the technical problems that in the process of interface testing in the prior art, testers cannot edit and modify test cases on a webpage, the visualization degree is low, and the situation that the test cases are repeatedly modified is easily caused, so that the efficiency of interface testing is greatly influenced, 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 the technical problem that in the interface testing process in the prior art, a tester cannot edit and modify a test case on a webpage, the visualization degree is low, the situation that the test case is repeatedly modified is easily caused, and the efficiency of interface testing is greatly influenced.
According to an aspect of the embodiments of the present disclosure, there is provided an interface testing method, including: displaying an interface for editing a test case in a webpage; displaying a test case for testing a program interface to be tested of a remote server in an interface, wherein the state of the test case is an editable state; generating a modified test case according to the modification operation of the test case by the tester; and sending the modified test case to a server.
According to another aspect of the embodiments of the present disclosure, there is also provided an interface testing method, including: receiving a test case for testing a program interface to be tested from terminal equipment of a tester, wherein the test case is a test case modified by the tester; and testing the program interface to be tested according to the modified test case.
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 of any one of the 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 first display module is used for displaying an interface for editing the test case in the webpage; the second display module is used for displaying a test case for testing a program interface to be tested of a remote server in an interface, wherein the state of the test case is an editable state; the generating module is used for generating a modified test case according to the modification operation of a tester on the test case; and the sending module is used for sending the modified test case to the server.
According to another aspect of the embodiments of the present disclosure, there is also provided an interface testing apparatus, including: the third receiving module is used for receiving a test case for testing the program interface to be tested from the terminal equipment of the tester, wherein the test case is a test case modified by the tester; and the test module is used for testing the program interface to be tested according to the modified test case.
According to another aspect of the embodiments of the present disclosure, there is also provided an interface testing apparatus, including: a first processor; and a first memory coupled to the first processor for providing instructions to the first processor to process the following processing steps: displaying an interface for editing a test case in a webpage; displaying a test case for testing a program interface to be tested of a remote server in an interface, wherein the state of the test case is an editable state; generating a modified test case according to the modification operation of the test case by the tester; and sending the modified test case to a server.
According to another aspect of the embodiments of the present disclosure, there is also provided an interface testing apparatus, including: a second processor; and a second memory coupled to the second processor for providing instructions to the second processor to process the following processing steps: receiving a test case for testing a program interface to be tested from terminal equipment of a tester, wherein the test case is a test case modified by the tester; and testing the program interface to be tested according to the modified test case.
In the embodiment of the disclosure, a tester can visually edit and modify the test case displayed in the webpage through the terminal device, so that the modification process of the test case is visualized, and the situation that the tester repeatedly modifies the test case is avoided as much as possible. Meanwhile, the server does not need to adjust the test case according to the modified test parameters any more, but directly tests the program interface to be tested according to the modified test case received from the terminal equipment of the tester. Therefore, the efficiency of interface testing is greatly improved. And furthermore, the technical problem that in the interface testing process, a tester cannot edit and modify the test case on a webpage, the visualization degree is low, and the situation that the test case is repeatedly modified is easily caused, so that the efficiency of the interface testing is greatly influenced is solved.
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 hardware configuration block diagram of a [ computer terminal (or mobile device) ] for implementing the method according to embodiment 1 of the present disclosure;
FIG. 2 is a schematic diagram of an 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 flow chart of an interface testing method according to a second aspect of embodiment 1 of the present disclosure;
fig. 5 is a schematic diagram of an interface test apparatus according to a first aspect of embodiment 2 of the present disclosure;
fig. 6 is a schematic diagram of an interface test apparatus according to a second aspect of embodiment 2 of the present disclosure;
fig. 7 is a schematic diagram of an interface test apparatus according to a first aspect of embodiment 3 of the present disclosure;
and
fig. 8 is a schematic diagram of an interface testing apparatus according to a second aspect of 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. 2 is a schematic diagram of an interface test system according to the present embodiment. Referring to fig. 2, the system includes: 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 program interface to be tested. Wherein the program interface to be tested may be, for example and without limitation, a create order interface.
Further, the tester 110 may edit and modify the test case through the terminal device 100. The test case is used to test a program interface to be tested (for example, create an order interface) of the remotely located server 200. For example: when the tester 110 wants to edit and modify parameters such as the number of products and colors in the test parameters of the test case, the tester may edit and modify the test case on the terminal device 100, and send the modified test case to the server 200. Therefore, the server 200 may receive the modified test case from the terminal device 100, and test the program interface to be tested according to the modified test case. 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, there is provided an interface testing method implemented by the terminal device 100 shown in fig. 2. Fig. 3 shows a flow diagram of the method, which, with reference to fig. 3, comprises:
s302: displaying an interface for editing a test case in a webpage;
s304: displaying a test case for testing a program interface to be tested of a remote server in an interface, wherein the state of the test case is an editable state;
s306: generating a modified test case according to the modification operation of the test case by the tester; and
s308: and sending the modified test case to a server.
As described in the background art, most of the existing interface testing methods are to set testing parameters by a tester, then send the testing parameters to a server, and execute a test case for creating a program interface to be tested according to the set testing parameters by the server to complete the interface testing. Under the condition that a tester needs to adjust and modify the test parameters, the tester opens a test parameter page needing to be modified, modifies the test parameters, then sends the modified test parameters to a server, and the server modifies the test cases according to the modified test parameters. By the method, in the interface test process, a tester cannot edit and modify the test case on the webpage, the visualization degree is low, the situation that the test case is repeatedly modified is easily caused, and the interface test efficiency is greatly influenced.
In view of the problems in the background art, with reference to fig. 2, the present embodiment provides an interface testing method, in which an interface for editing a test case is displayed in a web page through a terminal device 100. Then, the terminal device 100 displays a test case for testing a program interface to be tested (for example, a creation order interface to be tested) of a server (for example, the server 200) provided at a remote location in the interface. Wherein, the state of the test case is an editable state. Therefore, when the tester 110 wants to edit and modify parameters such as the number of products and the color in the test parameters of the test case, the tester 110 may edit and modify the test case on the interface displayed by the terminal device 100. Then, the terminal device 100 generates a modified test case according to the modification operation of the tester 110 on the test case. The terminal device 100 sends the repaired test case to the server 200, so that the server 200 can test the program interface to be tested according to the modified test case.
Therefore, in this way, the tester 110 can visually edit and modify the test case displayed in the webpage through the terminal device 100, so that the modification process of the test case is visualized, the situation that the tester 110 repeatedly modifies the test case is avoided as much as possible, and the efficiency of the interface test is greatly improved. And furthermore, the technical problem that in the interface testing process, a tester cannot edit and modify the test case on a webpage, the visualization degree is low, and the situation that the test case is repeatedly modified is easily caused, so that the efficiency of the interface testing is greatly influenced is solved.
Optionally, before the operation of displaying the test case, the method further includes: receiving a modification request input by a tester for modifying the test case at an interface; sending the modification request to a server; and receiving the test case sent by the server.
Specifically, in the case where the tester 110 has a need to modify a test case, the tester 110 may input a modification request requesting modification of the test case to the terminal device 100. At this time, the terminal device 100 receives a modification request for requesting modification of the test case, which is input by the tester 110, at the interface. The terminal device 100 then transmits the modification request to the server 200. After the server 200 receives the modification request sent by the terminal device 100, a test case corresponding to the program interface to be tested is called, and the test case is sent to the terminal device 100. Then, the terminal device 100 receives the test case transmitted by the server 200. Therefore, the terminal device 100 displays the received test case in the interface of the webpage for editing the test case, so that the tester 110 can visually edit and modify the displayed test case, and the efficiency of the interface test is further improved.
Further, according to a second aspect of the present embodiment, there is provided an interface testing method implemented by the server 200 shown in fig. 2. Fig. 4 shows a flow diagram of the method, which, with reference to fig. 4, comprises:
s402: receiving a test case for testing a program interface to be tested from terminal equipment of a tester, wherein the test case is a test case modified by the tester; and
s404: and testing the program interface to be tested according to the modified test case.
As described in the background art, most of the existing interface testing methods are to set testing parameters by a tester, then send the testing parameters to a server, and execute a test case for creating a program interface to be tested according to the set testing parameters by the server to complete the interface testing. Under the condition that a tester needs to adjust and modify the test parameters, the tester opens a test parameter page needing to be modified, modifies the test parameters, then sends the modified test parameters to a server, and the server modifies the test cases according to the modified test parameters. By the method, in the interface test process, a tester cannot edit and modify the test case on the webpage, the visualization degree is low, the situation that the test case is repeatedly modified is easily caused, and the interface test efficiency is greatly influenced.
In view of the problems in the background art, with reference to fig. 2, this embodiment further provides an interface testing method, where a server 200 receives a test case for testing a program interface to be tested from a terminal device 100 of a tester 110. Wherein the test case is a test case modified by the tester 110. For example, the test case is used to test a create order interface to be tested. In the process of testing the interface, the tester 110 may directly edit and modify the parameters such as the number of commodities, the color, and the like in the test parameters of the test case on the terminal device 100 under the condition that the tester needs to edit and modify the parameters such as the number of commodities, the color, and the like in the test parameters of the test case. Then, the server 200 tests the program interface to be tested according to the modified test case.
Thus, in this way, the server 200 no longer needs to adjust the test case according to the modified test parameters, but directly tests the program interface to be tested according to the modified test case received from the terminal device 100 of the tester 110. Therefore, the efficiency of interface testing is greatly improved. And furthermore, the technical problem that in the interface testing process, a tester cannot edit and modify the test case on a webpage, the visualization degree is low, and the situation that the test case is repeatedly modified is easily caused, so that the efficiency of the interface testing is greatly influenced is solved.
Optionally, the operation of testing the program interface to be tested according to the modified test case includes: running the modified test case, and deploying the service corresponding to the modified test case; and realizing service to test the program interface to be tested.
Specifically, the server 200 runs the modified test case and deploys the service corresponding to the modified test case. And then realizing the deployed service and testing the program interface to be tested. By the method, the program interface to be tested can be tested quickly, and the efficiency of interface testing is further improved.
Optionally, the operation of testing the program interface to be tested according to the modified test case 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 program interface to be tested; and testing the interface of the program to be tested by using the test program according to the interface information.
Specifically, the server 200 accesses a preset program interface information file using a preset test program. The program interface information file is used for recording interface information of a program interface to be tested, and the program interface information file can be stored in an Excel table or a database. Then, the server 200 uses the test program to test the interface of the program to be tested 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 pre-stored in an Excel table or a database, and test the program interface to be tested according to the 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 operation of testing the program interface to be tested according to the modified test case includes: and determining the performance of the program interface to be tested according to the output parameters received from the program interface to be tested.
Specifically, in the process of testing the program interface to be tested, the server 200 may input parameters to the program interface to be tested, and then receive output parameters from the program interface to be tested. At this time, the server 200 determines the performance of the program interface to be tested according to the output parameter, that is, the server 200 determines that the performance of the program interface to be tested is good when the output parameter matches the input parameter. Otherwise, the result is no. In this way, the server 200 can determine the performance of the program interface to be tested based on the received output parameters.
Further, referring to fig. 1, according to a third aspect of the present embodiment, there is provided a storage medium 104. 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.
Therefore, according to the embodiment, the tester 110 can visually edit and modify the test case displayed in the webpage through the terminal device 100, so that the modification process of the test case is visualized, and the situation that the tester 110 repeatedly modifies the test case is avoided as much as possible. Meanwhile, the server 200 does not need to adjust the test case according to the modified test parameters any more, but directly tests the program interface to be tested according to the modified test case received from the terminal device 100 of the tester 110. Therefore, the efficiency of interface testing is greatly improved. And furthermore, the technical problem that in the interface testing process, a tester cannot edit and modify the test case on a webpage, the visualization degree is low, and the situation that the test case is repeatedly modified is easily caused, so that the efficiency of the interface testing is greatly influenced is solved.
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. 5 shows an interface testing device 500 according to the first aspect of 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 first display module 510, configured to display an interface for editing a test case in a webpage; a second display module 520, configured to display a test case for testing a program interface to be tested of a remote server in an interface, where a state of the test case is an editable state; a generating module 530, configured to generate a modified test case according to a modification operation performed on the test case by a tester; and a sending module 540, configured to send the modified test case to the server.
Optionally, the method further comprises: the first receiving module is used for receiving a modification request input by a tester for modifying the test case on an interface before the operation of displaying the test case; the modification request sending module is used for sending the modification request to the server; and the second receiving module is used for receiving the test case sent by the server.
Furthermore, fig. 6 shows an interface test apparatus 600 according to the second aspect of the present embodiment, which apparatus 600 corresponds to the method according to the second aspect of embodiment 1. Referring to fig. 6, the apparatus 600 includes: a third receiving module 610, configured to receive, from a terminal device of a tester, a test case for testing a program interface to be tested, where the test case is a test case modified by the tester; and a testing module 620, configured to test the program interface to be tested according to the modified test case.
Optionally, the testing module 620 includes: the deployment submodule is used for running the modified test case and deploying the service corresponding to the modified test case; and the first testing submodule is used for realizing service and testing the program interface to be tested.
Optionally, the testing module 620 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 program interface to be tested; and the second testing submodule is used for testing the interface of the program to be tested according to the interface information by utilizing the testing program.
Optionally, the testing module 620 includes: and the determining submodule is used for determining the performance of the program interface to be tested according to the output parameters received from the program interface to be tested.
Therefore, according to the embodiment, a tester can visually edit and modify the test case displayed in the webpage through the device 500, so that the modification process of the test case is visualized, and the situation that the tester repeatedly modifies the test case is avoided as much as possible. Meanwhile, the device 600 does not need to adjust the test case according to the modified test parameters any more, but directly tests the program interface to be tested according to the modified test case received from the device 500 of the tester. Therefore, the efficiency of interface testing is greatly improved. And furthermore, the technical problem that in the interface testing process, a tester cannot edit and modify the test case on a webpage, the visualization degree is low, and the situation that the test case is repeatedly modified is easily caused, so that the efficiency of the interface testing is greatly influenced is solved.
Example 3
Fig. 7 shows an interface testing apparatus 700 according to the first aspect of the present embodiment, the apparatus 700 corresponding to the method according to the first aspect of the embodiment 1. Referring to fig. 7, the apparatus 700 includes: a first processor 710; and a first memory 720, coupled to the first processor 710, for providing instructions to the first processor 710 to process the following steps: displaying an interface for editing a test case in a webpage; displaying a test case for testing a program interface to be tested of a remote server in an interface, wherein the state of the test case is an editable state; generating a modified test case according to the modification operation of the test case by the tester; and sending the modified test case to a server.
Optionally, the first memory 720 is further used for providing the first processor 710 with instructions for processing the following processing steps: before the operation of displaying the test case, receiving a modification request input by a tester for modifying the test case on an interface; sending the modification request to a server; and receiving the test case sent by the server.
Furthermore, fig. 8 shows an interface testing device 800 according to the second aspect of the present embodiment, which device 800 corresponds to the method according to the second aspect of embodiment 1. Referring to fig. 8, the apparatus 800 includes: a second processor 810; and a second memory 820, connected to the second processor 810, for providing instructions to the second processor 810 to process the following processing steps: receiving a test case for testing a program interface to be tested from terminal equipment of a tester, wherein the test case is a test case modified by the tester; and testing the program interface to be tested according to the modified test case.
Optionally, the operation of testing the program interface to be tested according to the modified test case includes: running the modified test case, and deploying the service corresponding to the modified test case; and realizing service to test the program interface to be tested.
Optionally, the operation of testing the program interface to be tested according to the modified test case 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 program interface to be tested; and testing the interface of the program to be tested by using the test program according to the interface information.
Optionally, the operation of testing the program interface to be tested according to the modified test case includes: and determining the performance of the program interface to be tested according to the output parameters received from the program interface to be tested.
Therefore, according to the embodiment, a tester can visually edit and modify the test case displayed in the webpage through the device 700, so that the modification process of the test case is visualized, and the situation that the tester repeatedly modifies the test case is avoided as much as possible. Meanwhile, the device 800 no longer needs to adjust the test case according to the modified test parameters, but directly tests the program interface to be tested according to the modified test case received from the device 700 of the tester. Therefore, the efficiency of interface testing is greatly improved. And furthermore, the technical problem that in the interface testing process, a tester cannot edit and modify the test case on a webpage, the visualization degree is low, and the situation that the test case is repeatedly modified is easily caused, so that the efficiency of the interface testing is greatly influenced is solved.
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:
displaying an interface for editing a test case in a webpage;
displaying a test case for testing a program interface to be tested of a remote server in the interface, wherein the test case is in an editable state;
generating a modified test case according to the modification operation of the test case by the tester; and
and sending the modified test case to the server.
2. The method of claim 1, prior to displaying the operation of the test case, further comprising:
receiving a modification request input by a tester for modifying the test case at the interface;
sending the modification request to the server; and
and receiving the test case sent by the server.
3. An interface testing method, comprising:
receiving a test case for testing a program interface to be tested from a terminal device of a tester, wherein the test case is a test case modified by the tester; and
and testing the program interface to be tested according to the modified test case.
4. The method of claim 3, wherein the operation of testing the program interface to be tested according to the modified test case comprises:
running the modified test case, and deploying a service corresponding to the modified test case; and
and realizing the service and testing the program interface to be tested.
5. The method of claim 3, wherein the operation of testing the program interface to be tested according to the modified test case comprises:
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 the program interface to be tested; and
and testing the program interface to be tested according to the interface information by using the test program.
6. The method of claim 3, wherein the operation of testing the program interface to be tested according to the modified test case comprises: and determining the performance of the program interface to be tested according to the output parameters received from the program interface to be tested.
7. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 6 is performed by a processor when the program is run.
8. An interface testing apparatus, comprising:
the first display module is used for displaying an interface for editing the test case in the webpage;
the second display module is used for displaying a test case for testing a program interface to be tested of a remote server in the interface, wherein the state of the test case is an editable state;
the generating module is used for generating a modified test case according to the modification operation of a tester on the test case; and
and the sending module is used for sending the modified test case to the server.
9. An interface testing apparatus, comprising:
the third receiving module is used for receiving a test case for testing a program interface to be tested from the terminal equipment of a tester, wherein the test case is a modified test case of the tester; and
and the testing module is used for testing the program interface to be tested according to the modified test case.
10. An interface testing apparatus, comprising:
a first processor; and
a first memory coupled to the first processor for providing instructions to the first processor to process the following process steps:
displaying an interface for editing a test case in a webpage;
displaying a test case for testing a program interface to be tested of a remote server in the interface, wherein the test case is in an editable state;
generating a modified test case according to the modification operation of the test case by the tester; and
and sending the modified test case to the server.
CN201910810247.2A 2019-08-29 2019-08-29 Interface test method, device and storage medium Pending CN110647462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910810247.2A CN110647462A (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
CN201910810247.2A CN110647462A (en) 2019-08-29 2019-08-29 Interface test method, device and storage medium

Publications (1)

Publication Number Publication Date
CN110647462A true CN110647462A (en) 2020-01-03

Family

ID=68991179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910810247.2A Pending CN110647462A (en) 2019-08-29 2019-08-29 Interface test method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110647462A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737065A (en) * 2020-05-27 2020-10-02 苏州浪潮智能科技有限公司 Demand model based on server interface test and interface test method and system
CN113282476A (en) * 2021-06-24 2021-08-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment
CN113434395A (en) * 2021-06-22 2021-09-24 中国平安人寿保险股份有限公司 Automatic generation method, device, equipment and medium of test case
CN113434395B (en) * 2021-06-22 2024-04-30 中国平安人寿保险股份有限公司 Automatic generation method, device, equipment and medium for test cases

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014580A1 (en) * 2016-07-20 2018-01-25 平安科技(深圳)有限公司 Data interface test method and apparatus, and server and storage medium
CN108241576A (en) * 2016-12-26 2018-07-03 航天信息股份有限公司 A kind of interface test method and system
CN108255730A (en) * 2018-01-23 2018-07-06 平安普惠企业管理有限公司 Software interface test approach, test equipment, storage medium and device
CN108595339A (en) * 2018-05-09 2018-09-28 成都致云科技有限公司 Automated testing method, apparatus and system
CN109783350A (en) * 2018-12-13 2019-05-21 重庆金融资产交易所有限责任公司 Interface test method, device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014580A1 (en) * 2016-07-20 2018-01-25 平安科技(深圳)有限公司 Data interface test method and apparatus, and server and storage medium
CN108241576A (en) * 2016-12-26 2018-07-03 航天信息股份有限公司 A kind of interface test method and system
CN108255730A (en) * 2018-01-23 2018-07-06 平安普惠企业管理有限公司 Software interface test approach, test equipment, storage medium and device
CN108595339A (en) * 2018-05-09 2018-09-28 成都致云科技有限公司 Automated testing method, apparatus and system
CN109783350A (en) * 2018-12-13 2019-05-21 重庆金融资产交易所有限责任公司 Interface test method, device and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737065A (en) * 2020-05-27 2020-10-02 苏州浪潮智能科技有限公司 Demand model based on server interface test and interface test method and system
CN111737065B (en) * 2020-05-27 2023-01-06 苏州浪潮智能科技有限公司 Interface test method and system of demand model based on server interface test
CN113434395A (en) * 2021-06-22 2021-09-24 中国平安人寿保险股份有限公司 Automatic generation method, device, equipment and medium of test case
CN113434395B (en) * 2021-06-22 2024-04-30 中国平安人寿保险股份有限公司 Automatic generation method, device, equipment and medium for test cases
CN113282476A (en) * 2021-06-24 2021-08-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment
CN113282476B (en) * 2021-06-24 2023-01-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN111200535B (en) Simulation system and method for equipment
CN105376107B (en) Terminal testing method and proxy server
CN103152392B (en) Installation kit supplying method, acquisition methods, equipment and system
CN110688146A (en) Method, device and storage medium for dynamically configuring monitoring system
CN109726108A (en) Front-end code test method, device, system and medium based on analogue data
CN110647462A (en) Interface test method, device and storage medium
CN114398672A (en) Authority-based flow creation method and device and storage medium
CN110347871B (en) Method and device for displaying reply video and storage medium
CN113312083A (en) Application generation method, device and equipment
CN110609781A (en) Interface test method, device and storage medium
CN111340911A (en) Method and device for determining connecting line in k-line graph 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
CN107783744B (en) Data display and control method, device, system and display equipment of spliced screen
CN110908652A (en) Method and device for creating active page and compiling active page
CN113094771B (en) Method, device and storage medium for matching application program to design object
CN111678519B (en) Intelligent navigation method, device and storage medium
CN110225097B (en) Information processing method, device and storage medium
CN110570184B (en) System, method, apparatus and storage medium for providing products to users
CN113326186A (en) Software testing method and device, electronic equipment and storage medium
CN110597574A (en) Account matching method and device and storage medium
CN110609701A (en) Method, apparatus and storage medium for providing service
CN112581069A (en) System, method, apparatus and storage medium for processing task
CN110955361A (en) Method, apparatus and storage medium for displaying characters
CN110704289A (en) Method, device and storage medium for monitoring kol account

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

Application publication date: 20200103

RJ01 Rejection of invention patent application after publication