CN106649078A - Application interface testing method and device - Google Patents

Application interface testing method and device Download PDF

Info

Publication number
CN106649078A
CN106649078A CN201510733056.2A CN201510733056A CN106649078A CN 106649078 A CN106649078 A CN 106649078A CN 201510733056 A CN201510733056 A CN 201510733056A CN 106649078 A CN106649078 A CN 106649078A
Authority
CN
China
Prior art keywords
parameter
original
current
structured data
current method
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
CN201510733056.2A
Other languages
Chinese (zh)
Other versions
CN106649078B (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.)
Alibaba Singapore Holdings Pte Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510733056.2A priority Critical patent/CN106649078B/en
Publication of CN106649078A publication Critical patent/CN106649078A/en
Application granted granted Critical
Publication of CN106649078B publication Critical patent/CN106649078B/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/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3692Test management for test results analysis

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 invention discloses an application interface testing method and device. The method belongs to the technical field of network, and comprises the steps of determining an application interface to be tested and methods which the interface contains; conducting recursive solution on each original entrance parameter of each method to obtain a construction data template of the original entrance parameter of the corresponding method; besides, conducting recursive solution on each original exit parameter of each method to obtain a construction data template of the original exit parameter of the corresponding method; determining whether the corresponding method is normal nor not according to the construction data template of the original exit parameter and the construction data template of the original entrance parameter of each method; determining whether each method which the application interface to be tested contains is normal or not; if each method which the application interface to be tested contains is normal, then the application interface to be tested is normal. According to the application interface testing method and device, the workload is reduced greatly, and the testing efficiency is improved.

Description

Application interface method of testing and device
Technical field
The application is related to networking technology area, more particularly to a kind of application interface method of testing and system.
Background technology
Remote procedure call (Remote Procedure Call, RPC) agreement is a kind of network that passes through from remote computer journey Request service in sequence, the agreement without understanding underlying network technology.RPC frameworks generally adopt client or server mode, Requestor is exactly a client, and service providing program is exactly a server.It is to be based between client and server Application interface realizes communication, therefore, in order to ensure the proper communication between client and server, it is necessary to RPC frames Each application interface in frame is tested.
According to related application interface method of testing, technical staff is needed to write special code, then server runs the generation Whether code is normal to test each application interface.Due to needing technical staff to write special code, not only workload it is huge and And testing efficiency is relatively low.
The content of the invention
The embodiment of the present application provides a kind of application interface method of testing and device, to solve workload present in correlation technique The relatively low problem of huge and testing efficiency.
According to the embodiment of the present application, there is provided a kind of application interface method of testing, including:
Determine application interface to be tested and its including method;
Each original suction parameter of recursion resolution each method, obtains the structure number of the original suction parameter of correspondence of corresponding method According to template;And, the original outlet parameter of recursion resolution each method obtains the structure of the original outlet parameter of corresponding method Data template;
It is true according to the structured data template of the original outlet parameter of each method and the structured data template of each original suction parameter Whether normal determine corresponding method;
Determine whether each method that the application interface to be tested includes is normal;
If each method that the application interface to be tested includes is normal, it is determined that the application interface to be tested is normal.
Specifically, determine application interface to be tested and its including method, specifically include:
Parse all of alternative application interface and its including method and show;
The alternative application interface that receive user is selected, obtains application interface to be tested;
Obtain the method that the application interface to be tested includes.
Specifically, each original suction parameter of each method of recursion resolution, obtains the original suction parameter of correspondence of corresponding method Structured data template, specifically include:
Each the original suction parameter for each method included for the application interface to be tested is performed:
Obtain the current original suction parameter of current method;
The current original suction parameter is successively parsed using at least two parameter type identifiers for pre-setting, until parsing Go out the base data type that the current original suction parameter includes;
Base data type that the described current original suction parameter that record is parsed includes and its between incidence relation, obtain The structured data template of the current original suction parameter;
The original outlet parameter of recursion resolution each method, obtains the structured data template of the original outlet parameter of corresponding method, Specifically include:
The original outlet parameter of each method included for the application interface to be tested is performed:
Obtain the original outlet parameter of current method;
The original outlet parameter is successively parsed using at least two parameter types identifier, it is described original until parsing The base data type that outlet parameter includes;
Base data type that the described original outlet parameter that parses of record includes and its between incidence relation, obtain described The structured data template of original outlet parameter.
Specifically, according to the structured data template and the structure number of each original suction parameter of the original outlet parameter of each method Determine whether corresponding method is normal, specifically includes according to template:
Each method included for the application interface to be tested is performed:
Obtain the expectation of the base data type that the structured data template of each original suction parameter of the current method includes Value, the base data type included according to the structured data template of each original suction parameter of the current method and its expectation Value generates respectively each call entry parameter of the current method;And,
Obtain the desired value of the base data type that the structured data template of the original outlet parameter of the current method includes, root The base data type included according to the structured data template of the original outlet parameter of the current method and its desired value generate described Current method calls outlet parameter;
The current method according to each call entry parameter call of the current method, obtains the calculating of the current method Outlet parameter;
Determine the current method calculate outlet parameter and the current method call outlet parameter whether consistent;
If the calculating outlet parameter of the current method calls outlet parameter consistent with the current method, it is determined that described to work as Front method is normal.
Specifically, the base data type for being included according to the structured data template of each original suction parameter of the current method And its desired value generates respectively each call entry parameter of the current method, specifically includes:
Build the current method calls engineering;
Engineering is called by the structured data template of each original suction parameter of the current method based on the current method Including the desired value of base data type bring into the structured data template of the original suction parameter of correspondence of the current method;
Each call entry ginseng of the current method is generated respectively using at least two parameter type makers for pre-setting Number;
The base data type included according to the structured data template of the original outlet parameter of the current method and its desired value are given birth to Outlet parameter is called into the current method, is specifically included:
The structured data template of the original outlet parameter of the current method is included based on the engineering of calling of the current method Base data type the desired value original outlet parameter of bringing the current method into structured data template in;
Outlet parameter is called using at least two parameter types maker generation current method.
Optionally, also include:
If at least one method exception that the application interface to be tested includes, it is determined that the interface exception to be tested.
According to the embodiment of the present application, a kind of application interface test device is also provided, including:
First determining unit, for determine application interface to be tested and its including method;
Resolution unit, for each original suction parameter of each method of recursion resolution, obtain corresponding method correspondence it is original enter The structured data template of mouth parameter;And, the original outlet parameter of recursion resolution each method obtains the original of corresponding method The structured data template of outlet parameter;
Second determining unit, for according to the structured data template of the original outlet parameter of each method and each original entrance ginseng Several structured data templates determines whether corresponding method is normal;
Whether the 3rd determining unit is normal for determining each method that the application interface to be tested includes;If described treat Each method that test application interface includes is normal, it is determined that the application interface to be tested is normal.
Specifically, first determining unit, for determine application interface to be tested and its including method, specifically for:
Parse all of alternative application interface and its including method and show;
The alternative application interface that receive user is selected, obtains application interface to be tested;
Obtain the method that the application interface to be tested includes.
Specifically, the resolution unit, for each original suction parameter of each method of recursion resolution, obtains corresponding method The original suction parameter of correspondence structured data template, specifically for:
Each the original suction parameter for each method included for the application interface to be tested is performed:
Obtain the current original suction parameter of current method;
The current original suction parameter is successively parsed using at least two parameter type identifiers for pre-setting, until parsing Go out the base data type that the current original suction parameter includes;
Base data type that the described current original suction parameter that record is parsed includes and its between incidence relation, obtain The structured data template of the current original suction parameter;
The resolution unit, for the original outlet parameter of each method of recursion resolution, obtains the original outlet ginseng of corresponding method Several structured data templates, specifically for:
The original outlet parameter of each method included for the application interface to be tested is performed:
Obtain the original outlet parameter of current method;
The original outlet parameter is successively parsed using at least two parameter types identifier, it is described original until parsing The base data type that outlet parameter includes;
Base data type that the described original outlet parameter that parses of record includes and its between incidence relation, obtain described The structured data template of original outlet parameter.
Specifically, second determining unit, for according to the structured data template of the original outlet parameter of each method and often The structured data template of individual original suction parameter determines whether corresponding method is normal, specifically for:
Each method included for the application interface to be tested is performed:
Obtain the expectation of the base data type that the structured data template of each original suction parameter of the current method includes Value, the base data type included according to the structured data template of each original suction parameter of the current method and its expectation Value generates respectively each call entry parameter of the current method;And,
Obtain the desired value of the base data type that the structured data template of the original outlet parameter of the current method includes, root The base data type included according to the structured data template of the original outlet parameter of the current method and its desired value generate described Current method calls outlet parameter;
The current method according to each call entry parameter call of the current method, obtains the calculating of the current method Outlet parameter;
Determine the current method calculate outlet parameter and the current method call outlet parameter whether consistent;
If the calculating outlet parameter of the current method calls outlet parameter consistent with the current method, it is determined that described to work as Front method is normal.
Specifically, second determining unit, for according to the structured data of each original suction parameter of the current method The base data type and its desired value that template includes generates respectively each call entry parameter of the current method, concrete to use In:
Build the current method calls engineering;
Engineering is called by the structured data template of each original suction parameter of the current method based on the current method Including the desired value of base data type bring into the structured data template of the original suction parameter of correspondence of the current method;
Each call entry ginseng of the current method is generated respectively using at least two parameter type makers for pre-setting Number;
Second determining unit, for the base included according to the structured data template of the original outlet parameter of the current method What plinth data type and its desired value generated the current method calls outlet parameter, specifically for:
The structured data template of the original outlet parameter of the current method is included based on the engineering of calling of the current method Base data type the desired value original outlet parameter of bringing the current method into structured data template in;
Outlet parameter is called using at least two parameter types maker generation current method.
Optionally, the 3rd determining unit, is additionally operable to:
If at least one method exception that the application interface to be tested includes, it is determined that the interface exception to be tested.
The embodiment of the present application provides a kind of application interface method of testing and device, determine application interface to be tested and its including side Method;Each original suction parameter of recursion resolution each method, obtains the structure number of the original suction parameter of correspondence of corresponding method According to template;And, the original outlet parameter of recursion resolution each method obtains the structure of the original outlet parameter of corresponding method Data template;According to the structured data template and the structured data of each original suction parameter of the original outlet parameter of each method Template determines whether corresponding method is normal;Determine whether each method that the application interface to be tested includes is normal;If institute State each method that application interface to be tested includes normal, it is determined that the application interface to be tested is normal.In the program, When whether test application interface to be tested is normal, the structured data template of the original outlet parameter of each method can be first obtained With the structured data template of each original suction parameter, then according to the structured data template of the original outlet parameter of each method Determine whether corresponding method is normal, finally determines that application interface to be tested is with the structured data template of each original suction parameter It is no normal, special code need not be write in whole process, so as to greatly reduce workload, and improve testing efficiency.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, the application's Schematic description and description does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow chart of application interface method of testing in the embodiment of the present application;
Fig. 2 is the flow chart of S11 in the embodiment of the present application;
Fig. 3 is the flow chart of S12 in the embodiment of the present application;
Fig. 4 is the flow chart of S13 in the embodiment of the present application;
Fig. 5 is the flow chart of another kind of application interface method of testing in the embodiment of the present application;
Fig. 6 is a kind of structural representation of application interface test device in the embodiment of the present application.
Specific embodiment
In order that technical problems to be solved in this application, technical scheme and beneficial effect are clearer, clear, below in conjunction with Drawings and Examples, are further elaborated to the application.It should be appreciated that specific embodiment described herein is only To explain the application, it is not used to limit the application.
In order to solve the problems, such as that workload present in correlation technique is huge and testing efficiency is relatively low, the embodiment of the present application provides one Application interface method of testing is planted, the flow process of the method is as shown in figure 1, comprise the steps:
S11:Determine application interface to be tested and its including method.
There may be multiple application interfaces for needing and testing in RPC frameworks, the application interface for being currently needed for testing connects for application to be tested Mouthful;Each application interface generally comprises multiple methods, only when each method that application interface includes is normal, could be really The fixed application interface is normal, therefore, it is also desirable to determine the method that application interface to be tested includes first.
S12:Each original suction parameter of recursion resolution each method, obtains the knot of the original suction parameter of correspondence of corresponding method Structure data template;And, the original outlet parameter of recursion resolution each method obtains the original outlet parameter of corresponding method Structured data template.
The method that application interface to be tested includes has multiple original suction parameters and an original outlet parameter, original outlet ginseng Number and each original suction parameter are tree structures, it is therefore possible to use the mode deep analysis of recursion resolution each methods Original outlet parameter and each original suction parameter, obtain the structured data template of the original outlet parameter of corresponding method and every The structured data template of individual original suction parameter.
S13:According to the structured data template and the structured data mould of each original suction parameter of the original outlet parameter of each method Plate determines whether corresponding method is normal.
S14:Determine whether each method that application interface to be tested includes normal, if application interface to be tested include each Method is all normal, then perform S15;If at least one method exception that interface to be tested includes, performs S16.
S15:Determine that application interface to be tested is normal.
S16:Determine application interface exception to be tested.
In the program, when whether test application interface to be tested is normal, the original outlet parameter of each method can be first obtained Structured data template and each original suction parameter structured data template, then according to the original outlet parameter of each method Structured data template and the structured data template of each original suction parameter determine that corresponding method is whether normal, it is final determine treat Whether test application interface is normal, and special code need not be write in whole process, so as to greatly reduce workload, and Improve testing efficiency.
Each step in above-mentioned application interface method of testing is described in detail below.
Optionally, in above-mentioned S11 determination application interface to be tested and its including method realize process, as shown in Fig. 2 Specifically include:
S111:Parse all of alternative application interface and its including method and show.
Many application interfaces are generally included in RPC frameworks, each application interface includes many methods, it is therefore desirable to solve first Separate out in RPC frameworks the method that includes of all of alternative application interface and each alternative application interface and show, so that user enters Row is selected.
For different types of alternative application interface, the mode of parsing may be different, below with alternative application interface as HSF Illustrate as a example by interface:The Maven for obtaining the side storehouse of interface two is relied on, the class.path (ClassPath) that all Maven are relied on Be injected into the Classloader (ClassLoader) of current thread, obtain alternative application interface and its including method and show.
S112:The alternative application interface that receive user is selected, obtains application interface to be tested.
User can select the alternative application interface for needing test as application to be tested from all alternative application interfaces for showing Interface.
S113:Obtain the method that application interface to be tested includes.
After application interface to be tested is obtained, the side that the application interface to be tested includes can be obtained from the analysis result of S111 Method, so as to realize S11 in determination application interface to be tested and its including method.
Specifically, each original suction parameter of recursion resolution each method in S12, obtain corresponding method correspondence it is original enter The structured data template of mouthful parameter realizes process, as shown in figure 3, each method included for application interface to be tested Each original suction parameter is performed:
S121:Obtain the current original suction parameter of current method.
Because each application interface would generally include multiple methods, and each method has multiple original suction parameters, therefore needs Will each method that one by one recursion resolution application interface to be tested includes each original suction parameter, the side for currently parsing The original suction parameter of method is the current original suction parameter of current method.
S122:Current original suction parameter is successively parsed using at least two parameter type identifiers for pre-setting, until solution Separate out the base data type that current original suction parameter includes.
When the type of application interface to be tested is different, the parameter type identifier for pre-setting is also different, for example, when to be tested When application interface is HSF interfaces, the parameter type identifier for pre-setting can be 5, respectively Java basic datas class Type processor, List type processors, Map type processors, Array type processors and DTO type processors.
Because current original suction parameter is tree structure, therefore at least two parameter types identification for pre-setting can be adopted The device successively current original suction parameter of deep analysis, the base data type included until parsing current original suction parameter is Only, the parsing of current original suction parameter is completed.
S123:Base data type that the current original suction parameter that parses of record includes and its between incidence relation, obtain To the structured data template of current original suction parameter.
The base data type that current original suction parameter includes is parsed in S122, has been led between these base data types It is often relevant, in this step, can records in the structured data template of current original suction parameter current former Incidence relation between base data type that beginning suction parameter includes and these base data types.
One original suction parameter of parsing is realized through S121-S123, can be repeated for different original suction parameters S121-S123, the structured data mould of each the original suction parameter until obtaining each method that application interface to be tested includes Plate.Current original suction parameter, nothing are successively parsed in S121-S123 using at least two parameter type identifiers for pre-setting Special code need to be write, so as to reducing workload and lifting testing efficiency.
Correspondingly, the original outlet parameter of recursion resolution each method in above-mentioned S12, obtains the original outlet of corresponding method The structured data template of parameter realizes process, and the original outlet parameter of each method included for application interface to be tested holds OK:Obtain the original outlet parameter of current method;Original outlet parameter is successively parsed using at least two parameter type identifiers, Until parsing the base data type that original outlet parameter includes;The basic data that the original outlet parameter for parsing is included Type and its between incidence relation as original outlet parameter structured data template.
The method and the method for original suction parameter for parsing original outlet parameter is identical, detailed process referring to S121-S123, Here repeat no more.
Optionally, the structured data template of the original outlet parameter according to each method in above-mentioned S13 and each original entrance The structured data template of parameter determines whether corresponding method normally realizes process, as shown in figure 4, connecing for application to be tested Each method that mouth includes is performed:
S131:Obtain the expectation of the base data type that the structured data template of each original suction parameter of current method includes Value, the base data type included according to the structured data template of each original suction parameter of current method and its desired value point Not Sheng Cheng current method each call entry parameter.
The base data type that the structured data template of each the original suction parameter that can provide current method by user includes Desired value, for example, base data type can be color, size, style, fabric etc., and corresponding desired value is respectively Redness, L, Korea Spro's version, cotton etc., the base for then being included according to the structured data template of each original suction parameter of current method Plinth data type and its desired value generate respectively each call entry parameter of current method.Original suction parameter and call entry Parameter is one-to-one relation, and each original suction parameter can generate a call entry parameter.
S132:The desired value of the base data type that the structured data template of the original outlet parameter of current method includes is obtained, The base data type included according to the structured data template of the original outlet parameter of current method and its desired value are generated works as front Method calls outlet parameter.
The expectation of the base data type that the structured data template of the original outlet parameter that can provide current method by user includes Value, for example, base data type can for color, size, style, fabric etc., corresponding desired value be respectively it is red, L, Korea Spro's version, cotton etc., the base data type for then being included according to the structured data template of the original outlet parameter of current method And its desired value generates respectively the outlet parameter that calls of current method, original outlet parameter is with to call outlet parameter be to correspond Relation.
S133:According to each call entry parameter call current method of current method, the calculating outlet ginseng of current method is obtained Number.
S134:Determine current method calculate outlet parameter and current method call outlet parameter whether consistent, if working as front The calculating outlet parameter of method calls outlet parameter consistent with current method, then perform S135;If current method calculates meal Call outlet parameter inconsistent with current method, then perform S136.
S135:Determine that current method is normal.
S136:Determine current method exception.
After according to the call entry parameter call current method of current method, the calculating outlet parameter of current method is obtained, then The outlet parameter that calls of current method is compared with outlet parameter is calculated, if the two is consistent, illustrates that current method is just Normal;Conversely, then illustrating that current method is abnormal.Realize determining whether current method is normal through S131-S136, should During without writing special code, so as to reducing workload and lifting testing efficiency.
Wherein, the base data type for being included according to the structured data template of each original suction parameter of current method and its phase Prestige value generates respectively each call entry parameter of current method, specifically includes:Build current method calls engineering;It is based on Current method calls the basic data class that engineering includes the structured data template of each original suction parameter of current method The desired value of type is brought into the structured data template of the original suction parameter of correspondence of current method;Using at least two for pre-setting Individual parameter type maker generates respectively each call entry parameter of current method.
For different types of alternative application interface, the mode of engineering of calling for building current method may be different, below Illustrate so that alternative application interface is for HSF interfaces as an example:The Maven engineerings called for application interface are initialized, is generated For the XML file that application interface is called, the Java code template called for application interface is generated, so as to obtain working as front Method calls engineering.
When the type of application interface to be tested is different, the parameter type maker for pre-setting is also different, for example, when to be tested When application interface is HSF interfaces, the parameter type maker for pre-setting can be 5, respectively Java basic datas class Type maker, List type generators, Map type generators, Array type generators and DTO type generators.
Correspondingly, the base data type for being included according to the structured data template of the original outlet parameter of current method and its expectation Value generates current method and calls outlet parameter, specifically includes:Engineering is called by the original of current method based on current method The desired value of the base data type that the structured data template of outlet parameter includes brings the original outlet parameter of current method into In structured data template;Outlet parameter is called using at least two parameter type makers generation current method.The process with The process for generating the call entry parameter of current method is identical, repeats no more here.
The embodiment of the present application also provides another kind of application interface method of testing, and the method can be applied in test RPC frameworks In high performance service framework (High Service Framework, HSF) interface, the flow process of the method is as shown in figure 5, tool Body is comprised the following steps.
S51:The Maven for obtaining the side storehouse of interface two is relied on, and the ClassPath that all Maven are relied on is injected into current thread ClassLoader, obtain alternative HSF interfaces and its including method and show.
Many HSF interfaces are generally included in RPC frameworks, each HSF interface includes many methods, it is therefore desirable to parse first In RPC frameworks all of alternative HSF interfaces and its including method and show, so that user is selected.
S52:The alternative HSF interfaces that receive user is selected, obtain HSF interfaces to be tested.
User can select the alternative HSF interfaces for needing test as HSF to be tested from all alternative HSF interfaces for showing Interface.
S53:Obtain the method that HSF interfaces to be tested include.
After HSF interfaces to be tested are obtained, the side that the HSF interfaces to be tested include can be obtained from the analysis result of S51 Method.
S54:Each the original suction parameter for each method included for HSF interfaces to be tested is performed:Obtain current method Current original suction parameter;Current original suction parameter is successively parsed using the five parameter type identifiers for pre-setting, directly To parsing the base data type that current original suction parameter includes;What the current original suction parameter that record is parsed included Base data type and its between incidence relation, obtain the structured data template of current original suction parameter.
Because each application interface would generally include multiple methods, and each method has multiple original suction parameters, therefore needs Will each method that recursion resolution HSF interfaces to be tested include one by one each original suction parameter, the side for currently parsing The original suction parameter of method is the current original suction parameter of current method.
The five parameter type identifiers for pre-setting be respectively Java base data type processors, List type processors, Map type processors, Array type processors and DTO type processors, can be sequentially allocated current original suction parameter This five parameter type identifiers are given, until obtaining all base data types that current original suction parameter includes.It is detailed below Carefully introduce the processing procedure of each parameter type identifier.
1st, Java base data types processor, recognizes Java base data types, is the terminal of recursion resolution, main bag Include String, Integer, Long, Double, Boolean, Date, BigInteger, BigDecimal and enumerate Type etc..
2nd, List type processors, for completing the parsing of List types, first determine whether out List in current original suction parameter Particular type, then such as ArrayList, HashSet etc. judge the data type loaded in the List, if dress The data type of load is List, then continue to parse, if the data type for loading is not List, passes to other specification type Identifier.
3rd, Map type processors, for completing the parsing (key assignments of Map is Java base data types) of mapping table values type, The particular type of Map in current original suction parameter is first determined whether out, then such as HashMap, TreeMap etc. judge The data type that mapping table values are loaded in the Map, if the data type for loading is Map, continues to parse, if the data for loading Type is not Map, then pass to other specification type identifier.
4th, Array type processors, Array is Java arrays, directly judges that Array is built-in in current original suction parameter The data type of load, if the data type for loading is Array, continues to parse, if the data type for loading is not Array, Then pass to other specification type identifier.
5th, DTO type processors, for processing the parsing of this class of DTO, parse first current original suction parameter DTO In attributive character field, if field include set and get, continue parse, if field include set and get, Then pass to other specification type identifier.
Because current original suction parameter is tree structure, thus can adopt five parameter type identifiers pre-setting by The current original suction parameter of layer depth parsing, until parsing the base data type that current original suction parameter includes till, Complete the parsing of current original suction parameter.
S55:The original outlet parameter of each method included for HSF interfaces to be tested is performed:Obtain the original of current method Outlet parameter;Original outlet parameter is successively parsed using five parameter type identifiers, until parsing original outlet parameter bag The base data type for including;Base data type that the original outlet parameter for parsing is included and its between incidence relation make For the structured data template of original outlet parameter.
Equally the original outlet parameter of each method can be parsed using above-mentioned five parameter type identifiers, resolving is no longer Repeat.
S54 and S55 do not have strict sequencing, can be set according to actual needs.
S56:Each method included for HSF interfaces to be tested is performed:Obtain each original suction parameter of current method The desired value of the base data type that structured data template includes;Build current method calls engineering;Based on current method Call the desired value of the base data type that engineering includes the structured data template of each original suction parameter of current method In bringing the structured data template of the original suction parameter of correspondence of current method into;Generated using five parameter types for pre-setting Device generates respectively each call entry parameter of current method.
The base data type that the structured data template of each the original suction parameter that can provide current method by user includes Desired value, for example, base data type can be color, size, style, fabric etc., and corresponding desired value is respectively Redness, L, Korea Spro's version, cotton etc., the base for then being included according to the structured data template of each original suction parameter of current method Plinth data type and its desired value generate respectively each call entry parameter of current method.Original suction parameter and call entry Parameter is one-to-one relation, and each original suction parameter can generate a call entry parameter.
The mode of engineering called for building current method is:The Maven engineerings called for application interface are initialized, is generated and is used In the XML file that application interface is called, the Java code template called for application interface is generated, so as to obtain current method Call engineering.
The five parameter type makers for pre-setting be respectively Java base data type makers, List type generators, Map type generators, Array type generators and DTO type generators, are described in detail below each parameter type identifier Processing procedure.
1st, List type generators:Fill in all Java base data types for parsing in first element of List types Desired value, fill in multiple elements can be to fill in after depth first element of duplication.
2nd, Array type generators:Processing mode with List type generators is consistent.
3rd, Map type generators:Mapping table first is filled in all Java bases for parsing in the key values and value of element The desired value of plinth data type, fill in multiple elements can be to fill in after depth duplication mapping table template.
4th, DTO type generators:The desired value of the field parsed in DTO is filled in, if the field is not Java bases Plinth data type, then fill in the desired value of the base data type after the field recursion resolutions.
5th, Java base data types maker:For Integer/Long, String/Char, Boolean, Float/Double, Enumerate, BigInteger, BigDecimal, Date types, user directly fills in corresponding desired value.
What deserves to be explained is, if occurring in that general type node in resolving, need user clearly to specify the general type node Type is implemented, secondary parsing is then carried out, general type node is generated and is realized that the structured data template of type is supplied to user to compile Volume.
S57:Obtain the desired value of the base data type that the structured data template of the original outlet parameter of current method includes, base The base data type that engineering includes the structured data template of the original outlet parameter of current method is called in current method The desired value original outlet parameter of bringing current method into structured data template in;Generated using five parameter type makers Current method calls outlet parameter.
The expectation of the base data type that the structured data template of the original outlet parameter that can provide current method by user includes Value, for example, base data type can for color, size, style, fabric etc., corresponding desired value be respectively it is red, L, Korea Spro's version, cotton etc., the base data type for then being included according to the structured data template of the original outlet parameter of current method And its desired value generates respectively the outlet parameter that calls of current method, original outlet parameter is with to call outlet parameter be to correspond Relation.
S58:According to each call entry parameter call current method of current method, the calculating outlet parameter of current method is obtained; Determine current method calculate outlet parameter and current method call outlet parameter whether consistent, if current method is calculated Mouth parameter calls outlet parameter consistent with current method, it is determined that current method is normal;As current method calculate meal with Current method calls outlet parameter inconsistent, it is determined that current method exception.
S59:Determine whether each method that HSF interfaces to be tested include normal, if HSF interfaces to be tested include each Method is all normal, then perform S58;If at least one method exception that interface to be tested includes, performs S59.
After it is determined that whether all methods of complete HSF interfaces to be tested are normal, S59 can be performed.
S60:Determine that HSF interfaces to be tested are normal.
S61:Determine HSF interfaces exception to be tested.
In the program, when whether test HSF interfaces to be tested are normal, the original outlet parameter of each method can be first obtained Structured data template and each original suction parameter structured data template, then according to the original outlet parameter of each method Structured data template and the structured data template of each original suction parameter determine that corresponding method is whether normal, it is final determine treat Whether test HSF interfaces are normal, and special code need not be write in whole process, so as to greatly reduce workload, and Improve testing efficiency.
Based on same inventive concept, the embodiment of the present application also provides a kind of application interface test device, the device with such as Fig. 1 institutes The application interface method of testing shown is corresponding, and the structure of the device is as shown in 6 figures, including the first determining unit 61, parsing list First 62, second determining unit 63 and the 3rd determining unit 64, wherein:
Above-mentioned first determining unit 61, for determine application interface to be tested and its including method;
Above-mentioned resolution unit 62, for each original suction parameter of each method of recursion resolution, obtains the correspondence of corresponding method The structured data template of original suction parameter;And, the original outlet parameter of recursion resolution each method obtains corresponding method Original outlet parameter structured data template;
Above-mentioned second determining unit 63, for original with each according to the structured data template of the original outlet parameter of each method The structured data template of suction parameter determines whether corresponding method is normal;
Whether above-mentioned 3rd determining unit 64 is normal for determining each method that application interface to be tested includes;If to be measured Each method that examination application interface includes is normal, it is determined that application interface to be tested is normal.
In the program, when whether test application interface to be tested is normal, the original outlet parameter of each method can be first obtained Structured data template and each original suction parameter structured data template, then according to the original outlet parameter of each method Structured data template and the structured data template of each original suction parameter determine that corresponding method is whether normal, it is final determine treat Whether test application interface is normal, and special code need not be write in whole process, so as to greatly reduce workload, and Improve testing efficiency.
Specifically, above-mentioned first determining unit 61, for determine application interface to be tested and its including method, specifically for:
Parse all of alternative application interface and its including method and show;
The alternative application interface that receive user is selected, obtains application interface to be tested;
Obtain the method that application interface to be tested includes.
Specifically, above-mentioned resolution unit 62, for each original suction parameter of each method of recursion resolution, obtains counterparty The structured data template of the original suction parameter of correspondence of method, specifically for:
Each the original suction parameter for each method included for application interface to be tested is performed:
Obtain the current original suction parameter of current method;
Current original suction parameter is successively parsed using at least two parameter type identifiers for pre-setting, is worked as until parsing The base data type that front original suction parameter includes;
Base data type that the current original suction parameter that parses of record includes and its between incidence relation, obtain current The structured data template of original suction parameter;
Above-mentioned resolution unit 62, for the original outlet parameter of each method of recursion resolution, obtains the original outlet of corresponding method The structured data template of parameter, specifically for:
The original outlet parameter of each method included for application interface to be tested is performed:
Obtain the original outlet parameter of current method;
Original outlet parameter is successively parsed using at least two parameter type identifiers, is included until parsing original outlet parameter Base data type;
Base data type that the original outlet parameter that parses of record includes and its between incidence relation, obtain original outlet The structured data template of parameter.
Specifically, above-mentioned second determining unit 63, for according to the structured data template of the original outlet parameter of each method and The structured data template of each original suction parameter determines whether corresponding method is normal, specifically for:
Each method included for application interface to be tested is performed:
Obtain the desired value of the base data type that the structured data template of each original suction parameter of current method includes, root The base data type and its desired value included according to the structured data template of each original suction parameter of current method is generated respectively Each call entry parameter of current method;And,
The desired value of base data type that the structured data template of the original outlet parameter of current method includes is obtained, according to working as Base data type and its desired value that the structured data template of the original outlet parameter of front method includes generate the tune of current method Use outlet parameter;
According to each call entry parameter call current method of current method, the calculating outlet parameter of current method is obtained;
Determine current method calculate outlet parameter and current method call outlet parameter whether consistent;
If the calculating outlet parameter of current method calls outlet parameter consistent with current method, it is determined that current method is normal.
Specifically, above-mentioned second determining unit 63, for according to the structured data mould of each original suction parameter of current method The base data type and its desired value that plate includes generates respectively each call entry parameter of current method, specifically for:
Build current method calls engineering;
The base that engineering includes the structured data template of each original suction parameter of current method is called based on current method The desired value of plinth data type is brought into the structured data template of the original suction parameter of correspondence of current method;
Each call entry parameter of current method is generated respectively using at least two parameter type makers for pre-setting;
Above-mentioned second determining unit 63, for the basis included according to the structured data template of the original outlet parameter of current method What data type and its desired value generated current method calls outlet parameter, specifically for:
The basic number that engineering includes the structured data template of the original outlet parameter of current method is called based on current method In the structured data template of the original outlet parameter for bringing current method into according to the desired value of type;
Outlet parameter is called using at least two parameter type makers generation current method.
Optionally, above-mentioned 3rd determining unit 64, is additionally operable to:
If at least one method exception that application interface to be tested includes, it is determined that interface exception to be tested.
Described above illustrates and describes the preferred embodiment of the application, but as previously mentioned, it should be understood that the application not limits to In form disclosed herein, be not to be taken as the exclusion to other embodiment, and can be used for various other combinations, modification and Environment, and can be changed by the technology or knowledge of above-mentioned teaching or association area in invention contemplated scope described herein It is dynamic.And change that those skilled in the art are carried out and change be without departing from spirit and scope, then all should be appended by the application In scope of the claims.

Claims (12)

1. a kind of application interface method of testing, it is characterised in that include:
Determine application interface to be tested and its including method;
Each original suction parameter of recursion resolution each method, obtains the structure number of the original suction parameter of correspondence of corresponding method According to template;And, the original outlet parameter of recursion resolution each method obtains the structure of the original outlet parameter of corresponding method Data template;
It is true according to the structured data template of the original outlet parameter of each method and the structured data template of each original suction parameter Whether normal determine corresponding method;
Determine whether each method that the application interface to be tested includes is normal;
If each method that the application interface to be tested includes is normal, it is determined that the application interface to be tested is normal.
2. the method for claim 1, it is characterised in that determine application interface to be tested and its including method, tool Body includes:
Parse all of alternative application interface and its including method and show;
The alternative application interface that receive user is selected, obtains application interface to be tested;
Obtain the method that the application interface to be tested includes.
3. the method for claim 1, it is characterised in that each original suction parameter of recursion resolution each method, The structured data template of the original suction parameter of correspondence of corresponding method is obtained, is specifically included:
Each the original suction parameter for each method included for the application interface to be tested is performed:
Obtain the current original suction parameter of current method;
The current original suction parameter is successively parsed using at least two parameter type identifiers for pre-setting, until parsing Go out the base data type that the current original suction parameter includes;
Base data type that the described current original suction parameter that record is parsed includes and its between incidence relation, obtain The structured data template of the current original suction parameter;
The original outlet parameter of recursion resolution each method, obtains the structured data template of the original outlet parameter of corresponding method, Specifically include:
The original outlet parameter of each method included for the application interface to be tested is performed:
Obtain the original outlet parameter of current method;
The original outlet parameter is successively parsed using at least two parameter types identifier, it is described original until parsing The base data type that outlet parameter includes;
Base data type that the described original outlet parameter that parses of record includes and its between incidence relation, obtain described The structured data template of original outlet parameter.
4. method as claimed in claim 3, it is characterised in that according to the structured data of the original outlet parameter of each method The structured data template of template and each original suction parameter determines whether corresponding method is normal, specifically includes:
Each method included for the application interface to be tested is performed:
Obtain the expectation of the base data type that the structured data template of each original suction parameter of the current method includes Value, the base data type included according to the structured data template of each original suction parameter of the current method and its expectation Value generates respectively each call entry parameter of the current method;And,
Obtain the desired value of the base data type that the structured data template of the original outlet parameter of the current method includes, root The base data type included according to the structured data template of the original outlet parameter of the current method and its desired value generate described Current method calls outlet parameter;
The current method according to each call entry parameter call of the current method, obtains the calculating of the current method Outlet parameter;
Determine the current method calculate outlet parameter and the current method call outlet parameter whether consistent;
If the calculating outlet parameter of the current method calls outlet parameter consistent with the current method, it is determined that described to work as Front method is normal.
5. method as claimed in claim 4, it is characterised in that according to each original suction parameter of the current method The base data type and its desired value that structured data template includes generates respectively each call entry ginseng of the current method Number, specifically includes:
Build the current method calls engineering;
Engineering is called by the structured data template of each original suction parameter of the current method based on the current method Including the desired value of base data type bring into the structured data template of the original suction parameter of correspondence of the current method;
Each call entry ginseng of the current method is generated respectively using at least two parameter type makers for pre-setting Number;
The base data type included according to the structured data template of the original outlet parameter of the current method and its desired value are given birth to Outlet parameter is called into the current method, is specifically included:
The structured data template of the original outlet parameter of the current method is included based on the engineering of calling of the current method Base data type the desired value original outlet parameter of bringing the current method into structured data template in;
Outlet parameter is called using at least two parameter types maker generation current method.
6. the method as described in claim 1-5 is arbitrary, it is characterised in that also include:
If at least one method exception that the application interface to be tested includes, it is determined that the interface exception to be tested.
7. a kind of application interface test device, it is characterised in that include:
First determining unit, for determine application interface to be tested and its including method;
Resolution unit, for each original suction parameter of each method of recursion resolution, obtain corresponding method correspondence it is original enter The structured data template of mouth parameter;And, the original outlet parameter of recursion resolution each method obtains the original of corresponding method The structured data template of outlet parameter;
Second determining unit, for according to the structured data template of the original outlet parameter of each method and each original entrance ginseng Several structured data templates determines whether corresponding method is normal;
Whether the 3rd determining unit is normal for determining each method that the application interface to be tested includes;If described treat Each method that test application interface includes is normal, it is determined that the application interface to be tested is normal.
8. device as claimed in claim 7, it is characterised in that first determining unit, for determining application to be tested Interface and its including method, specifically for:
Parse all of alternative application interface and its including method and show;
The alternative application interface that receive user is selected, obtains application interface to be tested;
Obtain the method that the application interface to be tested includes.
9. device as claimed in claim 7, it is characterised in that the resolution unit, for recursion resolution each method Each original suction parameter, obtains the structured data template of the original suction parameter of correspondence of corresponding method, specifically for:
Each the original suction parameter for each method included for the application interface to be tested is performed:
Obtain the current original suction parameter of current method;
The current original suction parameter is successively parsed using at least two parameter type identifiers for pre-setting, until parsing Go out the base data type that the current original suction parameter includes;
Base data type that the described current original suction parameter that record is parsed includes and its between incidence relation, obtain The structured data template of the current original suction parameter;
The resolution unit, for the original outlet parameter of each method of recursion resolution, obtains the original outlet ginseng of corresponding method Several structured data templates, specifically for:
The original outlet parameter of each method included for the application interface to be tested is performed:
Obtain the original outlet parameter of current method;
The original outlet parameter is successively parsed using at least two parameter types identifier, it is described original until parsing The base data type that outlet parameter includes;
Base data type that the described original outlet parameter that parses of record includes and its between incidence relation, obtain described The structured data template of original outlet parameter.
10. device as claimed in claim 9, it is characterised in that second determining unit, for according to each method The structured data template of original outlet parameter and the structured data template of each original suction parameter determine corresponding method whether just Often, specifically for:
Each method included for the application interface to be tested is performed:
Obtain the expectation of the base data type that the structured data template of each original suction parameter of the current method includes Value, the base data type included according to the structured data template of each original suction parameter of the current method and its expectation Value generates respectively each call entry parameter of the current method;And,
Obtain the desired value of the base data type that the structured data template of the original outlet parameter of the current method includes, root The base data type included according to the structured data template of the original outlet parameter of the current method and its desired value generate described Current method calls outlet parameter;
The current method according to each call entry parameter call of the current method, obtains the calculating of the current method Outlet parameter;
Determine the current method calculate outlet parameter and the current method call outlet parameter whether consistent;
If the calculating outlet parameter of the current method calls outlet parameter consistent with the current method, it is determined that described to work as Front method is normal.
11. devices as claimed in claim 10, it is characterised in that second determining unit, for according to described current The base data type and its desired value that the structured data template of the original suction parameter of each of method includes generates respectively described working as Each call entry parameter of front method, specifically for:
Build the current method calls engineering;
Engineering is called by the structured data template of each original suction parameter of the current method based on the current method Including the desired value of base data type bring into the structured data template of the original suction parameter of correspondence of the current method;
Each call entry ginseng of the current method is generated respectively using at least two parameter type makers for pre-setting Number;
Second determining unit, for the base included according to the structured data template of the original outlet parameter of the current method What plinth data type and its desired value generated the current method calls outlet parameter, specifically for:
The structured data template of the original outlet parameter of the current method is included based on the engineering of calling of the current method Base data type the desired value original outlet parameter of bringing the current method into structured data template in;
Outlet parameter is called using at least two parameter types maker generation current method.
12. devices as described in claim 7-11 is arbitrary, it is characterised in that the 3rd determining unit, are additionally operable to:
If at least one method exception that the application interface to be tested includes, it is determined that the interface exception to be tested.
CN201510733056.2A 2015-11-02 2015-11-02 Application interface test method and device Active CN106649078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510733056.2A CN106649078B (en) 2015-11-02 2015-11-02 Application interface test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510733056.2A CN106649078B (en) 2015-11-02 2015-11-02 Application interface test method and device

Publications (2)

Publication Number Publication Date
CN106649078A true CN106649078A (en) 2017-05-10
CN106649078B CN106649078B (en) 2019-06-25

Family

ID=58809820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510733056.2A Active CN106649078B (en) 2015-11-02 2015-11-02 Application interface test method and device

Country Status (1)

Country Link
CN (1) CN106649078B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832227A (en) * 2017-11-24 2018-03-23 平安科技(深圳)有限公司 Interface parameters method of testing, device, equipment and the storage medium of operation system
CN111221730A (en) * 2020-01-02 2020-06-02 华数传媒网络有限公司 Automatic testing and asserting method for interface serving network media industry
CN115935722A (en) * 2023-03-09 2023-04-07 北京集度科技有限公司 Process failure mode and impact analysis method, equipment and computer program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774725A (en) * 1996-06-28 1998-06-30 Microsoft Corporation Method and computer program product for simplifying construction of a program for testing computer software subroutines in an application programming interface
CN102291464A (en) * 2011-08-29 2011-12-21 上海普元信息技术股份有限公司 System and method for dynamically generating Web Service by business flow in BPM (Business Process Management)
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103268285A (en) * 2013-05-31 2013-08-28 百度在线网络技术(北京)有限公司 Method and device for automatic generation of robustness test case of API interface
CN104850439A (en) * 2015-05-22 2015-08-19 上海斐讯数据通信技术有限公司 Application configuration method and applicable embedded device
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN104899106A (en) * 2014-03-07 2015-09-09 阿里巴巴集团控股有限公司 Processing method and processing device when interface service is abnormal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774725A (en) * 1996-06-28 1998-06-30 Microsoft Corporation Method and computer program product for simplifying construction of a program for testing computer software subroutines in an application programming interface
CN102291464A (en) * 2011-08-29 2011-12-21 上海普元信息技术股份有限公司 System and method for dynamically generating Web Service by business flow in BPM (Business Process Management)
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103268285A (en) * 2013-05-31 2013-08-28 百度在线网络技术(北京)有限公司 Method and device for automatic generation of robustness test case of API interface
CN104899106A (en) * 2014-03-07 2015-09-09 阿里巴巴集团控股有限公司 Processing method and processing device when interface service is abnormal
CN104850439A (en) * 2015-05-22 2015-08-19 上海斐讯数据通信技术有限公司 Application configuration method and applicable embedded device
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832227A (en) * 2017-11-24 2018-03-23 平安科技(深圳)有限公司 Interface parameters method of testing, device, equipment and the storage medium of operation system
CN107832227B (en) * 2017-11-24 2020-04-10 平安科技(深圳)有限公司 Interface parameter testing method, device, equipment and storage medium of business system
CN111221730A (en) * 2020-01-02 2020-06-02 华数传媒网络有限公司 Automatic testing and asserting method for interface serving network media industry
CN111221730B (en) * 2020-01-02 2023-05-26 华数传媒网络有限公司 Interface automation test assertion method for network media industry
CN115935722A (en) * 2023-03-09 2023-04-07 北京集度科技有限公司 Process failure mode and impact analysis method, equipment and computer program product

Also Published As

Publication number Publication date
CN106649078B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN107608889B (en) Method and system for automatically generating test script
CN106354645B (en) Test method and test platform based on background system service or interface
CN106970875B (en) The frame per second test method and its system of virtual reality software
CN108874644A (en) Data monitoring method, device, computer equipment and storage medium
CN106991023A (en) A kind of interface parameters method of calibration and component
CN108710569A (en) Test cases generation method, data creation method, device, equipment and medium
CN107992519A (en) The multi-source heterogeneous data verification system and method for a kind of smart grid-oriented big data
CN106649078A (en) Application interface testing method and device
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN106708718A (en) Service framework interface testing method and device
CN108509344B (en) Daily cutting batch test method, equipment and readable storage medium
CN109408375A (en) The generation method and device of interface document
CN107357727A (en) APP testing results method, apparatus, readable storage medium storing program for executing and computer equipment
CN105786695A (en) Data test method and system
CN110221975A (en) Create the method and device of interface use-case automatic test script
CN103716209B (en) A kind of tunnel concurrent test system and equipment
CN109426611A (en) A kind of method for testing software and device
CN112035363A (en) Automatic interface testing method and device
CN115509942A (en) Test data generation method, device, equipment and storage medium
CN106933712A (en) Networking remote test system and method based on B/S frameworks
CN110149241A (en) A kind of automated testing method and storage medium based on IMS equipment
CN113505054A (en) Network data static test system and test method for unmanned aerial vehicle control station
CN106547654A (en) A kind of automated testing method and device
CN105868104B (en) A kind of cross-platform graphic user interface automatic test approach
CN105022693B (en) A kind of performance test methods and device of application program

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
TR01 Transfer of patent right

Effective date of registration: 20240308

Address after: # 04-08, Lai Zanda Building 1, 51 Belarusian Road, Singapore

Patentee after: Alibaba Singapore Holdings Ltd.

Country or region after: Singapore

Address before: Grand Cayman Islands

Patentee before: ALIBABA GROUP HOLDING Ltd.

Country or region before: Cayman Islands

TR01 Transfer of patent right