CN109857667A - Automatic interface testing method, test device, test equipment and storage medium - Google Patents

Automatic interface testing method, test device, test equipment and storage medium Download PDF

Info

Publication number
CN109857667A
CN109857667A CN201910108589.XA CN201910108589A CN109857667A CN 109857667 A CN109857667 A CN 109857667A CN 201910108589 A CN201910108589 A CN 201910108589A CN 109857667 A CN109857667 A CN 109857667A
Authority
CN
China
Prior art keywords
interface
test
node
interface node
parameter
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.)
Granted
Application number
CN201910108589.XA
Other languages
Chinese (zh)
Other versions
CN109857667B (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.)
Suzhou Longmei Intelligent Technology Co Ltd
Original Assignee
Suzhou Longmei Intelligent 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 Suzhou Longmei Intelligent Technology Co Ltd filed Critical Suzhou Longmei Intelligent Technology Co Ltd
Priority to CN201910108589.XA priority Critical patent/CN109857667B/en
Publication of CN109857667A publication Critical patent/CN109857667A/en
Priority to PCT/CN2019/118701 priority patent/WO2020155778A1/en
Application granted granted Critical
Publication of CN109857667B publication Critical patent/CN109857667B/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

Abstract

The invention discloses automatic interface testing method, test device, test equipment and storage medium, test method includes: to obtain the set of interfaces information of object to be tested, including each interface node and its interface describe;According to function to be tested, relevant interface node is arranged in order, and the output parameter of previous interface node in adjacent two interface node is associated with the foundation of the input parameter of the latter interface node, obtains Interface Flowchart figure;In conjunction with the input parameter of preset interface node, extreme saturation is carried out to interface flow chart, generates corresponding test code according to from the complete individual path of each of traversal start node backward, test code includes the program being called to interface node;Operation test code, obtains test result in test run environment.The present invention is automatically generated for the test code of test interface using the parameter of interface endpoint process and configuration, and running the code in test environment can be completed automatic test.

Description

Automatic interface testing method, test device, test equipment and storage medium
Technical field
The present invention relates to computer testing technology field, in particular to a kind of automatic interface testing method, test device, Test equipment and storage medium.
Background technique
As software technology develops, more and more softwares turn to user by platform and provide service, and third party can basis Platform, which provides interface and customizes, oneself to be needed to service, therefore nowadays software frequently involves interface testing.Interface is some pre-defined Function, it is therefore an objective to provide application program and developer based on certain software or hardware be able to access one group of routine ability, and It is not necessarily to access source code again, or understands the details of internal work mechanism.Interface testing is to submit input data to interface, obtains and returns As a result and analyze whether result meets expected test.
Interface test method is as follows in the prior art: tester writes the corresponding test case of interface to be tested in advance, The corresponding interface requests message of the test case is sent to interface to be tested, and receives the response message of interface feedback to be tested, Test result is determined according to the corresponding interface requests message of test case and response message.In practical applications, each interface It is all corresponding with parameter, each parameter there may be multiple values, include the value of all parameters in each test case.In order to Guarantee that tester needs to write multiple test cases, so that multiple test case can be covered to the comprehensive of interface testing Cover the combination of all parameter values.
Due to needing to write test case manually by tester in the prior art, when the parameter of interface is more, survey Examination personnel need to write dozens of even a test cases up to a hundred manually, so that the efficiency that test case is write is lower, and then lead It causes the efficiency of interface testing lower, and is easy to omit test case, and can not effectively trace interface test process.
Summary of the invention
In order to solve problems in the prior art, the present invention provides a kind of automatic interface testing method, test device, surveys Equipment and storage medium are tried, the survey of the interface of test software under testing is automatically generated for using the parameter of Interface Flowchart and configuration Code is tried, and generates open-and-shut test report, the technical solution is as follows:
On the one hand, the present invention provides a kind of automatic interface testing methods, comprising the following steps:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each connects The corresponding interface description of mouth node, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface in adjacent two interface node The output parameter of node is associated with the foundation of the input parameter of the latter interface node, obtains Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, the Interface Flowchart figure is carried out deep Degree traversal generates corresponding test code according to from the complete individual path of each of traversal start node backward, described Testing code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
Further, the method also includes obtaining to assert setting as a result, institute before or after obtaining Interface Flowchart figure It states and asserts that setting result is to the desired value for calling the output parameter setting exported after the corresponding interface node;
Generating test code includes: to quote to assert judgement operation after calling corresponds to and is provided with the interface node of desired value Program.
Further, the method also includes initiation parameter configuration result, institute are obtained after obtaining Interface Flowchart figure Stating initiation parameter configuration result includes test starting interface node, and the initiation parameter configuration result is used to test in generation Parameter initialization is realized when code, comprising: the traversal start node is initialized as the test and originates interface node, it is described Test starting interface node can be any one interface node in the Interface Flowchart figure.
Further, the initiation parameter configuration result further includes test depth value, the configuration of the test depth value Value is greater than or equal to using the test of configuration starting interface node as the flow chart longest depth value of starting point.
Further, the method also includes input parameter configuration knot is obtained before or after obtaining Interface Flowchart figure Fruit, the input parameter configuration result include the parameter to realize calling interface node required input;
Generating test code includes: the input being assigned to above-mentioned input parameter configuration result at respective calls interface node The program of parameter.
Further, the establishment step of the Interface Flowchart figure includes following operation:
The case where corresponding to the same previous interface node based on distinct interface node, the distinct interface node was arranged In different individual paths, and/or
It is third interface based on the previous interface node and second interface node that first interface node is second interface node The case where previous interface node of node, the first interface node, second interface node, third interface node were arranged same In one individual path.
Further, be partially or fully able to carry out mobile, duplication, shearing and/or the stickup of the Interface Flowchart figure are grasped Make.
Optionally, the described the step of test code is run in test run environment include local runtime mode and/ Or the cloud method of operation, the local runtime mode include: download the test code into local computer from cloud, and The test code is run in test software in the computer, obtains test result;
The cloud method of operation includes: to send operation request to cloud, includes object to be tested in the operation request Information;It is requested according to the operation, obtains corresponding test code;Receive the test software beyond the clouds based on the operation request The test result that the middle operation test code obtains.
It further, include that test crash example situation illustrates in the test report of the test result, the test crash Example includes the case where interface call error and/or asserts misjudgment.
Further, it is run described in test run environment in each test case that the test code obtains Procedure information be associated with data information and separate storage.
On the other hand, it the present invention provides a kind of interface automatic test device, comprises the following modules:
Object to be measured module, for obtaining the set of interfaces information of object to be tested, the set of interfaces information includes each A interface node and the corresponding interface description of each interface node, the interface description includes input and output parameter;
Flow chart modules, for relevant interface node being arranged in order, and to adjacent two interface according to function to be tested The output parameter of previous interface node is associated with the foundation of the input parameter of the latter interface node in node, obtains Interface Flowchart Figure;
Code generation module, the parameter type and parameter value of the input parameter for combining preset interface node, to institute It states Interface Flowchart figure and carries out extreme saturation, it is right with it according to being generated from the complete individual path of each of traversal start node backward The test code answered, the test code includes the program being called to each interface node;
It runs module and obtains test result for running the test code in test run environment.
In another aspect, the present invention provides a kind of interface automated test device, including processor and memory, it is described It is stored with program in memory, when the processor executes described program, performs the following operation:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each connects The corresponding interface description of mouth node, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface in adjacent two interface node The output parameter of node is associated with the foundation of the input parameter of the latter interface node, obtains Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, the Interface Flowchart figure is carried out deep Degree traversal generates corresponding test code according to from the complete individual path of each of traversal start node backward, described Testing code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
In another aspect, for storing program, described program carries out when executed the present invention provides a kind of storage medium It operates below:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each connects The corresponding interface description of mouth node, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface in adjacent two interface node The output parameter of node is associated with the foundation of the input parameter of the latter interface node, obtains Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, the Interface Flowchart figure is carried out deep Degree traversal generates corresponding test code according to from the complete individual path of each of traversal start node backward, described Testing code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
Technical solution bring provided by the invention has the beneficial effect that:
A. Interface Flowchart figure strengthens the semantic support to test software;
B. test code is automatically generated using Code automatic build engine;
C. it by the process and data separating storage in test case, and is effectively shown on product, improves tester The property easy to use of member;
It d. can be to computer website, mobile terminal webpage, mobile terminal App, wechat small routine, wechat public platform, PC Application program, the interface in industrial control software carry out automatic test, have wide range of applications;
E. test report is comprehensively accurate, and test process trackability is strong, and test result is very clear.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the flow chart of automatic interface testing method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of Interface Flowchart figure provided in an embodiment of the present invention;
Fig. 3 is the automatic interface testing method flow chart provided in an embodiment of the present invention that parameter configuration is added and asserts;
Fig. 4 is the module diagram of interface automatic test device provided in an embodiment of the present invention;
Fig. 5 is will to assert setting in Fig. 4 and input the interface automation that parameter configuration is placed on after flow chart is established to survey The module diagram that trial assembly is set.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Covering non-exclusive includes to be not necessarily limited to for example, containing the process, method of a series of steps or units, device, product or equipment Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
In one embodiment of the invention, a kind of automatic interface testing method is provided, referring to Fig. 1, including it is following Process:
S1, the set of interfaces information for obtaining object to be tested.
Technology of the present patent application protection about interface testing, the approach that interface refers to front end and interacts from the background, such as with For the hotel Xie Chengding, front end needs to input destination (such as Shanghai), moves in the parameters such as time, and backstage is returned in this mesh Ground hotel's list.Object to be tested involved in interface include mobile APP, webpage, wechat small routine, wechat public platform, The interface therein such as PC application program, industrial control software, hereinafter referred to as interface or interface node.
Specifically, the set of interfaces information includes that each interface node and the corresponding interface of each interface node describe, The interface description includes input and output parameter, such as: by taking ctrip.com applies as an example, hotel's function is ordered when testing it When, the interface being related to includes inquiry about the hotels interface, hotel's list interface, hotel's order interface, order payment interface.
S2, Interface Flowchart figure is established.
Specifically, according to function to be tested, relevant interface node is arranged in order, and to before in adjacent two interface node The output parameter of one interface node is associated with the foundation of the input parameter of the latter interface node, and specific establishment process is as follows:
It takes the set of the entire interface of software (such as ctrip.com station) and interface description (input is taken to each interface Parameter, output parameter) after, according to software requirement, relevant interface is pressed for some function (such as the hotel Xie Chengding function) Sequential arrangement is organized, then corresponding for describing certain field in the output of a upper interface on its line per interface two-by-two Some parameter in the input of next interface.After handle institute is functional all to be painted, Interface Flowchart figure is just completed.
The case where corresponding to the same previous interface node based on distinct interface node, the distinct interface node was arranged In different individual paths, for example, taking journey homepage interface corresponds to a lot of sub-interface: inquiry about the hotels interface, air ticket inquiry are connect Mouth, train ticket query interface, sight spot admission ticket query interface etc.;
It is third interface based on the previous interface node and second interface node that first interface node is second interface node The case where previous interface node of node, the first interface node, second interface node, third interface node were arranged same In one individual path by taking the above-mentioned interface for ordering hotel's function as an example: for inquiry about the hotels interface, input parameter is querying condition (destination, time, additional conditions etc.), output parameter are the hotel's list inquired under the conditions of this ad hoc inquiry;By institute Input parameter of the hotel's list parameter of inquiry about the hotels interface output as hotel's list interface is stated, user is in hotel's list A certain hotel information of middle selection, then hotel's list interface exports this hotel information as output parameter;By this wine Input parameter of the shop information (including hotel name, moving in date, price etc.) as hotel's order interface, user is in the hotel Order interface selects the means of payment, then hotel's order interface output means of payment and payment amount are as output parameter;It will Input parameter of the output parameter of the above-mentioned means of payment and payment amount as order payment interface finally obtains as shown in Figure 2 Interface Flowchart figure, the name of interface name and input/output parameters is only to illustrate in figure, practical to order in physical layer interface script Subject to name title.
S3, extreme saturation is carried out to the Interface Flowchart figure, completely divided according to from each of traversal start node backward Branch path generates corresponding test code.
It specifically, is actually code engine traversal Interface Flowchart figure using the process that code engine generates test code Process, the test code includes the program being called to each interface node: during traversal, when detecting interface When node, the parameter type and parameter value of the input parameter of preset interface node are obtained, to call the interface node, directly Call interface can calling interface, such as interface getHotelList (String destination), then according to input number According to the Shanghai destination=, getHotelList () is just transmitted data to when operation in this way, so that this interface is triggered, The parameter value of output parameter is obtained, then matching field is joined using the input as next interface node from the output parameter Number has been traversed in path with this from the interface node traversed on the complete individual path of each of start node backward.
S4, the test code is run in test run environment, obtain test result.
Test code is put into test run environment in the form of the template for meeting service condition, the test generation is run Code, obtains test result.The mode of operation includes but is not limited to following two mode:
The cloud method of operation: operation request is sent to cloud, includes object information to be tested in the operation request;Cloud Server is requested according to the operation, obtains test code corresponding with the object information to be tested, and by the test generation The service requirement that test environment in cloud is complied with into project template is piled up, for example, by the test code copies to specified ground Under the file of location, and the source profile of the object to be tested is called, according to the source profile, by the project mould Parameter in plate is filled automatically, completes filled to include that the project template of test code can be put into the test in cloud It runs, is received based on the test knot for running and running the test code in the test software of request beyond the clouds and obtaining in software Fruit;
Local runtime mode: corresponding test code is downloaded into local computer from cloud, and in the computer The test code is run in test software, before running the test code, also needs to carry out project configuration to it, The mode of configuration is consistent with the test code is put into the operation of project template in the method for operation of cloud, the difference is that, It is to be automatically performed by cloud server, and local runtime mode is completed by operation user in the method for operation of cloud, it is complete for convenience At beyond the clouds while downloading test code, also download items template, source profile and operating instruction together can be according to institutes The configuration of operating instruction finished item is stated, local test environment is put into and is run, obtain test result.It should be noted that if The carrier of the object information to be tested is mobile terminal, then needs first to connect the mobile terminal with local computer.
Wherein, the test software includes but is not limited to JMeter, Postman, the two softwares can be applied to survey Try Android, iOS system, Web or PC interface.
For largely needing for object to be tested, initialization ginseng is also needed to configure before automatic code generating Number inputs parameter and asserts condition, and method flow is as shown in figure 3, below to before generating corresponding test code in step S3 Parameter initialization be illustrated:
Initiation parameter configuration is carried out after obtaining Interface Flowchart figure, the initiation parameter configuration result includes test Interface node is originated, the initiation parameter configuration result is used to realize parameter initialization when generating and testing code, comprising: will The traversal start node is initialized as the test starting interface node, and the test starting interface node can connect to be described Any one interface node in mouth flow chart, it can be seen that the traversal start node can be the root interface of Interface Flowchart figure Node is also possible in Interface Flowchart figure some intermediate (not being the last one) interface node, backward from traversal start node The complete individual path of each, including traverse the last one interface node, it is in one embodiment of the invention, described to connect Mouth flow chart is process tree construction (unidirectional), or in a preferred embodiment of the invention, two in the Interface Flowchart figure Interface node two-way can call, for example user calls wine after selecting a certain hotel information in hotel's list in Fig. 2 Shop order interface can call hotel's order to connect again after calling hotel's order interface by inputting parameter back Mouthful, hotel's order interface is called again after reselecting a hotel information, is time with inquiry about the hotels interface in this case The interface node process gone through under the complete traversal path of start node is that inquiry about the hotels interface → hotel's list interface → hotel orders Single interface → hotel's list interface → hotel's order interface → order payment interface.The traversal start node can choose process Any one intermediate node, so that when increasing a kind of new function and needing to test, without from the beginning again It surveys, and only need to effectively improve testing efficiency from the interface node for increasing new function as traversal start node.It is in the prior art Automatization test system, which cannot achieve, carries out local test only for increased new function, leads to automatic test inefficiency, Test process is tediously long.
In addition to test originates interface node, the initiation parameter configuration result further includes test depth value, the test The Configuration Values of depth value are greater than or equal to using the test of configuration starting interface node as the flow chart longest depth value of starting point, In, depth Configuration Values are equal to using the test of configuration starting interface node as the flow chart longest depth value of starting point, it can be ensured that energy It is enough completely to traverse to test each individual path process that starting interface node plays starting point;If multiple individual paths it Between have in interaction, such as loan App, existing loan transaction process interface, and have reimbursement business process interface, loan transaction and There is interaction between reimbursement business, for example should first provide a loan to refund afterwards, therefore, to the interaction between two individual paths of test Function then needs to be arranged the sum of the depth value that page depth is Liang Tiao branch process.
The input parameter configuration before generating corresponding test code in step S3 is illustrated below:
Input parameter configuration result (referring to fig. 4 and Fig. 5), the input are obtained before or after obtaining Interface Flowchart figure Parameter configuration result includes for the parameter of calling interface node required input, for example in inquiry about the hotels interface, what is needed to configure is defeated Enter parameter to include hotel name, target cities, move in date and price, can also include screening conditions, for example, house type, area Size rents type etc., for another example in hotel's order interface, needs to be arranged selection entry information, such as selection Article 2 wine Enter order interface in hotel's after the Information of shop.By the corresponding input parameter of pre-set each interface, tested generating In coding process, code engine puts the input parameter setting of user in place, i.e., by above-mentioned input parameter configuration knot Fruit is assigned to the input param elements at the interface node of respective calls in order to be accomplished to the input parameter of next interface node Matching.
Assert that configuration is illustrated to before generating corresponding test code in step S3 below:
Assert setting (referring to fig. 4 and Fig. 5) before or after obtaining Interface Flowchart figure, it is described to assert setting result For to desired value set by certain field in the output parameter exported after calling the corresponding interface node;Generating coding process In, a certain interface node of configuration is asserted for being preset with, after calling to the interface node, reference predicate operations are asserted Judgement, such as inquiry about the hotels interface, if it is 14 days 2 months 15 days -2 months, Beijing, Four Seasons Hotel that it, which inputs parameter, In automatically generating test coding process, can from the list table for transferring hotel's list interface from the background, according to the configuration of list table it is found that List first, which is classified as, moves in temporal information, and second is classified as departure time information, and third is classified as hotel's address information, and the 4th is classified as wine Shop name information, then asserting for being inserted into the test code judge whether can be equal to judge the first train value of list table Whether " 02-14 ", the second train value are equal to " 02-15 ", or judge whether the 4th train value is equal to " Four Seasons Hotel ", if it is not, then Assertfail, the case where as a kind of failure testing example.
The test result includes the test report of written form, includes that test crash example situation is said in the test report It is bright, such as interface call error and/or the case where assert misjudgment, corresponding fail label is clicked the fail label, is then gone out Now specifically fail details, preferably shows the field being undesirably worth with highlighted fashion in text report.Except this, the survey Examination report can also include testing performance index as a result, such as testing the initial time that each interface is initiated, when the return of interface Between, the two time difference is the time that interface is spent altogether thus, this time can be used to detect whether it is whole system bottleneck。
In a preferred embodiment of the invention, being partially or fully able to carry out for the Interface Flowchart figure moves, is multiple System, shearing and/or paste operation, this provides biggish convenience when establishing Interface Flowchart figure, reduces repeated work.
Further, it is run described in test run environment in each test case that the test code obtains Procedure information storage is associated with and separated with data information, and effectively shown on product.Not due to process and data point With file stored, orderliness is clear, and tester is very clear, be either related to process or data check or Modification, can significantly improve the working efficiency of tester.
In one embodiment of the invention, a kind of interface automatic test device, referring to fig. 4, described device are provided It comprises the following modules:
Object to be measured module, for obtaining the set of interfaces information of object to be tested, the set of interfaces information includes each A interface node and the corresponding interface description of each interface node, the interface description includes input and output parameter;
Flow chart modules, for relevant interface node being arranged in order, and to adjacent two interface according to function to be tested The output parameter of previous interface node is associated with the foundation of the input parameter of the latter interface node in node, obtains Interface Flowchart Figure;
Code generation module, the parameter type and parameter value of the input parameter for combining preset interface node, to institute It states Interface Flowchart figure and carries out extreme saturation, it is right with it according to being generated from the complete individual path of each of traversal start node backward The test code answered, the test code includes the program being called to each interface node;
It runs module and obtains test result for running the test code in test run environment.
Generally speaking, the test job process of interface automatic test module is as follows: object to be measured module obtains to be tested The set of interfaces information of object, the set of interfaces information include each interface node and the corresponding input ginseng of each interface node Several and output parameter, the information for needing to fill out on the interface node is predetermined to be input parameter, and sets on the interface node It sets and asserts setting;Interface Flowchart figure is established further according to the interface message, a section is then selected in the Interface Flowchart figure Point is test starting interface node, initializes its test depth value;Next traversal flow chart and automatic code generating, it is automatic raw Interface node substantially is traversed using code engine at code, if asserting setting, carries out asserting judgement, if without asserting The input parameter of current interface node is then added in setting in code, after completing input parameter, call this interface and receive return Value, input parameter needed for the value of certain field in the return value pre-set is then matched to next interface node, and adjust With next interface node, up to calling the last one interface node on individual path, (completion asserts judgement accordingly, such as If the fruit interface asserts setting).
It should be understood that interface automatic test device provided by the above embodiment is carrying out interface automatic test When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function With being completed by different functional modules, i.e., the internal structure of interface automatic test device is divided into different functional modules, To complete all or part of the functions described above.In addition, interface automatic test device embodiment provided in this embodiment Belong to same design with automatic interface testing method provided by the above embodiment, specific implementation process is detailed in method implementation Example, which is not described herein again.
In this one embodiment of the present of invention, provide a kind of interface automated test device, including processor and Memory is stored with program in the memory, when the processor executes described program, performs the following operation:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each connects The corresponding interface description of mouth node, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface in adjacent two interface node The output parameter of node is associated with the foundation of the input parameter of the latter interface node, obtains Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, the Interface Flowchart figure is carried out deep Degree traversal generates corresponding test code according to from the complete individual path of each of traversal start node backward, described Testing code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
In one embodiment of the invention, a kind of storage medium is provided, for storing program, described program is being held It is performed the following operation when row:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each connects The corresponding interface description of mouth node, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface in adjacent two interface node The output parameter of node is associated with the foundation of the input parameter of the latter interface node, obtains Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, the Interface Flowchart figure is carried out deep Degree traversal generates corresponding test code according to from the complete individual path of each of traversal start node backward, described Testing code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
It is connect above with respect to the embodiment of interface automated test device and respective storage medium with provided by the above embodiment Mouth automated testing method belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of automatic interface testing method, which comprises the following steps:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each interface section The corresponding interface description of point, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface node in adjacent two interface node The input parameter foundation of output parameter and the latter interface node be associated with, obtain Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, depth time is carried out to the Interface Flowchart figure It goes through, generates corresponding test code, the test according to from the complete individual path of each of traversal start node backward Code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
2. automatic interface testing method according to claim 1, which is characterized in that the method also includes connecing in acquisition It is obtained before or after mouth flow chart and asserts setting as a result, described assert that setting result is to export to after calling the corresponding interface node Output parameter setting desired value;
Generating test code includes: the journey that judgement operation is asserted in reference after calling corresponds to and is provided with the interface node of desired value Sequence.
3. automatic interface testing method according to claim 1, which is characterized in that the method also includes being connect Initiation parameter configuration result is obtained after mouth flow chart, the initiation parameter configuration result includes that test originates interface section Point, the initiation parameter configuration result are used to realize parameter initialization when generating and testing code, comprising: traverse described Beginning node initializing is that the test originates interface node, and the test starting interface node can be in the Interface Flowchart figure Any one interface node.
4. automatic interface testing method according to claim 3, which is characterized in that the initiation parameter configuration result It further include test depth value, the Configuration Values of the test depth value, which are greater than or equal to, is with the test starting interface node of configuration The flow chart longest depth value of point.
5. automatic interface testing method according to claim 1, which is characterized in that the method also includes connecing in acquisition Input parameter configuration is obtained before or after mouth flow chart as a result, the input parameter configuration result includes for realization calling interface The parameter of node required input;
Generating test code includes: the input parameter being assigned to above-mentioned input parameter configuration result at respective calls interface node Program.
6. automatic interface testing method according to claim 1, which is characterized in that the foundation of the Interface Flowchart figure walks Suddenly include following operation:
The case where corresponding to the same previous interface node based on distinct interface node, the distinct interface node was arranged not In same individual path, and/or
It is third interface node based on the previous interface node and second interface node that first interface node is second interface node Previous interface node the case where, by the first interface node, second interface node, third interface node be arranged at same point In branch path.
7. automatic interface testing method according to claim 6, which is characterized in that the part of the Interface Flowchart figure or All it is able to carry out mobile, duplication, shearing and/or paste operation.
8. automatic interface testing method according to claim 1, which is characterized in that described to be transported in test run environment The step of row test code includes local runtime mode and/or the cloud method of operation, the local runtime mode include: from The test code is downloaded into local computer in cloud, and the test generation is run in the test software in the computer Code, obtains test result;
The cloud method of operation includes: to send operation request to cloud, includes object information to be tested in the operation request; It is requested according to the operation, obtains corresponding test code;It receives and is transported based on described run in the test software of request beyond the clouds The test result that the row test code obtains.
9. automatic interface testing method according to claim 1, which is characterized in that the test report of the test result In include test crash example situation illustrate, the test crash example includes interface call error and/or the feelings for asserting misjudgment Condition.
10. automatic interface testing method according to claim 1, which is characterized in that will be described in test run environment The procedure information in each test case that the middle operation test code obtains is associated with data information and separates storage.
11. a kind of interface automatic test device, which is characterized in that comprise the following modules:
Object to be measured module, for obtaining the set of interfaces information of object to be tested, the set of interfaces information includes each connect Mouth node and the corresponding interface description of each interface node, the interface description includes input and output parameter;
Flow chart modules, for relevant interface node being arranged in order, and to adjacent two interface node according to function to be tested In the input parameter foundation of output parameter and the latter interface node of previous interface node be associated with, obtain Interface Flowchart figure;
Code generation module, the parameter type and parameter value of the input parameter for combining preset interface node, connects to described Mouth flow chart carries out extreme saturation, corresponding according to generating from the complete individual path of each of traversal start node backward Code is tested, the test code includes the program being called to each interface node;
It runs module and obtains test result for running the test code in test run environment.
12. a kind of interface automated test device, including processor and memory, it is stored with program in the memory, It is characterized in that, when the processor executes described program, performs the following operation:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each interface section The corresponding interface description of point, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface node in adjacent two interface node The input parameter foundation of output parameter and the latter interface node be associated with, obtain Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, depth time is carried out to the Interface Flowchart figure It goes through, generates corresponding test code, the test according to from the complete individual path of each of traversal start node backward Code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
13. a kind of storage medium, for storing program, which is characterized in that described program performs the following operation when executed:
The set of interfaces information of object to be tested is obtained, the set of interfaces information includes each interface node and each interface section The corresponding interface description of point, the interface description includes input and output parameter;
According to function to be tested, relevant interface node is arranged in order, and to previous interface node in adjacent two interface node The input parameter foundation of output parameter and the latter interface node be associated with, obtain Interface Flowchart figure;
In conjunction with the parameter type and parameter value of the input parameter of preset interface node, depth time is carried out to the Interface Flowchart figure It goes through, generates corresponding test code, the test according to from the complete individual path of each of traversal start node backward Code includes the program being called to each interface node;
The test code is run in test run environment, obtains test result.
CN201910108589.XA 2019-02-03 2019-02-03 Interface automation test method, test device, test equipment and storage medium Active CN109857667B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910108589.XA CN109857667B (en) 2019-02-03 2019-02-03 Interface automation test method, test device, test equipment and storage medium
PCT/CN2019/118701 WO2020155778A1 (en) 2019-02-03 2019-11-15 Interface automation test method, test apparatus, test device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910108589.XA CN109857667B (en) 2019-02-03 2019-02-03 Interface automation test method, test device, test equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109857667A true CN109857667A (en) 2019-06-07
CN109857667B CN109857667B (en) 2021-10-08

Family

ID=66897663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910108589.XA Active CN109857667B (en) 2019-02-03 2019-02-03 Interface automation test method, test device, test equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109857667B (en)
WO (1) WO2020155778A1 (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110224870A (en) * 2019-06-19 2019-09-10 腾讯云计算(北京)有限责任公司 Interface monitoring method, apparatus calculates equipment and storage medium
CN110297632A (en) * 2019-06-12 2019-10-01 百度在线网络技术(北京)有限公司 Code generating method and device
CN110347590A (en) * 2019-06-18 2019-10-18 平安普惠企业管理有限公司 The interface testing control method and device of operation system
CN110489106A (en) * 2019-07-22 2019-11-22 北京字节跳动网络技术有限公司 A kind of generation method, device, medium and the electronic equipment of project initial code
CN110502429A (en) * 2019-07-10 2019-11-26 平安普惠企业管理有限公司 Management method, device, equipment and the storage medium of test macro
CN110597730A (en) * 2019-09-20 2019-12-20 中国工商银行股份有限公司 Scene method based automatic test case generation method and system
CN110879781A (en) * 2019-11-06 2020-03-13 北京奇艺世纪科技有限公司 Program debugging method and device, electronic equipment and computer readable storage medium
CN110908920A (en) * 2019-12-03 2020-03-24 浪潮商用机器有限公司 Interface function testing method and device and related components
CN111176992A (en) * 2019-12-24 2020-05-19 平安国际智慧城市科技股份有限公司 Method and device for testing process engine, computer equipment and storage medium
WO2020155778A1 (en) * 2019-02-03 2020-08-06 苏州市龙测智能科技有限公司 Interface automation test method, test apparatus, test device and storage medium
CN111797152A (en) * 2020-06-23 2020-10-20 北京自如信息科技有限公司 Data scene generation method and device and computer equipment
CN111881025A (en) * 2020-07-20 2020-11-03 中国工商银行股份有限公司 Automatic test task scheduling method, device and system
CN112015661A (en) * 2020-09-08 2020-12-01 江苏云柜网络技术有限公司 Software testing method and device
CN112416763A (en) * 2020-11-17 2021-02-26 杭州安恒信息技术股份有限公司 Method, device and equipment for automatically testing interface and storage medium
CN112559368A (en) * 2020-12-23 2021-03-26 马上消费金融股份有限公司 Interface automation test method and its use case generation method, equipment and storage medium
CN112685297A (en) * 2020-12-25 2021-04-20 科讯嘉联信息技术有限公司 Automatic testing method for telephone service robot dialect process
CN112905441A (en) * 2019-12-04 2021-06-04 阿里巴巴集团控股有限公司 Test case generation method, test method, device and equipment
CN112988132A (en) * 2021-02-25 2021-06-18 平安科技(深圳)有限公司 Automatic generation method and device of data interface, computer equipment and storage medium
CN113326184A (en) * 2021-05-11 2021-08-31 前海飞算云智软件科技(深圳)有限公司 Interface testing method and device, storage medium and electronic equipment
CN113360300A (en) * 2021-06-29 2021-09-07 平安普惠企业管理有限公司 Interface calling link generation method, device, equipment and readable storage medium
CN113626326A (en) * 2021-08-09 2021-11-09 三峡高科信息技术有限责任公司 Dragging type zero code front end automatic test system based on image recognition
CN113760759A (en) * 2021-09-02 2021-12-07 广东睿住智能科技有限公司 Debugging method, debugging device, electronic device, and storage medium
CN113791984A (en) * 2021-10-28 2021-12-14 建信金融科技有限责任公司 Automatic interface testing method and device
CN115629990A (en) * 2022-11-15 2023-01-20 四川无限智达科技有限公司 Service testing method and device, electronic equipment and storage medium
CN117421253A (en) * 2023-12-19 2024-01-19 深圳市智慧城市科技发展集团有限公司 Interface security test method, device, equipment and storage medium

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897739B (en) * 2020-08-21 2022-04-05 四川长虹电器股份有限公司 Test case generation method based on optimized depth-first algorithm
CN112162915A (en) * 2020-08-27 2021-01-01 杭州大搜车汽车服务有限公司 Test data generation method, device, equipment and storage medium
CN112148601A (en) * 2020-09-16 2020-12-29 京东数字科技控股股份有限公司 Interface testing method and device, electronic equipment and storage medium
CN112052182A (en) * 2020-09-27 2020-12-08 平安信托有限责任公司 Interface automation test method and device, computer equipment and storage medium
CN112131127B (en) * 2020-09-28 2024-04-16 北京同邦卓益科技有限公司 Interface testing method, device and system and electronic equipment
CN112561245A (en) * 2020-11-27 2021-03-26 中广核工程有限公司 Collaborative management method and device, computer equipment and storage medium
CN112559356A (en) * 2020-12-18 2021-03-26 杭州兑吧网络科技有限公司 Automatic software testing method and system
CN112882930B (en) * 2021-02-04 2023-09-26 网易(杭州)网络有限公司 Automatic test method and device, storage medium and electronic equipment
CN113392026B (en) * 2021-07-07 2023-12-19 北京智慧星光信息技术有限公司 Interface automatic test method, system, electronic equipment and storage medium
CN113641747B (en) * 2021-10-15 2022-03-18 北京新氧科技有限公司 Method, device and system for accessing postman tool to database
CN113836045A (en) * 2021-11-29 2021-12-24 深圳市明源云链互联网科技有限公司 Logic generation method and device for interface automation assertion and storage medium
CN114168486A (en) * 2021-12-27 2022-03-11 深圳前海微众银行股份有限公司 Interface automation test method, device, medium, device, and program
CN115391231B (en) * 2022-10-26 2023-02-07 江苏北弓智能科技有限公司 Automatic interface testing method
CN117130946B (en) * 2023-10-27 2024-01-26 北京世冠金洋科技发展有限公司 Test scene generation method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915242A (en) * 2012-09-26 2013-02-06 北京广利核系统工程有限公司 Method for implementing code programming by graphical operations
CN103235759A (en) * 2013-05-15 2013-08-07 百度在线网络技术(北京)有限公司 Method and device for generating test cases
CN106528418A (en) * 2016-10-28 2017-03-22 广东浪潮大数据研究有限公司 Test method and device
CN106776349A (en) * 2017-02-07 2017-05-31 武汉斗鱼网络科技有限公司 A kind of method to set up and system of interface testing process
CN107608882A (en) * 2017-09-08 2018-01-19 天津津航计算技术研究所 A kind of software test case automatic generating method
CN108549605A (en) * 2018-04-13 2018-09-18 郑州云海信息技术有限公司 A kind of automated testing method
US10162740B1 (en) * 2017-11-07 2018-12-25 Fmr Llc Automated intelligent execution of computer software test cases

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414836A (en) * 1993-09-29 1995-05-09 International Business Machines Corporation Software testing system that employs a graphical interface to generate test cases configured as hybrid tree structures
CN101471826B (en) * 2007-12-27 2012-12-12 华为技术有限公司 Test method and device for command line interface
US20150286555A1 (en) * 2014-04-08 2015-10-08 M/S. Cigniti Technologies Limited System and method for converting the business processes to test-centric activity diagrams
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system
CN107066382B (en) * 2017-03-09 2021-01-26 北京航空航天大学 Model-based spacecraft system automatic testing method
CN107741911A (en) * 2017-11-01 2018-02-27 广州爱九游信息技术有限公司 Interface test method, device, client and computer-readable recording medium
CN109857667B (en) * 2019-02-03 2021-10-08 苏州市龙测智能科技有限公司 Interface automation test method, test device, test equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915242A (en) * 2012-09-26 2013-02-06 北京广利核系统工程有限公司 Method for implementing code programming by graphical operations
CN103235759A (en) * 2013-05-15 2013-08-07 百度在线网络技术(北京)有限公司 Method and device for generating test cases
CN106528418A (en) * 2016-10-28 2017-03-22 广东浪潮大数据研究有限公司 Test method and device
CN106776349A (en) * 2017-02-07 2017-05-31 武汉斗鱼网络科技有限公司 A kind of method to set up and system of interface testing process
CN107608882A (en) * 2017-09-08 2018-01-19 天津津航计算技术研究所 A kind of software test case automatic generating method
US10162740B1 (en) * 2017-11-07 2018-12-25 Fmr Llc Automated intelligent execution of computer software test cases
CN108549605A (en) * 2018-04-13 2018-09-18 郑州云海信息技术有限公司 A kind of automated testing method

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020155778A1 (en) * 2019-02-03 2020-08-06 苏州市龙测智能科技有限公司 Interface automation test method, test apparatus, test device and storage medium
CN110297632A (en) * 2019-06-12 2019-10-01 百度在线网络技术(北京)有限公司 Code generating method and device
CN110347590A (en) * 2019-06-18 2019-10-18 平安普惠企业管理有限公司 The interface testing control method and device of operation system
CN110224870B (en) * 2019-06-19 2023-03-24 腾讯云计算(北京)有限责任公司 Interface monitoring method and device, computing equipment and storage medium
CN110224870A (en) * 2019-06-19 2019-09-10 腾讯云计算(北京)有限责任公司 Interface monitoring method, apparatus calculates equipment and storage medium
CN110502429A (en) * 2019-07-10 2019-11-26 平安普惠企业管理有限公司 Management method, device, equipment and the storage medium of test macro
CN110489106A (en) * 2019-07-22 2019-11-22 北京字节跳动网络技术有限公司 A kind of generation method, device, medium and the electronic equipment of project initial code
CN110597730A (en) * 2019-09-20 2019-12-20 中国工商银行股份有限公司 Scene method based automatic test case generation method and system
CN110597730B (en) * 2019-09-20 2023-08-22 中国工商银行股份有限公司 Automatic test case generation method and system based on scene method
CN110879781A (en) * 2019-11-06 2020-03-13 北京奇艺世纪科技有限公司 Program debugging method and device, electronic equipment and computer readable storage medium
CN110879781B (en) * 2019-11-06 2023-10-03 北京奇艺世纪科技有限公司 Program debugging method, device, electronic equipment and computer readable storage medium
CN110908920A (en) * 2019-12-03 2020-03-24 浪潮商用机器有限公司 Interface function testing method and device and related components
CN112905441A (en) * 2019-12-04 2021-06-04 阿里巴巴集团控股有限公司 Test case generation method, test method, device and equipment
CN111176992B (en) * 2019-12-24 2023-06-06 平安国际智慧城市科技股份有限公司 Flow engine testing method and device, computer equipment and storage medium
CN111176992A (en) * 2019-12-24 2020-05-19 平安国际智慧城市科技股份有限公司 Method and device for testing process engine, computer equipment and storage medium
CN111797152B (en) * 2020-06-23 2024-03-19 北京自如信息科技有限公司 Data scene generation method and device and computer equipment
CN111797152A (en) * 2020-06-23 2020-10-20 北京自如信息科技有限公司 Data scene generation method and device and computer equipment
CN111881025B (en) * 2020-07-20 2023-08-04 中国工商银行股份有限公司 Automatic test task scheduling method, device and system
CN111881025A (en) * 2020-07-20 2020-11-03 中国工商银行股份有限公司 Automatic test task scheduling method, device and system
CN112015661B (en) * 2020-09-08 2023-10-03 南京云柜网络科技有限公司 Software testing method and device
CN112015661A (en) * 2020-09-08 2020-12-01 江苏云柜网络技术有限公司 Software testing method and device
CN112416763A (en) * 2020-11-17 2021-02-26 杭州安恒信息技术股份有限公司 Method, device and equipment for automatically testing interface and storage medium
CN112559368A (en) * 2020-12-23 2021-03-26 马上消费金融股份有限公司 Interface automation test method and its use case generation method, equipment and storage medium
CN112685297A (en) * 2020-12-25 2021-04-20 科讯嘉联信息技术有限公司 Automatic testing method for telephone service robot dialect process
CN112988132A (en) * 2021-02-25 2021-06-18 平安科技(深圳)有限公司 Automatic generation method and device of data interface, computer equipment and storage medium
CN113326184A (en) * 2021-05-11 2021-08-31 前海飞算云智软件科技(深圳)有限公司 Interface testing method and device, storage medium and electronic equipment
CN113326184B (en) * 2021-05-11 2022-05-17 前海飞算云智软件科技(深圳)有限公司 Interface testing method and device, storage medium and electronic equipment
CN113360300B (en) * 2021-06-29 2023-10-24 北京思普艾斯科技有限公司 Interface call link generation method, device, equipment and readable storage medium
CN113360300A (en) * 2021-06-29 2021-09-07 平安普惠企业管理有限公司 Interface calling link generation method, device, equipment and readable storage medium
CN113626326A (en) * 2021-08-09 2021-11-09 三峡高科信息技术有限责任公司 Dragging type zero code front end automatic test system based on image recognition
CN113760759A (en) * 2021-09-02 2021-12-07 广东睿住智能科技有限公司 Debugging method, debugging device, electronic device, and storage medium
CN113791984B (en) * 2021-10-28 2023-06-09 建信金融科技有限责任公司 Automatic interface testing method and device
CN113791984A (en) * 2021-10-28 2021-12-14 建信金融科技有限责任公司 Automatic interface testing method and device
CN115629990A (en) * 2022-11-15 2023-01-20 四川无限智达科技有限公司 Service testing method and device, electronic equipment and storage medium
CN117421253A (en) * 2023-12-19 2024-01-19 深圳市智慧城市科技发展集团有限公司 Interface security test method, device, equipment and storage medium
CN117421253B (en) * 2023-12-19 2024-04-02 深圳市智慧城市科技发展集团有限公司 Interface security test method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109857667B (en) 2021-10-08
WO2020155778A1 (en) 2020-08-06

Similar Documents

Publication Publication Date Title
CN109857667A (en) Automatic interface testing method, test device, test equipment and storage medium
CN109857668A (en) UI automated function test method, test device, test equipment and storage medium
CN106095673A (en) Automated testing method based on WEB interface and system
CN110321281A (en) Web test platform and test method based on mixing automated test frame
CN107203424A (en) A kind of method and apparatus that deep learning operation is dispatched in distributed type assemblies
CN106302008A (en) Data-updating method and device
CN106067080A (en) Configurable workflow capabilities is provided
CN105989450A (en) Automated, accelerated prototype generation system
CN106796597A (en) Automatic intelligent data grabber and checking
CN106951369A (en) The management method and device of a kind of joint debugging test
CN109087121A (en) Marketing message release platform construction method and device
US10789277B2 (en) Systems methods, and apparatuses for creating, linking and discovering business navigation maps for analyzing data
CN106408435A (en) Process compiling system and process compiling method
CN109242288A (en) Performance data matching process and system
CN111782317A (en) Page testing method and device, storage medium and electronic device
CN107169668A (en) A kind of data processing method, apparatus and system
CN106294825A (en) A kind of excel data managing method and system, client, service end
CN110196800A (en) Distributed transaction test method, apparatus and system
CN107273112A (en) A kind of present list method for information display and device
CN110019207A (en) Data processing method and device and script display methods and device
CN111984882A (en) Data processing method, system and equipment
CN107392714A (en) Order cut-in method, server and system
CN105450501B (en) The method and device for customizing recovery function is set
CN109783164A (en) Method and apparatus for calculating equipment and operation, reconstitution experiments
CN101976196B (en) Quality of service oriented code automatic code generating method

Legal Events

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