CN108664384A - Data processing equipment and data processing method - Google Patents
Data processing equipment and data processing method Download PDFInfo
- Publication number
- CN108664384A CN108664384A CN201710197473.9A CN201710197473A CN108664384A CN 108664384 A CN108664384 A CN 108664384A CN 201710197473 A CN201710197473 A CN 201710197473A CN 108664384 A CN108664384 A CN 108664384A
- Authority
- CN
- China
- Prior art keywords
- api
- test
- code
- data processing
- test path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
The present invention relates to data processing equipments and data processing method.Data processing equipment according to the present invention includes:Generation unit, the Test driver for generating API, Test driver is driven to indicate to carry out function call to API;Coordinates measurement unit, the constraints of test path and test path for generating API based on semiology analysis;And Test cases technology unit, the constraints for being used for the Test driver based on API, test path and test path generate the test case of API, wherein the test path that coordinates measurement unit generates includes the lines of code of API, and coordinates measurement unit is used for:When searching out the code including call back function, using the code included by the code including call back function and its path before as the test path of API.Using data processing equipment according to the present invention and data processing method, the API that can be directed to mixing app automatically generates test case.
Description
Technical field
The embodiment of the present invention is related to data processing field, more particularly to testing field, relate more specifically to can be
Single application programming interface API generates the data processing equipment and data processing method of test case, is generated for API sequences
The data processing equipment and data processing method of test case, at the single API data processing equipments tested and data
Reason method and the data processing equipment that API sequences are tested and data processing method.
Background technology
This part provides background information related to the present invention, this is not necessarily the prior art.
Nowadays, mobile Internet is universal more and more flourishing with smart mobile phone and 3G/4G networks.People gradually start to make
With smart mobile phone, and various application programs (app) are installed on smart mobile phone.Mixing app is referred to can be different
The app run in application platform (for example, cordova platforms and Android platform etc.).Under normal circumstances, the generation of app is mixed
Code consists of two parts:The code of web page portions and the code of local part.Wherein, the mixing run in different application platforms
The code of the web page portions of app is identical, and the code of local part is different.For example, mixed for what is run in Android platform
App is closed, the code of JavaScript language exploitation web page portions can be used, and java language development local parts can be used
Code.Application programming interface API is the interface between web page portions and local part, can be used for calling local part
Code to realize the function of app.
When testing the API for mixing app, the API for mixing app is needed to generate test case.Traditional side
In method, tester only manually tests the API of mixing app.That is, if tester want to mix app API into
Row white-box testing, due to lacking the method for automatically generating test case now, they usually manually write test case.This
Outside, semiology analysis is a kind of common method for generating test case in this field, can replace actual value pair with value of symbol
Program is executed and analyzes program.But existing symbolic execution technique can only be tested based on common Software Create
Use-case, but the generation of the API test cases of mixing app is not supported.
For the above technical problem, the present invention wishes to propose a kind of scheme, and the API that can be directed to mixing app is automatically generated
Test case.
Invention content
This part provides the general summary of the present invention, rather than its full scope or the comprehensive of its whole feature drape over one's shoulders
Dew.
The purpose of the present invention is to provide a kind of data processing equipment and data processing methods, can be directed to mixing app's
API automatically generates test case.
According to an aspect of the present invention, a kind of data processing equipment is provided, including:Generation unit is driven, for generating
The Test driver of application programming interface API, the Test driver indicate to carry out function call to the API;Coordinates measurement
Unit, the constraints of test path and the test path for generating the API based on semiology analysis;And test is used
Example generation unit, described in the constraints for Test driver, test path and the test path based on the API generates
The test case of API, wherein the test path that the coordinates measurement unit generates includes the lines of code of the API, and institute
Coordinates measurement unit is stated to be used for:When searching out the code including call back function, by the code including call back function and its
Test path of the code included by path as the API before.
According to another aspect of the present invention, a kind of data processing method is provided, including:Generate application programming interface
The Test driver of API, the Test driver indicate to carry out function call to the API;Generate the API's based on semiology analysis
The constraints of test path and the test path;And Test driver, test path and the test based on the API
The constraints in path generates the test case of the API, wherein the test path of the API includes the multirow generation of the API
Code, and when searching out the code including call back function, path institute by the code including call back function and its before
Including test path of the code as the API.
According to another aspect of the present invention, a kind of program product is provided, which includes the machine being stored therein
Device readable instruction code, wherein described instruction code can make the computer execute root when being read and executed by computer
According to the data processing method of the present invention.
According to another aspect of the present invention, a kind of machine readable storage medium is provided, is carried thereon including being stored in
The program product of machine readable instructions code therein, wherein described instruction code, can when being read and executed by computer
The computer is set to execute data processing method according to the present invention.
Using data processing equipment according to the present invention and data processing method, Test driver that can be according to API, test
The constraints of path and test path is that API generates test case automatically.In addition, during finding test path, when
When searching out the code including call back function, searching to test path is terminated, by the code and its before including call back function
Code as test path.So, the time for finding test path can be greatly reduced, and improve the standard of test path
True property.
Description and specific examples in this summary are intended merely to the purpose of signal, the model being not intended to limit the invention
It encloses.
Description of the drawings
Attached drawing described here is intended merely to the purpose of the signal of selected embodiment and not all possible implementation, and not
It is intended to limit the scope of the invention.In the accompanying drawings:
Fig. 1 shows the structure diagram of data processing equipment according to an embodiment of the invention;
Fig. 2 shows the structure diagrams of the driving generation unit in data processing equipment according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of the Test driver according to an embodiment of the invention for generating API;
Fig. 4 shows the frame diagram of the Test driver according to an embodiment of the invention for generating API;
Fig. 5 shows the structure diagram of the coordinates measurement unit in data processing equipment according to an embodiment of the invention;
Fig. 6 shows the constraints of the test path for generating API and test path according to an embodiment of the invention
Schematic diagram;
Fig. 7 shows the structure of the coordinates measurement unit in data processing equipment according to another embodiment of the invention
Block diagram;
Fig. 8 shows the structure diagram of data processing equipment according to another embodiment of the invention;
Fig. 9 shows the structure diagram of data processing equipment according to still another embodiment of the invention;
Figure 10 shows the parameter transitive relation figure of API sequences according to an embodiment of the invention;
Figure 11 shows the flow chart of data processing method according to an embodiment of the invention;And
Figure 12 is the exemplary knot for the general purpose personal computer that data processing method according to the present invention wherein may be implemented
The block diagram of structure.
Although the present invention is subjected to various modifications and alternative forms, its specific embodiment is as an example in attached drawing
In show, and be described in detail here.It should be understood, however, that being not intended to send out this to the description of specific embodiment at this
It is bright to be restricted to disclosed concrete form, but on the contrary, the invention aims to cover fall the spirit and scope of the present invention it
It is interior all modifications, equivalent and replace.It should be noted that running through several attached drawings, corresponding label indicates corresponding component.
Specific implementation mode
Referring now to the drawings come be described more fully the present invention example.It is described below and is merely exemplary in nature,
It is not intended to limit the invention, application or purposes.
Example embodiment is provided below, so that the present invention will become detailed, and will be to those skilled in the art
Fully communicate its range.The example for elaborating numerous specific details such as discrete cell, device and method, to provide to this hair
The detailed understanding of bright embodiment.It will be obvious that, specific details need not be used to those skilled in the art,
Example embodiment can be implemented with many different forms, they shall not be interpreted to limit the scope of the invention.
In certain example embodiments, well-known process, well-known structure and widely-known technique are not described in detail.
Data processing equipment 100 according to the present invention is described with reference to Fig. 1.
Data processing equipment 100 according to the present invention may include driving generation unit 110,120 and of coordinates measurement unit
Test cases technology unit 130.
According to an embodiment of the invention, driving generation unit 110 can generate the test drive of application programming interface API
Dynamic, which indicates to carry out function call to API.According to an embodiment of the invention, driving generation unit 110 can be from number
The specification and/or source code that the API for needing to generate test case is obtained according to 100 outside of processing unit, to generate the survey of the API
Examination driving.It needs to generate in addition, driving generation unit 110 can also be obtained from other units inside data processing equipment 100
The specification and/or source code of the API of test case, to generate the Test driver of the API.Further, generation unit 110 is driven
The Test driver of generation can be sent to Test cases technology unit 130.
According to an embodiment of the invention, coordinates measurement unit 120 can based on semiology analysis generate API test path and
The constraints of test path.According to an embodiment of the invention, coordinates measurement unit 120 can be outside data processing equipment 100
Portion obtains the source code for the API for needing to generate test case, to generate the test path of the API and the constraint item of test path
Part.It needs to generate test in addition, coordinates measurement unit 120 can also be obtained from other units inside data processing equipment 100
The source code of the API of use-case, to generate the test path of the API and the constraints of test path.Here, coordinates measurement list
The test path that member 120 generates includes the lines of code of API, and when searching out the code including call back function, path life
At unit 120 using the code included by the code including call back function and its path before as the test path of API.Also
It is to say, when searching out the code including call back function, coordinates measurement unit 120 terminates the searching to test path, directly will
Test path of the code as API included by code including call back function and its path before.Further, coordinates measurement
Unit 120 can also determine the constraints of test path according to test path.Further, coordinates measurement unit 120 can incite somebody to action
The test path of generation and the constraints of test path are sent to Test cases technology unit 130.
According to an embodiment of the invention, Test driver, the test path that Test cases technology unit 130 can be based on API
The test case of API is generated with the constraints of test path.According to an embodiment of the invention, Test cases technology unit 130
The Test driver of API can be obtained from driving generation unit 110, and the test road of API can be obtained from coordinates measurement unit 120
The constraints of diameter and test path, to generate the test case of API.Further, Test cases technology unit 130 can incite somebody to action
The test case of generation is exported from data processing equipment 100.
It can be seen that using data processing equipment 100 according to the present invention, Test driver that can be according to API, test road
The constraints of diameter and test path is that API generates test case automatically.In addition, during finding test path, when seeking
When finding the code including call back function, searching to test path is terminated, by the code and its before including call back function
Code is as test path.So, the time for finding test path can be greatly reduced, and improve the accurate of test path
Property.
According to an embodiment of the invention, API can be the API for mixing app, that is, belong to the web page portions of mixing app
Code API.That is, can be according to the code of the local part of such API Calls mixing app to complete to mix
The function of app.So, data processing equipment 100 can be directed to such API and generate test case to be carried out to API
Test.In general, also can be by test with the mixing app of the API compositions by test, therefore the present invention actually also realizes
The purpose that mixing app is tested.
Fig. 2 shows the structures of the driving generation unit 110 in data processing equipment 100 according to an embodiment of the invention
Block diagram.
According to an embodiment of the invention, driving generation unit 110 may include type determining units 111 and processing unit
112。
According to an embodiment of the invention, type determining units 111 can determine one or more parameters of API and each ginseng
Several types.
According to an embodiment of the invention, type determining units 111 can obtain the source code and annotation of API, and can root
The type of one or more parameters and each parameter is obtained according to source code and annotation.According to an embodiment of the invention, type determines
Unit 111 can obtain the specification of API, and obtain from the specification of API the parameter name, parameter type, parameter return value of API with
And the information such as API category, to generate the annotation of API according to these information.
According to an embodiment of the invention, the parameter type of API may include fundamental type, object type and call back function class
Type.According to an embodiment of the invention, type determining units 111 can determine the type of the parameter according to parameter name.Also
It is to say, type determining units 111 can determine that the title of all parameters of API and each parameter belong in these three types
Which kind of type.Next, the title of all parameters and type can be sent to processing unit 112 by type determining units 111.
According to an embodiment of the invention, processing unit 112 can generate the test drive of API according to the type of each parameter
It is dynamic.
According to an embodiment of the invention, processing unit 112 can be used for:For the parameter of fundamental type, generates symbol and become
Amount;For the parameter of object type, object instance is generated;And the parameter for call back function type, generate do-nothing function object.
Further, processing unit 112 can use parameter initialization API and call the API, to generate the Test driver of the API.
Fig. 3 shows the schematic diagram of the Test driver according to an embodiment of the invention for generating API.As shown in figure 3, top
Box show the source code and comment section of API, annotation here can be natively existing annotation in source code,
It can be the annotation that type determining units 111 are generated according to the API information that the specification of API is extracted.As shown in the top part of fig. 3, should
API includes three parameters:SuccessCallback, errorCallback and options.According to an embodiment of the invention, class
Type determination unit 111 can determine that parameter successCallback and errorCallback belong to call back function type, and join
Number options belongs to object type.
The box of the lower part of Fig. 3 shows the Test driver generated for the API shown in the box of top.Such as the box of lower part
It is shown, since parameter successCallback and errorCallback belong to call back function type, so processing unit 112 can
To generate do-nothing function object " var arg0=function () { } " and " var arg1=function () { } ";Due to parameter
Options belongs to object type, so processing unit 112 can generate object instance " var arg2=new
AccelerationOptions()”.The parameter of fundamental type is not shown in Fig. 3, but processing unit 112 can be directed to substantially
The parameter of type generates symbolic variable.Next, processing unit 112 can use parameter initialization API and call the API, i.e.,
" var retval=accelerometer.getCurrentAcceleration (arg0, arg1, arg2) ".It drives as a result,
Generation unit 110 generates the Test driver as shown in the box of the lower parts Fig. 3.
Fig. 4 shows the frame diagram of the Test driver according to an embodiment of the invention for generating API.As shown in figure 4, first
API specification is obtained, API information is extracted from API specification, the title that gets parms and parameter type, return value and type and API
The information such as type.Next, API annotations can be generated.Next, each parameter is analyzed from the API source codes including annotation,
Different operations is executed for different parameter types.For example, for the parameter of fundamental type, symbolic variable is generated;For right
As the parameter of type, object instance is generated;For the parameter of call back function type, do-nothing function object is generated.Next, can adjust
With API to generate the Test driver of the API.
As above driving generation unit 110 according to an embodiment of the invention is described in detail.Drive generation unit 110 can be with
The API for generating test case is needed to generate Test driver in the manner described above for any one.It will be situated between in detail below
Continue coordinates measurement unit 120 according to an embodiment of the invention.
Fig. 5 shows the structure of the coordinates measurement unit 120 in data processing equipment 100 according to an embodiment of the invention
Block diagram.
As shown in figure 5, coordinates measurement unit 120 may include global variable acquiring unit 121 and processing unit 122.
According to an embodiment of the invention, global variable acquiring unit 121 can run API on an electronic device to obtain
The true value of the global variable of API.
Here, API may include one or more global variable, and global variable acquiring unit 121 can obtain the API
All global variables true value.Global variable indicates the particular community of electronic equipment, for example whether supporting specific parameter.Root
According to the embodiment of the present invention, the true value of global variable may include two kinds of "true" and "false".When the true value of global variable is true,
Illustrate that the electronic equipment is supported and the relevant parameter of this global variable;When global variable true value be fictitious time, illustrate the electronics
Equipment is not supported and the relevant parameter of this global variable.For example, global variable " accelerometer.support " indicates electricity
Whether sub- equipment supports accelerometer, when the true value of global variable " accelerometer.support " is true, illustrates the electricity
Sub- equipment supports accelerometer;When global variable " accelerometer.support " true value be fictitious time, illustrate that the electronics is set
It is standby not support accelerometer.Further, global variable acquiring unit 121 can send the true value of all global variables of acquisition
To processing unit 122.
According to an embodiment of the invention, processing unit 122 can be according to the true value of global variable to optional test path
It is wiped out to generate the test path of API.
According to an embodiment of the invention, processing unit 122 can wipe out the true of global variable in optional test path
Value is the branch of "false".When reason for this is that the true value of, global variable being "false", illustrate electronic equipment do not support and this
The relevant parameter of global variable, to reduce the time for finding test path, simplifies then can directly remove this element branches
The process flow of coordinates measurement unit 120.
Fig. 6 shows the constraints of the test path for generating API and test path according to an embodiment of the invention
Schematic diagram.
According to an embodiment of the invention, code knot as shown in FIG. 6 can be obtained to the source code code analysis of API
Composition.Here the method that any code analysis as known in the art may be used, the present invention do not limit this.Such as Fig. 6 institutes
Show, the box on top indicates the code of the web page portions of API.First, processing unit 122 can be first symbolic variable setting ginseng
Number, and be parameter assignment.Next, global variable acquiring unit 121 can obtain the true value of global variable, such as can obtain
The true value of global variable " accelerometer.support ".Next, processing unit 122 can wipe out global variable
The true value of " accelerometer.support " is the branch of "false".
Next, as shown in fig. 6, intermediate box indicates to execute symbol mapping between web page portions and local part,
The box of lower part indicates the code for the local part being mapped to.According to an embodiment of the invention, in the test for finding local part
When path, needs therefrom to choose a branch when encountering multiple branches and continually look for test path.For example, encounter expression formula 1,
When 3 three branches of expression formula 2 and expression formula, this branch of expression formula 2 is had chosen.Here, the principle for choosing branch will below
In describe in detail.Such principle is equally applicable to find the test path of web page portions.That is, either finding net
The test path of page part is still when finding the test path of local part, and when encountering multiple branches, processing unit 122 all may be used
Therefrom to choose a branch according to such principle.
It is noted above, during finding test path, when searching out the code including call back function, processing is single
Member 122 can be using the code including call back function and its code before as test path.As shown in fig. 6, each in such as 6
A node all indicates the line code in API.If searching out the node that node type is call back function, that is, search out including returning
When the code of letter of transfer number, the searching of test path can be terminated.That is, until the call back function, processing unit 122 is
Through the test path for having searched out API.
According to an embodiment of the invention, include symbolic variable when searching out the code including generic function and generic function
When, processing unit 122 can be extended generic function to continually look for the test path of API.Further, when search out packet
Include the code of generic function and generic function include symbolic variable when, it is straight that processing unit 122 can traverse next paths
Until searching out including the code of call back function.Further, do not include generic function and include symbolic variable when searching out
Code when, processing unit 122 can execute the code.
Fig. 7 shows the coordinates measurement unit 120 in data processing equipment 100 according to another embodiment of the invention
Structure diagram.
As shown in fig. 7, coordinates measurement unit 120 can also include permission function determination unit 123.Reality according to the present invention
Apply example, permission function determination unit 123 can define the competence function according to the permissions list of the application platform of API.Here, permission
Function determination unit 123 can obtain the permissions list of the application platform of the API based on API, to which permissions list to be mapped to
Permission function.According to an embodiment of the invention, permission function may include one or more permission function.Further, permission
The permission function of acquisition can be sent to processing unit 122 by function determination unit 123.
It is described more detail below how processing unit 122 chooses one point when determining test path from multiple branches
Branch.
According to an embodiment of the invention, processing unit 122 can determine the priority score of every line code of API;And
The test path of API is determined according to the priority score of every line code.
Here, when encountering multiple branches during determining test path, it may be determined that with it is every in multiple branch nodes
The priority score of a corresponding code of node, next, can therefrom to choose priority score highest for processing unit 122
One node continually looks for test path.As shown in fig. 6, processing unit 122 can determine node " expression formula 1 ", " expression formula 2 "
The priority score of " expression formula 3 ", for example, node " expression formula 2 " priority score highest, then processing unit 122 can select
Node " expression formula 2 " is taken to continue to determine test path.
According to an embodiment of the invention, whether processing unit 122 can determine including permission function according to every line code
The priority score of code.Here, processing unit 122 can obtain permission function from permission function determination unit 123, and from
And judge per line code whether to include permission function.
According to an embodiment of the invention, whether processing unit 122 can also include symbolic variable, branch according to per line code
Sentence and call back function determine the priority score of code.
For example, processing unit 122 can calculate the priority score of every line code according to following formula:
Wherein, priorityscore indicates the priority score of line code;Basicscore indicates the base of the line code
This score can be set based on experience value;scoreiIndicate score of the line code about i-th of parameter;weightiIndicating should
Weight of the line code about i-th of parameter can be set according to the importance of parameter, and about the weight of all parameters and
Can be 1.Here it is possible to set 4 parameters, i.e. i=1,2,3 or 4:Permission function, symbolic variable, branch statement and readjustment letter
Number.For example, the 1st parameter can be set as permission function, the 2nd parameter is symbolic variable, and the 3rd parameter is branch statement,
4th parameter is call back function.That is, per line code priority score be two-part score and:The line code
Basic score;And weighted sum of the line code about the score of one or more parameter.In above-mentioned formula, sets and deposit
In 4 parameters, but the present invention is not limited thereto.Other number and type of parameters can also be set according to actual demand.
According to an embodiment of the invention, processing unit 122 can calculate every line code about i-th according to following formula
The score score of parameteri:
That is, when certain line code includes some parameter, this line code is 1 about the score of the parameter;When certain row
When code does not include some parameter, this line code is 0 about the score of the parameter.For example, certain line code include permission function and
Symbolic variable, without including branch statement and call back function, then score score of this line code about permission function1=1,
Score score about symbolic variable2=1, the score score about branch statement3=0, the score about call back function
score4=0.
As described above, processing unit 122 can determine the priority score of every line code of API, and encountering branch
When, the test path of API can be determined according to the priority score of every line code.Specifically, processing unit 122 can select excellent
Node corresponding to the first highest code of grade score continually looks for test path.
When generating the test path of API, if test path cannot cover all permission functions, it is believed that electronics is set
It is standby not support the API.This is because the target of API is the data in the code for obtain local part, and most of API is returned
Data are returned to obtain from permission function.Therefore, when generating test path, the test path generated should be made as possible
Enough cover all permission functions.According to an embodiment of the invention, the line code can be increased if code includes permission function
Priority score.So, the possibility that test path includes this line code is increased.Meanwhile if code includes symbol
Number variable, branch statement or call back function illustrate that such code is important.According to an embodiment of the invention, this
In the case of can also increase the priority score of the line code, thereby increase the possibility that test path includes this line code.
According to an embodiment of the invention, the Test driver of API, path is determined as described above in driving generation unit 110
After generation unit 120 determines the test path of API and the constraints of test path as described above, Test cases technology list
Member 130 can be according to the constraints of the test path of API and test path to the Test driver assignment of API, to generate API's
Test case.That is, generating specific data value for the symbolic variable in the Test driver of API.
According to an embodiment of the invention, the constraints for the test path that coordinates measurement unit 120 generates includes the symbol of API
The device sensor condition of number Variable Conditions and operation API.
It according to an embodiment of the invention, can be to the logic of symbolic variable condition when generating the symbolic variable condition of API
Conjunction expression is calculated.If the value of logic conjunction expression is false, for the constraints, symbolic variable can not give birth to without solution
At specific test data, this test path is also accordingly discarded.If the value of logic conjunction expression is true, we will be symbol
Variable generates specific data value.For example, can be generated with the value range of logic-based conjunctive conditions and symbolic variable specific
Value.
According to an embodiment of the invention, when generating the device sensor condition of API, one can be disposed in a device and is set
Standby environment customisations app.Environment customisations app can change with analog machine environment, sensor condition is met with this.If for example,
We want to make the network formats of equipment into 4G from 2G, then environment customisations app may be implemented, to meet sensor strip
Part.
As described above, data processing equipment 100 according to an embodiment of the invention, can be that API automatically generates test use
Example.And the scale for simplifying symbolic number during generating test case reduces the time for generating test case.
According to an embodiment of the invention, data processing equipment 100 can also survey API using the test case generated
Examination.Fig. 8 shows the structure diagram of data processing equipment 100 according to another embodiment of the invention.
As shown in figure 8, data processing equipment 100 may include driving generation unit 110, coordinates measurement unit 120, test
Use-case generation unit 130 and test cell 140.Wherein, generation unit 110, coordinates measurement unit 120 and test case life are driven
It was had been described in above at unit 130, details are not described herein.
According to an embodiment of the invention, test cell 140 can run the test case of API to test API.Specifically,
Test cell 140 can check whether the return value of API is correct, that is, the return value for being directed to API generates test assertion.
According to an embodiment of the invention, test cell 140 can be extracted from test path include call back function node
And the object of call back function return is obtained, it then maps it in the call back function in API.Pass through mapping, test cell 140
The attribute type of object in API return values can be obtained.Next, test cell 140 can be directed to the object in API return values
Generate test assertion.According to an embodiment of the invention, test assertion may include identifying object each attribute whether be defined,
It is correct in API specification whether the data value of whether correct and object each attribute of the type of each attribute of object is in
Among value range etc..
As described above, data processing equipment 100 can not only generate test case, additionally it is possible to according to testing case
API。
In description above, API, which is single API, the i.e. API and others API, does not have parameter transitive relation.
And in actual test, it is often necessary to which testing one group, there are the API of parameter transitive relation, and herein, there are parameter biographies for title
The multiple API for passing relationship are API sequences.According to an embodiment of the invention, data processing equipment 100 can also be that API sequences are given birth to
API sequences are tested at test case and according to test case.
Fig. 9 shows the structure diagram of data processing equipment 100 according to still another embodiment of the invention.Such as Fig. 9 institutes
Show, data processing equipment 100 may include driving generation unit 110, coordinates measurement unit 120, Test cases technology unit
130, test cell 140 and API processing units 150.Wherein, generation unit 110, coordinates measurement unit 120, test case are driven
Generation unit 130 and test cell 140 had been described in above, and details are not described herein.
According to an embodiment of the invention, API processing units 150 can be incited somebody to action according to the parameter transitive relation between multiple API
Multiple API are combined into API sequences.Here, API processing units 150 can obtain multiple from the outside of data processing equipment 100
API is to be combined into API sequences.In addition, API processing units 150 can also determine multiple API according to the specification of multiple API
Between parameter transitive relation to be combined into API sequences.
Figure 10 shows the parameter transitive relation figure of API sequences according to an embodiment of the invention.As shown in Figure 10, API
Sequence includes four API:API1, API2, API3 and API4.Transfer Parameters are originally inputted to API1, another is originally inputted biography
Parameter is passed to API2, another is originally inputted Transfer Parameters to API3.Next, API1 and API2 Transfer Parameters are to API3, and
API3 Transfer Parameters are to API4.
According to an embodiment of the invention, Test cases technology unit 130 can be according to the survey of each API in multiple API
Parameter transitive relation between examination driving, test path and the constraints and multiple API of test path determines API sequences
Test case.
According to an embodiment of the invention, API processing units 150 can send out the relevant information of each API in API sequences
It is sent to driving generation unit 110 and coordinates measurement unit 120, so that driving generation unit 110 can generate each API's
Test driver, coordinates measurement unit 120 can generate the test path of each API and the constraints of test path.Next,
Test cases technology unit 130 can be according to the constraints next life of the Test driver of each API, test path and test path
At the test case of the API sequences.
According to an embodiment of the invention, driving generation unit 110 can be according to the Test driver of each API in API sequences
And the parameter transitive relation between multiple API determines the Test driver of API sequences.For example, can be transmitted according to the parameter of API
Relationship combines the Test driver of each API in multiple API to generate the Test driver of API sequences.With parameter shown in Fig. 10
For transitive relation, since API1 and API2 is used for API3 Transfer Parameters, then the test of the Test driver of API1 and API2 is driven
It is dynamic come the Test driver of API3 before, since API3 is used for API4 Transfer Parameters, then the Test driver of API3 comes API4
Test driver before.In this way, the test of API sequences can be obtained by the Test driver of all API being combined
Driving.
According to an embodiment of the invention, coordinates measurement unit 120 can be according to the test path of each API in API sequences
Parameter transitive relation between the constraints and multiple API of test path determines test path and the test of API sequences
The constraints in path.Similarly, the test road of each API in multiple API can be combined according to the parameter transitive relation of API
Diameter is to generate the test path of API sequences.Further, it is possible to be generated according to the constraints of each branch in test path
The constraints of the test path of API sequences.
According to an embodiment of the invention, the test path and test that Test cases technology unit 130 can be according to API sequences
The constraints in path generates the test case of API sequences.Specifically, test path that can be according to API sequences and test
The constraints in path generates the Test driver assignment of API sequences the test case of API sequences.
As described above, data processing equipment 100 according to an embodiment of the invention, can be that API sequences automatically generate survey
Example on probation.Similarly, data processing equipment 100 can also be tested API sequences using test case.It is according to the present invention
Embodiment, data processing equipment 100 can handle multiple API sequences, that is to say, that each API sequences are directed to, it can be with such as
The upper mode generates the test case of the API sequences.Similarly, test cell 140 can utilize the survey of each API sequences
Example on probation tests the API sequences.But there are multiple API sequences, test cell 140 is running this
There may be sequences when the test case of multiple API sequences.
According to an embodiment of the invention, API processing units 150 can also determine each API sequences in multiple API sequences
Priority, and test cell 140 can also be run according to the sequence of priority from high to low each API sequences test use
Example.That is, the test case of the 140 high API sequences of preferential running priority degree of test cell.
According to an embodiment of the invention, API processing units 150 can determine the preferential of API sequences according to following manner
Degree:The priority of parameter is determined according to the type of the parameters for including of each API in API sequences;And according in API sequences
The priority for all parameters that each API includes determines the priority of API sequences.
It is noted above, the type of the parameter in single API may include following three kinds:Call back function type, object
Type and fundamental type.According to an embodiment of the invention, the type for the parameter that the API in API sequences includes may include with
Lower four kinds:Call back function type, object type, fundamental type and previous API output types.Wherein, first three types with it is single
The type for the parameter that API includes is identical, and previously API output types indicated that the parameter was the output parameter of previous API.According to
The embodiment of the present invention, API processing units 150 can determine the priority of parameter according to the type of parameter.For example, being directed to back
Adjust the parameter of type function, priority 100;For the parameter of object type, priority 66;For the ginseng of fundamental type
Number, priority 33;For the parameter of previous API output types, priority is previous API priorities.It is worth noting that,
Such example is not restrictive, can also be other preferential angle value of different types of parameter setting.
According to an embodiment of the invention, API processing units 150 can be according to the preferential of all parameters that each API includes
It spends to determine the priority of the API.For example, the priority of API can be the weighting of the priority for all parameters that the API includes
With.
According to an embodiment of the invention, all API's that API processing units 150 can also include according to API sequences is preferential
Degree determines the priority of the API sequences.For example, the priority of API sequences can be the excellent of all API that the API sequences include
The average value first spent.
As described above, API processing units 150 can determine the priority of API sequences, so as to be transported according to priority
The test case of the different API sequences of row.
According to an embodiment of the invention, the single API and API sequences for generating test case can be from multiple API
Various combination.For example, this multiple API can be tester all API that needs to be tested.For another example, this multiple API can be with
It is the utilizable all API of mixing app.
According to an embodiment of the invention, API processing units 150 can obtain the specification of this multiple API, so that it is determined that going out to need
The single API tested, and it is combined into different API sequences that needs to be tested.For example, tester needs to test
API1, API2, API3, API4 and API5, in other words mix the utilizable all API of app include API1, API2, API3,
API4 and API5, then API processing units 150 can determine single API that needs to be tested be API5, tested
API sequences be the API sequences with parameter transitive relation as shown in Figure 10.Next, Test cases technology unit 130 can
Think that single API generates test case, can also be that API sequences generate test case.Next, test cell 140 can be transported
The test case of the test case and API sequences of the single API of row.Here, test cell 140 is used in the test for running single API
Can be unordered when example, and what test cell 140 can be ordered into when running the test case of API sequences.
As described above, data processing equipment 100 according to an embodiment of the invention, can be directed to single API and API sequences
Test case is automatically generated, and these test cases can be run according to certain rule, to achieve the purpose that test API.
Further, if these the single various combinations of API and API sequences from multiple API, data processing equipment 100 can also
The various combination of this multiple API is all tested, to achieve the purpose that the mixing app tests formed to these API.
Data processing equipment according to an embodiment of the invention 100 described in detail above.Next it will be described in root
According to the data processing method of the embodiment of the present invention.
Figure 11 is the flow chart according to the data processing method of the embodiment of the present invention.
As shown in figure 11, in step S1110, the Test driver of application programming interface API, Test driver table are generated
Show and function call is carried out to API.
Next, in step S1120, the constraint item of the test path and test path of API is generated based on semiology analysis
Part.Wherein, the test path of API includes the lines of code of API, and when searching out the code including call back function, will be wrapped
Include the code of call back function and its test path of the code as API included by path before.
Next, in step S1130, the constraints of Test driver, test path and test path based on API is given birth to
At the test case of API.
Preferably, the Test driver for generating API includes:Determine the type of the one or more parameters and each parameter of API;
And the Test driver of API is generated according to the type of each parameter.
Preferably, the test path for generating API further includes:API is run on an electronic device and is become with obtaining the global of API
The true value of amount;And optional test path is wiped out according to the true value of global variable to generate the test path of API.
Preferably, the test path for generating API further includes:When searching out code and generic function including generic function
When including symbolic variable, generic function is extended to continually look for the test path of API.
Preferably, the test path for generating API further includes:Determine the priority score of every line code of API;And according to
Priority score per line code determines the test path of API.
Preferably, determine that the priority score of every line code of API includes:According to the permissions list of the application platform of API
Define the competence function;And whether the priority score of code including permission function is determined according to every line code.
Preferably, determine that the priority score of every line code of API further includes:Whether include that symbol becomes according to every line code
Amount, branch statement and call back function determine the priority score of code.
Preferably, the test case for generating API includes:According to the constraints pair of the test path of API and test path
The Test driver assignment of API, to generate the test case of API.
Preferably, the constraints of test path includes the device sensor item of the symbolic variable condition and operation API of API
Part.
Preferably, method further includes:The test case of API is run to test API.
Preferably, method further includes:Multiple API are combined into API sequences according to the parameter transitive relation between multiple API
Row;And according to the Test driver of each API in multiple API, the constraints of test path and test path and multiple
Parameter transitive relation between API determines the test case of API sequences.
Preferably, method further includes:Determine the priority of each API sequences in multiple API sequences;And according to preferential
The sequence of degree from high to low runs the test case of each API sequences.
Preferably, determine that the priority of each API sequences includes:The parameter for including according to each API in API sequences
Type determines the priority of parameter;And API is determined according to the priority of all parameters for including of each API in API sequences
The priority of sequence.
Data processing method described above can be by data processing equipment 100 according to an embodiment of the invention real
Existing, therefore, the various embodiments of data processing equipment 100 described above are suitable for this, and this will not be repeated here.
It can be seen that using data processing equipment according to the present invention and data processing method, can be directed to single API and
API sequences automatically generate test case, and the process by semiology analysis applied to the Test cases technology of the API of mixing app
In, while test path is found according to certain rule, the scale of code tree is simplified, the generated time of test case is saved.
Furthermore, it is possible to these test cases be run according to certain rule, to achieve the purpose that test API.Further, if these
Single various combination of the API and API sequences from multiple API, then data processing equipment 100 can be to the difference of this multiple API
Combination is all tested, to achieve the purpose that the mixing app tests formed to these API.
Obviously, each operating process of data processing method according to the present invention can be various machine readable to be stored in
The mode of computer executable program in storage medium is realized.
Moreover, the purpose of the present invention can also be accomplished in the following manner:Above-mentioned executable program code will be stored with
Storage medium is directly or indirectly supplied to system or equipment, and the computer in the system or equipment or central processing
Unit (CPU) reads and executes above procedure code.As long as at this point, the system or equipment have the function of executing program, then
Embodiments of the present invention are not limited to program, and the program can also be arbitrary form, for example, target program, explanation
The program of device execution or the shell script etc. for being supplied to operating system.
These above-mentioned machine readable storage mediums include but not limited to:Various memories and storage unit, semiconductor equipment,
Disk cell such as light, magnetic and magneto-optic disk and other media etc. for being suitable for storing information.
In addition, computer is by the corresponding website that is connected on internet, and by computer program according to the present invention
Code is downloaded and is installed in computer and then executes the program, can also realize technical scheme of the present invention.
Figure 12 is the exemplary knot for the general purpose personal computer that data processing method according to the present invention wherein may be implemented
The block diagram of structure.
As shown in figure 12, CPU 1201 is according to the program stored in read-only memory (ROM) 1202 or from storage section
1208 programs for being loaded into random access memory (RAM) 1203 execute various processing.In RAM 1203, deposited also according to needs
Store up the data required when CPU 1201 executes various processing etc..CPU 1201, ROM 1202 and RAM 1203 are via bus
1204 are connected to each other.Input/output interface 1205 is also connected to bus 1204.
Components described below is connected to input/output interface 1205:Importation 1206 (including keyboard, mouse etc.), output
Part 1207 (including display, such as cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loud speaker etc.), storage
Part 1208 (including hard disk etc.), communications portion 1209 (including network interface card such as LAN card, modem etc.).Communication
Part 1209 executes communication process via network such as internet.As needed, driver 1210 can be connected to input/output
Interface 1205.Detachable media 1211 such as disk, CD, magneto-optic disk, semiconductor memory etc. is installed in as needed
On driver 1210 so that the computer program read out is mounted to as needed in storage section 1208.
It is such as removable from network such as internet or storage medium in the case of series of processes above-mentioned by software realization
Unload the program that the installation of medium 1211 constitutes software.
It will be understood by those of skill in the art that this storage medium is not limited to wherein be stored with journey shown in Figure 12
Sequence is separately distributed with equipment to provide a user the detachable media 1211 of program.The example packet of detachable media 1211
Containing disk (include floppy disk (registered trademark)), CD (including compact disc read-only memory (CD-ROM) and digital versatile disc (DVD)),
Magneto-optic disk (including mini-disk (MD) (registered trademark)) and semiconductor memory.Alternatively, storage medium can be ROM 1202, deposit
The hard disk etc. for including in storage part 1208, wherein computer program stored, and user is distributed to together with the equipment comprising them.
In the system and method for the present invention, it is clear that each unit or each step can be decomposed and/or be reconfigured.
These decompose and/or reconfigure the equivalent scheme that should be regarded as the present invention.Also, the step of executing above-mentioned series of processes can be certainly
It so is executed in chronological order according to the sequence of explanation, but does not need to centainly execute sequentially in time.Certain steps can
To execute parallel or independently of one another.
Although the embodiment of the present invention is described in detail in conjunction with attached drawing above, it is to be understood that reality described above
The mode of applying is only intended to illustrate the present invention, and is not construed as limiting the invention.For those skilled in the art, may be used
To make various changes and modifications the above embodiment without departing from the spirit and scope of the invention.Therefore, of the invention
Range is only limited by the attached claims and its equivalents.
About the embodiment including above example, following note is also disclosed:
A kind of 1. data processing equipments are attached, including:
Drive generation unit, the Test driver for generating application programming interface API, the Test driver expression pair
The API carries out function call;
Coordinates measurement unit, the pact of test path and the test path for generating the API based on semiology analysis
Beam condition;And
Test cases technology unit, the pact for Test driver, test path and the test path based on the API
Beam condition generates the test case of the API,
Wherein, the test path that the coordinates measurement unit generates includes the lines of code of the API, and the path
Generation unit is used for:When searching out the code including call back function, by the code including call back function and its before
Test path of the code as the API included by path.
Data processing equipment of the note 2. according to note 1, wherein the driving generation unit includes:
Type determining units, the type of one or more parameters and each parameter for determining the API;And
Processing unit, the Test driver for generating the API according to the type of each parameter.
Data processing equipment of the note 3. according to note 1, wherein the coordinates measurement unit includes:
Global variable acquiring unit, for running the API on an electronic device to obtain the global variable of the API
True value;And
Processing unit, for being wiped out optional test path with described in generation according to the true value of the global variable
The test path of API.
Data processing equipment of the note 4. according to note 1, wherein the coordinates measurement unit includes processing unit,
For:
When searching out the code including generic function and the generic function includes symbolic variable, to the common letter
Number is extended to continually look for the test path of the API.
Data processing equipment of the note 5. according to note 1, wherein the coordinates measurement unit includes processing unit,
For:
Determine the priority score of every line code of the API;And
The test path of the API is determined according to the priority score of every line code.
Data processing equipment of the note 6. according to note 5, wherein the coordinates measurement unit further includes permission function
Determination unit, for being defined the competence function according to the permissions list of the application platform of the API, and
Whether the processing unit including the permission function determines the preferential fraction of the code according to per line code
Number.
Data processing equipment of the note 7. according to note 6, wherein the processing unit is additionally operable to according to per line code
Whether including symbolic variable, branch statement and call back function the priority score of the code determined.
Data processing equipment of the note 8. according to note 1, wherein the Test cases technology unit is used for:
According to the constraints of the test path of the API and the test path to the Test driver assignment of the API,
To generate the test case of the API.
Data processing equipment of the note 9. according to note 1, wherein the test path that the coordinates measurement unit generates
Constraints include the symbolic variable condition of the API and run the device sensor condition of the API.
Data processing equipment of the note 10. according to note 1, wherein the data processing equipment further includes:
Test cell, for running the test case of the API to test the API.
Data processing equipment of the note 11. according to note 10, wherein the data processing equipment further includes at API
Unit is managed, for the multiple API to be combined into API sequences according to the parameter transitive relation between multiple API, and
The Test cases technology unit is additionally operable to the Test driver according to each API in the multiple API, test road
Parameter transitive relation between diameter and the constraints and the multiple API of the test path determines the API sequences
Test case.
Data processing equipment of the note 12. according to note 11, wherein it is more that the API processing units are additionally operable to determination
The priority of each API sequences in a API sequences, and
The test cell is additionally operable to run the test case of each API sequences according to the sequence of priority from high to low.
Data processing equipment of the note 13. according to note 12, wherein the API processing units are additionally operable to:
The priority of the parameter is determined according to the type of the parameters for including of each API in the API sequences;And
The preferential of the API sequences is determined according to the priority of all parameters for including of each API in the API sequences
Degree.
A kind of 14. data processing methods are attached, including:
Generate the Test driver of application programming interface API, the Test driver is indicated to the API into line function tune
With;
The constraints of the test path and the test path of the API is generated based on semiology analysis;And
The constraints of Test driver, test path and the test path based on the API generates the survey of the API
Example on probation,
Wherein, the test path of the API includes the lines of code of the API, and works as and search out including call back function
Code when, using the code included by the code including call back function and its path before as the test of the API
Path.
Data processing method of the note 15. according to note 14, wherein the Test driver for generating the API includes:
Determine the type of the one or more parameters and each parameter of the API;And
The Test driver of the API is generated according to the type of each parameter.
Data processing method of the note 16. according to note 14, wherein the test path for generating the API includes:
The API is run to the true value of the global variable to obtain the API on an electronic device;And
Optional test path is wiped out according to the true value of the global variable to generate the test road of the API
Diameter.
Data processing method of the note 17. according to note 14, wherein the test path for generating the API includes:
When searching out the code including generic function and the generic function includes symbolic variable, to the common letter
Number is extended to continually look for the test path of the API.
Data processing method of the note 18. according to note 14, wherein the test path for generating the API includes:
Determine the priority score of every line code of the API;And
The test path of the API is determined according to the priority score of every line code.
Data processing method of the note 19. according to note 18, wherein determine the preferential of every line code of the API
Grade score include:
It is defined the competence function according to the permissions list of the application platform of the API;And
Whether the priority score of the code is determined according to every line code including the permission function.
A kind of 20. machine readable storage mediums are attached, carry the machine readable instructions generation including being stored therein thereon
The program product of code, wherein described instruction code can make the computer execute basis when being read and executed by computer
It is attached the data processing method described in any one of 14-19.
Claims (10)
1. a kind of data processing equipment, including:
Generation unit, the Test driver for generating application programming interface API, the Test driver is driven to indicate to described
API carries out function call;
Coordinates measurement unit, the constraint item of test path and the test path for generating the API based on semiology analysis
Part;And
Test cases technology unit, the constraint item for Test driver, test path and the test path based on the API
Part generates the test case of the API,
Wherein, the test path that the coordinates measurement unit generates includes the lines of code of the API, and the coordinates measurement
Unit is used for:When searching out the code including call back function, by the code including call back function and its path before
Test path of the included code as the API.
2. data processing equipment according to claim 1, wherein the driving generation unit includes:
Type determining units, the type of one or more parameters and each parameter for determining the API;And
Processing unit, the Test driver for generating the API according to the type of each parameter.
3. data processing equipment according to claim 1, wherein the coordinates measurement unit includes:
Global variable acquiring unit, for the API to be run to the true of the global variable to obtain the API on an electronic device
Value;And
Processing unit, for being wiped out to optional test path according to the true value of the global variable to generate the API
Test path.
4. data processing equipment according to claim 1, wherein the coordinates measurement unit includes processing unit, is used for:
When searching out the code including generic function and the generic function includes symbolic variable, to the generic function into
Row extension is to continually look for the test path of the API.
5. data processing equipment according to claim 1, wherein the coordinates measurement unit includes processing unit, is used for:
Determine the priority score of every line code of the API;And
The test path of the API is determined according to the priority score of every line code.
6. data processing equipment according to claim 5, wherein the coordinates measurement unit further includes that permission function determines
Unit, for being defined the competence function according to the permissions list of the application platform of the API, and
Whether the processing unit determines the priority score of the code including the permission function according to per line code.
7. data processing equipment according to claim 6, wherein whether the processing unit is additionally operable to the every line code of basis
The priority score of the code is determined including symbolic variable, branch statement and call back function.
8. data processing equipment according to claim 1, wherein the Test cases technology unit is used for:
According to the constraints of the test path of the API and the test path to the Test driver assignment of the API, with life
At the test case of the API.
9. data processing equipment according to claim 1, wherein the test path that the test path generation unit generates
Constraints include the symbolic variable condition of the API and run the device sensor condition of the API.
10. a kind of data processing method, including:
The Test driver of application programming interface API is generated, the Test driver indicates to carry out function call to the API;
The constraints of the test path and the test path of the API is generated based on semiology analysis;And
The test that the constraints of Test driver, test path and the test path based on the API generates the API is used
Example,
Wherein, the test path of the API includes the lines of code of the API, and works as and search out the generation including call back function
When code, using the code included by the code including call back function and its path before as the test path of the API.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710197473.9A CN108664384B (en) | 2017-03-29 | 2017-03-29 | Data processing apparatus and data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710197473.9A CN108664384B (en) | 2017-03-29 | 2017-03-29 | Data processing apparatus and data processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108664384A true CN108664384A (en) | 2018-10-16 |
CN108664384B CN108664384B (en) | 2021-05-07 |
Family
ID=63786257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710197473.9A Active CN108664384B (en) | 2017-03-29 | 2017-03-29 | Data processing apparatus and data processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108664384B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669436A (en) * | 2018-12-06 | 2019-04-23 | 广州小鹏汽车科技有限公司 | A kind of method for generating test case and device of the functional requirement based on electric car |
CN112948234A (en) * | 2020-08-26 | 2021-06-11 | 深圳市明源云链互联网科技有限公司 | Interface test method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110307860A1 (en) * | 2010-06-09 | 2011-12-15 | Hong Seong Park | Simulation-based interface testing automation system and method for robot software components |
CN102789417A (en) * | 2012-04-27 | 2012-11-21 | 北京大学 | Program detecting system and method based on directional symbol execution on mobile intelligent terminal |
CN103268285A (en) * | 2013-05-31 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Method and device for automatic generation of robustness test case of API interface |
CN105117341A (en) * | 2015-09-06 | 2015-12-02 | 电子科技大学 | Distributed automatic test case generation method based on dynamic symbolic execution |
CN106339312A (en) * | 2015-07-17 | 2017-01-18 | 腾讯科技(深圳)有限公司 | API (application programming interface) testing method and system |
-
2017
- 2017-03-29 CN CN201710197473.9A patent/CN108664384B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110307860A1 (en) * | 2010-06-09 | 2011-12-15 | Hong Seong Park | Simulation-based interface testing automation system and method for robot software components |
CN102789417A (en) * | 2012-04-27 | 2012-11-21 | 北京大学 | Program detecting system and method based on directional symbol execution on mobile intelligent terminal |
CN103268285A (en) * | 2013-05-31 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Method and device for automatic generation of robustness test case of API interface |
CN106339312A (en) * | 2015-07-17 | 2017-01-18 | 腾讯科技(深圳)有限公司 | API (application programming interface) testing method and system |
CN105117341A (en) * | 2015-09-06 | 2015-12-02 | 电子科技大学 | Distributed automatic test case generation method based on dynamic symbolic execution |
Non-Patent Citations (1)
Title |
---|
王博 等: "基于接口自动机与符号执行的嵌入式软件", 《计算机学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669436A (en) * | 2018-12-06 | 2019-04-23 | 广州小鹏汽车科技有限公司 | A kind of method for generating test case and device of the functional requirement based on electric car |
CN109669436B (en) * | 2018-12-06 | 2021-04-13 | 广州小鹏汽车科技有限公司 | Test case generation method and device based on functional requirements of electric automobile |
CN112948234A (en) * | 2020-08-26 | 2021-06-11 | 深圳市明源云链互联网科技有限公司 | Interface test method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108664384B (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106649103B (en) | A kind of method and system of Android application program Automated Black Box Testing | |
Jean et al. | RNA‐Seq read alignments with PALMapper | |
Besker et al. | A systematic literature review and a unified model of ATD | |
CN106776349B (en) | Method and system for setting interface detection flow | |
US20090019427A1 (en) | Method and Apparatus for Providing Requirement Driven Static Analysis of Test Coverage for Web-Based, Distributed Processes | |
CN105373478B (en) | Automated testing method and system | |
CN107122368A (en) | A kind of data verification method, device and electronic equipment | |
CN109634837A (en) | Automated testing method, device, equipment and storage medium | |
CN104239219B (en) | Software defect positioning technology on-line evaluating and experimenting platform and method based on coverage | |
CN110096434A (en) | A kind of interface test method and device | |
RU2009136683A (en) | DISTRIBUTED NETWORK ARCHITECTURE FOR INTRODUCING DYNAMIC INFORMATION CONTENT INTO SYNTHESIZED ENVIRONMENT | |
CN112083933A (en) | Service function chain deployment method based on reinforcement learning | |
CN108153658A (en) | The method and apparatus of models of priority training method and determining priorities of test cases | |
US20210165641A1 (en) | Remote application modernization | |
CN110413524A (en) | For generating method and apparatus, the automated testing method of test script | |
CN110162457A (en) | Test method, device, equipment and the storage medium of user interface | |
CN108038655A (en) | Recommendation method, application server and the computer-readable recording medium of department's demand | |
CN108664384A (en) | Data processing equipment and data processing method | |
Shafir et al. | Heterogeneity in the rate of molecular sequence evolution substantially impacts the accuracy of detecting shifts in diversification rates | |
CN110750446A (en) | System testing method and related device | |
CN106649111A (en) | Method and device for running test cases | |
CN109388568A (en) | Code test method and device | |
CN106776284B (en) | A kind of method for testing software and system | |
CN106557414A (en) | Application testing system and method | |
CN111143228B (en) | Test code generation method and device based on decision table method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |