CN106815150B - Server-side interface test system and method - Google Patents

Server-side interface test system and method Download PDF

Info

Publication number
CN106815150B
CN106815150B CN201710044400.6A CN201710044400A CN106815150B CN 106815150 B CN106815150 B CN 106815150B CN 201710044400 A CN201710044400 A CN 201710044400A CN 106815150 B CN106815150 B CN 106815150B
Authority
CN
China
Prior art keywords
rpc information
server
feedback result
module
end module
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.)
Active
Application number
CN201710044400.6A
Other languages
Chinese (zh)
Other versions
CN106815150A (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710044400.6A priority Critical patent/CN106815150B/en
Publication of CN106815150A publication Critical patent/CN106815150A/en
Application granted granted Critical
Publication of CN106815150B publication Critical patent/CN106815150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The present disclosure relates to a system and a method for testing a server interface, the system includes a middle module and a front module, wherein: the intermediate module is used for sending RPC information in a preset operation process of a client aiming at an interface to be tested to the front-end module, and/or receiving a feedback result obtained by a server responding to the RPC information and sending the feedback result of the RPC information to the front-end module; the front-end module is used for receiving and displaying the RPC information and/or the feedback result of the RPC information from the intermediate module. The method and the device realize visualization of the test, help testers to know parameter specifications of the server-side interface, reduce reading of source codes and improve test efficiency.

Description

Server-side interface test system and method
Technical Field
The present disclosure relates to the field of software testing, and in particular, to a server interface testing system and a server interface testing method.
Background
In network systems, a client is often responsible for the presentation of information (e.g., text, images, etc.), while a server is often involved in the logical processing associated with the information. For example, in network games, the client is primarily responsible for the presentation of game screens, while the server is generally responsible for performing logical computations on data related to game screens and/or game operations. In addition, the server can process the client information through each interface, so that the server interface occupies an important position in the whole network system, and the test of the server interface also becomes an important content in the whole network system test.
Currently, taking an online game as an example, a method for a tester to test a server interface may include: compiling robot codes without client sides and logging in games; knowing the parameter meaning and grammar rule of each interface to be tested; writing a test script code and transmitting RPC (Remote Procedure Call) information by executing the test script code to perform an interface test; and judging whether the test result meets the expectation according to the log. The disadvantage of this method of testing the server interface is that: the tester can not directly know the parameter specification of the interface to be tested, the test result needs to be judged according to the log, more direct feedback information can not be obtained, meanwhile, the tester needs to compile a large amount of test scripts, and the test flexibility is poor.
In view of the above, a new system and method for testing a server interface are needed.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a service-side interface testing system and a service-side interface testing method, which overcome one or more of the problems due to the limitations and disadvantages of the related art, at least to some extent.
According to one aspect of the present disclosure, there is provided a service-side interface testing system, including an intermediate module and a front-end module, wherein:
the intermediate module is used for sending RPC information in a preset operation process of a client aiming at an interface to be tested to the front-end module, and/or receiving a feedback result obtained by a server responding to the RPC information and sending the feedback result of the RPC information to the front-end module;
the front-end module is used for receiving and displaying the RPC information and/or the feedback result of the RPC information from the intermediate module.
In an exemplary embodiment of the present disclosure, wherein:
the front-end module is also used for responding to a modification request to modify the RPC information to obtain modified RPC information after receiving the RPC information from the intermediate module, and sending the modified RPC information to the intermediate module;
the middle module is also used for sending the received modified RPC information to the server, receiving a feedback result obtained by the server responding to the modified RPC information, and sending the feedback result to the front-end module and displaying the feedback result by the front-end module.
In an exemplary embodiment of the present disclosure, the server interface testing system further includes:
and the first judging module is used for judging whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meets the preset requirement.
In an exemplary embodiment of the disclosure, the determining whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meet a preset requirement includes:
and code processing is carried out on the feedback result of the RPC information and/or the feedback result of the modified RPC information through the client to obtain a response result of the client, and whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meet preset requirements or not is judged according to the response result of the client.
In an exemplary embodiment of the disclosure, the determining whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meet a preset requirement includes:
and receiving and displaying the feedback result of the RPC information and/or the feedback result of the modified RPC information through the front-end module, and judging whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meets preset requirements at the front-end module.
In an exemplary embodiment of the present disclosure, the server interface testing system further includes:
the second judgment module is used for judging whether the test of the interface to be tested is finished or not, wherein:
when the test of the interface to be tested is judged to be finished, the server-side interface test system enters the next server-side interface test process;
when judging that it is not right to await measuring the test of the examination interface of awaiting measuring, the front end module is receiving and is coming from intermediate module behind the RPC information, it is right to respond to a modification request RPC information is modified in order to obtain modified RPC information, and will modified RPC information send to intermediate module, and intermediate module will receive modified RPC information send to the server, and receive the server is right modified RPC information responds and the feedback result that obtains, and will this feedback result send to the front end module and by the front end module shows.
In an exemplary embodiment of the present disclosure, the server interface testing system further includes:
and the third judging module is used for judging whether all the interfaces of the server are tested or not, and closing the client and the front-end module when all the interfaces of the server are tested.
In an exemplary embodiment of the disclosure, the intermediary module is embedded in the client.
In an exemplary embodiment of the present disclosure, the RPC information includes a function name, a parameter, and transmission/reception information;
wherein, the RPC information is displayed in the form of a tree table in the front-end module.
According to one aspect of the disclosure, a method for testing a server interface is provided, which is applied to a system for testing a server interface, which includes an intermediate module and a front module; the server interface testing method comprises the following steps:
the method comprises the steps that RPC information in a preset operation process of a client aiming at an interface to be tested is sent to a front-end module through an intermediate module, and/or a feedback result obtained by a server responding to the RPC information is received and sent to the front-end module;
and receiving and displaying the RPC information and/or the feedback result of the RPC information from the middle module through the front-end module.
In an exemplary embodiment of the present disclosure, wherein:
modifying the RPC information by responding to a modification request after receiving the RPC information from the intermediate module through the front-end module to obtain modified RPC information, and sending the modified RPC information to the intermediate module;
and sending the received modified RPC information to the server through the intermediate module, receiving a feedback result obtained by responding the modified RPC information by the server, and sending the feedback result to the front-end module and displaying the feedback result by the front-end module.
In the technical scheme provided by some embodiments of the present disclosure, by configuring an intermediate module and a front-end module, the intermediate module sends the RPC information in the preset operation process of the client to the front-end module, and the front-end module displays the RPC information, and the intermediate module responds to the RPC information by the server to obtain a feedback result, and sends the feedback result to the front-end module and displays the feedback result, so that the visualization of the test is realized, the test personnel can know the parameter specification of the server interface, the reading of the source code by the test personnel is reduced, and the test efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates an overall architecture diagram of a server interface testing system and its implementation scenarios, according to exemplary embodiments of the present disclosure;
FIG. 2 shows a display diagram of RPC information according to an example embodiment of the present disclosure; and
fig. 3 schematically shows a flow chart of a method for server interface testing according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
A server interface test system according to an exemplary embodiment of the present disclosure may include an intermediate module and a front-end module, wherein:
the intermediate module is used for sending RPC information in a preset operation process of a client aiming at an interface to be tested to the front-end module, and/or receiving a feedback result obtained by a server responding to the RPC information and sending the feedback result of the RPC information to the front-end module;
the front-end module is used for receiving and displaying the RPC information and/or the feedback result of the RPC information from the intermediate module.
In the technical scheme provided by some embodiments of the present disclosure, by configuring an intermediate module and a front-end module, the intermediate module sends the RPC information in the preset operation process of the client to the front-end module, and the front-end module displays the RPC information, and the intermediate module responds the RPC information to the server to obtain a feedback result, and sends the feedback result to the front-end module and displays the feedback result, so that the visualization of the test is realized, the parameter specification of the server interface is facilitated to be known by a tester, the reading of the source code is reduced, and the test efficiency is improved.
A service-side interface test system according to an exemplary embodiment of the present disclosure will be described in detail below with reference to fig. 1.
Referring to fig. 1, a server interface testing system according to an exemplary embodiment of the present disclosure may include a middle module 3 and a front end module 4, and an implementation scenario of the server interface testing system may include a client 1 and a server 2.
According to some embodiments of the present disclosure, the client 1 may be connected with the server 2, and the intermediate module 3 may be embedded in the client 1 and connected with the front-end module 4. However, according to further embodiments of the present disclosure, the intermediate module 3 may also be external to the client 1 and capable of data interaction with the client 1.
Taking a network game as an example, the client 1 may be a game client for providing local service programs required by the game. In the process that a tester operates the client 1, the client 1 can generate RPC information; the server 2 may be a game server, and is configured to respond to the RPC information generated by the client 1 and other information, and obtain a feedback result after responding and send the feedback result to the client 1.
Furthermore, the middle module 3 may be a Web server, and the front-end module 4 may be a Web browser corresponding to the middle module. However, the present disclosure is not limited thereto, and the middle module 3 may also be another unit that is matched with the client 1 and has a receiving/transmitting function, and the front end module 4 may also be a receiving/transmitting unit that is matched with the middle module 3 and has a displaying and corresponding inputting function, which is not particularly limited in the present exemplary embodiment.
According to some embodiments of the present disclosure, the intermediate module 3 may send the RPC information generated by the client 1 to the front-end module 4, and the RPC information is displayed by the front-end module 4 in real time.
Fig. 2 illustrates a display diagram of RPC information according to an exemplary embodiment of the present disclosure. Referring to fig. 2, RPC information in an exemplary embodiment of the present disclosure may include a function name, parameters, reception/transmission information, and the like, and the RPC information may be displayed in the form of a tree table. However, the RPC information may also include other information related to the game operation process, and the display in the form of a tree table is intended to facilitate intuitive understanding of the RPC information by a tester, and it is easily understood by those skilled in the art that the RPC information may also take other display forms.
According to some other embodiments, first, the client 1 may send the generated RPC information to the server interface to be tested, the server 2 responds to the RPC information and obtains a feedback result, next, the client 1 receives the feedback result, and the intermediate module 3 sends the feedback result to the front-end module 4, and then the front-end module 4 may display the feedback result.
Through the process, the tester can intuitively know the RPC information generated by the client 1 and/or the feedback result after the server 2 responds to the RPC information through the display content of the front-end module 4. Obviously, it is easier for the tester to read this information than it is to read the source code. Under the condition that some source codes are complex, the testing efficiency can be greatly improved.
In an exemplary embodiment of the present disclosure, the front end module 4 may modify the RPC information in response to a modification request from a tester after receiving the RPC information from the middle module 3 to obtain and display the modified RPC information. The front-end module 4 may then send the modified RPC information to the intermediate module 3.
Next, the intermediate module 3 may send the modified RPC information to the server 2 through the port of the client 1, and the server 2 responds to the modified RPC information to obtain a corresponding feedback result. Subsequently, the client 1 may receive the feedback result, send the feedback result to the front-end module 4 through the intermediate module 3, and display the feedback result by the front-end module 4, at this time, a tester may visually read the feedback result and judge the feedback result to determine whether a preset requirement is met.
In an exemplary embodiment of the present disclosure, the server interface testing system according to an exemplary embodiment of the present disclosure may further include a first determining module (not shown in the figure), and the first determining module may be configured to determine whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meet a preset requirement.
According to some embodiments of the present disclosure, after receiving the feedback result of the RPC information and/or the feedback result of the modified RPC information, the client 1 may perform code processing on them to obtain a response result of the client 1, and a tester may determine whether the test meets a preset requirement according to the response result of the client 1. For example, in a network game, the operation on the client 1 may be to click an armored control on a virtual object, and at this time, if the virtual object on the client 1 is armored, the test meets the preset requirement.
According to other embodiments, the intermediate module 3 may send the feedback result of the RPC information and/or the feedback result of the modified RPC information to the front-end module 4, and the tester may determine whether the interface test meets the preset requirement by reading the information at the front-end module 4.
In an exemplary embodiment of the present disclosure, the server interface testing system according to an exemplary embodiment of the present disclosure may further include a second determining module (not shown in the figure), and the second determining module may be configured to determine whether to complete the testing of the interface to be tested.
Specifically, when it is determined that the test of the interface to be tested is completed, the server-side interface test system enters the test process of the next server-side interface.
In addition, when it is determined that the test of the interface to be tested is not completed, the RPC information may be modified in the front-end module 4 in response to the modification request, and the modified RPC information is sent to the server 2 via the intermediate module 3, and the server 2 responds to the modified RPC information, and sends the responded feedback result to the front-end module 4 via the intermediate module 3 and displays the feedback result.
It will be understood by those skilled in the art that the tester may modify various parameters in the RPC information to meet the test requirements.
In an exemplary embodiment of the present disclosure, the server interface testing system according to an exemplary embodiment of the present disclosure may further include a third determining module (not shown in the figure), where the third determining module may be configured to determine whether all interfaces of the server 2 have completed testing, and may turn off the client 1 and the front-end module 4 when it is determined that all interfaces of the server 2 have completed testing.
According to the server-side interface testing system disclosed by the exemplary embodiment of the disclosure, on one hand, by displaying the RPC information in real time and the feedback result of the server to the RPC information, a tester can be helped to intuitively know the parameter specification of the server-side interface, and the process of reading a source code is avoided; on the other hand, the RPC information is modified at the front-end module, so that a tester can complete interface testing without compiling a testing script, and the testing efficiency and flexibility are improved while the requirement of the code capability of the tester is reduced; on the other hand, whether the test result meets the preset requirement or not is judged by observing the response effect at the client, and compared with the query log, a tester can obtain more intuitive feedback.
It should be noted that although several modules or units of the program execution performance analysis apparatus are mentioned in the above detailed description, such division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Further, the present exemplary embodiment also provides a method for testing a server interface, where the method for testing a server interface is applied to a system for testing a server interface including an intermediate module and a front-end module. The server interface testing method can comprise the following steps:
the method comprises the steps that RPC information in a preset operation process of a client aiming at an interface to be tested is sent to a front-end module through an intermediate module, and/or a feedback result obtained by a server responding to the RPC information is received and sent to the front-end module;
and receiving and displaying the RPC information and/or the feedback result of the RPC information from the middle module through the front-end module.
According to the exemplary embodiment of the disclosure, in the server-side interface testing method, the RPC information is modified by the front-end module in response to a modification request after receiving the RPC information from the intermediate module to obtain modified RPC information, and the modified RPC information is sent to the intermediate module; and sending the received modified RPC information to the server through the intermediate module, receiving a feedback result obtained by responding the modified RPC information by the server, and sending the feedback result to the front-end module and displaying the feedback result by the front-end module.
The method and the invention of the present disclosure are the same as the functional modules of the program operation performance analysis apparatus, and therefore, are not described herein again.
Next, a server interface testing method according to an exemplary embodiment of the present disclosure will be exemplarily described with reference to fig. 3 by taking a network game as an example.
The server interface testing method taking the network game as an example can comprise the following steps:
and S102, starting the game and starting an interface test function.
After the Game client is started and the Game interface is logged in, the interface test function can be started by inputting a specified GM (Game Master) instruction. In addition, for games with interface testing function control opening on some game interfaces, a tester can directly click the control. In addition, the open interface test function may be configured to automatically open upon login. This is not particularly limited in the present exemplary embodiment.
According to some embodiments of the disclosure, the opening of the interface test function may include: the method comprises the steps of starting a Web server, rewriting a Tick function logic of a game client, and specifically, adding a network cycle of the Web server into the Tick function logic, namely, processing the original game logic and executing one network cycle of the Web server for each frame in a game. In addition, a lightweight Web server may be employed, in which case the Web server does not significantly affect the program logic of the game client.
In addition, the starting of the interface test function may further include: rewriting relevant functions (e.g., receive/transmit information) in the game client RPC information such that the rewritten functions not only execute the logic of the pre-rewrite function, but also transmit the function information (including the RPC information) to the Web browser.
In addition, the starting of the interface test function may further include: and defining a function of the Web server for receiving the message, so that the game client can send the modified RPC information.
And S104, opening the Web browser and establishing connection with the Web server.
The Web server defines the Web address and the port number matched with the Web server, and after the Web browser is opened, the Web address and the port number matched with the Web server can be input, namely, the connection with the Web server can be established. However, the Web browser of the present disclosure may also be a browser matched to a Web server, in which case, the Web browser is opened while contact is established with the Web server, and a Web address and a port number do not need to be input.
And S106, operating the game client and displaying the RPC information on the Web browser in real time.
The testing personnel can operate the game client, the game client can generate RPC information, the Web server sends the RPC information to the Web browser, and the Web browser displays the RPC information in real time.
And S108, modifying the RPC information, and clicking a resending control on the Web browser.
The tester can modify the RPC information on the Web browser, after the modification is completed, the tester clicks the resending control on the Web browser to send the modified RPC information to the Web server, then the Web server sends the modified RPC information to the game server through the port of the game client, the game server responds to the modified RPC information to obtain a feedback result, and then the game server sends the feedback result to the game client.
And S110, judging a test result according to the game client performance and/or the information displayed on the Web browser.
The game client may generate a response effect (i.e., game client performance) after receiving the feedback result generated in step S108, and the tester may judge the test result according to the response effect. In addition, the Web server may transmit the feedback result generated in step S108 to the Web browser and display the feedback result by the Web browser, and the tester may determine the test result according to the information displayed by the Web browser at this time.
And S112, judging whether the interface test is finished.
Under the condition that the interface test is judged to be finished, the server-side interface test method jumps to the step S106 to carry out the test process of the next interface; and under the condition that the interface test is judged to be not finished, the server-side interface test method jumps to the step S108 to modify the RPC information and perform corresponding response operation.
In addition, the exemplary method for testing the server interface may further include a step of determining whether the testing of all the interfaces is completed, which is not described herein again.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A server interface testing system comprising an intermediate module and a front end module, wherein:
the intermediate module is used for sending RPC information in a preset operation process of a client aiming at an interface to be tested to the front-end module, and/or receiving a feedback result obtained by a server responding to the RPC information and sending the feedback result of the RPC information to the front-end module;
the front-end module is used for receiving and displaying the RPC information and/or the feedback result of the RPC information from the intermediate module;
the front-end module is also used for responding to a modification request to modify the RPC information to obtain modified RPC information after receiving the RPC information from the intermediate module, and sending the modified RPC information to the intermediate module;
the middle module is also used for sending the received modified RPC information to the server, receiving a feedback result obtained by the server responding to the modified RPC information, and sending the feedback result to the front-end module and displaying the feedback result by the front-end module.
2. The service-side interface test system of claim 1, further comprising:
and the first judging module is used for judging whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meets the preset requirement.
3. The server-side interface testing system of claim 2, wherein the determining whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meets preset requirements comprises:
and code processing is carried out on the feedback result of the RPC information and/or the feedback result of the modified RPC information through the client to obtain a response result of the client, and whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meet preset requirements or not is judged according to the response result of the client.
4. The server-side interface testing system of claim 2, wherein the determining whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meets preset requirements comprises:
and receiving and displaying the feedback result of the RPC information and/or the feedback result of the modified RPC information through the front-end module, and judging whether the feedback result of the RPC information and/or the feedback result of the modified RPC information meets preset requirements at the front-end module.
5. The service-side interface test system of claim 1, further comprising:
the second judgment module is used for judging whether the test of the interface to be tested is finished or not, wherein:
when the test of the interface to be tested is judged to be finished, the server-side interface test system enters the next server-side interface test process;
when judging that it is not right to await measuring the test of the examination interface of awaiting measuring, the front end module is receiving and is coming from intermediate module behind the RPC information, it is right to respond to a modification request RPC information is modified in order to obtain modified RPC information, and will modified RPC information send to intermediate module, and intermediate module will receive modified RPC information send to the server, and receive the server is right modified RPC information responds and the feedback result that obtains, and will this feedback result send to the front end module and by the front end module shows.
6. The service-side interface test system of claim 5, further comprising:
and the third judging module is used for judging whether all the interfaces of the server are tested or not, and closing the client and the front-end module when all the interfaces of the server are tested.
7. The server-interface testing system of claim 6, wherein the intermediary module is embedded in the client.
8. The server-side interface testing system of any one of claims 1 to 7, wherein the RPC information includes function name, parameters, send/receive information;
wherein, the RPC information is displayed in the form of a tree table in the front-end module.
9. A method for testing a server interface is characterized in that the method for testing the server interface is applied to a system for testing the server interface, which comprises an intermediate module and a front-end module; the server interface testing method comprises the following steps:
the method comprises the steps that RPC information in a preset operation process of a client aiming at an interface to be tested is sent to a front-end module through an intermediate module, and/or a feedback result obtained by a server responding to the RPC information is received and sent to the front-end module;
receiving and displaying the RPC information and/or the feedback result of the RPC information from the intermediate module through the front-end module;
after receiving the RPC information from the intermediate module, the front-end module responds to a modification request to modify the RPC information to obtain modified RPC information, and sends the modified RPC information to the intermediate module;
and sending the received modified RPC information to the server through the intermediate module, receiving a feedback result obtained by responding the modified RPC information by the server, and sending the feedback result to the front-end module and displaying the feedback result by the front-end module.
CN201710044400.6A 2017-01-19 2017-01-19 Server-side interface test system and method Active CN106815150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710044400.6A CN106815150B (en) 2017-01-19 2017-01-19 Server-side interface test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710044400.6A CN106815150B (en) 2017-01-19 2017-01-19 Server-side interface test system and method

Publications (2)

Publication Number Publication Date
CN106815150A CN106815150A (en) 2017-06-09
CN106815150B true CN106815150B (en) 2020-02-07

Family

ID=59112378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710044400.6A Active CN106815150B (en) 2017-01-19 2017-01-19 Server-side interface test system and method

Country Status (1)

Country Link
CN (1) CN106815150B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294808B (en) * 2017-07-05 2020-11-24 网易(杭州)网络有限公司 Interface test method, device and system
CN109726062B (en) * 2018-05-14 2021-10-15 网联清算有限公司 Off-line method of proxy server and control server
CN111858368B (en) * 2020-07-27 2022-11-25 成都新潮传媒集团有限公司 Data processing method, device and storage medium
CN112181813A (en) * 2020-09-17 2021-01-05 的卢技术有限公司 Interface automation test method, system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN104142882A (en) * 2013-05-08 2014-11-12 百度在线网络技术(北京)有限公司 Test method, test device and test system based on data processing
CN104407910A (en) * 2014-10-29 2015-03-11 华南理工大学 Virtualization server performance monitoring method and system
CN104834595A (en) * 2015-02-15 2015-08-12 网易(杭州)网络有限公司 Visual automatic test method and system
CN106294094A (en) * 2015-05-13 2017-01-04 腾讯科技(成都)有限公司 The method of testing of game server, client, server and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8978013B1 (en) * 2013-10-09 2015-03-10 Electronic Arts Inc. Autonomous media version testing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN104142882A (en) * 2013-05-08 2014-11-12 百度在线网络技术(北京)有限公司 Test method, test device and test system based on data processing
CN104407910A (en) * 2014-10-29 2015-03-11 华南理工大学 Virtualization server performance monitoring method and system
CN104834595A (en) * 2015-02-15 2015-08-12 网易(杭州)网络有限公司 Visual automatic test method and system
CN106294094A (en) * 2015-05-13 2017-01-04 腾讯科技(成都)有限公司 The method of testing of game server, client, server and system

Also Published As

Publication number Publication date
CN106815150A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN108804302B (en) Remote testing method, system and related equipment
US8584079B2 (en) Quality on submit process
CN106815150B (en) Server-side interface test system and method
US8826240B1 (en) Application validation through object level hierarchy analysis
WO2018184361A1 (en) Application test method, server, terminal, and storage media
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
CN110716853A (en) Test script recording method, application program testing method and related device
CN109308241A (en) Monitor application program launching flow and method, device, terminal device and storage medium
CN113900958A (en) Test case script generation method, system, medium and electronic device
JP2022020541A (en) Test method and device
US20160364261A1 (en) Apparatus and method for providing adaptive virtual desktop operating system service
EP4075283A1 (en) Method and apparatus for continuous integration testing
Grønli et al. Meeting quality standards for mobile application development in businesses: A framework for cross-platform testing
CN111858296A (en) Interface test method, device, equipment and storage medium
US20150007145A1 (en) Computing system with instrumentation mechanism and capture mechanism and method of operation thereof
CN108282542A (en) Remote operation method and device for test equipment
CN107844486B (en) Method and system for analyzing webpage problems for client
CN112988588B (en) Client software debugging method and device, storage medium and electronic equipment
US10044591B2 (en) Two-way remote communication system for testing a client device program
CN113760397A (en) Interface call processing method, device, equipment and storage medium
WO2022100075A1 (en) Method and apparatus for performance test, electronic device and computer-readable medium
EP3991047B1 (en) Chat bot diagnostic visualization
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant