CN111581083B - Interface testing method and device, electronic equipment and storage medium - Google Patents

Interface testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111581083B
CN111581083B CN202010340384.7A CN202010340384A CN111581083B CN 111581083 B CN111581083 B CN 111581083B CN 202010340384 A CN202010340384 A CN 202010340384A CN 111581083 B CN111581083 B CN 111581083B
Authority
CN
China
Prior art keywords
interface
service
description
test
interface test
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
CN202010340384.7A
Other languages
Chinese (zh)
Other versions
CN111581083A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202010340384.7A priority Critical patent/CN111581083B/en
Publication of CN111581083A publication Critical patent/CN111581083A/en
Application granted granted Critical
Publication of CN111581083B publication Critical patent/CN111581083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The disclosure provides an interface testing method, an interface testing device, electronic equipment and a storage medium, wherein the method comprises the following steps: after receiving a service update instruction for a target service, acquiring an interface description language IDL file defined for the target service; extracting service description parameters of the target service and interface description parameters of at least one service interface from the IDL file; generating an interface test case of each service interface based on the interface description parameters of the service interface; and performing interface test by using a preset interface test template, an interface test case and service description parameters to obtain an interface test result corresponding to the service update instruction. The whole test process is simple to operate, does not need to manually carry out development operations such as packaging, and is time-saving and labor-saving.

Description

Interface testing method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of interface testing, and in particular relates to an interface testing method, an interface testing device, electronic equipment and a storage medium.
Background
The micro service is a novel software architecture, is a lightweight service for realizing specific functions, which is obtained by splitting a single large service, and is widely applied to the fields of finance, electronic commerce and the like. Typically, after the micro-service development is completed, the remote procedure call (Remote Procedure Call, RPC) service may be utilized to test the various interface functions of the micro-service.
Currently, interface testing may be implemented based on a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) service framework, i.e., an RPC service is encapsulated into an HTTP service, and then interface testing is performed based on an HTTP protocol interface automation framework.
Therefore, the interface test scheme requires a developer to perform secondary packaging of the RPC service, has higher operation complexity, and increases development cost.
Disclosure of Invention
The disclosure provides at least one interface test scheme, which can realize automatic test of service interfaces, and is simple to operate, time-saving and labor-saving.
Mainly comprises the following aspects:
in a first aspect, an embodiment of the present disclosure provides an interface testing method, including:
after receiving a service update instruction for a target service, acquiring an interface description language IDL file defined for the target service;
extracting service description parameters of the target service and interface description parameters of at least one service interface from the IDL file;
generating an interface test case of each service interface based on the interface description parameters of the service interface;
and performing interface test by using a preset interface test template, the interface test case and the service description parameter to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the number of interface description parameters of the service interface is plural, and the generating, based on the interface description parameters of each service interface, an interface test case of the service interface includes:
determining, for each interface description parameter in each service interface, an interface description parameter value for the interface description parameter based on a type of the interface description parameter;
and combining the interface description parameter values of the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
In one embodiment, the combining the interface description parameter values of the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface includes:
generating a set of key value pair data corresponding to the interface description parameters and the interface description parameter values of the interface description parameters aiming at each interface description parameter of each service interface;
and combining the key values corresponding to the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
In one embodiment, the method further comprises:
And storing each group of key value pair data in the interface test case of the service interface and entity class identifiers corresponding to the group of key value pair data into a preset database aiming at each service interface.
In one embodiment, the performing an interface test by using a preset interface test template, the interface test case, and the service description parameter to obtain an interface test result corresponding to the service update instruction includes:
reading the service description parameters by using a preset interface test template, and determining at least one service interface matched with the service description parameters;
and respectively reading the interface test cases of the at least one service interface from the preset database, and executing the interface test cases of each service interface to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the reading the interface test cases of the at least one service interface from the preset database includes:
for each service interface, reading each group of key value pair data of the interface test case of the service interface and entity class identifiers corresponding to each group of key value pair data from the preset database;
The executing the interface test case of each service interface to obtain the interface test result corresponding to the service update instruction comprises the following steps:
converting each group of key values in the read interface test cases of the service interface into interface description parameter values corresponding to the entity class identifiers aiming at each service interface to obtain converted interface test cases;
and executing each converted interface test case to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the executing the interface test case of each service interface to obtain the interface test result corresponding to the service update instruction includes:
executing interface test cases of all service interfaces to obtain an execution result;
and comparing the execution result with an expected result set by using a preset test framework to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the number of interface test cases of the service interface is multiple, the reading the interface test cases of the at least one service interface from the preset database, and executing the interface test cases of each service interface to obtain an interface test result corresponding to the service update instruction, where the method includes:
And sequentially reading a plurality of interface test cases of each service interface according to the execution sequence of the interface test cases defined by the pre-generated extensible markup language (XML) file, and sequentially executing each interface test case aiming at the service interface to obtain a test result report corresponding to the service interface.
In one embodiment, the extracting the service description parameter of the target service and the interface description parameter of at least one service interface from the IDL file includes:
judging whether the acquired IDL file is stored in a preset file library or not;
if not, extracting the service description parameters of the target service and the interface description parameters of at least one service interface from the IDL file.
In a second aspect, the present disclosure also provides an interface testing apparatus, the apparatus comprising:
the file acquisition module is used for acquiring an interface description language IDL file defined for the target service after receiving a service update instruction for the target service;
the parameter extraction module is used for extracting the service description parameters of the target service and the interface description parameters of at least one service interface from the IDL file;
The system comprises a case generation module, a service interface generation module and a service interface generation module, wherein the case generation module is used for generating an interface test case of each service interface based on the interface description parameters of the service interface;
and the interface test module is used for carrying out interface test by utilizing a preset interface test template, the interface test case and the service description parameter to obtain an interface test result corresponding to the service update instruction.
In a third aspect, the present disclosure also provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the interface test method of the first aspect and any of its various embodiments.
In a fourth aspect, the present disclosure also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the interface test method according to the first aspect and any of its various embodiments.
After receiving a service update instruction for a target service, the proposal can firstly acquire an interface description language IDL file defined for the target service, and extract service description parameters of the target service and interface description parameters of at least one service interface from the IDL file; then, based on the interface description parameter of each service interface, generating an interface test case of the service interface; and finally, performing interface test by using a preset interface test template, the interface test case and the service description parameter to obtain an interface test result corresponding to the service update instruction. According to the scheme, the service description parameters of the target service and the interface description parameters of at least one service interface can be automatically extracted based on the acquired IDL file, and the interface test cases can be automatically generated based on the interface description parameters, so that the interface test cases and the service description parameters can be automatically imported by using the preset interface test templates to realize automatic testing of the interface, the whole testing process is simple to operate, development operations such as encapsulation are not needed manually, and time and labor are saved.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the embodiments are briefly described below, which are incorporated in and constitute a part of the specification, these drawings showing embodiments consistent with the present disclosure and together with the description serve to illustrate the technical solutions of the present disclosure. It is to be understood that the following drawings illustrate only certain embodiments of the present disclosure and are therefore not to be considered limiting of its scope, for the person of ordinary skill in the art may admit to other equally relevant drawings without inventive effort.
FIG. 1 is a flow chart of an interface testing method according to a first embodiment of the present disclosure;
fig. 2 is a flowchart of a specific method for generating an interface test case in the interface test method according to the first embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a specific method for generating an interface test result in the interface test method according to the first embodiment of the present disclosure;
Fig. 4 is a schematic diagram of an interface testing apparatus according to a second embodiment of the disclosure;
fig. 5 shows a schematic diagram of an electronic device according to a third embodiment of the disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. The components of the embodiments of the present disclosure, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be made by those skilled in the art based on the embodiments of this disclosure without making any inventive effort, are intended to be within the scope of this disclosure.
It has been found that at present, remote procedure call (Remote Procedure Call, RPC) services can be encapsulated into hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) services, and then interface testing can be performed based on the interface automation framework of the HTTP protocol. The port test scheme requires a developer to carry out secondary packaging of RPC service, has higher operation complexity and increases development cost.
Based on the above study, the present disclosure provides at least one interface test scheme, which can realize automatic test of service interfaces, and is simple to operate, time-saving and labor-saving.
The present invention is directed to a method for manufacturing a semiconductor device, and a semiconductor device manufactured by the method.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
For the sake of understanding the present embodiment, first, a detailed description will be given of an interface testing method disclosed in an embodiment of the present disclosure, where an execution body of the interface testing method provided in the embodiment of the present disclosure is generally an electronic device with a certain computing capability, and the electronic device includes, for example: the terminal device, or server or other processing device, may be a User Equipment (UE), mobile device, user terminal, cellular phone, cordless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle mounted device, wearable device, etc. In some possible implementations, the interface test method may be implemented by way of a processor invoking computer readable instructions stored in a memory.
The interface testing method provided by the embodiment of the present disclosure is described below by taking an execution body as a server as an example.
Example 1
Referring to fig. 1, a flowchart of an interface testing method according to a first embodiment of the present disclosure is shown, where the method includes steps S101 to S104, where:
s101, after receiving a service update instruction for a target service, acquiring an interface description language IDL file defined for the target service.
S102, extracting service description parameters of a target service and interface description parameters of at least one service interface from an IDL file;
s103, generating an interface test case of each service interface based on the interface description parameters of the service interface;
s104, performing interface test by using a preset interface test template, an interface test case and service description parameters to obtain an interface test result corresponding to the service update instruction.
Here, in order to facilitate understanding of the interface test method provided by the embodiments of the present disclosure, first, an application scenario of the interface test method will be briefly described. Taking the example of the interface test application of the micro service, a plurality of interfaces of a plurality of micro services need to be tested, and if test data is still written manually to perform the interface test, a great challenge is brought to the manual work. Even though the related solution for implementing the interface test based on the HTTP service framework may alleviate the problem to a certain extent, considering that the interface test solution requires a developer to perform secondary encapsulation of remote procedure call (Remote Procedure Call, RPC) service, the operation complexity is high, in addition, the RPC service cannot be directly invoked, and the test result obtained by adopting the encapsulation method may not be observed as desired by the user, and the maintainability is poor.
In order to solve the above-mentioned various problems, the embodiment of the present disclosure provides a solution for implementing an automated test of a service interface by directly calling generated interface test cases and service/interface description parameters by using a preset interface test template, so as to avoid the above-mentioned problems of secondary packaging, and is simple to operate, time-saving and labor-saving.
In order to implement automatic interface test, after receiving a service update instruction for a target service, the embodiment of the present disclosure may first obtain an interface description language (Interface description language, IDL) file defined for the target service, and extract a service description parameter of the target service and an interface description parameter of at least one service interface from the IDL file, so that a corresponding interface test case may be generated based on the interface description parameter of each service interface, and then may implement automatic test of an interface by using a preset interface test template, and the generated interface test case and the extracted service description parameter, and obtain an interface test result.
The service update command may be generated based on the triggering of the related button, or may be generated by automatic triggering after the target service has a requirement of interface test, for example, when a user management service generates a service update, the service update command is generated by automatic triggering. The target service may be a related service initiating a service update instruction, and different service contents may be corresponding in different application scenarios. For example, in the micro service application scenario, the target service may be a sub service after an integrated service is disassembled, and in other business service scenarios, the target service may be a specific business service, which is not limited in the embodiments of the present disclosure.
Upon receiving the service update instruction, it is determined that the current service may have a need for an interface test, and whether the test interface is normal or not is a basic operation for verifying whether the service is operating normally. According to the method and the device for testing the interface, under the condition that the fact that the interface test requirement exists for one target service is determined, an IDL file defined for the target service can be obtained, the IDL file is used as an interface description language file, and file analysis can be conducted through a script file edited in advance.
Here, considering that the purpose of parsing an IDL file in the embodiments of the present disclosure is to implement an interface test, interface description information about service description parameters and service interfaces may be extracted from the IDL file of the target service.
The service description parameter is used for representing relevant information of the target service, and may include a service identification number, corresponding information of a relevant service interface corresponding to the target service, and other relevant service description parameters, and the interface description information is used for representing relevant information of the service interface, may include an interface identification number, method description content defined for the interface, and other relevant interface description parameters.
The value is stated that after the IDL file is obtained, the file information of the IDL file may be stored in a preset file library, and then file analysis may be performed. In order to avoid repeated parameter extraction operation on the same IDL file, in the embodiment of the present disclosure, after receiving an IDL file obtained by a service update instruction, the file information of the IDL file may be compared with the file information in a preset file library, and under the condition that it is determined that the IDL file is not in the preset file library, service description parameters and interface description parameters are analyzed, so that computing resources are saved.
In the embodiment of the disclosure, under the condition of determining the interface description parameters of each service interface, the interface test cases corresponding to each service interface can be generated based on the types of the interface description parameters, and the interface test cases can be automatically generated based on the types of the interface description parameters or generated under the condition of manual intervention.
Therefore, the corresponding service description parameters and interface test cases can be called by using the preset interface test template, and the service interface is tested according to the interface test flow defined in the interface test template, so that an interface test result is obtained.
The interface test template can be a universal test template suitable for various services, so that the relevant interfaces corresponding to the services can be determined by using the service description parameters, and the interface test cases of all the service interfaces can be executed according to the interface test flow defined in the interface test template, thereby obtaining the interface test result. Here, the interface test results may also be presented in a visual manner of a test result report.
In the embodiment of the disclosure, after the service description parameters and the interface description parameters are extracted, the service description parameters and the interface description parameters may be stored in a preset database according to a corresponding table structure. Here, the interface test case for each service interface may be generated based on the stored interface description parameters. As shown in fig. 2, the method for generating the interface test case specifically includes the following steps:
s201, determining an interface description parameter value of each service interface according to each interface description parameter in the service interface based on the type of the interface description parameter;
s202, according to the arrangement sequence of the interface description parameters, combining the interface description parameter values of the interface description parameters to obtain the interface test case of the service interface.
Here, first, for each interface description parameter of each service interface, a corresponding interface description parameter value may be determined based on the type of the interface description parameter, for example, for an interface description parameter of the int integer type, an interface description parameter value may be determined to be 10, and for another example, for an interface description parameter of the string type, an interface description parameter value may be determined to be name. In this way, the corresponding interface description parameter values can be combined according to the arrangement sequence of the interface description parameters, so as to obtain the interface test case of each service interface.
For example, when the respective interface description parameters of a service interface are name, gender and age, the corresponding interface description parameter values may be determined according to the types of the interface description parameters, and the combination of the respective interface description parameter values may be performed according to the sequence of the name, gender and age, so as to obtain the interface test case of the service interface.
In the embodiment of the disclosure, after the interface test case of each service interface is generated, the interface test case can be stored in a preset database so as to facilitate the subsequent call of the interface test case when the preset interface test template is executed.
In order to facilitate maintenance of the stored interface test cases, the embodiment of the disclosure can generate, for each interface description parameter of each service interface, a set of key value pair data corresponding to the interface description parameter and the interface description parameter value of the interface description parameter, and then combine the data according to the arrangement sequence of the interface description parameters and the key values corresponding to the interface description parameters to obtain the interface test case of the service interface.
The process of generating the key value pair data is a process of converting the interface description parameter and the interface description parameter value thereof into the key value pair data. In a specific application process, the conversion of key values to data can be performed according to a JS object numbered musical notation (JavaScript Object Notation, JSON) format, that is, interface description parameters and parameter values thereof are correspondingly converted into JSON format data, and for each service interface, each group of key value pair data in an interface test case of the service interface and entity class identifiers corresponding to the group of key value pair data can be stored in a preset database.
In a specific application, an object relationship mapping (Object Relational Mapping, ORM) framework may be employed to establish a mapping relationship between entity class identifiers and key values to a data table to facilitate subsequent interface call operations.
In the embodiment of the disclosure, after the service description parameters of the target service are extracted and the interface test case of each service interface of the target service is generated according to the method, an automatic interface test can be performed by using a preset interface test model. As shown in fig. 3, the method for testing the interface specifically includes the following steps:
s301, reading service description parameters by using a preset interface test template, and determining at least one service interface matched with the service description parameters;
s302, respectively reading interface test cases of at least one service interface from a preset database, and executing the interface test cases of each service interface to obtain an interface test result corresponding to the service update instruction.
Here, considering that when testing is performed on a service interface in the related art, a test code needs to be written manually, which is time-consuming and labor-consuming, and in view of the fact that the content required to be tested for different service interfaces is universal, the embodiment of the disclosure provides a scheme for templating the test code to automatically perform interface testing.
The method comprises the steps that firstly, service description parameters can be read from a database table structure by using a preset interface test template to determine at least one service interface matched with the service description parameters, then, interface test cases of at least one service interface can be respectively read from a preset database, and finally, the interface test cases of each service interface are executed to obtain an interface test result. Therefore, the interface test template predefines the related test flow of the interface test, so that the interface test can be performed based on the related test flow under the condition of determining that the interface test template has test requirements.
Here, it is considered that key value pair data is stored in the preset database, and the service interface is called for the interface description parameter itself when the test case is called. Therefore, before executing the interface test case to perform the interface test, the embodiment of the disclosure may first read, for each service interface, each set of key value pair data of the interface test case of the service interface and an entity class identifier corresponding to each set of key value pair data from a preset database, and then convert each set of key value pair data in the read interface test case of the service interface into an interface description parameter value corresponding to the entity class identifier, so as to obtain a converted interface test case. That is, in order to facilitate maintenance of the interface test case, the embodiment of the disclosure uses a key value pair format to store the case, and in order to facilitate implementation of the interface call, the key value pair format is converted into an interface description parameter value conforming to the interface call.
Thus, the interface test result corresponding to the service update execution can be obtained by executing the converted interface test case. In the specific application, the converted interface description parameter value can be input to a corresponding service interface, and the interface test is realized through the result returned by the service interface.
When the interface test cases are executed to perform the interface test, the embodiment of the disclosure can also determine the interface test result by using the comparison result between the expected result set by the preset test framework and the execution result obtained by executing the interface test cases of each service interface.
The embodiment of the disclosure can set the expected result in the interface test template by adopting test frames such as TestNG and the like, if the execution result of the execution interface test case is determined to be inconsistent with the expected result, the interface test is not passed, at the moment, corresponding service interface information can be fed back to the user display interface to remind the user to timely carry out interface maintenance, and if the execution result of the execution interface test case is determined to be consistent with the expected result, the interface test is passed.
Here, in order to facilitate automatic regression testing on each service interface, the generated interface test cases may be sorted into an extensible markup language (Extensible Markup Language, XML) file, and an execution sequence of the interface test cases may be defined in the process of sorting the file, so, according to the execution sequence of the interface test cases defined by the XML file, a plurality of interface test cases of each service interface may be sequentially read, and each interface test case for the service interface may be sequentially executed, to obtain a test result report corresponding to the service interface.
In a specific application, a test result report may be generated based on the test result generation tool, alure, to enable visual presentation of interface test results.
In the embodiment of the disclosure, based on the pre-generated XML file, once it is determined that the interface test needs to be performed, the regression test of the interface can be performed according to the execution sequence of the interface test case defined by the XML file, without manual participation, thereby saving time and labor.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Based on the same inventive concept, the embodiments of the present disclosure further provide an interface testing device corresponding to the interface testing method, and since the principle of the device in the embodiments of the present disclosure for solving the problem is similar to that of the interface testing method in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Example two
Referring to fig. 4, a schematic diagram of an interface testing apparatus according to a second embodiment of the disclosure is shown, where the apparatus includes:
A file obtaining module 401, configured to obtain an interface description language IDL file defined for a target service after receiving a service update instruction for the target service;
a parameter extraction module 402, configured to extract, from the IDL file, a service description parameter of the target service and an interface description parameter of at least one service interface;
a case generation module 403, configured to generate an interface test case of each service interface based on the interface description parameter of the service interface;
the interface test module 404 is configured to perform an interface test by using a preset interface test template, an interface test case, and a service description parameter, and obtain an interface test result corresponding to the service update instruction.
According to the interface testing device provided by the embodiment of the disclosure, the service description parameters of the target service and the interface description parameters of at least one service interface can be automatically extracted based on the acquired IDL file, and the interface test cases can be automatically generated based on the interface description parameters, so that the interface test cases and the service description parameters can be automatically imported by using the preset interface test templates to realize the automatic test of the interface, the whole testing process is simple to operate, the development operations such as encapsulation are not required, and the time and labor are saved.
In one embodiment, the service interface has multiple interface description parameters, and the use case generating module 403 is configured to generate an interface test case of the service interface according to the following steps:
determining, for each interface description parameter in each service interface, an interface description parameter value for the interface description parameter based on a type of the interface description parameter;
and combining the interface description parameter values of the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
In one embodiment, the use case generating module 403 is configured to obtain an interface test use case of the service interface according to the following steps:
generating a set of key value pair data corresponding to the interface description parameters and the interface description parameter values of the interface description parameters aiming at each interface description parameter of each service interface;
and combining the key values corresponding to the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
In one embodiment, the apparatus further comprises:
the data storage module 405 is configured to store, for each service interface, each set of key value pair data in an interface test case of the service interface and an entity class identifier corresponding to the set of key value pair data into a preset database.
In one embodiment, the interface test module 404 is configured to obtain an interface test result corresponding to the service update instruction according to the following steps:
reading service description parameters by using a preset interface test template, and determining at least one service interface matched with the service description parameters;
and respectively reading the interface test cases of at least one service interface from a preset database, and executing the interface test cases of each service interface to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the interface test module 404 is configured to obtain an interface test result corresponding to the service update instruction according to the following steps:
for each service interface, reading each group of key value pair data of the interface test case of the service interface and entity class identifiers corresponding to each group of key value pair data from a preset database;
converting each group of key values in the read interface test cases of the service interface into interface description parameter values corresponding to entity class identifiers aiming at each service interface to obtain converted interface test cases;
and executing each converted interface test case to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the interface test module 404 is configured to obtain an interface test result corresponding to the service update instruction according to the following steps:
executing interface test cases of all service interfaces to obtain an execution result;
and comparing the execution result with an expected result set by using a preset test framework to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the service interface has a plurality of interface test cases, and the interface test module 404 is configured to obtain an interface test result corresponding to the service update instruction according to the following steps:
and sequentially reading a plurality of interface test cases of each service interface according to the execution sequence of the interface test cases defined by the pre-generated extensible markup language (XML) file, and sequentially executing each interface test case aiming at the service interface to obtain a test result report corresponding to the service interface.
In one embodiment, the parameter extraction module 402 is configured to extract, from the IDL file, a service description parameter of the target service and an interface description parameter of at least one service interface according to the following steps:
judging whether the acquired IDL file is stored in a preset file library or not;
If not, extracting the service description parameters of the target service and the interface description parameters of at least one service interface from the IDL file.
Example III
An electronic device according to a third embodiment of the present disclosure, as shown in fig. 5, includes: processor 501, memory 502 and bus 503, memory 502 stores machine readable instructions executable by processor 501 (such as execution instructions corresponding to file acquisition module 401, parameter extraction module 402, use case generation module 403 and interface test module 404 in the interface test apparatus of fig. 4), and when the electronic device is running, processor 501 and memory 502 communicate via bus 503, machine readable instructions are executed by processor 501 to perform the following processes:
after receiving a service update instruction for a target service, acquiring an interface description language IDL file defined for the target service;
extracting service description parameters of the target service and interface description parameters of at least one service interface from the IDL file;
generating an interface test case of each service interface based on the interface description parameters of the service interface;
and performing interface test by using a preset interface test template, an interface test case and service description parameters to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the plurality of interface description parameters of the service interface, and the generating, in the instruction executed by the processor 501, the interface test case of the service interface based on the interface description parameter of each service interface includes:
determining, for each interface description parameter in each service interface, an interface description parameter value for the interface description parameter based on a type of the interface description parameter;
and combining the interface description parameter values of the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
In one embodiment, in the instructions executed by the processor 501, according to the arrangement order of the interface description parameters, the interface description parameter values of the interface description parameters are combined to obtain the interface test case of the service interface, where the interface test case includes:
generating a set of key value pair data corresponding to the interface description parameters and the interface description parameter values of the interface description parameters aiming at each interface description parameter of each service interface;
and combining the key values corresponding to the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
In one embodiment, the instructions executed by the processor 501 further include:
and storing each group of key value pair data in the interface test case of the service interface and entity class identifiers corresponding to the group of key value pair data into a preset database aiming at each service interface.
In one embodiment, in the instruction executed by the processor 501, an interface test is performed by using a preset interface test template, an interface test case, and a service description parameter, to obtain an interface test result corresponding to a service update instruction, where the interface test result includes:
reading service description parameters by using a preset interface test template, and determining at least one service interface matched with the service description parameters;
and respectively reading the interface test cases of at least one service interface from a preset database, and executing the interface test cases of each service interface to obtain an interface test result corresponding to the service update instruction.
In one embodiment, in the instructions executed by the processor 501, the reading, from a preset database, the interface test cases of at least one service interface respectively includes:
for each service interface, reading each group of key value pair data of the interface test case of the service interface and entity class identifiers corresponding to each group of key value pair data from a preset database;
Among the instructions executed by the processor 501, executing the interface test case of each service interface to obtain the interface test result corresponding to the service update instruction, including:
converting each group of key values in the read interface test cases of the service interface into interface description parameter values corresponding to entity class identifiers aiming at each service interface to obtain converted interface test cases;
and executing each converted interface test case to obtain an interface test result corresponding to the service update instruction.
In one embodiment, in the instructions executed by the processor 501, the executing the interface test case of each service interface to obtain the interface test result corresponding to the service update instruction includes:
executing interface test cases of all service interfaces to obtain an execution result;
and comparing the execution result with an expected result set by using a preset test framework to obtain an interface test result corresponding to the service update instruction.
In one embodiment, the plurality of interface test cases of the service interfaces are provided, in the instruction executed by the processor 501, the interface test case of at least one service interface is read from a preset database, and the interface test case of each service interface is executed to obtain an interface test result corresponding to the service update instruction, where the method includes:
And sequentially reading a plurality of interface test cases of each service interface according to the execution sequence of the interface test cases defined by the pre-generated extensible markup language (XML) file, and sequentially executing each interface test case aiming at the service interface to obtain a test result report corresponding to the service interface.
In one embodiment, the instructions executed by the processor 501 extract, from the IDL file, a service description parameter of the target service and an interface description parameter of at least one service interface, where the service description parameter includes:
judging whether the acquired IDL file is stored in a preset file library or not;
if not, extracting the service description parameters of the target service and the interface description parameters of at least one service interface from the IDL file.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by the processor 501, performs the steps of the interface test method described in the method embodiments above. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The computer program product of the interface testing method provided in the embodiments of the present disclosure includes a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the steps of the interface testing method described in the method embodiments, and specifically, reference may be made to the method embodiments, which are not described herein.
The disclosed embodiments also provide a computer program which, when executed by a processor, implements any of the methods of the previous embodiments. The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present disclosure, and are not intended to limit the scope of the disclosure, but the present disclosure is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, it is not limited to the disclosure: any person skilled in the art, within the technical scope of the disclosure of the present disclosure, may modify or easily conceive changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features thereof; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the disclosure, and are intended to be included within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (9)

1. An interface testing method, the method comprising:
after receiving a service update instruction for a target service, acquiring an interface description language IDL file defined for the target service; the service update instruction is generated when the service update is generated for the target service;
Extracting service description parameters of the target service and interface description parameters of at least one service interface from the IDL file, wherein the interface description parameters comprise at least one of the following: an interface identification number, method description content defined for the interface;
generating an interface test case of each service interface based on the interface description parameters of the service interface;
generating a set of key value pair data corresponding to the interface description parameters and the interface description parameter values of the interface description parameters aiming at each interface description parameter of each service interface; storing each group of key value pair data in the interface test case of the service interface and entity class identifiers corresponding to the group of key value pair data into a preset database;
reading the service description parameters by using a preset interface test template, and determining at least one service interface matched with the service description parameters;
for each service interface, reading each group of key value pair data of the interface test case of the service interface and entity class identifiers corresponding to each group of key value pair data from the preset database; converting each group of key values in the read interface test cases of the service interface into interface description parameter values corresponding to the entity class identifiers aiming at each service interface to obtain converted interface test cases; and executing each converted interface test case to obtain an interface test result corresponding to the service update instruction.
2. The method according to claim 1, wherein the interface description parameters of the service interface are plural, and the generating the interface test case of the service interface based on the interface description parameters of each service interface includes:
determining, for each interface description parameter in each service interface, an interface description parameter value for the interface description parameter based on a type of the interface description parameter;
and combining the interface description parameter values of the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
3. The method according to claim 2, wherein the step of combining the interface description parameter values of the respective interface description parameters according to the arrangement order of the respective interface description parameters to obtain the interface test case of the service interface includes:
and combining the key values corresponding to the interface description parameters according to the arrangement sequence of the interface description parameters to obtain the interface test case of the service interface.
4. The method according to claim 1, wherein the method further comprises:
executing interface test cases of all service interfaces to obtain an execution result;
And comparing the execution result with an expected result set by using a preset test framework to obtain an interface test result corresponding to the service update instruction.
5. The method according to claim 1, wherein the plurality of interface test cases of the service interface, the reading the interface test cases of the at least one service interface from the preset database, and executing the interface test cases of each service interface, to obtain the interface test result corresponding to the service update instruction, includes:
and sequentially reading a plurality of interface test cases of each service interface according to the execution sequence of the interface test cases defined by the pre-generated extensible markup language (XML) file, and sequentially executing each interface test case aiming at the service interface to obtain a test result report corresponding to the service interface.
6. The method according to any one of claims 1-5, wherein the extracting the service description parameters of the target service and the interface description parameters of at least one service interface from the IDL file includes:
judging whether the acquired IDL file is stored in a preset file library or not;
If not, extracting the service description parameters of the target service and the interface description parameters of at least one service interface from the IDL file.
7. An interface testing apparatus, the apparatus comprising:
the file acquisition module is used for acquiring an interface description language IDL file defined for the target service after receiving a service update instruction for the target service; the service update instruction is generated when the service update is generated for the target service;
the parameter extraction module is configured to extract, from the IDL file, a service description parameter of the target service and an interface description parameter of at least one service interface, where the interface description parameter includes at least one of: an interface identification number, method description content defined for the interface;
the system comprises a case generation module, a service interface generation module and a service interface generation module, wherein the case generation module is used for generating an interface test case of each service interface based on the interface description parameters of the service interface;
the data storage module is used for generating a group of key value pair data corresponding to the interface description parameter and the interface description parameter value of the interface description parameter aiming at each interface description parameter of each service interface; storing each group of key value pair data in the interface test case of the service interface and entity class identifiers corresponding to the group of key value pair data into a preset database;
The interface test module is used for reading the service description parameters by using a preset interface test template and determining at least one service interface matched with the service description parameters; for each service interface, reading each group of key value pair data of the interface test case of the service interface and entity class identifiers corresponding to each group of key value pair data from the preset database; converting each group of key values in the read interface test cases of the service interface into interface description parameter values corresponding to the entity class identifiers aiming at each service interface to obtain converted interface test cases; and executing each converted interface test case to obtain an interface test result corresponding to the service update instruction.
8. An electronic device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating over the bus when the electronic device is running, said machine readable instructions when executed by said processor performing the steps of the interface test method according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the interface test method according to any of claims 1 to 6.
CN202010340384.7A 2020-04-26 2020-04-26 Interface testing method and device, electronic equipment and storage medium Active CN111581083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010340384.7A CN111581083B (en) 2020-04-26 2020-04-26 Interface testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010340384.7A CN111581083B (en) 2020-04-26 2020-04-26 Interface testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111581083A CN111581083A (en) 2020-08-25
CN111581083B true CN111581083B (en) 2024-02-09

Family

ID=72123013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010340384.7A Active CN111581083B (en) 2020-04-26 2020-04-26 Interface testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111581083B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131127B (en) * 2020-09-28 2024-04-16 北京同邦卓益科技有限公司 Interface testing method, device and system and electronic equipment
CN112506762B (en) * 2020-11-27 2022-03-15 北京百度网讯科技有限公司 Application program interface parameter screening method, device, equipment and storage medium
CN112596972B (en) * 2020-12-23 2024-05-03 文思海辉智科科技有限公司 Test method, device and system of vehicle-mounted equipment and computer equipment
CN112783672B (en) * 2021-01-27 2024-04-05 传神语联网网络科技股份有限公司 Remote procedure call processing method and system
CN113282476B (en) * 2021-06-24 2023-01-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment
CN113553257B (en) * 2021-07-14 2024-04-26 北京字节跳动网络技术有限公司 Test method, device, storage medium and electronic equipment

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212357A (en) * 2006-12-31 2008-07-02 亿阳信通股份有限公司 Interface testing method and device
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
CN103984628A (en) * 2014-05-15 2014-08-13 中国南方航空股份有限公司 Automatic function test method and system applied to BS (browser/server) framework
CN107766190A (en) * 2017-10-31 2018-03-06 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN108255738A (en) * 2018-04-09 2018-07-06 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium
CN108255714A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 Interface document builds test method and terminal device
CN108446190A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 interface test method and device
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN109446068A (en) * 2018-09-26 2019-03-08 平安健康保险股份有限公司 Interface test method, device, computer equipment and storage medium
CN109558290A (en) * 2018-11-12 2019-04-02 平安科技(深圳)有限公司 Server, automatic interface testing method and storage medium
CN109634837A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Automated testing method, device, equipment and storage medium
US10318412B1 (en) * 2018-06-29 2019-06-11 The Travelers Indemnity Company Systems, methods, and apparatus for dynamic software generation and testing
CN110096434A (en) * 2019-03-28 2019-08-06 咪咕文化科技有限公司 A kind of interface test method and device
CN110377516A (en) * 2019-07-17 2019-10-25 拉扎斯网络科技(上海)有限公司 Test method, device, electronic equipment and computer readable storage medium
CN110502434A (en) * 2019-07-26 2019-11-26 苏州浪潮智能科技有限公司 A kind of automatic test approach and device
CN110716870A (en) * 2019-09-23 2020-01-21 中国建设银行股份有限公司 Automatic service testing method and device
CN110908892A (en) * 2019-09-18 2020-03-24 泰康保险集团股份有限公司 Interface data testing method and device and readable storage medium
CN110990250A (en) * 2019-10-12 2020-04-10 平安医疗健康管理股份有限公司 Interface test method, device, equipment and storage medium
CN111046073A (en) * 2019-12-11 2020-04-21 广州品唯软件有限公司 Test case query method and device and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7797400B2 (en) * 2006-09-06 2010-09-14 Oracle International Corporation Computer-implemented methods and systems for testing the interoperability of web services
US20170102925A1 (en) * 2014-03-26 2017-04-13 Syed Adeel Ali Automatch process and system for software development kit for application programming interface

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212357A (en) * 2006-12-31 2008-07-02 亿阳信通股份有限公司 Interface testing method and device
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
CN103984628A (en) * 2014-05-15 2014-08-13 中国南方航空股份有限公司 Automatic function test method and system applied to BS (browser/server) framework
CN108446190A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 interface test method and device
CN107766190A (en) * 2017-10-31 2018-03-06 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN108255714A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 Interface document builds test method and terminal device
CN108255738A (en) * 2018-04-09 2018-07-06 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium
US10318412B1 (en) * 2018-06-29 2019-06-11 The Travelers Indemnity Company Systems, methods, and apparatus for dynamic software generation and testing
CN109446068A (en) * 2018-09-26 2019-03-08 平安健康保险股份有限公司 Interface test method, device, computer equipment and storage medium
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN109634837A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Automated testing method, device, equipment and storage medium
CN109558290A (en) * 2018-11-12 2019-04-02 平安科技(深圳)有限公司 Server, automatic interface testing method and storage medium
CN110096434A (en) * 2019-03-28 2019-08-06 咪咕文化科技有限公司 A kind of interface test method and device
CN110377516A (en) * 2019-07-17 2019-10-25 拉扎斯网络科技(上海)有限公司 Test method, device, electronic equipment and computer readable storage medium
CN110502434A (en) * 2019-07-26 2019-11-26 苏州浪潮智能科技有限公司 A kind of automatic test approach and device
CN110908892A (en) * 2019-09-18 2020-03-24 泰康保险集团股份有限公司 Interface data testing method and device and readable storage medium
CN110716870A (en) * 2019-09-23 2020-01-21 中国建设银行股份有限公司 Automatic service testing method and device
CN110990250A (en) * 2019-10-12 2020-04-10 平安医疗健康管理股份有限公司 Interface test method, device, equipment and storage medium
CN111046073A (en) * 2019-12-11 2020-04-21 广州品唯软件有限公司 Test case query method and device and readable storage medium

Also Published As

Publication number Publication date
CN111581083A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN111581083B (en) Interface testing method and device, electronic equipment and storage medium
CN109828903B (en) Automatic testing method and device, computer device and storage medium
CN110198247B (en) Interface test method and system
CN106919509B (en) Client generation method and device and electronic equipment
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN111159049B (en) Automatic interface testing method and system
CN106022483B (en) The method and apparatus converted between machine learning model
CN110275831B (en) Mock data verification method and device of protocol interface
CN108334465B (en) Configuration method, device and equipment of communication interface and computer readable storage medium
CN111596902B (en) Method, device, equipment and storage medium for building front-end and back-end development framework
CN113467972B (en) Communication interface construction method and device, computer equipment and storage medium
CN111324343B (en) Code generation method and device
CN111338693A (en) Target file generation method based on model construction, server and storage medium
CN110990008B (en) Page updating method and device, storage medium and electronic equipment
CN115794641A (en) Method, device and equipment for making number based on business process and storage medium
CN111046640A (en) Dynamic generation method and device of certification document
JP2019101889A (en) Test execution device and program
CN109740074B (en) Method, device and equipment for processing parameter configuration information
CN112579465A (en) Test case execution method and device, storage medium and equipment
CN112379946A (en) Template configuration method and device based on YAML and computer equipment
CN116738954A (en) Report export method, report template configuration device and computer equipment
CN116360787A (en) Automatic generation method and device for form codes, electronic equipment and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN112380031A (en) Method and device for pushing messages in real time in cross-application mode and computing 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant