CN112328419A - Test case generation method and device for remote procedure call interface, storage medium and electronic equipment - Google Patents

Test case generation method and device for remote procedure call interface, storage medium and electronic equipment Download PDF

Info

Publication number
CN112328419A
CN112328419A CN202011367726.0A CN202011367726A CN112328419A CN 112328419 A CN112328419 A CN 112328419A CN 202011367726 A CN202011367726 A CN 202011367726A CN 112328419 A CN112328419 A CN 112328419A
Authority
CN
China
Prior art keywords
parameter information
test case
remote procedure
parameter
procedure call
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
CN202011367726.0A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011367726.0A priority Critical patent/CN112328419A/en
Publication of CN112328419A publication Critical patent/CN112328419A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to a method and a device for generating a test case of a remote procedure call interface, a storage medium and an electronic device, which are used for automatically generating the test case of the remote procedure call interface, reducing the labor cost and the test time input in the test of the remote procedure call interface and improving the test efficiency of the remote procedure call interface. The method comprises the following steps: acquiring remote procedure call interface data of a business service through a service grid, wherein the business service is provided with the service grid, and a flow proxy function of the service grid is in an open state; acquiring an interface definition language file for analyzing remote procedure call interface data from a public interface definition language library; analyzing the remote procedure call interface data according to the acquired interface definition language file to obtain parameter information corresponding to the network request received by the remote procedure call interface; and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the parameter information.

Description

Test case generation method and device for remote procedure call interface, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of test technologies, and in particular, to a method and an apparatus for generating a test case of a remote procedure call interface, a storage medium, and an electronic device.
Background
The RPC (Remote Procedure call ) is mainly used for solving the problem of calling among services in a distributed system, and when Remote calling is performed through an RPC interface, the RPC interface is convenient as local calling, so that a caller cannot perceive the logic of the Remote calling. Therefore, in the micro service architecture, the RPC interface is mostly used. However, in the related art, testing of the RPC interface mainly depends on manual writing of a test case script, a lot of time is required for a tester to analyze how each interface defines parameters and parameter selectable values, and the testing efficiency is low.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a method for generating a test case of a remote procedure call interface, where the method includes:
acquiring remote procedure call interface data of a business service through a service grid, wherein the business service is provided with the service grid, and a flow proxy function of the service grid is in an open state;
acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library;
analyzing the remote procedure call interface data according to the acquired interface definition language file to obtain parameter information corresponding to the network request received by the remote procedure call interface;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the parameter information.
In a second aspect, the present disclosure provides a test case generation apparatus for a remote procedure call interface, where the apparatus includes:
the system comprises an acquisition module, a service grid and a service management module, wherein the acquisition module is used for acquiring interface data of remote process call of a service through the service grid, the service grid is deployed in the service, and the flow proxy function of the service grid is in an open state;
the acquisition module is used for acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library;
the analysis module is used for analyzing the remote procedure call interface data according to the acquired interface definition language file;
and the generating module is used for calling a test case generating tool and generating a test case of the remote procedure calling interface based on the parameter information.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of the first aspect.
By the technical scheme, the remote procedure call interface data can be collected based on the service grid, so that the test case of the remote procedure call interface is automatically generated according to the analyzed remote procedure call interface data. The method and the device have the advantages that the flow of the on-line remote process call interface is automatically acquired, the test case of the remote process call interface is automatically generated, testers can be prevented from analyzing interface information and manually defining interface parameters and parameter selectable values, so that the generation efficiency of the test case of the remote process call interface is improved, and further the test efficiency of the remote process call interface is improved. And the original flow of the remote procedure call interface is acquired based on the service grid, and the original flow is analyzed by utilizing the common interface definition language library, so that the test cost can be effectively reduced, the support of various interfaces and data types can be realized, and the coverage of test cases is greatly improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow chart illustrating a test case generation method for a remote procedure call interface according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a test case generation method for a remote procedure call interface according to another exemplary embodiment of the present disclosure;
FIG. 3 is a process schematic block diagram illustrating a test case generation method for a remote procedure call interface in accordance with an illustrative embodiment of the present disclosure;
FIG. 4 is a block diagram illustrating a test case generation apparatus for a remote procedure call interface in accordance with an illustrative embodiment of the present disclosure;
fig. 5 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units. In addition, references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and one skilled in the art will appreciate that "one or more" will be understood unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
As the background art shows, the related art mainly relies on manual writing of test case scripts for testing the remote procedure call interface, and a lot of time is required for a tester to analyze how each interface defines parameters and parameter selectable values, so that the testing efficiency is low.
In view of this, the present disclosure provides a method and an apparatus for generating a remote procedure call test case, a storage medium, and an electronic device, so as to implement automatic generation of a test case of a remote procedure call interface, reduce labor cost and test time input in a remote procedure call interface test, and improve test efficiency of the remote procedure call interface.
Fig. 1 is a flowchart illustrating a test case generation method of a remote procedure call interface according to an exemplary embodiment of the present disclosure. Referring to fig. 1, the method includes:
step 101, acquiring remote procedure call interface data of a service through a service grid, wherein the service grid is deployed in the service, and a flow proxy function of the service grid is in an open state.
Step 102, obtaining an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library.
And 103, analyzing the remote procedure call interface data according to the acquired interface definition language file to acquire parameter information corresponding to the network request received by the remote procedure call interface.
And 104, calling a test case generation tool, and generating a test case of the remote procedure call interface based on the parameter information.
It should be understood that, before implementing the Remote Procedure Call (RPC) interface test case generation method provided by the present disclosure, a service grid may be deployed at a business service, and a traffic proxy function of the service grid is turned on, so that RPC interface data (i.e., online request data received by an RPC interface) may be forwarded through the traffic proxy function of the service grid, for example, the traffic data may be forwarded to a specified server, which may be an entity server device or a virtual cloud server, which is not limited in this disclosure.
In the micro-Service architecture, a Service Mesh (Service Mesh) is used as an infrastructure layer in a Service, and is used for processing inter-Service communication and is responsible for network calling, current limiting, fusing and monitoring among services. The collection of RPC interface data can be realized through a flow Proxy (Mesh-Proxy) function of a service grid, so that the collected RPC interface data can be further analyzed to be used as a test generation data source, and the aim of automatically generating a test case is further realized. Compared with the mode of setting the corresponding RPC interface data acquisition module in each service, the mode of acquiring the RPC interface data through the flow proxy function of the service grid simplifies the acquisition process of the RPC interface data, can reduce the labor cost and time cost for setting the RPC interface data acquisition module under the condition of numerous service services, and improves the acquisition efficiency of the RPC interface data. And the traffic is collected based on the service grid to generate a test case of the remote procedure call interface, and the HTTP interface and Json and Protobuf data formats can be simultaneously supported, so that test case data of different types of interfaces can be automatically generated for a business party to use.
After the RPC Interface data of the service is collected, considering that the RPC Interface data is binary data in a Protobuf format, it is not convenient to directly generate an RPC Interface test case, so in the embodiment of the present disclosure, an Interface Definition Language (IDL) file for analyzing remote procedure call Interface data may be first obtained from a common Interface definition language library, and then, the remote procedure call Interface data is analyzed according to the obtained Interface definition language file, so as to obtain parameter information corresponding to a network request received by the remote procedure call Interface.
That is, the IDL file may be pulled from the public IDL repository, and then the RPC interface data may be parsed according to the pulled IDL file, so as to obtain readable plaintext RPC interface data. Wherein, the IDL file is a computer language used for describing software component interfaces. IDLs describe interfaces in a neutral way so that objects running on different platforms and programs written in different languages can communicate with each other. Therefore, the RPC interface data are analyzed according to the IDL file, the collected binary RPC interface data can be converted into plaintext data, the subsequent data processing process is facilitated, and the RPC interface test case can be generated more conveniently and rapidly.
In a possible mode, the analyzed parameter information can be stored in a message queue, the message queue is used for responding to a request sent by a target terminal and used for acquiring data in the message queue, the parameter information stored in the message queue is sent to the target terminal through a consumer process, so that the target terminal calls a test case generation tool, and a test case of a remote procedure call interface is generated based on the received parameter information.
That is to say, in the embodiment of the present disclosure, the analyzed RPC interface data may be written into the message queue, and when the RPC interface test case needs to be generated, the target terminal may obtain the analyzed RPC interface data from the message queue. During subsequent multi-disk testing, the step of analyzing the collected RPC interface test data is not required to be executed, the RPC interface test process is simplified, and the RPC interface test efficiency can be improved to a certain extent.
In a possible manner, according to the test case generation tool, the test case for generating the remote procedure call interface based on the parameter information may be: firstly, the following data processing is executed aiming at the parameter information: carrying out duplicate removal processing on at least two identical parameter information in the parameter information; and/or comparing the parameter information with the stored historical parameter information, if the historical parameter information comprises the parameter information which is the same as the parameter information, performing duplicate removal processing on the parameter information, calling a test case generation tool, and generating a test case of the remote process call interface based on the parameter information after data processing.
For example, the deduplication processing on at least two identical parameter information in the parameter information may be: and comparing whether the parameter information corresponding to the RPC interface data has at least two pieces of data which are the same, and if so, deleting the at least two pieces of data to finally reserve one piece of data. By the method, the problem that repeated test cases are generated due to repeated data can be solved, and a plurality of different RPC test cases can be obtained.
For example, considering that the analyzed RPC interface data needs to be stored, in order to avoid repeated storage, deduplication processing may be performed according to the RPC interface data after this analysis and the RPC interface data after historical analysis. For example, the parameter information obtained by the current analysis may be compared with the stored historical parameter information. If the parameter information obtained by the analysis and the historical parameter information have consistent data, the data can be deleted from the parameter information obtained by the analysis. In the subsequent process, if an RPC interface test case needs to be generated according to the data, the RPC interface test case can be acquired from the stored historical parameter information.
It should be understood that the RPC interface data includes method parameters, which may include a plurality of different parameter names and corresponding selectable values, similar to GET method parameters and POST method parameters in an HTTP (HyperText Transfer Protocol) interface. Therefore, in the embodiment of the present disclosure, the test case generation tool is invoked, and the test case for generating the remote procedure call interface based on the parameter information may also be: the following data processing is performed for the parameter information: if the same parameter name in the parameter information corresponds to a plurality of different parameter values, counting the number of the parameter name corresponding to the different parameter values respectively to obtain a parameter statistic value corresponding to each parameter value, then screening the parameter information according to the parameter statistic value to obtain target parameter information, finally calling a test case generation tool, and generating a test case of the remote process call interface based on the target parameter information.
For example, the number of different parameter values respectively corresponding to the parameter name in the parameter information obtained by statistical analysis may be counted for the same parameter name. For example, for parameter names used for characterizing the data sharing path in the RPC interface data, parameter values of the RPC interface data include sharing to the first application software, the second application software and the third application software. Therefore, the parameter statistics may be to count the parameter information obtained by the analysis, where the parameter values of the parameter names are the numbers of the first application software, the second application software, and the third application software, respectively, so as to obtain the parameter statistics values of the parameter values of the first application software, the second application software, and the third application software, respectively.
Then, the parameter information can be screened according to the parameter statistical value to obtain the target parameter information. For example, a target parameter value, of which a parameter statistic exceeds a preset threshold, may be determined from a plurality of parameter values, so that target parameter information including the target parameter value in the parameter information may be determined, and a test case of the remote procedure call interface may be generated based on the target parameter information, where the preset threshold may be set according to an actual situation, and the embodiment of the present disclosure does not limit this. For example, in the above example, for the parameter name used for characterizing the data sharing path, the parameter value includes the parameter shared to the first application software, the second application software and the third application software. In this case, the parameter statistics value may be the number of the first application software, the second application software, and the third application software, respectively, of the optional value of the parameter name in the parameter information obtained by the analysis. If the parameter statistic corresponding to the first application software exceeds the preset threshold, the target parameter value can be determined to be the first application software. Then, a parameter value used for representing a parameter name of the sharing path in the parameter information obtained through analysis can be determined to be target parameter information of the first application software, finally, a test case generation tool is called, and an RPC interface test case is generated based on the target parameter information.
Through the mode, parameter values with more occurrence times in the collected RPC interface data can be counted, and then the RPC interface test case is generated according to the RPC interface data comprising the parameter values with more occurrence times, so that the generated RPC interface test case can accord with most of actual scenes.
In the embodiment of the present disclosure, in addition to performing deduplication processing and parameter statistics on the parameter information obtained by analysis, data replacement may be performed on the parameter information obtained by analysis. That is, in a possible manner, a test case generation tool is called, and the test case for generating the remote procedure call interface based on the parameter information may also be: the following data processing is performed for the parameter information: under the condition of acquiring a request parameter which is input by a user and used for replacing a target parameter in parameter information, performing data replacement on the target flow parameter in the parameter information according to the request parameter to obtain user-defined parameter information; and/or replacing sensitive data in the parameter information with preset test user information to obtain desensitization parameter information, then calling a test case generation tool, and generating a test case of the remote process call interface based on the user-defined parameter information and/or the desensitization parameter information.
For example, the parsed RPC interface data may be subjected to data replacement according to the request parameters input by the user. For example, for a parameter name used for characterizing the data sharing path, the parameter value includes sharing to the first application software, the second application software and the third application software. However, in a certain test scenario, it is necessary to test the case where the optional value of the parameter name is the fourth application software. In this case, the user may input the request parameter as "fourth application software", and then may randomly select the parameter information obtained by the analysis in response to the request parameter input by the user, and replace the parameter value used for characterizing the parameter name of the data sharing path in the parameter information selected at random with "fourth application software", so as to obtain the custom parameter information, thereby generating the corresponding test case according to the custom parameter information. By the method, user-defined test parameters can be supported, so that the generated test case is suitable for various special test scenes, and the scene applicability of the test case is improved.
In other possible cases, in order to avoid leakage of real user information, sensitive data in the parameter information may be replaced with preset test user information to obtain desensitization parameter information. It should be understood that the preset test user information may be set according to actual situations, and the embodiment of the present disclosure does not limit this.
After the parameter information obtained by analysis is subjected to data processing in the above manner, a test case generation tool can be called, and an RPC interface test case is generated based on the parameter information subjected to data processing. In a possible mode, different parameter values corresponding to parameter names in the parameter information can be subjected to combined value taking to obtain combined test parameter information, then a combined test case generation tool is called, and a test case of the remote process call interface is generated based on the combined test parameter information.
It should be understood that commonly used test case generation methods include a fuzzy test case generation method, a combinational test case generation method, an orthogonal test case generation method, and the like. The Combinatorial Test (Combinatorial Test-ing) is used as an automatic Test case generation method, and the scale of the Test case can be reduced on the premise of ensuring the error detection rate. More specifically, combined testing may be understood as a trade-off between test coverage and test cost. Therefore, the problem of automatic generation of test cases can be solved by directly applying the combined generation tool to the traditional interface test flow. For example, in the aspects of regression testing and monitoring, the combined test can automatically generate a large number of test cases, so that a large amount of labor cost is saved. The method has the disadvantages that the combination generation tool is directly applied, and the parameters and the parameter selectable values required by the test of each interface are defined in advance by a tester so as to ensure the automatic generation process of the subsequent whole test case. If the coverage of the automatically generated test cases is high enough, a lot of time is required for the tester to analyze how to define the parameters and the parameter selectable values of each interface.
In the embodiment of the disclosure, the combination test parameter information is obtained by performing the combination value taking on the different parameter values corresponding to the parameter names in the parameter information, the combination test case generation tool is called, and the RPC interface test case is generated based on the combination test parameter information, so that the labor cost of the existing combination test tool in the RPC interface test case generation process can be reduced, and the generation efficiency of the RPC interface test case is improved while the coverage of the RPC interface test case is ensured.
For example, the parameter values are 1, 2, and 3 for the parameter name a, and 4, 5, and 6 for the parameter name B. In this case, different parameter values of the parameter name a and the parameter name B may be combined in all possible combinations to obtain combined test parameter information. For example, the parameter name a may have a value of 1 and the parameter name B may have a value of 4, or the parameter name a may have a value of 1, the parameter name B may have a value of 5, and so on. And then, a combined test case generation tool can be called to generate test cases based on all possible combined test parameter information, so that more RPC interface test cases can be generated by the combined test tool under the condition that the obtained RPC interface data is less, the labor cost in the RPC interface test case generation process is reduced, and the RPC interface test case generation efficiency is improved.
In a possible manner, the parameter information after data processing or the test case of the remote procedure call interface generated by the parameter information after data processing may be persistently stored. For example, the parameter information after data processing or the test case of the remote procedure call interface generated by the parameter information after data processing may be written into a database for persistent storage, which facilitates continuous integration of data and reduces storage cost caused by data explosion. In addition, by the persistent storage mode, the subsequent data source processing can be carried out in an incremental mode, so that the coverage of the test cases obtained by data acquisition and generation is higher and higher.
In a possible mode, there may be a plurality of generated RPC interface test cases, and accordingly, the plurality of RPC interface test cases may also be subjected to deduplication processing, and then an RPC interface test is performed according to the RPC interface test cases subjected to deduplication processing.
For example, the deduplication processing of the plurality of RPC interface test cases may be: and deleting the same test case in the plurality of RPC interface test cases, and reserving one test case, so that the RPC interface test is prevented from being repeatedly executed through the same RPC interface test case, and the RPC interface test efficiency is improved. Or, the deduplication processing of the plurality of RPC interface test cases may also be: and comparing the newly generated RPC interface test cases with the stored RPC interface test cases, and if the same test case exists in the newly generated RPC interface test cases and the stored RPC interface test cases, deleting the test case from the newly generated RPC interface test cases. If the RPC interface test is required to be executed through the test case subsequently, the RPC interface test case can be obtained from the stored RPC interface test case, and repeated storage of the same test case is avoided.
The RPC interface test case generation method provided by the present disclosure is explained below by another exemplary embodiment. In fig. 2, the RPC interface test case generation method includes:
step 201, collecting remote procedure call RPC interface data of the service through the service grid. The business service is deployed with a service grid, and the traffic proxy function of the service grid is in an open state.
In step 202, an interface definition language IDL file is obtained from a public IDL library.
And step 203, analyzing the RPC interface data according to the obtained IDL file.
And 204, performing deduplication processing and parameter statistics on the analyzed RPC interface data, performing data replacement on the analyzed RPC interface data according to request parameters input by a user, and replacing real user information in the analyzed RPC interface data with preset test user information.
And step 205, converting the RPC interface data after data processing into an input data source of the combined test tool.
And step 206, generating a plurality of RPC interface test cases through the combined test tool.
And step 207, performing persistent storage on the RPC interface data after data processing and the generated RPC interface test case.
And step 208, carrying out deduplication processing on the plurality of RPC interface test cases.
And step 209, executing the RPC interface test according to the RPC interface test case after the deduplication processing.
The detailed description of the above steps is given above for illustrative purposes, and will not be repeated here. It will also be appreciated that for simplicity of explanation, the above-described method embodiments are all presented as a series of acts or combination of acts, but those skilled in the art will recognize that the present disclosure is not limited by the order of acts or combination of acts described above. Further, those skilled in the art will also appreciate that the embodiments described above are preferred embodiments and that the steps involved are not necessarily required for the present disclosure.
A schematic diagram of a process for generating the RPC interface test case by the above method may be shown in fig. 3. Referring to fig. 2 and 3, the RPC interface test case generation method provided by the embodiment of the present disclosure may collect RPC interface data based on a service grid, so as to generate an RPC interface test case according to the RPC interface data that is analyzed and subjected to certain data processing. By automatically acquiring the flow of the online RPC interface and automatically converting the flow into an input data source of the combined generation tool, the interface information can be prevented from being combed by a tester and the interface parameters and parameter selectable values can be prevented from being manually defined. Meanwhile, the RPC interface test case generated based on the on-line real flow is more in line with the actual scene, the diversity is higher, and the test coverage and the test cost are effectively balanced. In addition, the embodiment of the disclosure performs data analysis and processing on the collected interface data and the test case generated by combination, thereby facilitating the continuous integration of the test case and reducing the storage cost caused by data explosion.
Based on the same inventive concept, the embodiment of the present disclosure further provides an RPC interface test case generation apparatus, which may be a part or all of a server through software, hardware, or a combination of the two. Referring to fig. 4, the RPC interface test case generation apparatus includes:
the system comprises an acquisition module 401, a service grid and a service management module, wherein the acquisition module is used for acquiring remote procedure call interface data of a service through the service grid, the service grid is deployed in the service, and a flow proxy function of the service grid is in an open state;
an obtaining module 402, configured to obtain, from a public interface definition language library, an interface definition language file for analyzing the remote procedure call interface data;
an analysis module 403, configured to analyze the remote procedure call interface data according to the obtained interface definition language file, so as to obtain parameter information corresponding to a network request received by the remote procedure call interface;
and the generating module 404 is configured to invoke a test case generating tool, and generate a test case of the remote procedure call interface based on the parameter information.
Optionally, the generating module 404 is configured to:
performing the following data processing for the parameter information: carrying out duplicate removal processing on at least two identical parameter information in the parameter information; and/or comparing the parameter information with stored historical parameter information, and if the historical parameter information comprises the same parameter information as the parameter information, performing duplicate removal processing on the parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the parameter information after data processing.
Optionally, the generating module 404 is configured to:
performing the following data processing for the parameter information: if the same parameter name in the parameter information corresponds to a plurality of different parameter values, counting the number of the parameter name corresponding to the different parameter values respectively to obtain a parameter statistic value corresponding to each parameter value, determining a target parameter value of which the parameter statistic value exceeds a preset threshold value in the plurality of parameter values, and determining target parameter information of which the parameter information comprises the target parameter value;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the target parameter information.
Optionally, the generating module 404 is configured to:
performing the following data processing for the parameter information: under the condition that a request parameter which is input by a user and used for replacing a target parameter in the parameter information is obtained, carrying out data replacement on the target flow parameter in the parameter information according to the request parameter to obtain user-defined parameter information; and/or replacing sensitive data in the parameter information with preset test user information to obtain desensitization parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the self-defined parameter information and/or the desensitization parameter information.
Optionally, the generating module 404 is configured to:
performing combined value taking on different parameter values corresponding to the parameter names in the parameter information to obtain combined test parameter information;
and calling a combined test case generation tool, and generating a test case of the remote procedure call interface based on the combined test parameter information.
Optionally, the apparatus 400 further comprises:
the first storage module is used for storing the parameter information into a message queue, and the message queue is used for responding to a request sent by a target terminal and used for acquiring data in the message queue and sending the parameter information stored in the message queue to the target terminal through a consumer process, so that the target terminal inputs the received parameter information into a test case generation tool to generate a test case of a remote process call interface.
Optionally, the apparatus 400 further comprises:
and the second storage module is used for persistently storing the parameter information after data processing or the test case of the remote procedure call interface generated by the parameter information after the data processing.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the same inventive concept, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the test case generation method of any one of the remote procedure call interfaces.
Based on the same inventive concept, an embodiment of the present disclosure further provides an electronic device, including:
a memory having a computer program stored thereon;
and the processor is used for executing the computer program in the memory so as to realize the steps of the test case generation method of any remote procedure call interface.
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the communication may be performed using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring remote procedure call interface data of a business service through a service grid, wherein the business service is provided with the service grid, and a flow proxy function of the service grid is in an open state; acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library; analyzing the remote procedure call interface data according to the acquired interface definition language file to obtain parameter information corresponding to the network request received by the remote procedure call interface; and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the parameter information.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of a module in some cases does not constitute a limitation on the module itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, an example provides an RPC interface test case generation method, including:
acquiring remote procedure call interface data of a business service through a service grid, wherein the business service is provided with the service grid, and a flow proxy function of the service grid is in an open state;
acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library;
analyzing the remote procedure call interface data according to the acquired interface definition language file to obtain parameter information corresponding to the network request received by the remote procedure call interface;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the parameter information.
In accordance with one or more embodiments of the present disclosure, example two provides the method of example one, the invoking a test case generation tool to generate a test case of a remote procedure call interface based on the parameter information includes:
performing the following data processing for the parameter information: carrying out duplicate removal processing on at least two identical parameter information in the parameter information; and/or comparing the parameter information with stored historical parameter information, and if the historical parameter information comprises the same parameter information as the parameter information, performing duplicate removal processing on the parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the parameter information after data processing.
In accordance with one or more embodiments of the present disclosure, example three provides the method of example one, the invoking a test case generation tool to generate a test case of a remote procedure call interface based on the parameter information includes:
performing the following data processing for the parameter information: if the same parameter name in the parameter information corresponds to a plurality of different parameter values, counting the number of the parameter name corresponding to the different parameter values respectively to obtain a parameter statistic value corresponding to each parameter value, determining a target parameter value of which the parameter statistic value exceeds a preset threshold value in the plurality of parameter values, and determining target parameter information of which the parameter information comprises the target parameter value;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the target parameter information.
In accordance with one or more embodiments of the present disclosure, example four provides the method of example one, the invoking a test case generation tool to generate a test case of a remote procedure call interface based on the parameter information includes:
performing the following data processing for the parameter information: under the condition that a request parameter which is input by a user and used for replacing a target parameter in the parameter information is obtained, carrying out data replacement on the target flow parameter in the parameter information according to the request parameter to obtain user-defined parameter information; and/or replacing sensitive data in the parameter information with preset test user information to obtain desensitization parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the self-defined parameter information and/or the desensitization parameter information.
Example five provides the method of any one of examples one to four, the invoking the test case generation tool to generate the test case of the remote procedure call interface based on the parameter information, including:
performing combined value taking on different parameter values corresponding to the parameter names in the parameter information to obtain combined test parameter information;
and calling a combined test case generation tool, and generating a test case of the remote procedure call interface based on the combined test parameter information.
Example six provides the method of any one of examples one to four, further comprising, in accordance with one or more embodiments of the present disclosure:
and storing the parameter information into a message queue, wherein the message queue is used for responding to a request which is sent by a target terminal and used for acquiring data in the message queue, and sending the parameter information stored in the message queue to the target terminal through a consumer process, so that the target terminal inputs the received parameter information into a test case generation tool to generate a test case of a remote process call interface.
Example seven provides the method of any one of examples two to four, further comprising, in accordance with one or more embodiments of the present disclosure:
and carrying out persistent storage on the parameter information after data processing or the test case of the remote procedure call interface generated by the parameter information after the data processing.
Example eight provides, in accordance with one or more embodiments of the present disclosure, a test case generation apparatus of a remote procedure call interface, the apparatus comprising:
the system comprises an acquisition module, a service grid and a service management module, wherein the acquisition module is used for acquiring interface data of remote process call of a service through the service grid, the service grid is deployed in the service, and the flow proxy function of the service grid is in an open state;
the acquisition module is used for acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library;
the analysis module is used for analyzing the remote procedure call interface data according to the acquired interface definition language file so as to obtain parameter information corresponding to the network request received by the remote procedure call interface;
and the generating module is used for calling a test case generating tool and generating a test case of the remote procedure calling interface based on the parameter information.
Example nine provides the apparatus of example eight, the generation module to:
performing the following data processing for the parameter information: carrying out duplicate removal processing on at least two identical parameter information in the parameter information; and/or comparing the parameter information with stored historical parameter information, and if the historical parameter information comprises the same parameter information as the parameter information, performing duplicate removal processing on the parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the parameter information after data processing.
Example ten provides the apparatus of example eight, the generation module is to:
performing the following data processing for the parameter information: if the same parameter name in the parameter information corresponds to a plurality of different parameter values, counting the number of the parameter name corresponding to the different parameter values respectively to obtain a parameter statistic value corresponding to each parameter value, determining a target parameter value of which the parameter statistic value exceeds a preset threshold value in the plurality of parameter values, and determining target parameter information of which the parameter information comprises the target parameter value;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the target parameter information.
In accordance with one or more embodiments of the present disclosure, example eleven provides the apparatus of example eight, the generation module is to:
performing the following data processing for the parameter information: under the condition that a request parameter which is input by a user and used for replacing a target parameter in the parameter information is obtained, carrying out data replacement on the target flow parameter in the parameter information according to the request parameter to obtain user-defined parameter information; and/or replacing sensitive data in the parameter information with preset test user information to obtain desensitization parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the self-defined parameter information and/or the desensitization parameter information.
Example twelve provides the apparatus of any one of examples eight to eleven, the generation module to:
performing combined value taking on different parameter values corresponding to the parameter names in the parameter information to obtain combined test parameter information;
and calling a combined test case generation tool, and generating a test case of the remote procedure call interface based on the combined test parameter information.
Example thirteen provides the apparatus of any one of examples eight to eleven, further comprising, in accordance with one or more embodiments of the present disclosure:
the first storage module is used for storing the parameter information into a message queue, and the message queue is used for responding to a request sent by a target terminal and used for acquiring data in the message queue and sending the parameter information stored in the message queue to the target terminal through a consumer process, so that the target terminal inputs the received parameter information into a test case generation tool to generate a test case of a remote process call interface.
In accordance with one or more embodiments of the present disclosure, example fourteen provides the apparatus of any one of examples nine to eleven, the apparatus further comprising:
and the second storage module is used for persistently storing the parameter information after data processing or the test case of the remote procedure call interface generated by the parameter information after the data processing.
Example fifteen provides a computer-readable medium having stored thereon a computer program that, when executed by a processing device, implements the steps of the method of any one of examples one to seven in accordance with one or more embodiments of the present disclosure.
Example sixteen provides an electronic device, in accordance with one or more embodiments of the present disclosure, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of any one of examples one to seven.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (10)

1. A test case generation method of a remote procedure call interface is characterized by comprising the following steps:
acquiring remote procedure call interface data of a business service through a service grid, wherein the business service is provided with the service grid, and a flow proxy function of the service grid is in an open state;
acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library;
analyzing the remote procedure call interface data according to the acquired interface definition language file to obtain parameter information corresponding to the network request received by the remote procedure call interface;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the parameter information.
2. The method of claim 1, wherein the invoking test case generation tool generating the test case of the remote procedure call interface based on the parameter information comprises:
performing the following data processing for the parameter information: carrying out duplicate removal processing on at least two identical parameter information in the parameter information; and/or comparing the parameter information with stored historical parameter information, and if the historical parameter information comprises the same parameter information as the parameter information, performing duplicate removal processing on the parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the parameter information after data processing.
3. The method of claim 1, wherein the invoking test case generation tool generating the test case of the remote procedure call interface based on the parameter information comprises:
performing the following data processing for the parameter information: if the same parameter name in the parameter information corresponds to a plurality of different parameter values, counting the number of the parameter name corresponding to the different parameter values respectively to obtain a parameter statistic value corresponding to each parameter value, and screening the parameter information according to the parameter statistic value to obtain target parameter information;
and calling a test case generation tool, and generating a test case of the remote procedure call interface based on the target parameter information.
4. The method of claim 1, wherein the invoking test case generation tool generating the test case of the remote procedure call interface based on the parameter information comprises:
performing the following data processing for the parameter information: under the condition that a request parameter which is input by a user and used for replacing a target parameter in the parameter information is obtained, carrying out data replacement on the target flow parameter in the parameter information according to the request parameter to obtain user-defined parameter information; and/or replacing sensitive data in the parameter information with preset test user information to obtain desensitization parameter information;
and calling a test case generation tool, and generating a test case of the remote process call interface based on the self-defined parameter information and/or the desensitization parameter information.
5. The method according to any one of claims 1 to 4, wherein the invoking test case generation tool generates a test case of a remote procedure call interface based on the parameter information, and comprises:
performing combined value taking on different parameter values corresponding to the parameter names in the parameter information to obtain combined test parameter information;
and calling a combined test case generation tool, and generating a test case of the remote procedure call interface based on the combined test parameter information.
6. The method according to any one of claims 1-4, further comprising:
and storing the parameter information into a message queue, wherein the message queue is used for responding to a request which is sent by a target terminal and used for acquiring data in the message queue, and sending the parameter information stored in the message queue to the target terminal through a consumer process, so that the target terminal inputs the received parameter information into a test case generation tool to generate a test case of a remote process call interface.
7. The method according to any one of claims 2-4, further comprising:
and carrying out persistent storage on the parameter information after data processing or the test case of the remote procedure call interface generated by the parameter information after the data processing.
8. A test case generation apparatus for a remote procedure call interface, the apparatus comprising:
the system comprises an acquisition module, a service grid and a service management module, wherein the acquisition module is used for acquiring interface data of remote process call of a service through the service grid, the service grid is deployed in the service, and the flow proxy function of the service grid is in an open state;
the acquisition module is used for acquiring an interface definition language file for analyzing the remote procedure call interface data from a public interface definition language library;
the analysis module is used for analyzing the remote procedure call interface data according to the acquired interface definition language file so as to obtain parameter information corresponding to the network request received by the remote procedure call interface;
and the generating module is used for calling a test case generating tool and generating a test case of the remote procedure calling interface based on the parameter information.
9. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 7.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 7.
CN202011367726.0A 2020-11-27 2020-11-27 Test case generation method and device for remote procedure call interface, storage medium and electronic equipment Pending CN112328419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011367726.0A CN112328419A (en) 2020-11-27 2020-11-27 Test case generation method and device for remote procedure call interface, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011367726.0A CN112328419A (en) 2020-11-27 2020-11-27 Test case generation method and device for remote procedure call interface, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112328419A true CN112328419A (en) 2021-02-05

Family

ID=74308082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011367726.0A Pending CN112328419A (en) 2020-11-27 2020-11-27 Test case generation method and device for remote procedure call interface, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112328419A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950370A (en) * 2021-02-25 2021-06-11 未鲲(上海)科技服务有限公司 Service processing method, device, equipment and storage medium
CN113157584A (en) * 2021-04-28 2021-07-23 杭州孝道科技有限公司 Fuzzy test method based on HttpClient
CN113407446A (en) * 2021-06-04 2021-09-17 荣耀终端有限公司 Test case generation method and electronic equipment
CN113505068A (en) * 2021-07-09 2021-10-15 杭州遥望网络科技有限公司 Automatic test method, device, equipment and storage medium for HTTP (hyper text transport protocol) interface
CN113535565A (en) * 2021-07-19 2021-10-22 工银科技有限公司 Interface use case generation method, device, equipment, medium and program product
CN114584500A (en) * 2022-02-25 2022-06-03 网易(杭州)网络有限公司 Asynchronous communication testing method and device and electronic equipment
CN116756044A (en) * 2023-08-11 2023-09-15 杭州罗莱迪思科技股份有限公司 RPC remote debugging method, device and application based on data link tracking

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006897A1 (en) * 2007-06-27 2009-01-01 Microsoft Corporation Automated service testing
CN103500139A (en) * 2013-09-25 2014-01-08 刘爱琴 Communication software integration testing system and method
WO2017067230A1 (en) * 2015-10-21 2017-04-27 中兴通讯股份有限公司 Software function expansion method and apparatus based on micro service architecture
CN109726128A (en) * 2018-12-29 2019-05-07 亚信科技(中国)有限公司 A kind of method for generating test case, device and server
CN109947646A (en) * 2019-03-13 2019-06-28 平安信托有限责任公司 Interface test method, device, computer equipment and storage medium
CN110716870A (en) * 2019-09-23 2020-01-21 中国建设银行股份有限公司 Automatic service testing method and device
CN110781082A (en) * 2019-10-14 2020-02-11 腾讯科技(深圳)有限公司 Method, device, medium and equipment for generating test case of interface
CN111581083A (en) * 2020-04-26 2020-08-25 北京字节跳动网络技术有限公司 Interface testing method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006897A1 (en) * 2007-06-27 2009-01-01 Microsoft Corporation Automated service testing
CN103500139A (en) * 2013-09-25 2014-01-08 刘爱琴 Communication software integration testing system and method
WO2017067230A1 (en) * 2015-10-21 2017-04-27 中兴通讯股份有限公司 Software function expansion method and apparatus based on micro service architecture
CN109726128A (en) * 2018-12-29 2019-05-07 亚信科技(中国)有限公司 A kind of method for generating test case, device and server
CN109947646A (en) * 2019-03-13 2019-06-28 平安信托有限责任公司 Interface test method, device, computer equipment and storage medium
CN110716870A (en) * 2019-09-23 2020-01-21 中国建设银行股份有限公司 Automatic service testing method and device
CN110781082A (en) * 2019-10-14 2020-02-11 腾讯科技(深圳)有限公司 Method, device, medium and equipment for generating test case of interface
CN111581083A (en) * 2020-04-26 2020-08-25 北京字节跳动网络技术有限公司 Interface testing method and device, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950370A (en) * 2021-02-25 2021-06-11 未鲲(上海)科技服务有限公司 Service processing method, device, equipment and storage medium
CN113157584A (en) * 2021-04-28 2021-07-23 杭州孝道科技有限公司 Fuzzy test method based on HttpClient
CN113407446A (en) * 2021-06-04 2021-09-17 荣耀终端有限公司 Test case generation method and electronic equipment
CN113505068A (en) * 2021-07-09 2021-10-15 杭州遥望网络科技有限公司 Automatic test method, device, equipment and storage medium for HTTP (hyper text transport protocol) interface
CN113535565A (en) * 2021-07-19 2021-10-22 工银科技有限公司 Interface use case generation method, device, equipment, medium and program product
CN114584500A (en) * 2022-02-25 2022-06-03 网易(杭州)网络有限公司 Asynchronous communication testing method and device and electronic equipment
CN114584500B (en) * 2022-02-25 2024-03-22 网易(杭州)网络有限公司 Asynchronous communication testing method and device and electronic equipment
CN116756044A (en) * 2023-08-11 2023-09-15 杭州罗莱迪思科技股份有限公司 RPC remote debugging method, device and application based on data link tracking
CN116756044B (en) * 2023-08-11 2023-11-21 杭州罗莱迪思科技股份有限公司 RPC remote debugging method, device and application based on data link tracking

Similar Documents

Publication Publication Date Title
CN112328419A (en) Test case generation method and device for remote procedure call interface, storage medium and electronic equipment
CN111581291A (en) Data processing method and device, electronic equipment and readable medium
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN111897740B (en) User interface testing method and device, electronic equipment and computer readable medium
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN116225886A (en) Test case generation method, device, equipment, storage medium and program product
CN113392018B (en) Traffic distribution method and device, storage medium and electronic equipment
CN113298573A (en) Content delivery strategy comparison method and device, readable medium and electronic equipment
CN114116480A (en) Method, device, medium and equipment for determining application program test coverage rate
CN114510305A (en) Model training method and device, storage medium and electronic equipment
CN113778850A (en) Data processing method and device, electronic equipment and computer readable medium
CN113556480A (en) Vehicle continuous motion video generation method, device, equipment and medium
CN113094272A (en) Application testing method and device, electronic equipment and computer readable medium
CN115543263A (en) Script generation method, device, equipment and medium
CN112491601A (en) Traffic topology generation method and device, storage medium and electronic equipment
CN112817874A (en) User interface test method, device, equipment and medium
CN112379967A (en) Simulator detection method, device, equipment and medium
CN113537028B (en) Control method, apparatus, device and medium for face recognition system
CN111274150B (en) Service instance access method and device and electronic equipment
CN113722206A (en) Data annotation method and device, electronic equipment and computer readable medium
CN115587019A (en) Pressure testing method, device, system, medium and electronic equipment
CN115904921A (en) Service registration information sending method, device, equipment and computer readable medium
CN117725420A (en) Data set generation method and device, readable medium and electronic equipment
CN115562751A (en) Service data processing method, system, electronic device and storage medium
CN111290798A (en) Data acquisition method and device and electronic equipment

Legal Events

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