CN102096631B - Interface testing method and device - Google Patents

Interface testing method and device Download PDF

Info

Publication number
CN102096631B
CN102096631B CN 200910254327 CN200910254327A CN102096631B CN 102096631 B CN102096631 B CN 102096631B CN 200910254327 CN200910254327 CN 200910254327 CN 200910254327 A CN200910254327 A CN 200910254327A CN 102096631 B CN102096631 B CN 102096631B
Authority
CN
China
Prior art keywords
interface
case
user
test
type
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.)
Expired - Fee Related
Application number
CN 200910254327
Other languages
Chinese (zh)
Other versions
CN102096631A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200910254327 priority Critical patent/CN102096631B/en
Publication of CN102096631A publication Critical patent/CN102096631A/en
Application granted granted Critical
Publication of CN102096631B publication Critical patent/CN102096631B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an interface testing method and device. The interface testing device comprises an interface scanning unit, a data defining unit, a test case packaging unit, a case executing unit and a report generating unit, wherein the interface scanning unit is used for scanning an object to be tested according to an interface parameter appointed by a user; the data defining unit is used for analyzing a scanning unit of the interface scanning unit to the object to be tested, showing the structure of an interface parameter type and obtaining configuration information of the basic object type appointed by the user, wherein the interface parameter type comprises basic object types; the test case packaging unit is used for obtaining a case element selected by the user, obtaining test data corresponding to the basic object types by using the configuration information of the basic object types in the case element obtained by the data defining unit, and packaging a test case by using the case element and the test data corresponding to the basic object types; the cast executing unit is used for running the test case; and the report generating unit is used for generating a test case according to the run result of the test case. By using the technical scheme provided by the embodiment of the invention, the testing efficiency can be increased.

Description

Interface test method and device
Technical field
The present invention relates to technical field of measurement and test, particularly a kind of interface test method and device.
Background technology
Integration testing is on the basis of unit testing, and all modules are assembled into system according to designing requirement, and the system of assembling is tested.Practice shows, though some modules can be worked individually, can not guarantee to couple together also can work normally, so integration testing is very important.
In the unit testing and integration testing of software, need test the interface of software usually, because the stability of guaranteed software interface only, could guarantee the stability of system, so interface testing is called important component part in the software test.
Some test frames occur in the industry at present, such as JUNIT, it provides writes method commonly used in the interface testing process, such as functions such as result's contrast, use-case scheduling.When carrying out interface testing based on this framework, the method that the tester need utilize JUNIT to provide is write test code.
The shortcoming of prior art is:
The method that needs the user to utilize the JUNIT framework to provide in the prior art is write test code, and testing efficiency is low.
Summary of the invention
The embodiment of the invention provides a kind of interface test method and device, does not need the developer to write test code when carrying out interface testing, to improve testing efficiency.
In view of this, the embodiment of the invention provides:
A kind of interface test device comprises: interface scans unit, data definition unit, test case encapsulation unit, use-case performance element and report generation unit,
Described interface scans unit is used for scanning tested object according to the interface parameters type of user's appointment;
Described data definition unit, be used for analyzing described interface scans unit to the scanning result of described tested object, the structure that represents described interface parameters type, described interface parameters type comprises the basic object type, obtains the configuration information of the basic object type of user's appointment;
Described test case encapsulation unit, be used for obtaining the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element that described data definition unit obtains, obtain the test data of each basic object type correspondence in the described use-case element, utilize described use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence;
Described use-case performance element is used for the test case that operation test case encapsulation unit encapsulates;
Described report generation unit is used for the operation result according to test case, generates test report.
A kind of interface test method comprises:
Interface parameters type according to user's appointment scans tested object;
Analysis represents the structure of described interface parameters type to the scanning result of tested object, and described interface parameters type comprises the basic object type, obtains the configuration information of the basic object type of user's appointment;
Obtain the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element, obtain the test data of each basic object type correspondence in the described use-case element, utilize described use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence;
Move described test case, generate test report.
The embodiment of the invention represents the structure (the interface parameters type comprises the basic object type) of interface parameters type, and obtain the configuration information of the basic object type of user's appointment, when the packaging and testing use-case, utilize the configuration information of basic object type to obtain the test data of each basic object type correspondence, thereby packaging and testing use-case, make the user when the process of structure test case, not need to write code, improved testing efficiency.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, to do to introduce simply to the accompanying drawing of required use among the embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the interface test device structural drawing that the embodiment of the invention provides;
Fig. 2 A is another interface test device structural drawing that the embodiment of the invention provides;
Fig. 2 B is the test case generation module 10 part-structure figure that the embodiment of the invention provides;
Fig. 3 A is that the addressing information that the embodiment of the invention provides is selected synoptic diagram;
Fig. 3 B is the object structural interface synoptic diagram that the embodiment of the invention provides;
Fig. 3 C is the class figure of the object structure that provides of the embodiment of the invention;
Fig. 4 A is the connection interface synoptic diagram that the embodiment of the invention provides;
Fig. 4 B is the class figure of the interface encapsulation that provides of the embodiment of the invention;
Fig. 5 A is the logic package interface synoptic diagram that the embodiment of the invention provides;
Fig. 5 B is the class figure of the logic encapsulation that provides of the embodiment of the invention;
Fig. 6 A is the use-case package interface synoptic diagram that the embodiment of the invention provides;
Fig. 6 B is the class figure of the use-case encapsulation that provides of the embodiment of the invention;
Fig. 7 A is the use-case scheduling interface synoptic diagram that the embodiment of the invention provides;
Fig. 7 B is the class figure of the use-case scheduling that provides of the embodiment of the invention;
Fig. 8 is the interface test device structural drawing that another embodiment of the present invention provides;
Fig. 9 A is the interface test method process flow diagram that one embodiment of the invention provides;
Fig. 9 B is the interface test method process flow diagram that another embodiment of the present invention provides;
Fig. 9 C is the interface test method process flow diagram that another embodiment of the present invention provides;
Figure 10 is the interface test method process flow diagram that another embodiment of the present invention provides.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Consult Fig. 1, one embodiment of the invention provides a kind of interface test device, comprising: interface scans unit 101, data definition unit 102, test case encapsulation unit 105, use-case performance element 201 and report generation unit 202,
Interface scans unit 101 is used for scanning tested object according to the interface parameters type of user's appointment;
Data definition unit 102 for the scanning result of 101 pairs of tested objects of analysis interface scanning element, represents the structure of interface parameters type, and this interface parameters type comprises the basic object type, obtains the configuration information of the basic object type of user's appointment;
Test case encapsulation unit 105, be used for obtaining the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element that data definition unit 102 obtains, obtain the test data of each basic object type correspondence in the use-case element, utilize the use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence;
Use-case performance element 201 is used for the test case that operation test case encapsulation unit encapsulates;
Report generation unit 202 is used for the operation result according to test case, generates test report.
Wherein, interface scans unit 101, data definition unit 102 and test case encapsulation unit 105 are positioned on the test case generation module 10; Use-case performance element 201 and report generation unit 202 are positioned on the test case execution module 20.
The data definition unit 102 concrete scanning results that are used for 101 pairs of tested objects of analysis interface scanning element, when the interface parameters type is the complex object type, the tree structure that represents the interface parameters type is obtained the configuration information of each basic object type in the interface parameters type of user's appointment; When the interface parameters type is the basic object type, obtain the configuration information of the basic object type of user's appointment.
Wherein, data definition unit 102 can obtain the configuration information of the basic object type of user's appointment in the following way: first kind of mode is: data definition unit 102 receives the configuration information of the basic object type of user's input; The second way is: the indication that data definition unit 102 receives users' input is searched the configuration information of this interface parameters type after searching the look-up command of configuration information of interface parameters type from the shared cell 106 of this locality.
Concrete, data definition unit 102 also is used for after receiving the instruction that user's indication shares the configuration information of interface parameters type, and the configuration information of interface parameters type is saved in shared cell 106; Wherein the configuration information of interface parameters type comprises the configuration information of each basic object type in the interface parameters type; Test case encapsulation unit 105 also is used for receiving the instruction that test case is shared in user's indication, and test case is saved in shared cell 106;
Shared cell 106 concrete configuration information and the test cases that are used for the saving interface parameter type; Wherein, the configuration information of each basic object type is the configuration information of the specified basic object type of user during the configuration interface parameter object after the data definition unit 102 in the interface parameters type of preserving in the shared cell 106.
Wherein, utilize the configuration information of basic object type in the use-case element that data definition unit 102 obtains in the test case encapsulation unit 105, the test data of obtaining each basic object type correspondence in the use-case element specifically can realize in the following way: represent the basic object type that has configuration information in the use-case element, instruction according to the user is searched variable from the public variable pond, the value of variable is set as the corresponding test data of basic object type of user's appointment.Can also obtain test data by other means, specifically referring to the description of subsequent embodiment to test case encapsulation unit 105.
The embodiment of the invention represents the structure (the interface parameters type comprises the basic object type) of interface parameters type, and obtain the configuration information of the basic object type of user's appointment, when the packaging and testing use-case, utilize the configuration information of basic object type to obtain the test data of each basic object type correspondence, thereby packaging and testing use-case, make the user when the process of structure test case, not need to write code, improved testing efficiency.
Consult Fig. 2 A and 2B, the following interface test device that the embodiment of the invention is provided is described in detail, and this interface test device can be used for the integration testing of software, and interface test device comprises: test case generation module 10 and test case execution module 20,
Wherein test case generation module 10 comprises:
Interface scans unit 101, the interface parameters type for obtaining according to the interface definition unit scans tested object;
Data definition unit 102, the scanning result that is used for 101 pairs of tested objects of analysis interface scanning element, when the interface parameters type is the complex object type, the structure that represents the interface parameters type, this interface parameters type comprises the basic object type, obtain the configuration information of the basic object type of user's appointment, according to the configuration information of basic object type and the structure configuration interface parameter object of interface parameters type; When the interface parameters type is the basic object type, obtain the configuration information of the basic object type of user's appointment, according to the configuration information configuration interface parameter object of basic object type;
Interface definition unit 103, be used for obtaining port addressing information, interface return type and the interface parameters type of user's appointment, package interface, this interface comprises: port addressing information, the interface of interface return type correspondence returns object, the interface parameters object of data definition unit 102 configurations;
Test logic encapsulation unit 104, be used for obtaining a plurality of logic encapsulation elements that the user selects, call relation according to user's appointment is packaged into the test logic structure with a plurality of logic encapsulation elements, and a plurality of logic encapsulation elements comprise the interface of interface definition unit 103 encapsulation;
Test case encapsulation unit 105, be used for obtaining the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element that data definition unit 102 obtains, obtain the test data of each basic object type correspondence in the use-case element, utilize the use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence; Wherein, the use-case element of user's selection comprises the test logic structure of test logic encapsulation unit 104 encapsulation;
Test case execution module 20 comprises:
Use-case performance element 201 is used for the test case that operation test case encapsulation unit encapsulates;
Report generation unit 202 is used for the operation result according to test case, generates test report.
Preferably, this test case generation module 10 also comprises shared cell 106 and public variable pond 107;
Wherein, shared cell 106, be used for the configuration information (configuration information of interface parameters type comprises the configuration information of this interface parameters type basic object type, and the configuration information of basic object type is each property value of this basic object type) of the interface parameters type of preservation data definition unit 102 configurations, the interface of interface definition unit 103 encapsulation, the test logic structure of test logic encapsulation unit 104 encapsulation and the test case of test case encapsulation unit 105 encapsulation; When in the data definition unit during 102 package interface parameter objects, select in the shared cell 106 to obtain interface parameters type configuration information for the parameter object of package interface from shared cell 106 after the interface parameters type configuration information instruction if receive the user; When logic encapsulation unit 104 packaging and testing logical organizations, if receive the instruction that the user selects interface in the shared cell 106, then from shared cell 106, obtain the interface that the user selects; If receive the instruction that the user selects test logic structure in the shared cell 106, from shared cell 106, obtain the test logic structure that the user selects, with the packaging and testing logical organization; When at test case encapsulation unit 105 packaging and testing use-cases, if receive the instruction that the user selects interface in the shared cell 106, from shared cell 106, obtain the interface that the user selects; If receive the instruction that the user selects test logic structure in the shared cell 106, from shared cell 106, obtain the test logic structure that the user selects, with the packaging and testing use-case.Preferably, shared cell provides the function of filtering by name, i.e. configuration information, interface, test logic structure and/or the test case of the interface parameters type of wanting according to the name lookup user of the title of the title of the title of the interface parameters type of user input, interface, test logic structure, test case, if do not find in this locality, then configuration information, interface, test logic structure and/or the test case of the interface parameters type of wanting to the central controller inquiring user.
Adopt above-mentioned shared cell 106, when many people carry out interface testing simultaneously, can avoid repeated configuration by configuration information, interface, test logic structure and the test case of shared cell 106 from the direct calling interface parameter type of central controller, can improve the testing efficiency of interface.
Public variable pond 107 is used for the data that saving interface produces at operational process, and these data are variable, and each variable has a name variable, and the regulation name variable begins with the $ character.The user can save as a variable to the return results of interface in the result treatment in logic encapsulation unit 104, when the use-case actual motion, will replace to the interface actual data of returning in front to variable, reaches the purpose of different interface Data transmission.
Return a result data result such as the A interface, it is a variable that the method that can call the public variable pond in " result treatment " of A interface is preserved these data, name variable is $result, if certain parameter just wants to import the return results of A interface in B interface, this just can $result variable so.In actual moving process, run to B interface, will be used for B interface to the rreturn value of A interface.The effect of Here it is variable.In actual applications, can offer the user to the public variable pond operates, the user can check variablees all in the public variable pond at the interface, and can directly inject a variable toward the public variable pond, and these variablees can use in the place of any input data.
Following function to each unit in the test generating apparatus 10 describes in detail:
1) function of following specific descriptions interface scans unit 101, data definition unit 102 and interface definition unit 103:
Interface scans unit 101 receives the tested information that the user imports, and obtains interface message to be tested according to tested information, represents the interface that comprises interface message to be tested.
Concrete, if the user will test is local interface, then the tested information of user's input is tested object, and it can be the jar bag, and interface scans unit 101 control interface proving installations represent the interface message that this tested object comprises; If the user will test remote interface, then the tested information of user's input is the IP address of remote server, interface scans unit 101 is connected to remote server by this IP address, obtain service name relevant informations all on this server, comprising the addressing information of service name, for example server1:001.Interface scans unit 101 finds tested object for this remote server interface testing according to this IP address then, this tested object can be jar bag, represent interface message and service name relevant information, wherein, interface message comprises the parameter type of each interface.
Wherein, above-mentioned interface parameters type comprises the path of bag of interface parameters type correspondence and the title of corresponding class thereof.
Interface definition unit 103 comprises: interface subelement 1031, the first encapsulation subelement 1032 and second are carried out storage unit 1033; Interface unit 1031 in the interface definition unit 103 obtains the user according to the specified port addressing information of interface message to be tested, interface return type and interface parameters type, the structure of notification interface scanning element 101 these interface parameters types of scanning, wherein, the interface parameters type of user's input is the interface parameters type that interface scans unit 101 represents.
Owing to when calling, in fact in code, will call certain interface of certain class to " local interface " exactly at interface testing, for example: the login interface of QQ class; Wherein, the addressing information of interface is exactly the information of calling interface how, and Fig. 3 A is for providing the user interface of selected port addressing information.
First kind of mode, the user has selected static method, because static method does not need the instantiation class, system default uses QQ as addressing information exactly, so do not need the user to import any value.
The second way, the user has selected single example, this situation is that class QQ requirement itself is single example (being that total system can only have an example), coding is such, QQ qq=QQ.getInstance () so. adopt this mode, need QQ that static method getInstance () is provided, obtain its QQ example.This mode does not need the user to import any value yet.
The third mode, the user has selected the printenv structure, and this situation is the constructed fuction that class QQ class provides no input parameter, and coding is such QQ qq=new QQ (), and this mode need not the user be imported any value.
The 4th kind of mode, the user has selected self-defining mode, and the user need write one section script, for example coded system is: QQ qq=new QQ (" ip ", " port "), allow the user can import request=new QQ(" ip ", " port "), wherein QQ need write complete bag path.If perhaps Bian Ma mode is: QQ qq=QQFactory.getQQ (), then the user imports request=new QQFactory.getQQ (), and wherein QQFactory need write complete bag path.
For remote interface, the user selects service name according to a plurality of service name relevant informations that represent, and imports the command code of this service name correspondence, and wherein, service name and corresponding command code thereof are formed the addressing information of interface.
The structure of interface scans unit 101 scan interface parameter types, concrete, use the technology of reflection to obtain method in this interface and parameter type of method etc.Concrete, for local interface, the structure of the interface parameters type in the tested object of scanning user input; For remote interface, the structure of the interface parameters type in the corresponding jar bag in the IP address of scanning remote server.
Data definition unit 102 comprises: interface parameters object configuration subelement 1021 and first is carried out storage unit 1022, wherein the interface parameters object disposes the scanning result of subelement 1021 analysis interface scanning elements 101, when the interface parameters type is the complex object type, the structure that represents the interface parameters type, this interface parameters type comprises the basic object type, receive the configuration information (configuration information of basic object type is each property value of the basic object type of user's input) of the basic object type of user's input, perhaps receive the look-up command that the configuration information of interface parameters type is searched in the indication of user input, (configuration information of interface parameters type comprises the configuration information of basic object type the interface parameters type to obtain the configuration information of this interface parameters type from local shared cell, the configuration information of basic object type comprises each property value of basic object type), according to the configuration information of basic object type and the structure configuration interface parameter object of interface parameters type; When the interface parameters type is the basic object type, receive the configuration information (configuration information of basic object type is each property value of the basic object type of user's input) of the basic object type of user's input, perhaps receive the look-up command that the configuration information of interface parameters type is searched in the indication of user input, (configuration information of interface parameters type comprises the configuration information of basic object type the interface parameters type to obtain the configuration information of this interface parameters type from local shared cell 106, the configuration information of basic object type comprises each property value of basic object type), according to the configuration information configuration interface parameter object of basic object type.First carries out storage unit 1022 is used for after receiving the instruction that user's indication shares the configuration information of interface parameters object, and the configuration information of interface parameters object is saved in shared cell 106, in order to use for the user during follow-up package interface parameter object.
Concrete, when the interface parameters type was the complex object type, data definition unit 102 control interface proving installations represented the structure of this interface parameters type with the form of tree, as shown in Figure 3A.
Wherein, the attribute of basic object type comprises Business Name and default value, and perhaps the attribute of basic object type comprises Business Name and input value scope, and the attribute of basic object type can also comprise: note etc.Concrete, Business Name is the professional implication that this basic object is represented in interface interchange, it can be Username, information such as Password, when follow-up packaging and testing use-case, only show the basic object type with Business Name, the architectural feature of shielding interface parameter object is in order to make things convenient for the assembling of test case and follow-up maintenance; Default value is not have value under the situation of input value in the basic object type; Note is other relevant informations that the user imports.
When the interface parameters type was the complex object type, Fig. 3 B showed the structure of this interface parameters type, and its mode with tree has represented the structure of interface parameters type.When the user need be for the attribute assignment of certain basic object type, click this basic object type, then the attribute list of this basic object type can be showed by the control interface proving installation in data definition unit 102, the user inserts the numerical value of each attribute in table, data definition unit 102 receives the numerical value of the basic object type attribute of user's input.The class figure that the employing Java language of Fig. 3 B correspondence is realized shown in Fig. 3 C, wherein, IDataNode: be Interface, represent the base class of other classes; ComplexNode, expression complex object type, it comprises a plurality of ConstructNode, a plurality of MethodNode, a plurality of member object types, wherein the member object type can be SimpleNode and ComplexNode, comprises some other attributes in addition; ConstructNode: represent the node of constructed fuction, comprise the title of constructed fuction, parameter type, wherein parameter type can be SimpleNode and ComplexNode; MethodNode: the node of expression commonsense method: comprise method name, the return type of method, parameter type, wherein parameter type can be SimpleNode and ComplexNode.
Need to prove, when the interface reftype is the complex object type, if this interface parameters type is abstract class or interface class, but and need the user this interface parameters type to be changed into the subclass of instantiation, for example, the user click the interface parameters type (such as among Fig. 3 A as the complex object of tree root), data definition unit 102 control interface proving installations eject a type change interface, but the user changes this interface parameters type into the subclass of instantiation on this interface.
If the user need copy certain commonsense method, for example the user need copy commonsense method 1, user's click right on commonsense method 1 then, then data definition unit 102 control interface proving installations eject the attribute menu of this method, then the user selects " copy " at this menu, interface test device represents an identical commonsense method 1, then two commonsense methods 1 can occur among Fig. 3 A.
If the situation of circulation recurrence comprises oneself in the leaf node such as member variable, then can make mistakes in data definition unit 102 in prompting.
In the interface definition unit 103 first encapsulation subelement 1032 obtains the interface parameters object from data definition unit 102, package interface, represent connection interface and check that for the user this interface comprises: port addressing information, the interface of interface return type correspondence returns object.Second carries out storage unit 1033 receive the instruction that user user's indication shares the configuration information of interface parameters type after, the configuration information of interface parameters type is saved in shared cell, in order to use for the user during package interface parameter object later on; The configuration information of interface parameters type comprises the configuration information of basic object type in the interface parameters type.
Wherein, the connection interface figure that interface definition unit 103 provides is shown in Fig. 4 A, and the class figure that the employing Java language of its correspondence is realized is shown in Fig. 4 B.Wherein, IDataNode: being Interface, representing the base class of all objects, can be ComplexNode or SimpleNode here; InterfaceNode, the node of expression interface type, it comprises a plurality of parameter objects, and rreturn value comprises the addressing information of interface and other attribute in addition.
The user can be the attribute assignment of basic object type in this interface parameters object by connection interface again, such as revising Business Name, default value, input value scope and/or note.Concrete operations are: the user clicks the interface parameters object, interface definition unit 103 represents the structure of this interface parameters object, the user clicks certain basic object type, input value scope and/or note when the default value when revising Business Name, the interface interchange of this basic object type, interface interchange.
2), following is the detailed introduction of test logic encapsulation unit 104 functions:
Logic encapsulation unit 104 comprises: first obtains that subelement 1041, the second obtains subelement 1042, the second encapsulation subelements 1043, rearmounted disposal route provides subelement 1044, the 3rd to carry out storage unit 1045, wherein,
First obtains subelement 1041, is used for the instruction of the interface of reception user option interface definition unit 102 encapsulation, obtains interface from the interface definition unit;
Second obtains subelement 1042, is used for receiving the instruction that the user selects shared cell 106 interfaces, and 106 obtain the interface that the user selects from shared cell; Receive the instruction that the user selects test logic structure in the shared cell 106, from shared cell 106, obtain the test logic structure that the user selects;
The second encapsulation subelement 1043 for the call relation between a plurality of logics encapsulation elements that receive user's appointment, is formed the test logic structure according to this call relation with a plurality of logics encapsulation elements; Wherein, a plurality of logic encapsulation elements comprise: the interface that obtains from the interface definition unit, the interface that obtains from shared cell and/or the test logic structure of obtaining from shared cell.
Suppose that above-mentioned a plurality of logic encapsulation element comprises first logic encapsulation element and second logic encapsulation element, concrete, the second encapsulation subelement 1043 provides the logic package interface, instruction according to the user saves as a variable with the return results that first logic encapsulates element, instruction according to the user arranges the value of variable as the input value of second logic encapsulation element, obtains the test logic structure.
Need to prove that the user can specify calling in proper order between logic encapsulation element by the begin symbol in the logical relation sign of operation, procedure symbol and terminating symbol, such as customer specific one, interface two, interface three sequence calls.
The user can specify the execution time of certain logic encapsulation element by the timing symbol in the logical relation sign of operation;
The user can specify the circulation of certain logic encapsulation element to carry out by the circular symbol in the logical relation sign of operation, and specifies the number of times etc. of this logic encapsulation element circulation appointment.
Suppose that a plurality of logic encapsulation elements comprise first logic encapsulation element, second logic encapsulation element and the 3rd logic encapsulation element, concrete, the second encapsulation subelement 1043 saves as a variable according to user's instruction with the return results that first logic encapsulates element, utilize switch and variable, first logic encapsulation element is connected with the 3rd logical elements with second logical elements respectively, concrete, carry out second logic encapsulation element when variate-value can be set for true (1), carry out the 3rd logic encapsulation element when variate-value is false (0).
Rearmounted disposal route provides subelement 1044, and the rearmounted disposal route after being used for providing interface interchange to finish is selected for the user, such as getResult (), can obtain the result that interface returns; GetParameter (intindex), the examples of parameters when obtaining interface interchange; Public_put (String key, Object Value) adds variable toward the public variable pond; The loop statement of for (i in array); If (xxx) branch statement; Test logic encapsulation unit 104 also provides all control methodss among the Assert that is similar in the Junit framework etc., and these methods can allow user oneself expand, and rearmounted disposal route provides subelement that editing prompt is provided, and makes things convenient for the user to import.
The 3rd carries out storage unit 1045, is used for receiving the instruction that the test logic structure is shared in user's indication, and the test logic structure is saved in shared cell, so as later on during the packaging and testing use-case for use.
Wherein, the logic package interface can be shown in Fig. 5 A, the class figure that the employing Java language of its correspondence is realized shown in Fig. 5 B, wherein, IDataNode: be Interface, expression simple object and complex object, i.e. ComplexNode or SimpleNode.LogicNode represents the base class of all logic control nodes.StartLogicNode: logic start node, this node are the entrance of a logic encapsulation, and framework can indicate for it distributes a unique ID, and this node only allows to add a child nodes.InterfaceExecuteNode, the interface XM, this node can add one or more interface, and each interface is carried out in order, and this interface can only add a child nodes.
3), following is the detailed introduction of test case encapsulation unit 105 functions:
Test case encapsulation unit 105 comprises that the 3rd obtains subelement 1051, the 4th and obtain subelement 1052, the 5th and obtain subelement 1053, test data and obtain subelement 1054, expected results assignment unit 1055, test case encapsulation subelement 1056, the 4th and carry out storage unit 1057
The 3rd obtains subelement 1051, is used for receiving the instruction that the user selects the test logic structure of test logic encapsulation unit 104 encapsulation, obtains the test logic structure from test logic encapsulation unit 104;
The 4th obtains subelement 1052, is used for the instruction of the interface of reception user option interface definition unit encapsulation, obtains interface from the interface definition unit;
The 5th obtains subelement 1053, is used for receiving the instruction that the user selects shared cell 106 interfaces, obtains the interface that the user selects from shared cell 106; Receive the instruction that the user selects test logic structure in the shared cell 106, from shared cell 106, obtain the test logic structure that the user selects;
Test data is obtained subelement 1054, is used for obtaining the test data of a plurality of use-case element basic object type correspondences; Wherein, a plurality of use-case elements comprise test logic structure, the interface that obtains that obtains from the test logic encapsulation unit and/or the test logic structure of obtaining from shared cell from shared cell.
The concrete mode of obtaining test data includes but not limited to following several mode:
First kind of mode: the value of user's selected variable from the public variable pond is set as the test data of basic object type correspondence in the use-case element.Concrete, the user is selected variable from the public variable pond, at the name variable that this basic object type input begins with $, after test case encapsulation unit 105 received the name variable of user's input, the value that this variable is set was the test data of basic object type correspondence.
The second way: the concrete numerical value that receives the direct input of user is test data.
The third mode: test data is obtained subelement provides assignment method commonly used to select for the user, and common method can be: the method that obtains numeral at random: getRandNum (); Character string is changeed the method for byte data, Str2byte (String str) etc.
If the user does not carry out assignment, then test data is obtained subelement 1054 to adopt default values is test data.
Expected results assignment unit 1055 is for the expected results value that test case is set according to user's instruction.
Test case encapsulation subelement 1056, be used for reaching the wherein test data of each basic object type correspondence according to a plurality of use-case elements (a plurality of use-case elements are a use-case entity) herein, use-case title, rank, description and the type attribute of the user's input that has received, with the expected results value, the packaging and testing use-case.Wherein use-case title, rank, description, type attribute are mainly the user and use in maintenance process, the function that the easy-to-read interface is finished.Use-case rank and use-case type can be used (press the operation of use-case rank, press the operation of use-case type) in the use-case scheduling.
The 4th carries out storage unit 1057, after receiving user's indication instruction that test case is shared, test case is saved in the shared cell.
Perhaps, described test case encapsulation unit comprises:
The Data Update subelement is used for representing the basic object type that the use-case element has configuration information, receives the new configuration information of the described basic object type of user's input, upgrades the use-case element;
Test data is obtained subelement, is used for obtaining the test data of each basic object type correspondence of described use-case element;
Test case encapsulation subelement is used for according to the use-case element after upgrading and the test data of each basic object type correspondence thereof, packaging and testing use-case.
Test case encapsulation unit 105 also comprises: basic object information updating subelement;
Basic object information updating subelement is used for receiving the instruction of user to revising for the property value of the element basic object type of forming the use-case entity, preserves the new value that the user gives for the attribute of basic object type.Realization can be revised the purpose of basic object type attribute value when the packaging and testing use-case.
Test case encapsulation unit 105 also comprises: generate the use-case subelement automatically;
Automatically generate the use-case subelement, be used for according to the test case that has encapsulated and the input value scope of test case basic object type, use the binary orthogonal algorithm to generate test case.Realization can generate the purpose of use-case automatically.
For example, supposing has to dispose what a test case, this test case is: do shopping, pay, give change;
The parameter here has: what, what are bought, how much is given;
Expection is how much gives for change;
The input value that can use during its interface interchange is:
What: apple, snow pear, televisor
What are bought: 1,2,1000
How much is given: 10,20,100
Use to generate the use-case function automatically, will Automatic Combined generate following use-case:
Buy 1 apple, give 20 yuan, how many expections gives for change
Buy 1000 televisors, give 100, not enough money is told in expection, etc.
Test case comprises two category nodes: characteristic node and case node (being the test case of above-mentioned encapsulation), wherein the characteristic node is to comprise one or more case node and characteristic node.Test case encapsulation unit 105 can also be drawn a characteristic node with a plurality of test cases according to user's indication, so that follow-up user-friendly when safeguarding.
The use-case package interface that test case encapsulation unit 105 control interface proving installations represent can be as shown in Figure 6A, suppose that the tree root use-case that the user selects at this interface is a characteristic node, test case encapsulation unit 105 activates " property attribute " tab, and represent the direct child nodes of this characteristic node in the mode of table, comprise characteristic node 1 such as it, characteristic node 2, case node 3, and below table, show statistical information (what characteristic nodes being arranged, what case nodes); When the user clicks characteristic node 2, test case encapsulation unit 105 activates " property attribute " tabs, and with the direct child nodes of the displaying characteristic node 2 of table, comprises case node 1 and case node 2 such as it, and show statistical information below table; The user clicks case node 1, and 105 of test case encapsulation units activate " use-case attribute " tab, and shows the use-case attribute, comprises the use-case title, the use-case rank, and use-case is described, the use-case type, wherein these information can be accepted user's modification.The user can click " use-case entity " tab, test case encapsulation unit 105 is showed the use-case element that use-case need call in the mode of table, as interface and/or test logic structure, when the user has selected a concrete test logic structure, suppose the user click " landing " which, then " parameter assignment " tab of " the use-case operating area " of below will activate in the drawings, and the user just can import the input value of use-case.The user also can click " result treatment ", and then the user can set the expected results value of interface testing, perhaps preserves some results and arrives processing actions such as public variable pond.
Need to prove, here the tree that can not show the interface parameters object, here use the mode of flattening to show, namely use table to show that Business Name is not empty basic object in the interface parameters object, the field information of displaying has: Business Name, type, default value, input value, input value scope, note.Here the benefit of display interface parameter object structure is not that incoherent information screen is fallen, and is user-friendly, and the user can directly finish the test data input of use-case in the field of " input value ".Here also provide access simultaneously and jump to the details that the interface parameters object is checked in the data definition unit, the user only needs click right to get final product popup menu, selects " location " to get final product redirect.
Wherein, the class figure that the employing Java language of Fig. 6 A correspondence is realized shown in Fig. 6 B, wherein, ICaseNode: be Interface, the base class of expression case node and characteristic node; StartLogicNode represents the start node that all logics encapsulate; UserCaseNode: expression case node, this node comprise one or more logic encapsulation, i.e. StartLogicNode; FeatureNode, the characterization node, this node comprises a plurality of ICaseNode, i.e. characteristic FeatureNode and UserCaseNode.
Preferably, this interface test device can be connected on the server of a platform independent, shares own existing configuration (such as the content in the shared cell) at this server, so that other interface test devices use.
The embodiment of the invention adopts third party's assembly Hibernate to preserve model data in database, when interface test device restarts, earlier obtain data from database, set up data model, and then show at the interface, user-friendly, the user just not be used in when restarting to carry out and re-enters tested information and scan etc. for the interface scans unit and operated like this.
Preferably, test case execution module 20 also comprises: use-case scheduling unit 203, wherein,
This use-case scheduling unit can provide a plurality of test cases to select for the user, and a plurality of test cases that the user selects are formed test case, and follow-up use-case performance element 201 can be carried out test case; Preferably, this use-case scheduling unit also is used for the control interface proving installation and represents use-case scheduling interface, receives the operation rule of user's test case of appointment in use-case scheduling interface; Use-case performance element 201 will be according to the operation rule of the test case of user's appointment, the operation test case.Wherein, the operation rule of test case is the operation rule of each test case in this test case.
Concrete, the use-case scheduling unit exports to the operation rule of the test case of user's appointment in the xml file, and use-case performance element 201 loads the operation rule of the test case in the xml file, moves test case according to the operation rule of test case then.
The operation rule of test case includes but not limited to following several rule:
The circular flow strategy: each test case is moved x time continuously, and suspends y second, and all test cases rerun z time then;
Timing operation strategy: at the xx:xx test case that brings into operation;
The use-case screening strategy: use-case characteristic title, use-case title, use-case rank, the use-case type satisfies condition, and this test case could be moved.
Wherein, use-case scheduling interface can be used shown in Fig. 7 A, and the user can select some test cases and set the operation rule of test case, has formed a test case (as the tree structure on the left side among the figure).The user can organize a plurality of test cases to use for different scenes.The class figure that the employing Java language of Fig. 7 A correspondence is realized is shown in Fig. 7 B.Wherein, AInvoker: be abstract class, represent the base class with all schedulers; UserCaseNode, the expression case node; UserCaseNodeInvoker: the scheduler of one or more test case, the i.e. operation rule of test case are called in expression; LevelInvoker: expression is by other scheduler of level; TimeInvoker: the scheduler that expression regularly starts; RepeatStrategyInvoker: the accent device that expression repeats to call.Wherein, except the UserCaseNodeInvoker scheduler be can only implementation of test cases, other each scheduler all can nestedly use (such as, can regularly start a scheduler that repeats test case).Expand scheduler if desired, only need to inherit AInvoker and get final product.
The function of test case performance element 201 specifically comprises as follows:
Test case performance element 201 is specifically according to test data (being the test data of test case encapsulation unit user's appointment of obtaining) and test logic structure (or interface), generation script language (JavaScript or Python) uses the script engine of Java to carry out the examples of parameters that script obtains interface then; Addressing information according to interface, use the reflection technology calling interface of java, generate the result then and judge script (JavaScript or Python), use the script engine execution result of Java to judge that script judges interface testing whether successfully, concrete, the interface execution result is passed to script engine, uses the script engine execution result to judge script then, whether the checking interface testing is successful.
When the embodiment of the invention is the complex object type in the interface parameters type, automatically resolve and represent the structure of this interface parameters type, make the user when the parameter object of structure interface, not need to write code, and it is only just passable at each property value of object structural interface input basic object type, this proving installation provides the logic package interface to specify call relation between a plurality of interfaces for the user simultaneously, make in the integration testing environment, do not need the user to write any code, but only need the user to select according to the information at interface, realize in the integration testing scene a plurality of interfaces being tested; Increase the user simultaneously/deletion/do not need the changed test code when revising use-case, user-friendly, the time overhead of saving interface testing; Further, the mode of employing image conversion is for user's configuration testing use-case and test data, and is user-friendly, thereby can realize the integration testing of any system; Further, shared cell can be shared the parameter object, interface, test logic structure, use-case of interface etc., and convenient many people carry out interface testing simultaneously.
Consult Fig. 8, another embodiment of the present invention provides a kind of interface test device, the difference of itself and above-described embodiment is, do not comprise test logic encapsulation unit 104 in the test case generation module 10, this interface test device can be used for the unit testing of software, the following part Elementary Function of simply introducing in this interface test device:
Interface scans unit 101, the interface parameters type for obtaining according to the interface definition unit scans tested object;
Data definition unit 102, be used for the analysis interface scanning element to the scanning result of tested object, when the interface parameters type is the complex object type, the structure that represents the interface parameters type, this interface parameters type comprises the basic object type, obtain the configuration information of the basic object type of user's appointment, according to the configuration information of basic object type and the structure configuration interface parameter object of interface parameters type; When the interface parameters type is the basic object type, obtain the configuration information of the basic object type of user's appointment, according to the configuration information configuration interface parameter object of basic object type;
Interface definition unit 103, be used for obtaining port addressing information, interface return type and the interface parameters type of user's appointment, package interface, this interface comprises: port addressing information, the interface of interface return type correspondence returns object, the interface parameters object of data definition unit 102 configurations;
Test case encapsulation unit 105, be used for obtaining the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element to obtain the test data of each basic object type correspondence in the use-case element, utilize use-case element and the test data packaging and testing use-case of each basic object type correspondence wherein; Wherein, the use-case element of user's selection comprises the interface of interface definition unit package;
Use-case performance element 201 is used for the test case that operation test case encapsulation unit encapsulates;
Report generation unit 202 is used for the operation result according to test case, generates test report.
The function of its each unit is similar to previous embodiment, does not repeat them here.This embodiment represents the structure (the interface parameters type comprises the basic object type) of interface parameters type, and obtain the configuration information of the basic object type of user's appointment, and the configuration information that utilizes the basic object type obtains the test data of each basic object type correspondence, thereby packaging and testing use-case, make the user when the process of structure test case, not need to write code, improved testing efficiency.
For the data definition unit in above-described embodiment, interface definition unit, test logic encapsulation unit, test case encapsulation unit and shared cell and public variable pond, input information according to the user, all can set up corresponding data model, then model data is saved in the database, after interface test device restarts, obtain model data from database earlier, these model datas are passed through converter, use the mode of GUI to show the user, user-friendly.
Consult Fig. 9 A, one embodiment of the invention provides a kind of interface test method, and this method specifically comprises:
901A, scan tested object according to the interface parameters type of user's appointment;
This step can be carried out by the interface scans unit.
902A, analyze the scanning result to tested object, represent the structure of interface parameters type, wherein, this interface parameters type comprises the basic object type, obtains the configuration information of the basic object type of user's appointment;
This step can be carried out by the data definition unit.Concrete, the data definition unit can obtain the configuration information of the basic object type of user's appointment in the following way: first kind of mode is: the data definition unit receives the configuration information of the basic object type of user's input; The second way is: the indication that the data definition unit receives user's input is searched the configuration information of this interface parameters type after searching the look-up command of configuration information of interface parameters type from the shared cell of this locality
903A, obtain the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element, obtain the test data of each basic object type correspondence in the use-case element, utilize the use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence;
This step can be carried out by the test case encapsulation unit, wherein, the test data of obtaining each basic object type correspondence in the use-case element specifically can realize in the following way: represent the basic object type that has configuration information in the use-case element, instruction according to the user is searched variable from the public variable pond, the value of variable is set as the corresponding test data of basic object type of user's appointment.Can also obtain test data by other means, specifically referring among the said apparatus embodiment to the description of test case encapsulation unit.
904A, operation test case generate test report.
The embodiment of the invention represents the structure (the interface parameters type comprises the basic object type) of interface parameters type, and obtain the configuration information of the basic object type of user's appointment, when the packaging and testing use-case, utilize the configuration information of basic object type to obtain the test data of each basic object type correspondence, thereby packaging and testing use-case, make the user when the process of structure test case, not need to write code, improved testing efficiency.
Consult Fig. 9 B, another embodiment of the present invention provides a kind of interface test method, and this method is applicable to the unit testing of software, and this method specifically comprises:
901B, interface test device obtain port addressing information, interface return type and the interface parameters type of user's appointment;
This step can be carried out by the interface definition unit.
Before this step, interface scans unit in the interface test device can receive the tested information of user's input, obtain interface message to be tested according to tested information, represent the interface that comprises interface message to be tested, the interface definition unit receives port addressing information, interface return type and the interface parameters type that the user imports according to interface message to be tested then, and the structure of notification interface scanning element 101 these interface parameters types of scanning.
Wherein, interface to be tested can be that local interface also can be remote interface, and the see before description of face device part of the processing mode that interface test device carries out at different interface types does not repeat them here.
902B, interface test device scan tested object according to the interface parameters type.
This step can be carried out by the interface scans unit.
For local interface, this step is the structure of the interface parameters type in the tested object of scanning user input; For remote interface, this step is the structure of the interface parameters type in the corresponding jar bag in the IP address of scanning remote server.
903B, analysis interface are to the scanning result of tested object, when the interface parameters type is the complex object type, the structure that represents the interface parameters type, this interface parameters type comprises the basic object type, obtain the configuration information of the basic object type of user's appointment, according to the configuration information of basic object type and the structure configuration interface parameter object of interface parameters type; When the interface parameters type is the basic object type, obtain the configuration information of the basic object type of user's appointment, according to the configuration information configuration interface parameter object of basic object type.
This step can be carried out by the data definition unit.
Wherein, the attribute of basic object type comprises: Business Name, default value, input value scope.
Wherein, the configuration information that obtains the basic object type of user's appointment specifically can have following implementation: first kind of mode is: the configuration information that receives the basic object type of user's input; The second way is: the look-up command that the configuration information of interface parameters type is searched in the indication of reception user input; Search the configuration information of this interface parameters type in this locality, if the local configuration information that does not find this interface parameters type, inquire about the configuration information of this interface parameters type to central controller, wherein, the configuration information of this interface parameters type comprises: the configuration information of the basic object type of interface parameters type.
After the configuration interface parameter object, after the instruction that the configuration information of interface parameters object is shared in the indication that this step can also receive user input, the configuration information of interface parameters object is saved in shared cell in order to use for the user during configuration interface parameter object later on.
904B, interface test device package interface, this interface comprises: port addressing information, the interface of interface return type correspondence returns object, the interface parameters object that disposes.
This step can be carried out by the interface definition unit.This step can also receive the instruction that interface is shared in user indication, and saving interface is so that the use-case element of selecting as the user during packaging and testing use-case later on.
905B, obtain the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element, obtain the test data of each basic object type correspondence in the use-case element, utilize the use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence; Wherein, the use-case element of user's selection comprises interface.
This step can be carried out by the test case encapsulation unit.
Can also receive the instruction that test case is shared in user's indication in this step, preserve test case in shared cell.
906B, operation test case generate test report.
This step is carried out by use-case scheduling unit, use-case performance element and report generation unit.
Concrete, use-case scheduling unit in this interface test device provides a plurality of test cases to select for the user, a plurality of test cases that the user selects are formed test case, and the control interface proving installation represents use-case scheduling interface, receive the operation rule of user's test case of appointment in use-case scheduling interface, use-case performance element in the interface test device will be according to the operation rule of the test case of user's appointment, the operation test case.Wherein, the operation rule of test case is the operation rule of each test case in this test case.
When the embodiment of the invention is the complex object type in the interface parameters type, automatically resolve and represent the structure (this interface parameters type comprises the basic object type) of this interface parameters type, and obtain the configuration information of the basic object type of user's appointment, make the user when structure interface parameters object, not need to write code, and the configuration information that utilizes the basic object type obtains the test data of each basic object type correspondence, thereby packaging and testing use-case, make the user when the process of structure test case, not need to write code, improved testing efficiency.
Consult Fig. 9 C, another embodiment of the present invention provides a kind of interface test method, and this method is applicable to the integration testing of software, and this method specifically comprises:
901C-904C is identical with 901B-904B, does not repeat them here.
905C, obtain a plurality of logics encapsulation elements that the user selects, according to the call relation of user's appointment a plurality of logics encapsulation elements are packaged into the test logic structure, a plurality of logics encapsulation elements comprise packaged interface.
This step can be carried out by the test logic encapsulation unit.
Concrete, interface test device provides the logic package interface, instruction according to the user saves as a variable with the return results that first logic encapsulates element, utilize this variable with the logical relation sign of operation first logic encapsulation element to be connected with second logic encapsulation element, a plurality of logic encapsulation elements are packaged into a test logic structure, wherein, first logic encapsulation element and second logic encapsulation element can be interface or the test package structures that has encapsulated.
906C, obtain the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element, obtain the test data of each basic object type correspondence in the use-case element, utilize the use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence; Wherein the use-case element of user's selection comprises the test logic structure.
This step can be carried out by the test case encapsulation unit.
Wherein, three kinds of test data obtain manners can be arranged, the corresponding description of the face device part of specifically seing before.
This step specifically is for the elements of forming the use-case entity and the wherein test data of each basic object correspondence and use-case title, rank, description and type attribute and the expected results value of user's input of having received, packaging and testing use-case according to a plurality of.Wherein use-case title, rank, description, type attribute are mainly the user and use in maintenance process, the function that the easy-to-read interface is finished.Use-case rank and use-case type can be used (press the operation of use-case rank, press the operation of use-case type) in the use-case scheduling, the use-case entity can comprise one or more test logic structure or interface.
907C, interface test device operation test case generate test report.
This step is carried out by use-case scheduling unit, use-case performance element and report generation unit.
Concrete, use-case scheduling unit in this interface test device provides a plurality of test cases to select for the user, a plurality of test cases that the user selects are formed test case, and the control interface proving installation represents use-case scheduling interface, receive the operation rule of user's test case of appointment in use-case scheduling interface, use-case performance element in the interface test device will be according to the operation rule of the test case of user's appointment, the operation test case.Wherein, the operation rule of test case is the operation rule of each test case in this test case.
When the embodiment of the invention is the complex object type in the interface parameters type, automatically resolve and represent the structure (this interface parameters type comprises the basic object type) of this interface parameters type, and obtain the configuration information of the basic object type of user's appointment, make the user when the parameter object of structure interface, not need to write code, this interface test device is packaged into the test logic structure according to the call relation between a plurality of interfaces of user's appointment with a plurality of interfaces simultaneously, make in the integration testing environment, do not need the user to write any code, but only need the user to select according to the information at interface, realize in the integration testing scene a plurality of interfaces being tested; Increase the user simultaneously/deletion/do not need the changed test code when revising use-case, user-friendly, the time overhead of saving interface testing.Further, the mode of employing image conversion is for user's configuration testing use-case and test data, and is user-friendly, thereby can realize the integration testing of any system.
Consult Figure 10, the embodiment of the invention provides a kind of interface test method, and this method specifically comprises:
1001, interface test device receives the tested information of user's input, obtains interface message to be tested according to tested information, represents the interface that comprises interface message to be tested.
1002, interface test device obtains the port addressing information of user's appointment, interface parameters type and interface return type.Wherein, the user is according to interface message specified interface addressing information to be tested, interface parameters type and interface return type.
1003, according to the interface parameters type, scan tested object, analysis interface is to the scanning result of tested object, when the interface parameters type is the complex object type, the structure that represents the interface parameters type, the structure of this interface parameters type is made up of the basic object type, the look-up command that the configuration information of this interface parameters type is searched in the indication of reception user input, search the configuration information whether this interface parameters type is arranged in the local shared cell, if not, carry out 1004, if carry out 1009.
1004, search the configuration information of this interface parameters type to central controller, if do not find, carry out 1005, if find, carry out 1008.
1005, the prompting user imports the configuration information of this interface parameters type.
Wherein, the configuration information of interface parameters type comprises the configuration information of each basic parameter type in this interface parameters type, and the configuration information of basic parameter type comprises each property value of basic parameter type.
1006, whether the prompting user shares the configuration information of this interface parameters type, indicates shared instruction if receive the user, carries out 1007, otherwise, carry out 1009.
1007, the configuration information with this interface parameters type is saved in local shared cell, and local shared cell sends to central controller with the configuration information of this interface parameters type, carries out 1009.
1008, from central controller, obtain the configuration information of this interface parameters type.
1009, according to the structure of the configuration information of interface parameters type, interface parameters type and port addressing information etc., package interface.
1010, when the user need test a plurality of interface, the indication that receives user's input increases the instruction of new interface, and whether search in the shared cell of this locality has the user to indicate the interface of increase, if not, carries out 1011, if carry out 1015.
1011, search to central controller and whether have the user to indicate the interface of increase, if do not have, carry out 1012, if having, carry out 1015.
1012, configuration new interface.
1013, whether the prompting user needs to share this new interface, shares this interface if the user indicates, and then carries out 1014, otherwise, carry out 1016.
1014, this interface is put into local shared cell, local shared cell sends to central controller with interface and preserves, and carries out 1016.
1015, from central controller, obtain the interface that the user indicates increase.
1016, the call relation between a plurality of interfaces of reception user appointment is packaged into the test logic structure according to call relation with a plurality of interfaces.
1017, the indication that receives user input increases the instruction of new test logic structure, and whether have user indicate the new test logic structure of increase, if not, carry out 1018 if searching in the shared cell of this locality; If carry out 1023.
1018, search to central controller and whether have the user to indicate the new test logic structure of increase, if do not have, carry out 1019, otherwise carry out 1022.
1019, the new test logic structure of configuration.
1020, whether the prompting user needs to share this new test logic structure, shared if the user indicates, and then carries out 1021, carries out 1023 if not.
1021, this new test logic structure is put into local shared cell, local shared cell sends to central controller with new test logic structure and preserves, and carries out 1023.
1022, from central controller, obtain the test logic structure that the user indicates increase.
1023, obtain the test data of each basic object correspondence in the test logic structure, according to the test data of test logic structure and each basic object correspondence, packaging and testing use-case.
1024, represent use-case scheduling configuration interface, receive the test case operation rule of user's appointment in use-case scheduling configuration interface, according to the test case operation rule of user's appointment, the operation test case.
1025, the operation result according to test case generates test report.
This embodiment makes the user in the integration testing environment, does not need the user to write any code, but only needs the user to select according to the information at interface, realizes in the integration testing scene a plurality of interfaces being tested; Increase the user simultaneously/deletion/do not need the changed test code when revising use-case, user-friendly, the time overhead of saving interface testing; Further, the mode of employing image conversion is for user's configuration testing use-case and test data, and is user-friendly, thereby can realize the integration testing of any system; Further, shared cell can be shared the parameter object, interface, test logic structure, use-case of interface etc., and convenient many people carry out interface testing simultaneously.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to instruct relevant hardware to finish by program, this program can be stored in a kind of computer-readable recording medium, ROM (read-only memory) for example, disk or CD etc.
More than interface test method and device that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (25)

1. an interface test device comprises test case encapsulation unit, use-case performance element and report generation unit, and described use-case performance element is used for the test case that the described test case encapsulation unit of operation encapsulates; Described report generation unit is used for the operation result according to test case, generates test report, it is characterized in that described interface test device also comprises: interface scans unit, data definition unit,
Described interface scans unit is used for scanning tested object according to the interface parameters type of user's appointment;
Described data definition unit, be used for analyzing described interface scans unit to the scanning result of described tested object, the structure that represents described interface parameters type, described interface parameters type comprises the basic object type, obtains the configuration information of the basic object type of user's appointment;
Described test case encapsulation unit, be used for obtaining the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element that described data definition unit obtains, obtain the test data of each basic object type correspondence in the described use-case element, utilize described use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence.
2. proving installation according to claim 1 is characterized in that,
Described data definition unit, be used for analyzing described interface scans unit to the scanning result of described tested object, when described interface parameters type is the complex object type, the tree structure that represents described interface parameters type, obtain the configuration information of each basic object type in the described interface parameters type of user's appointment, according to the configuration information of each basic object type and the tree structure configuration interface parameter object of interface parameters type; When described interface parameters type is the basic object type, obtain the configuration information of the described basic object type of user's appointment, according to the configuration information configuration interface parameter object of described basic object type.
3. proving installation according to claim 2 is characterized in that,
Described interface test device also comprises:
The interface definition unit, be used for obtaining port addressing information, interface return type and the interface parameters type of user's appointment, package interface, described interface comprises: port addressing information, the interface of interface return type correspondence returns object, the interface parameters object of described data definition unit configuration;
The use-case element that described test case encapsulation unit obtains comprises: the interface of interface definition unit package.
4. proving installation according to claim 3 is characterized in that, also comprises: shared cell,
Described data definition unit also is used for after receiving the instruction that user's indication shares the configuration information of interface parameters type, and the configuration information of interface parameters type is saved in shared cell; The configuration information of described interface parameters type comprises the configuration information of each basic object type in the interface parameters type;
Described shared cell is used for preserving the configuration information of described interface parameters type; Wherein, the configuration information of each basic object type is the configuration information of the specified basic object type of user during the configuration interface parameter object after the described data definition unit in the interface parameters type of preserving in the described shared cell;
Perhaps,
Described interface definition unit also is used for receiving the instruction that interface is shared in user's indication, and described interface is saved in shared cell;
Described shared cell is used for preserving described interface; Wherein, the interface preserved of described shared cell is user-selected use-case element during the packaging and testing use-case after the test case encapsulation unit;
Perhaps,
Described test case encapsulation unit also is used for receiving the instruction that test case is shared in user's indication, and described test case is saved in shared cell;
Described shared cell is used for preserving described test case.
5. proving installation according to claim 2 is characterized in that,
Described interface test device also comprises:
The interface definition unit, be used for obtaining port addressing information, interface return type and the interface parameters type of user's appointment, package interface, described interface comprises: port addressing information, the interface of interface return type correspondence returns object, the interface parameters object of described data definition unit configuration;
The test logic encapsulation unit, be used for obtaining a plurality of logic encapsulation elements that the user selects, call relation according to user's appointment is packaged into the test logic structure with a plurality of logic encapsulation elements, and described a plurality of logic encapsulation elements comprise the interface of described interface definition unit package;
The use-case element that described test case encapsulation unit obtains comprises: the test logic structure of test logic encapsulation unit encapsulation.
6. proving installation according to claim 5 is characterized in that,
Described a plurality of logic encapsulation element comprises first logic encapsulation element and second logic encapsulation element;
Described test logic encapsulation unit, be used for obtaining a plurality of logic encapsulation elements that the user selects, the return results of first logic encapsulation element as variable, is arranged the value of variable as the input value of second logic encapsulation element according to user's instruction, obtain the test logic structure.
7. proving installation according to claim 5 is characterized in that, also comprises: shared cell,
Described data definition unit also is used for after receiving the instruction that user's indication shares the configuration information of interface parameters type, and the configuration information of interface parameters type is saved in shared cell; The configuration information of described interface parameters type comprises the configuration information of each basic object type in the interface parameters type;
Described shared cell is used for preserving the configuration information of described interface parameters type; Wherein, the configuration information of each basic object type is the configuration information of the specified basic object type of user during the configuration interface parameter object after the described data definition unit in the described shared cell interface parameters type of preserving;
Perhaps,
Described interface definition unit also is used for receiving the instruction that interface is shared in user's indication, and described interface is saved in shared cell;
Described shared cell is used for preserving described interface; Wherein, the interface preserved of described shared cell is user-selected logic encapsulation element during the packaging and testing logical organization after user-selected use-case element or the test logic encapsulation unit during packaging and testing use-case after the test case encapsulation unit;
Perhaps,
Described test logic encapsulation unit also is used for receiving the instruction that the test logic structure is shared in user's indication, and described test logic structure is saved in shared cell;
Described shared cell is used for preserving described test logic structure; Wherein, the described shared cell test logic structure of preserving is user-selected use-case element during the packaging and testing use-case after the test case encapsulation unit;
Perhaps,
Described test case encapsulation unit also is used for receiving the instruction that test case is shared in user's indication, and described test case is saved in shared cell;
Described shared cell is used for preserving described test case.
8. according to claim 4 or 7 described proving installations, it is characterized in that,
Described shared cell also is used for the content of preserving is sent to central controller.
9. proving installation according to claim 1 is characterized in that,
Described test case encapsulation unit comprises:
Test data is obtained subelement, is used for representing the basic object type that the use-case element has configuration information, searches variable according to user's instruction from the public variable pond, the value of variable is set as the corresponding test data of basic object type of user's appointment;
Test case encapsulation subelement is used for use-case title, rank, description and type attribute and expected results value according to the test data of a plurality of use-case elements and each basic object type correspondence thereof and user's input of having received, the packaging and testing use-case;
Perhaps, described test case encapsulation unit comprises:
The Data Update subelement is used for representing the basic object type that the use-case element has configuration information, receives the new configuration information of the described basic object type of user's input, upgrades the use-case element;
Test data is obtained subelement, is used for obtaining the test data of each basic object type correspondence of described use-case element;
Test case encapsulation subelement is used for according to the use-case element after upgrading and the test data of each basic object type correspondence thereof, packaging and testing use-case.
10. proving installation according to claim 1 is characterized in that,
The configuration information of described basic object type comprises: the input value scope of basic object type;
Described test case encapsulation unit also is used for according to the test case that has encapsulated and the input value scope of test case basic object type, utilizes the binary orthogonal algorithm to generate new test case.
11. proving installation according to claim 1 is characterized in that, also comprises:
The use-case scheduling unit is used for the described interface test device of control and represents use-case scheduling configuration interface, receives the test case operation rule of user's appointment in described use-case scheduling configuration interface;
Described use-case performance element is used for the test case operation rule according to user's appointment, moves described test case.
12. an interface test method comprises the operation test case, generates test report, it is characterized in that described method also comprises:
Interface parameters type according to user's appointment scans tested object;
Analysis represents the structure of described interface parameters type to the scanning result of tested object, and described interface parameters type comprises the basic object type, obtains the configuration information of the basic object type of user's appointment;
Obtain the use-case element that the user selects, utilize the configuration information of basic object type in the use-case element, obtain the test data of each basic object type correspondence in the described use-case element, utilize described use-case element to reach the wherein test data packaging and testing use-case of each basic object type correspondence.
13. method according to claim 12 is characterized in that,
The structure that represents described interface parameters type comprises:
When described interface parameters type is the complex object type, represent the tree structure of described interface parameters type.
14. method according to claim 12 is characterized in that,
The configuration information that obtains the basic object type of user's appointment comprises:
Receive the configuration information of the described basic object type of user's input;
Perhaps,
The look-up command that the configuration information of described interface parameters type is searched in the indication of reception user input;
Search the configuration information of described interface parameters type in this locality, if the local configuration information that does not find described interface parameters type, inquire about the configuration information of described interface parameters type to central controller, wherein, the configuration information of described interface parameters type comprises: the configuration information of each basic object type in the interface parameters type.
15. method according to claim 12 is characterized in that,
After the configuration information of the basic object type of obtaining user's appointment, this method also comprises:
Configuration information configuration interface parameter object according to described basic object type;
Package interface, described interface comprises: the corresponding interface of interface return type of the port addressing information of user's appointment, user's appointment returns object and described interface parameters object;
The use-case element that the described user of obtaining selects comprises: obtain the interface that has encapsulated that the user selects.
16. method according to claim 15 is characterized in that,
After the configuration interface parameter object, this method also comprises:
After receiving the instruction that user indication shares the configuration information of interface parameters type, preserve described interface parameters type configuration information in case later on during the configuration interface parameter object as the configuration information of the basic object type of user's appointment;
Perhaps,
After package interface, this method also comprises:
Receive the instruction that interface is shared in user's indication, preserve described interface so that the use-case element of selecting as the user during packaging and testing use-case later on;
Perhaps,
Utilizing described use-case element and wherein after the test data packaging and testing use-case of each basic object type correspondence, this method also comprises:
Receive the instruction that test case is shared in user's indication, preserve described test case.
17. method according to claim 12 is characterized in that,
After the configuration information of the basic object type of obtaining user's appointment, this method also comprises:
Configuration information configuration interface parameter object according to described basic object type;
Package interface, described interface comprises: the corresponding interface of interface return type of the port addressing information of user's appointment, user's appointment returns object and described interface parameters object;
Obtain a plurality of logics encapsulation elements that the user selects, according to the call relation of user's appointment a plurality of logics encapsulation elements are packaged into the test logic structure, described a plurality of logics encapsulation elements comprise packaged interface;
The use-case element that the described user of obtaining selects comprises: obtain the test logic structure that has encapsulated that the user selects.
18. method according to claim 17 is characterized in that,
Described a plurality of logic encapsulation element comprises first logic encapsulation element and second logic encapsulation element;
Described call relation according to user's appointment is packaged into the test logic structure with a plurality of logic encapsulation elements and comprises:
The return results of first logic encapsulation element as variable, is arranged the value of variable as the input value of second logic encapsulation element according to user's instruction, obtain the test logic structure.
19. method according to claim 17 is characterized in that,
After the configuration interface parameter object, this method also comprises:
After receiving the instruction that user indication shares the configuration information of interface parameters type, preserve described interface parameters type configuration information in case later on during the configuration interface parameter object as the configuration information of the basic object type of user's appointment;
Perhaps,
After package interface, this method also comprises:
Receive the instruction that interface is shared in user's indication, preserve described interface so that the logic encapsulation element of selecting as the user when use-case element of selecting as the user during packaging and testing use-case or packaging and testing logical organization later on;
Perhaps,
After the packaging and testing logical organization, this method also comprises:
After receiving the instruction that user's indication shares the test logic structure, preserve described test logic structure so that the use-case element of selecting as the user during packaging and testing use-case later on;
Perhaps,
Utilizing described use-case element and wherein after the test data packaging and testing use-case of each basic object type correspondence, this method also comprises:
Receive the instruction that test case is shared in user's indication, preserve described test case.
20. according to claim 16 or 19 described methods, it is characterized in that,
The configuration information of the described interface parameters type of described preservation comprises:
Preserve the configuration information of described interface parameters type in this locality, and the configuration information of described interface parameters type is saved in central controller.
21. according to claim 16 or 19 described methods, it is characterized in that,
Preserving described interface comprises:
Preserve described interface in this locality, and described interface is saved in central controller.
22. method according to claim 19 is characterized in that,
Preserving described test logic structure comprises:
Preserve described test logic structure in this locality, and described test logic structure is saved in central controller.
23. according to claim 16 or 19 described methods, it is characterized in that,
Preserving described test case comprises:
Preserve described test case in this locality, and described test case is saved in central controller.
24. method according to claim 12 is characterized in that,
The described test data of obtaining each basic object type correspondence in the described use-case element comprises:
Represent the basic object type that has configuration information in the use-case element, from the public variable pond, search variable according to user's instruction, the value of variable is set as the test data of basic object type correspondence in the use-case element of user's selection.
25. method according to claim 12 is characterized in that,
This method also comprises: control described interface test device and represent use-case scheduling configuration interface, receive the test case operation rule of user's appointment in described use-case scheduling configuration interface;
The described test case of described operation comprises:
According to the test case operation rule of user's appointment, move described test case.
CN 200910254327 2009-12-11 2009-12-11 Interface testing method and device Expired - Fee Related CN102096631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910254327 CN102096631B (en) 2009-12-11 2009-12-11 Interface testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910254327 CN102096631B (en) 2009-12-11 2009-12-11 Interface testing method and device

Publications (2)

Publication Number Publication Date
CN102096631A CN102096631A (en) 2011-06-15
CN102096631B true CN102096631B (en) 2013-09-25

Family

ID=44129734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910254327 Expired - Fee Related CN102096631B (en) 2009-12-11 2009-12-11 Interface testing method and device

Country Status (1)

Country Link
CN (1) CN102096631B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117344A (en) * 2015-09-19 2015-12-02 北京暴风科技股份有限公司 Interface integration test method and system based on PB

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019931B (en) * 2012-11-26 2015-12-02 华为技术有限公司 The check processing method and apparatus of Asn.1 interface
CN103049374B (en) * 2012-12-03 2015-07-01 瑞斯康达科技发展股份有限公司 Automatic testing method and device
CN103914377B (en) * 2014-03-13 2016-08-24 中国联合网络通信集团有限公司 Interface test method and device
CN104021083B (en) * 2014-06-17 2017-11-28 珠海格力电器股份有限公司 Method of testing and device
CN105373469B (en) * 2014-08-25 2018-09-04 广东金赋科技股份有限公司 A kind of software automated testing system and method based on interface
CN104572463B (en) * 2014-12-31 2018-04-03 广州酷狗计算机科技有限公司 The method and device of test interface information
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device
CN105005532B (en) * 2015-08-05 2017-11-24 广东欧珀移动通信有限公司 A kind of system and method for automatic test application programming interfaces stability
CN106874175A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Test data auto generation method and apparatus
CN105528294B (en) * 2015-12-29 2018-05-25 广东金赋科技股份有限公司 The method and system that a kind of interface testing use-case automatically generates
CN105678664A (en) * 2016-02-03 2016-06-15 成都爱易佰网络科技有限公司 Method for implementing intelligent change anti-cheating movable question bank
CN106021090A (en) * 2016-05-04 2016-10-12 上海瀚银信息技术有限公司 Software interface test system and method
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system
CN106991040B (en) * 2016-07-20 2020-05-05 平安科技(深圳)有限公司 Data interface testing method and device
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
CN106776334B (en) * 2016-12-28 2021-03-23 北京奇虎科技有限公司 Comment-based test case generation method and device
CN108737474B (en) * 2017-04-21 2021-04-30 北京京东尚科信息技术有限公司 HTTP interface calling method and device
CN107329861B (en) * 2017-06-12 2020-12-22 奇安信科技集团股份有限公司 Multi-interface testing method and device
CN107729228A (en) * 2017-08-24 2018-02-23 北京网众共创科技有限公司 Interface test method, device, storage medium and processor
CN107367657A (en) * 2017-08-28 2017-11-21 广东电网有限责任公司电力科学研究院 A kind of distribution automation system integration test method and device
CN109426608A (en) * 2017-08-29 2019-03-05 中国电信股份有限公司 The test method and device of Distributed Services, computer readable storage medium
CN107678942A (en) * 2017-08-30 2018-02-09 苏州朗动网络科技有限公司 A kind of API automated testing methods
CN107844421B (en) * 2017-10-31 2020-08-14 平安科技(深圳)有限公司 Interface testing method and device, computer equipment and storage medium
CN107766190B (en) * 2017-10-31 2020-06-12 平安科技(深圳)有限公司 Interface testing method and device, computer equipment and storage medium
CN107885834B (en) * 2017-11-09 2021-07-20 浪潮云信息技术股份公司 Hadoop big data assembly unified verification system
CN108563539A (en) * 2018-03-21 2018-09-21 广州视源电子科技股份有限公司 Interface test method, server, readable storage medium storing program for executing and system
CN108897687B (en) * 2018-06-29 2022-04-01 泰华智慧产业集团股份有限公司 API automatic testing method and system based on data driving
CN109240905A (en) * 2018-07-02 2019-01-18 链家网(北京)科技有限公司 Method for testing software and system
CN109120473B (en) * 2018-07-27 2020-11-03 广州市百果园信息技术有限公司 Interface request frame implementation method, interface test method and corresponding device
CN109376064B (en) * 2018-09-03 2023-03-31 平安普惠企业管理有限公司 Method and equipment for generating interface test report
CN109656806A (en) * 2018-10-29 2019-04-19 口碑(上海)信息技术有限公司 A kind of the playback test method and device of interface data
CN109614320A (en) * 2018-11-16 2019-04-12 福建天泉教育科技有限公司 A kind of method and terminal detecting code interface accuracy
CN111258873B (en) * 2018-11-30 2023-06-27 阿里巴巴集团控股有限公司 Test method and device
CN109614329B (en) * 2018-12-06 2021-11-02 中国航空工业集团公司洛阳电光设备研究所 Software test case aided design method based on interface control file
CN109739701A (en) * 2018-12-14 2019-05-10 北京奇安信科技有限公司 Interface test method and device
CN110245083A (en) * 2019-06-11 2019-09-17 四川长虹电器股份有限公司 A kind of automatic interface testing method based on python
CN110445690A (en) * 2019-08-16 2019-11-12 北京智芯微电子科技有限公司 The design method of electric power wireless public network communication unit interchangeability test software
CN111259619B (en) * 2020-01-17 2023-06-02 南京芯驰半导体科技有限公司 Control method and device for configuration object, storage medium and verification platform
CN111352748B (en) * 2020-02-26 2023-12-05 北京思特奇信息技术股份有限公司 Interface calling method and device, electronic equipment and storage medium
CN113535565B (en) * 2021-07-19 2022-10-04 工银科技有限公司 Interface use case generation method, device, equipment and medium
CN113326208A (en) * 2021-08-03 2021-08-31 深圳市维度数据科技股份有限公司 Interface test method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10137297A1 (en) * 2001-08-01 2003-02-20 Abb Patent Gmbh Method for automated testing of software or software component robustness in which the number of test cases to be run is reduced by not running test cases containing known critical test values
CN101025686A (en) * 2007-03-22 2007-08-29 中兴通讯股份有限公司 Automation test system and test script generating and operating method
CN101110024A (en) * 2007-08-14 2008-01-23 中兴通讯股份有限公司 Unit test system and method thereof
CN101145993A (en) * 2007-10-11 2008-03-19 中兴通讯股份有限公司 A multi-point access interface test method and its test system
CN101488085A (en) * 2008-01-17 2009-07-22 中兴通讯股份有限公司 Software interface test method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10137297A1 (en) * 2001-08-01 2003-02-20 Abb Patent Gmbh Method for automated testing of software or software component robustness in which the number of test cases to be run is reduced by not running test cases containing known critical test values
CN101025686A (en) * 2007-03-22 2007-08-29 中兴通讯股份有限公司 Automation test system and test script generating and operating method
CN101110024A (en) * 2007-08-14 2008-01-23 中兴通讯股份有限公司 Unit test system and method thereof
CN101145993A (en) * 2007-10-11 2008-03-19 中兴通讯股份有限公司 A multi-point access interface test method and its test system
CN101488085A (en) * 2008-01-17 2009-07-22 中兴通讯股份有限公司 Software interface test method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117344A (en) * 2015-09-19 2015-12-02 北京暴风科技股份有限公司 Interface integration test method and system based on PB
CN105117344B (en) * 2015-09-19 2017-12-08 暴风集团股份有限公司 A kind of Interface integration method of testing and system based on PB

Also Published As

Publication number Publication date
CN102096631A (en) 2011-06-15

Similar Documents

Publication Publication Date Title
CN102096631B (en) Interface testing method and device
CN113034095A (en) Man-machine interaction method and device combining RPA and AI, storage medium and electronic equipment
CN104821954B (en) A kind of cross-platform remote procedure calling (PRC) method
CN109445323B (en) WEB-based distributed intelligent measurement and control software platform design method
CN101770423A (en) Test data generation method and test system
CN106844213A (en) A kind of front end method of testing and device
CN103942055A (en) Development system and method for fusion network mixing service process programming language
CN108958843A (en) Plug-in unit construction method, system, equipment and medium based on lightweight script
CN108132879A (en) Automated software testing method, platform, terminal and medium
CN111737697B (en) Safety scanning system and scanning method based on atomization function
CN110781180A (en) Data screening method and data screening device
CN111695827A (en) Business process management method and device, electronic equipment and storage medium
CN106874208A (en) The processing method of test script, device and electronic equipment
CN107733710A (en) Construction method, device, computer equipment and the storage medium of link call relation
WO2022228156A1 (en) Policy orchestration processing method, apparatus, device and system and storage medium
CN112799782A (en) Model generation system, method, electronic device, and storage medium
CN102402455A (en) Method and device for calling dynamic link library (DLL)
CN109902003A (en) The generation method and device of test script
CN110232028A (en) A kind of test exemple automation operation method and system
CN109783159A (en) Application starting method and apparatus based on configuration information
CN112328225A (en) Page operation method and operation system thereof
CN113626128B (en) Audio-visual media micro-service third-party module access method, system and electronic equipment
CN110059002A (en) Generation method, test equipment, storage medium and the device of test data
CN113157268B (en) Equipment state processing system combining flow engine and Internet of things
CN113626001A (en) API dynamic editing method and device based on script

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130925

Termination date: 20141211

EXPY Termination of patent right or utility model