CN104407976B - A kind of interface robustness testing case generation method and device - Google Patents
A kind of interface robustness testing case generation method and device Download PDFInfo
- Publication number
- CN104407976B CN104407976B CN201410714715.3A CN201410714715A CN104407976B CN 104407976 B CN104407976 B CN 104407976B CN 201410714715 A CN201410714715 A CN 201410714715A CN 104407976 B CN104407976 B CN 104407976B
- Authority
- CN
- China
- Prior art keywords
- field
- robustness testing
- case
- input interface
- template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 443
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000005516 engineering process Methods 0.000 claims description 28
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of interface robustness testing case generation methods and device, this method to include:The definition information for obtaining input interface determines that used robustness testing use-case generates template, definition information and identified robustness testing use-case further according to input interface generate template, it determines and needs the field inputted when carrying out robustness testing to input interface and must fill out attribute for the data for needing the field inputted to be inputted, data type, length, it is one or more in value range, then the data that the field inputted according to the needs determined and the field inputted for the needs are inputted must fill out attribute, data type, length, it is one or more in value range, robustness testing set of uses case is generated for input interface.Can solve to need to rely in the prior art the source code of exploitation through the embodiment of the present invention, and whether can not verify source code consistent with defined in interface document, the problem of can not ensureing the validity of test.
Description
Technical field
The present invention relates to software testing technology field, be specifically related to a kind of interface robustness testing case generation method and
Device.
Background technology
Software test is the final review to software requirement analysis, design specification and coding, by using artificial or
Whether the means checking system of person's automation meets regulation demand, is the committed step of software quality assurance.
The robustness testing of interface is to ignore business difference, is tested to the robustness of interface, so that it is guaranteed that various
Correct processing under invalid or abnormal input, improves the safety and reliability of system.
Existing interface robustness is usually to carry out robustness testing by the experience of tester, tester according to
Interface design document is used is converted to test code by the test case document of prior hand-coding, directly invokes tested interface
Mode carries out, and needs hand-coding test case and test code.Although interface robustness testing shields the difference of business
Property has certain rule, but existing technology relies on artificial experience accumulation, and workload is heavy, execution efficiency low consumption duration,
And it is susceptible to the infull problem of coverage rate.
Another robustness testing method of interface be by extracting interface message to be measured to the scanning of static code, then into
Row robustness use-case automatically generating and testing.This method relies on the completion of exploitation code, therefore, to assure that the side of written in code
Formula meets the requirements, and this assumes that the realization of code is errorless, the test case otherwise automatically generated is inherently problematic
, it can not ensure the validity of interface testing.
It can be seen that at present there is an urgent need for a kind of scheme automatically generating interface robustness testing use-case, and the test case without
The completion that exploitation code need to be depended on, effectively tests the robustness of interface.
Invention content
A kind of interface robustness testing case generation method of offer of the embodiment of the present invention and device, automatically generate to realize
Interface robustness testing use-case and the test case of generation need not rely upon the source code of exploitation.
The embodiment of the present invention provides a kind of interface robustness testing case generation method, and this method includes:
Obtain the definition information of input interface;
Determine that used robustness testing use-case generates template according to the definition information of the input interface;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range;
The field that is inputted according to the needs determined and for the data for needing the field inputted to be inputted must
Fill out it is one or more in attribute, data type, length, value range, for the input interface generate robustness testing use-case
Collection.
Preferably, described determine that used robustness testing use-case generates mould according to the definition information of the input interface
Plate, including:
If whether the title of required field defined in the definition information of the input interface length, data type, permits
Perhaps it is sky, it is determined that at least generate template using following robustness testing use-case:Required field lacks the life of robustness testing use-case
It is that empty robustness testing use-case generates the illegal robustness testing use-case generation mould of template, field length at template, required field
Plate and the illegal robustness testing use-case of field type generate template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title of the required field defined in definition information according to the input interface and required field missing
Robustness testing use-case generates template, determines and does not input the required field when carrying out robustness testing to the input interface
Input data;
The title of required field defined in information defined in the input interface and whether allow for sky, and
The required field is that empty robustness testing use-case generates template, and determining will when carrying out robustness testing to the input interface
The input data of the required field is set as empty;
The title and length and the field of required field defined in information defined in the input interface are long
It spends illegal robustness testing use-case and generates template, determining must fill out when carrying out robustness testing to the input interface by described
The length of the input data of field is set as illegal length value, and the illegal length value includes at least the maximum of the required field
Length value add 1 and the minimum length value of the required field subtract 1;
The title and data type of required field defined in information defined in the input interface and the word
The illegal robustness testing use-case of segment type generates template, and determining will be described when carrying out robustness testing to the input interface
The type of the input data of required field is set as illegal data type.
Preferably, described determine that used robustness testing use-case generates mould according to the definition information of the input interface
Plate, including:
If the title of non-required field, length, data type defined in the definition information of the input interface, whether
Allow for sky, it is determined that at least generate template using following robustness testing use-case:Non- required field missing robustness testing is used
Example generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length
It generates template and the illegal robustness testing use-case of field type generates template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title of non-required field defined in definition information according to the input interface and the non-required field
Lack robustness testing use-case generate template, determine to the input interface carry out robustness testing when do not input it is described it is non-must
The input data of word filling section;
The title of non-required field defined in definition information according to the input interface and whether allow for sky, with
And the non-required field is that empty robustness testing use-case generates template, determines and is carrying out robustness testing to the input interface
When the input data of the non-required field is set as empty;
The title and length of non-required field defined in definition information according to the input interface and the field
The illegal robustness testing use-case of length generates template, and determining will be described non-when carrying out robustness testing to the input interface
The length of the input data of required field is set as illegal length value, and the illegal length value includes at least the non-required field
Maximum length value add 1 and the minimum length value of the non-required field subtract 1;
The title and data type of non-required field defined in definition information according to the input interface and described
The illegal robustness testing use-case of field type generates template, determines institute when carrying out robustness testing to the input interface
The type for stating the input data of non-required field is set as illegal data type.
Preferably, generating mould according to the used robustness testing use-case that the definition information of the input interface is determined
Plate further includes:Most full dose field inputs robustness testing use-case and generates template and minimum field input robustness testing use-case
Generate template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title and length and the most full dose of all fields defined in definition information according to the input interface
Field inputs robustness testing use-case and generates template, determines that input must word filling when carrying out robustness testing to the input interface
The length of the input data of section and non-required field and each field is the maximum value of this field length;
The title and length of all required fields and non-required field defined in definition information according to the input interface
Degree and the minimum field input robustness testing use-case generate template, determine and are carrying out robustness to the input interface
The minimum length of this field of the input data and the length of each required field of required field is only inputted when test.
Preferably, according to the definition information of the input interface determine used in robustness testing use-case generate template it
Afterwards, further include:
It determines pre- when generating template to input interface progress robustness testing using the robustness testing use-case
Phase result.
The embodiment of the present invention also provides a kind of interface robustness testing use-case generating means, which includes:
Acquiring unit, the definition information for obtaining input interface;
Template selection unit, for determining used robustness testing use-case according to the definition information of the input interface
Generate template;
Test cases technology unit is used for the definition information according to the input interface and identified robustness testing
Use-case generates template, determines that the when of carrying out robustness testing to the input interface needs the field inputted and is directed to the needs
Must filling out for the data that the field of input is inputted is one or more in attribute, data type, length, value range, and according to
The field and must fill out attribute, data class for the data for needing the field inputted to be inputted that the needs determined input
It is one or more in type, length, value range, generate robustness testing set of uses case for the input interface.
Preferably, the Test cases technology unit, is specifically used for:
If whether the title of required field defined in the definition information of the input interface length, data type, permits
Perhaps it is sky, it is determined that at least generate template using following robustness testing use-case:Required field lacks the life of robustness testing use-case
It is that empty robustness testing use-case generates the illegal robustness testing use-case generation mould of template, field length at template, required field
Plate and the illegal robustness testing use-case of field type generate template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title of the required field defined in definition information according to the input interface and required field missing
Robustness testing use-case generates template, determines and does not input the required field when carrying out robustness testing to the input interface
Input data;
The title of required field defined in information defined in the input interface and whether allow for sky, and
The required field is that empty robustness testing use-case generates template, and determining will when carrying out robustness testing to the input interface
The input data of the required field is set as empty;
The title and length and the field of required field defined in information defined in the input interface are long
It spends illegal robustness testing use-case and generates template, determining must fill out when carrying out robustness testing to the input interface by described
The length of the input data of field is set as illegal length value, and the illegal length value includes at least the maximum of the required field
Length value add 1 and the minimum length value of the required field subtract 1;
The title and data type of required field defined in information defined in the input interface and the word
The illegal robustness testing use-case of segment type generates template, and determining will be described when carrying out robustness testing to the input interface
The type of the input data of required field is set as illegal data type.
Preferably, the Test cases technology unit, is specifically used for:
If the title of non-required field, length, data type defined in the definition information of the input interface, whether
Allow for sky, it is determined that at least generate template using following robustness testing use-case:Non- required field missing robustness testing is used
Example generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length
It generates template and the illegal robustness testing use-case of field type generates template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title of non-required field defined in definition information according to the input interface and the non-required field
Lack robustness testing use-case generate template, determine to the input interface carry out robustness testing when do not input it is described it is non-must
The input data of word filling section;
The title of non-required field defined in definition information according to the input interface and whether allow for sky, with
And the non-required field is that empty robustness testing use-case generates template, determines and is carrying out robustness testing to the input interface
When the input data of the non-required field is set as empty;
The title and length of non-required field defined in definition information according to the input interface and the field
The illegal robustness testing use-case of length generates template, and determining will be described non-when carrying out robustness testing to the input interface
The length of the input data of required field is set as illegal length value, and the illegal length value includes at least the non-required field
Maximum length value add 1 and the minimum length value of the non-required field subtract 1;
The title and data type of non-required field defined in definition information according to the input interface and described
The illegal robustness testing use-case of field type generates template, determines institute when carrying out robustness testing to the input interface
The type for stating the input data of non-required field is set as illegal data type.
Preferably, used in the Test cases technology unit determines according to the definition information of the input interface
Robustness testing use-case generates template, further includes:Most full dose field inputs robustness testing use-case and generates template and minimum word
Section input robustness testing use-case generates template;
The Test cases technology unit is additionally operable to:
The title and length and the most full dose of all fields defined in definition information according to the input interface
Field inputs robustness testing use-case and generates template, determines that input must word filling when carrying out robustness testing to the input interface
The length of the input data of section and non-required field and each field is the maximum value of this field length;
The title and length of all required fields and non-required field defined in definition information according to the input interface
Degree and the minimum field input robustness testing use-case generate template, determine and are carrying out robustness to the input interface
The minimum length of this field of the input data and the length of each required field of required field is only inputted when test.
Preferably, the Test cases technology unit, is additionally operable to:
Determine that used robustness testing is used according to the definition information of the input interface in the template selection unit
After example generates template, determine that generate template using the robustness testing use-case carries out robustness testing to the input interface
When expected results.
In the above embodiment of the present invention, the definition information by obtaining input interface determines used robustness testing
Use-case generates template, and the definition information and identified robustness testing use-case further according to the input interface generate template,
Determine that the when of carrying out robustness testing to the input interface needs the field inputted and for the field institute for needing to input
Must filling out for the data of input is one or more in attribute, data type, length, value range, then according to the need determined
The field to be inputted and for the input data the one kind that must be filled out in attribute, data type, length, value range or
It is a variety of, generate robustness testing set of uses case for the input interface.It can solve to need in the prior art through the embodiment of the present invention
The source code of exploitation depended on, and can not verify whether consistent defined in source code and interface document, can not ensure to test
Validity the problem of.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of interface robustness testing case generation method flow diagram in the embodiment of the present invention;
Fig. 2 is a kind of interface robustness testing use-case generating means structural schematic diagram in the embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of interface robustness testing case generation method flow diagram,
The flow can be executed by interface robustness testing use-case generating means, and described device can be by software realization.This method step includes:
Step S101 obtains the definition information of input interface.
Specifically, various interfaces are defined in interface document, determining for input interface can be obtained from interface document
Adopted information.The attribute of each field of the input interface is defined in the definition information of one input interface, for example, word
Whether name section must fill out attribute (i.e. whether the field must fill out), length, data type, allow for information such as skies.
Step S102 determines that used robustness testing use-case generates mould according to the definition information of the input interface
Plate.
Specifically, a variety of robustness testing use-cases generation templates can be pre-set, in the step, can be connect according to input is obtained
Mouthful definition information defined in field name, attribute (i.e. whether the field must fill out) must be filled out, length, data type, whether permitted
Perhaps it is the information such as sky, it is required using which kind of robustness testing use-case generation template to determine.
Step S103 generates mould according to the definition information of the input interface and identified robustness testing use-case
Plate determines that the when of carrying out robustness testing to the input interface needs the field inputted and for the field for needing to input
Must filling out for the data inputted is one or more in attribute, data type, length, value range.
What step S104, the field inputted according to the needs determined and the field inputted for the needs were inputted
Must filling out for data is one or more in attribute, data type, length, value range, and robustness is generated for the input interface
Test use cases.
In the above embodiment of the present invention, the definition information by obtaining input interface determines used robustness testing
Use-case generates template, and the definition information and identified robustness testing use-case further according to the input interface generate template,
Determine that the when of carrying out robustness testing to the input interface needs the field inputted and for the field institute for needing to input
Must filling out for the data of input is one or more in attribute, data type, length, value range, then according to the need determined
The data that the field to be inputted and the field inputted for the needs are inputted must fill out attribute, data type, length, take
It is one or more in value range, generate robustness testing set of uses case for the input interface.It through the embodiment of the present invention can be with
Solve the source code of exploitation of needing to rely in the prior art, and can not verify source code with defined in interface document whether one
The problem of causing, can not ensureing the validity of test.
For the test of required field in interface, can be wrapped in pre-set a variety of robustness testing use-cases generation templates
It includes:Required field lacks robustness testing use-case and generates template, required field as empty robustness testing use-case generation template, field
The illegal robustness testing use-case of length generates template and the illegal robustness testing use-case of field type generates template.
Correspondingly, in the step S102 described in the embodiment of the present invention, if defined in the definition information of the input interface
Whether the title of required field length, data type, allows for sky, it is determined that at least uses following robustness testing use-case
Generate template:Required field lacks robustness testing use-case and generates template, required field as empty robustness testing use-case generation mould
The illegal robustness testing use-case of plate, field length generates template and the illegal robustness testing use-case of field type generates
Template.
In step s 103, the field inputted in test case can be determined according to above-mentioned each template and is directed to the need
The one or more generations that must be filled out in attribute, data type, length, value range for the data that the field to be inputted is inputted are surveyed
Example on probation, specifically may include:
The title of the required field defined in definition information according to the input interface and required field missing
Robustness testing use-case generates template, determines and does not input the required field when carrying out robustness testing to the input interface
Input data, in this way, the feelings that lack of the test case that the module is generated to the required field in input interface can be used
Condition is tested;
The title of required field defined in information defined in the input interface and whether allow for sky, and
The required field is that empty robustness testing use-case generates template, and determining will when carrying out robustness testing to the input interface
The input data of the required field is set as empty, in this way, can be used the test case that the module is generated in input interface
Whether required field is that empty situation is tested;
The title and length and the field of required field defined in information defined in the input interface are long
It spends illegal robustness testing use-case and generates template, determining must fill out when carrying out robustness testing to the input interface by described
The length of the input data of field is set as illegal length value, and the illegal length value includes at least the maximum of the required field
Length value add 1 and the minimum length value of the required field subtract 1, in this way, can be used the test case that the module is generated to defeated
The illegal situation of field length in incoming interface is tested;
The title and data type of required field defined in information defined in the input interface and the word
The illegal robustness testing use-case of segment type generates template, and determining will be described when carrying out robustness testing to the input interface
The type of the input data of required field is set as illegal data type, in this way, the test case that the module is generated can be used
The illegal situation of field type in input interface is tested.
For the test of non-required field in interface, can pre-set a variety of robustness testing use-cases generate can in templates
Including:Non- required field missing robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates mould
The illegal robustness testing use-case of plate, field length generates template and the illegal robustness testing use-case of field type generates
Template.
Correspondingly, if the title of non-required field, length, data class defined in the definition information of the input interface
Whether type allows for sky, it is determined that at least generates template using following robustness testing use-case:Non- required field lacks robustness
Test cases technology template, non-required field are that empty robustness testing use-case generates the illegal robustness survey of template, field length
Example on probation generates template and the illegal robustness testing use-case of field type generates template.
In step S103, the field inputted in test case can be determined according to above-mentioned each template and is directed to the needs
The one or more generations test that must be filled out in attribute, data type, length, value range for the data that the field of input is inputted
Use-case specifically may include:
The title of non-required field defined in definition information according to the input interface and the non-required field
Lack robustness testing use-case generate template, determine to the input interface carry out robustness testing when do not input it is described it is non-must
The input data of word filling section, in this way, can be used the test case that the module is generated to the non-required field in input interface
The case where lacking, is tested;
The title of non-required field defined in definition information according to the input interface and whether allow for sky, with
And the non-required field is that empty robustness testing use-case generates template, determines and is carrying out robustness testing to the input interface
When the input data of the non-required field is set as empty, in this way, the test case that the module is generated can be used to connect input
Whether the non-required field in mouthful is that empty situation is tested;
The title and length of non-required field defined in definition information according to the input interface and the field
The illegal robustness testing use-case of length generates template, and determining will be described non-when carrying out robustness testing to the input interface
The length of the input data of required field is set as illegal length value, and the illegal length value includes at least the non-required field
Maximum length value add 1 and the minimum length value of the non-required field subtract 1, in this way, the test that the module is generated can be used
The use-case situation illegal to the field length in input interface is tested;
The title and data type of non-required field defined in definition information according to the input interface and described
The illegal robustness testing use-case of field type generates template, determines institute when carrying out robustness testing to the input interface
The type for stating the input data of non-required field is set as illegal data type, in this way, the test that the module is generated can be used
Use-case tests the illegal situation of field type in input interface.
If input interface includes N number of field, each field is required for according to above-mentioned different robustness testing use-case lifes
At template, templating species are generated according to robustness testing use-case, cycle generates robustness testing use-case one by one.
Such as one needs to carry out the interface of robustness testing to include tri- fields of A, B, C, in the interface document according to interface
Definition of the definition information about field and above-mentioned robustness testing use-case when generating template generation robustness testing use-case, word
Section A first according to above-mentioned robustness testing use-case generate template cycle one by one generate robustness testing use-case, then field B and
Field C is recycled successively generates robustness testing use-case, and finally the robustness testing use-case of all generations of three fields is converged again
Assembly robustness testing set of uses case.
Further, it can also pre-set most full dose field input robustness testing use-case and generate template and minimum field
It inputs robustness testing use-case and generates template.
Correspondingly, when carrying out robustness testing to input interface also robustness testing use-case is inputted using most full dose field
It generates template and minimum field input robustness testing use-case generates template.
Correspondingly, in step s 103, the field inputted in test case and needle can be determined according to above-mentioned each template
One kind that must be filled out in attribute, data type, length, value range or more to the data for needing the field inputted to be inputted
Kind generates test case, specifically may include:
The title and length and the most full dose of all fields defined in definition information according to the input interface
Field inputs robustness testing use-case and generates template, determines that input must word filling when carrying out robustness testing to the input interface
The length of the input data of section and non-required field and each field is the maximum value of this field length, in this way, the mould can be used
The case where test case that block is generated inputs the most full dose field in input interface is tested;
The title and length of all required fields and non-required field defined in definition information according to the input interface
Degree and the minimum field input robustness testing use-case generate template, determine and are carrying out robustness to the input interface
The minimum length that this field of the input data and the length of each required field of required field is only inputted when test, in this way, can make
The case where test case generated with the module inputs the minimum field in input interface is tested.
Preferably, after the step S102 described in the embodiment of the present invention, further include:It determines and is used using the robustness testing
Example generates expected results when template carries out the input interface robustness testing.Each corresponding robustness testing use-case
Expected results when corresponding test can be generated, by by the advance effect of each robustness testing use-case and the test case
Actual test Comparative result, it can be determined that the robustness problems of the input interface.
In order to preferably explain the present invention, underneath with a specific example, the present invention will be described, Ke Yili
Solution, following the description are without being limited thereto according to an embodiment of the invention merely for example purpose.
For the sake of removing, present embodiments provides following robustness testing use-case and generate template:
Required field lacks robustness testing use-case and generates template, required field as empty robustness testing use-case generation mould
Plate, non-required field missing robustness testing use-case generate template, non-required field be empty robustness testing use-case generate template,
The illegal robustness testing use-case of field length generates the illegal robustness testing use-case of template, field type and generates template, most
Full dose field inputs robustness testing use-case and generates template and minimum field input robustness testing use-case generation template etc. eight
Kind robustness testing use-case generates template.
Required field missing robustness testing use-case generates template and defines when carrying out robustness testing to input interface
The input data of required field is not inputted;
Required field is that empty robustness testing use-case generation template is defined when carrying out robustness testing to input interface
The input data of required field is set as empty;
Non- required field missing robustness testing use-case generates template and defines to input interface progress robustness testing
When do not input the input data of non-required field;
Non- required field is that empty robustness testing use-case generation template is defined to input interface progress robustness testing
When the input data of non-required field is set as empty;
The illegal robustness testing use-case of field length generates template and defines to input interface progress robustness testing
When set the length of the input data of required field to illegal length value, illegal length value includes at least the maximum of required field
Length value add 1 and the minimum length value of required field subtract 1;
Most full dose field input robustness testing use-case generates template and defines to input interface progress robustness testing
When input required field and non-required field input data and each field length be this field length maximum value;
Minimum field input robustness testing use-case generates template and defines to input interface progress robustness
The minimum length of this field of the input data and the length of each required field of required field is only inputted when test;
The illegal robustness testing use-case of field type generates template and defines to input interface progress robustness testing
When set the type of the input data of required field to illegal data type.
Each field type that the illegal robustness testing use-case of field type generates in template has its corresponding non-
Method data type, if the data type of field is Real-valued (double, float), corresponding illegal data type is:It is negative
Number, character, character string, Chinese character (rarely used word) etc.;
The data type of field is integer type (byte, short, int, long):Its corresponding illegal data type is:
Negative, decimal, character, character string, Chinese character (rarely used word) etc.;
The data type of field is character types (char):Its corresponding illegal data type is:Negative, decimal, Chinese character
(rarely used word) etc.;
The data type of field is boolean's Value Types (Boolean):Its corresponding illegal data type is:Non- true values or
False values;
The data type of field is date type (date):Its corresponding illegal data type is:Non- date cannonical formats
Value;
The data type of field is timestamp type (timestamp):Its corresponding illegal data type is:It is non-
The value of timestamp cannonical formats;
The data type of field is character string type (string):No illegal data type limitation;
Further include:The public illegal data type of the data type of all fields is:Illegal punctuation symbol.
It is illustrated for carrying out robustness testing to a kind of interface for realizing that two numbers are added below.
First, according to the interface document of the interface, the definition information that the interface defines is obtained, including:(integer, must by field a
Fill out, can not empty, length [3,16]) and field b (integer must be filled out, can not sky, length [2,16]).Indicate the data type of field a
Must be filled out for integer, the field, the field can not empty, the field length value range be 3 to 16, including 3 and 16, word
Section b data type be integer, the field be must fill out, the field can not sky, the field length value range be 2 to 16,
Including 2 and 16.
Secondly, it is determined according to the definition information of above-mentioned acquisition and generates template using following robustness testing use-case:It must word filling
Section missing robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, field length does not conform to
Method robustness testing use-case generates the illegal robustness testing use-case of template, field type and generates template, the input of most full dose field
Robustness testing use-case generates template and minimum field input robustness testing use-case generates eight kinds of robustness testings such as template
Use-case generates template.
Again, template is generated according to the definition information of the input interface and identified robustness testing use-case, really
The field inputted is needed when the fixed progress robustness testing to the input interface and needs the field inputted institute defeated for described
It is one or more in the types of the data entered, length, value range.
If field a using required field missing robustness testing use-case when generating template, the data of field a required inputs
Missing;The data type of field b required inputs is integer, length takes any value in 2 to 16.
If field a is when being that empty robustness testing use-case generates template using required field, the data of field a required inputs
It is set as empty;The data type of field b required inputs is integer, length takes any value in 2 to 16.
If field a using the illegal robustness testing use-case of field length when generating template, the number of field a required inputs
It is integer according to type, length value is 2 or 17;The data type of field b required inputs is integer, length takes 2 to 16
In any value.
If field a using the illegal robustness testing use-case of field type when generating template, the number of field a required inputs
It is one or more in negative, decimal, character, character string or Chinese character (rarely used word) according to type, length is taken as appointing in 3 to 16
One value;The data type of field b required inputs is integer, length takes any value in 2 to 16.
Such as when generating template using most full dose field input robustness testing use-case, the data class of field a required inputs
Type is integer, and length takes 16;The data type of field b required inputs is integer, and length takes 16.
Such as when generating template using minimum field input robustness testing use-case, the data class of field a required inputs
Type is integer, and length takes 3;The data type of field b required inputs is integer, and length takes 2.
Correspondingly, when field b is also required to determine that stating robustness testing use-case in use generates template, the number of required input
According to the information such as type, length, value range.
Finally, the data that the field inputted according to the needs determined and the field inputted for the needs are inputted
Type, length, one or more in value range, generate robustness testing set of uses case for the input interface.
If field a using required field missing robustness testing use-case when generating template, the robustness testing of generation is used
Input data in example is b=12345.
If field a is when being that empty robustness testing use-case generates template using required field, the robustness testing of generation is used
Input data in example is a=, b=12345.
If field a using the illegal robustness testing use-case of field length when generating template, the robustness testing of generation
Input data in use-case is a=23 or a=12345678998765432, b=12345.
If field a using the illegal robustness testing use-case of field type when generating template, the robustness testing of generation
Input data in use-case is a=sgfsgs, b=12345.
Such as when generating template using most full dose field input robustness testing use-case, in the robustness testing use-case of generation
Input data be a=1234567899876543, b=1234567899876543.
Such as when generating template using minimum field input robustness testing use-case, in the robustness testing use-case of generation
Input data be a=123, b=12.
Correspondingly, when field b is also required to state robustness testing use-case generation template in use, the robustness testing of generation
Use-case.
The robustness testing use-case of all generations is gathered together, the interface for being added to described two numbers is good for
The test of strong property.This interface define how many fields, it is necessary to all fields according to all robustnesses that can be used
Test cases technology template is required for being tested, while being good for it is essential that being inputted according to most full dose field to all fields
Strong property Test cases technology template and minimum field input robustness testing use-case generate template generation robustness testing use-case
Collection.
Based on the same technical idea, Fig. 2 shows a kind of interface robustness testing use-case generating means, which can answer
For flow shown in FIG. 1.
The device includes:
Acquiring unit 201, the definition information for obtaining input interface;
Template selection unit 202, for determining used robustness testing according to the definition information of the input interface
Use-case generates template;
Test cases technology unit 203 is used for the definition information according to the input interface and identified robustness
Test cases technology template determines that the when of carrying out robustness testing to the input interface needs the field inputted and for described
Need must filling out for the data that the field inputted inputted one or more in attribute, data type, length, value range, and
The data that the field inputted according to the needs determined and the field inputted for the needs are inputted must fill out attribute, number
According to one or more in type, length, value range, robustness testing set of uses case is generated for the input interface.
Preferably, the Test cases technology unit 203, is specifically used for:
If whether the title of required field defined in the definition information of the input interface length, data type, permits
Perhaps it is sky, it is determined that at least generate template using following robustness testing use-case:Required field lacks the life of robustness testing use-case
It is that empty robustness testing use-case generates the illegal robustness testing use-case generation mould of template, field length at template, required field
Plate and the illegal robustness testing use-case of field type generate template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title of the required field defined in definition information according to the input interface and required field missing
Robustness testing use-case generates template, determines and does not input the required field when carrying out robustness testing to the input interface
Input data;
The title of required field defined in information defined in the input interface and whether allow for sky, and
The required field is that empty robustness testing use-case generates template, and determining will when carrying out robustness testing to the input interface
The input data of the required field is set as empty;
The title and length and the field of required field defined in information defined in the input interface are long
It spends illegal robustness testing use-case and generates template, determining must fill out when carrying out robustness testing to the input interface by described
The length of the input data of field is set as illegal length value, and the illegal length value includes at least the maximum of the required field
Length value add 1 and the minimum length value of the required field subtract 1;
The title and data type of required field defined in information defined in the input interface and the word
The illegal robustness testing use-case of segment type generates template, and determining will be described when carrying out robustness testing to the input interface
The type of the input data of required field is set as illegal data type.
Preferably, the Test cases technology unit 203, is specifically used for:
If the title of non-required field, length, data type defined in the definition information of the input interface, whether
Allow for sky, it is determined that at least generate template using following robustness testing use-case:Non- required field missing robustness testing is used
Example generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length
It generates template and the illegal robustness testing use-case of field type generates template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to institute
It states and needs the field inputted when input interface carries out robustness testing and for the number for needing the field inputted to be inputted
According to must fill out it is one or more in attribute, data type, length, value range, including:
The title of non-required field defined in definition information according to the input interface and the non-required field
Lack robustness testing use-case generate template, determine to the input interface carry out robustness testing when do not input it is described it is non-must
The input data of word filling section;
The title of non-required field defined in definition information according to the input interface and whether allow for sky, with
And the non-required field is that empty robustness testing use-case generates template, determines and is carrying out robustness testing to the input interface
When the input data of the non-required field is set as empty;
The title and length of non-required field defined in definition information according to the input interface and the field
The illegal robustness testing use-case of length generates template, and determining will be described non-when carrying out robustness testing to the input interface
The length of the input data of required field is set as illegal length value, and the illegal length value includes at least the non-required field
Maximum length value add 1 and the minimum length value of the non-required field subtract 1;
The title and data type of non-required field defined in definition information according to the input interface and described
The illegal robustness testing use-case of field type generates template, determines institute when carrying out robustness testing to the input interface
The type for stating the input data of non-required field is set as illegal data type.
Preferably, the Test cases technology unit 203 is made according to what the definition information of the input interface was determined
Robustness testing use-case generates template, further includes:Most full dose field inputs robustness testing use-case and generates template and minimum
It measures field input robustness testing use-case and generates template;
The Test cases technology unit 203 is additionally operable to:
The title and length and the most full dose of all fields defined in definition information according to the input interface
Field inputs robustness testing use-case and generates template, determines that input must word filling when carrying out robustness testing to the input interface
The length of the input data of section and non-required field and each field is the maximum value of this field length;
The title and length of all required fields and non-required field defined in definition information according to the input interface
Degree and the minimum field input robustness testing use-case generate template, determine and are carrying out robustness to the input interface
The minimum length of this field of the input data and the length of each required field of required field is only inputted when test.
Preferably, the Test cases technology unit 203, is additionally operable to:
Determine that used robustness testing is used according to the definition information of the input interface in the template selection unit
After example generates template, determine that generate template using the robustness testing use-case carries out robustness testing to the input interface
When expected results.
Based on above-described embodiment, the definition information by obtaining input interface determines used robustness testing use-case life
At template, the definition information further according to the input interface and identified robustness testing use-case generation template, determining pair
The field inputted is needed when the input interface carries out robustness testing and needs the field inputted to be inputted for described
Must filling out for data is one or more in attribute, data type, length, value range, then needs to input according to what is determined
Field and must fill out attribute, data type, length, value range for the data for needing the field that inputs to be inputted
In it is one or more, for the input interface generate robustness testing set of uses case.It can solve through the embodiment of the present invention existing
There is the source code for the exploitation that needs to rely in technology, and whether consistent defined in source code and interface document, nothing can not be verified
Method ensures the problem of validity of test, increases substantially the efficiency and validity of robustness testing.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of interface robustness testing case generation method, which is characterized in that this method includes:
Obtain the definition information of input interface;
Determine that used robustness testing use-case generates template according to the definition information of the input interface;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to described defeated
The field inputted is needed when incoming interface carries out robustness testing and for the data for needing the field inputted to be inputted
It must fill out one or more in attribute, data type, length, value range;
The data that the field inputted according to the needs determined and the field inputted for the needs are inputted must fill out category
Property, it is one or more in data type, length, value range, generate robustness testing set of uses case for the input interface;
After determining that used robustness testing use-case generates template according to the definition information of the input interface, further include:
It determines to generate using the robustness testing use-case and is expected to tie when template carries out robustness testing to the input interface
Fruit.
2. the method as described in claim 1, which is characterized in that described to be made according to the determination of the definition information of the input interface
Robustness testing use-case generates template, including:
If the title of required field, length, data type defined in the definition information of the input interface, whether allow for
It is empty, it is determined that at least to generate template using following robustness testing use-case:Required field lacks robustness testing use-case and generates mould
Plate, required field are that empty robustness testing use-case generates the illegal robustness testing use-case generation template of template, field length, with
And the illegal robustness testing use-case of field type generates template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to described defeated
The field inputted is needed when incoming interface carries out robustness testing and for the data for needing the field inputted to be inputted
Must fill out it is one or more in attribute, data type, length, value range, including:
The title of the required field defined in definition information according to the input interface and required field missing are healthy and strong
Property Test cases technology template, determine to the input interface carry out robustness testing when do not input the defeated of the required field
Enter data;
The title of required field defined in information defined in the input interface and whether allow for sky and described
Required field is that empty robustness testing use-case generates template, and determining will be described when carrying out robustness testing to the input interface
The input data of required field is set as empty;
The title and length and the field length of required field defined in information defined in the input interface are not
Legal robustness testing use-case generates template, determines the required field when carrying out robustness testing to the input interface
The length of input data be set as illegal length value, the illegal length value includes at least the maximum length of the required field
Value plus 1 and the minimum length value of the required field subtract 1;
The title and data type of required field defined in information defined in the input interface and the field class
The illegal robustness testing use-case of type generates template, and determining must fill out when carrying out robustness testing to the input interface by described
The type of the input data of field is set as illegal data type.
3. the method as described in claim 1, which is characterized in that described to be made according to the determination of the definition information of the input interface
Robustness testing use-case generates template, including:
If whether the title of non-required field defined in the definition information of the input interface length, data type, allows
For sky, it is determined that at least generate template using following robustness testing use-case:Non- required field missing robustness testing use-case life
It is that empty robustness testing use-case generates the illegal robustness testing use-case generation of template, field length at template, non-required field
Template and the illegal robustness testing use-case of field type generate template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to described defeated
The field inputted is needed when incoming interface carries out robustness testing and for the data for needing the field inputted to be inputted
Must fill out it is one or more in attribute, data type, length, value range, including:
The title of non-required field defined in definition information according to the input interface and the non-required field missing
Robustness testing use-case generate template, determine to the input interface carry out robustness testing when do not input it is described it is non-must word filling
The input data of section;
The title of non-required field defined in definition information according to the input interface and whether allow for sky, Yi Jisuo
It is that empty robustness testing use-case generates template to state non-required field, and determining will when carrying out robustness testing to the input interface
The input data of the non-required field is set as empty;
The title and length of non-required field defined in definition information according to the input interface and the field length
Illegal robustness testing use-case generates template, and determining non-must fill out when carrying out robustness testing to the input interface by described
The length of the input data of field is set as illegal length value, and the illegal length value includes at least the non-required field most
Greatly enhance angle value add 1 and the minimum length value of the non-required field subtract 1;
The title and data type of non-required field defined in definition information according to the input interface and the field
The illegal robustness testing use-case of type generates template, and determining will be described non-when carrying out robustness testing to the input interface
The type of the input data of required field is set as illegal data type.
4. method as claimed in claim 2 or claim 3, which is characterized in that determined according to the definition information of the input interface
Used robustness testing use-case generates template, further includes:Most full dose field input robustness testing use-case generate template and
Minimum field input robustness testing use-case generates template;
Template is generated according to the definition information of the input interface and identified robustness testing use-case, is determined to described defeated
The field inputted is needed when incoming interface carries out robustness testing and for the data for needing the field inputted to be inputted
Must fill out it is one or more in attribute, data type, length, value range, including:
The title and length of all fields defined in definition information according to the input interface and the most full dose field
Input robustness testing use-case generate template, determine to the input interface carry out robustness testing when input required field and
The length of the input data of non-required field and each field is the maximum value of this field length;
The title and length of all required fields and non-required field defined in definition information according to the input interface with
And the minimum field input robustness testing use-case generates template, determines and is carrying out robustness testing to the input interface
When only input data and the length of each required field this field of input required field minimum length.
5. a kind of interface robustness testing use-case generating means, which is characterized in that the device includes:
Acquiring unit, the definition information for obtaining input interface;
Template selection unit, for determining that used robustness testing use-case generates according to the definition information of the input interface
Template;
Test cases technology unit is used for the definition information according to the input interface and identified robustness testing use-case
Template is generated, determines that the when of carrying out robustness testing to the input interface needs the field inputted and needs to input for described
The data that are inputted of field must fill out it is one or more in attribute, data type, length, value range, and according to determination
Field that the needs gone out input and for the data for needing the field inputted to be inputted must fill out attribute, data type,
It is one or more in length, value range, generate robustness testing set of uses case for the input interface;
The Test cases technology unit, is additionally operable to:
Used robustness testing use-case life is determined according to the definition information of the input interface in the template selection unit
After template, determine when generating template to input interface progress robustness testing using the robustness testing use-case
Expected results.
6. device as claimed in claim 5, which is characterized in that the template selection unit is specifically used for:
If the title of required field, length, data type defined in the definition information of the input interface, whether allow for
It is empty, it is determined that at least to generate template using following robustness testing use-case:Required field lacks robustness testing use-case and generates mould
Plate, required field are that empty robustness testing use-case generates the illegal robustness testing use-case generation template of template, field length, with
And the illegal robustness testing use-case of field type generates template;
The Test cases technology unit is specifically used for:
The title of the required field defined in definition information according to the input interface and required field missing are healthy and strong
Property Test cases technology template, determine to the input interface carry out robustness testing when do not input the defeated of the required field
Enter data;
The title of required field defined in information defined in the input interface and whether allow for sky and described
Required field is that empty robustness testing use-case generates template, and determining will be described when carrying out robustness testing to the input interface
The input data of required field is set as empty;
The title and length and the field length of required field defined in information defined in the input interface are not
Legal robustness testing use-case generates template, determines the required field when carrying out robustness testing to the input interface
The length of input data be set as illegal length value, the illegal length value includes at least the maximum length of the required field
Value plus 1 and the minimum length value of the required field subtract 1;
The title and data type of required field defined in information defined in the input interface and the field class
The illegal robustness testing use-case of type generates template, and determining must fill out when carrying out robustness testing to the input interface by described
The type of the input data of field is set as illegal data type.
7. device as claimed in claim 5, which is characterized in that the template selection unit is specifically used for:
If whether the title of non-required field defined in the definition information of the input interface length, data type, allows
For sky, it is determined that at least generate template using following robustness testing use-case:Non- required field missing robustness testing use-case life
It is that empty robustness testing use-case generates the illegal robustness testing use-case generation of template, field length at template, non-required field
Template and the illegal robustness testing use-case of field type generate template;
The Test cases technology unit is specifically used for:
The title of non-required field defined in definition information according to the input interface and the non-required field missing
Robustness testing use-case generate template, determine to the input interface carry out robustness testing when do not input it is described it is non-must word filling
The input data of section;
The title of non-required field defined in definition information according to the input interface and whether allow for sky, Yi Jisuo
It is that empty robustness testing use-case generates template to state non-required field, and determining will when carrying out robustness testing to the input interface
The input data of the non-required field is set as empty;
The title and length of non-required field defined in definition information according to the input interface and the field length
Illegal robustness testing use-case generates template, and determining non-must fill out when carrying out robustness testing to the input interface by described
The length of the input data of field is set as illegal length value, and the illegal length value includes at least the non-required field most
Greatly enhance angle value add 1 and the minimum length value of the non-required field subtract 1;
The title and data type of non-required field defined in definition information according to the input interface and the field
The illegal robustness testing use-case of type generates template, and determining will be described non-when carrying out robustness testing to the input interface
The type of the input data of required field is set as illegal data type.
8. device as claimed in claims 6 or 7, which is characterized in that the template selection unit is according to the input interface
It defines the used robustness testing use-case that information is determined and generates template, further include:Most full dose field inputs robustness and surveys
Example on probation generates template and minimum field input robustness testing use-case generates template;
The Test cases technology unit is additionally operable to:
The title and length of all fields defined in definition information according to the input interface and the most full dose field
Input robustness testing use-case generate template, determine to the input interface carry out robustness testing when input required field and
The length of the input data of non-required field and each field is the maximum value of this field length;
The title and length of all required fields and non-required field defined in definition information according to the input interface with
And the minimum field input robustness testing use-case generates template, determines and is carrying out robustness testing to the input interface
When only input data and the length of each required field this field of input required field minimum length.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410714715.3A CN104407976B (en) | 2014-11-28 | 2014-11-28 | A kind of interface robustness testing case generation method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410714715.3A CN104407976B (en) | 2014-11-28 | 2014-11-28 | A kind of interface robustness testing case generation method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104407976A CN104407976A (en) | 2015-03-11 |
| CN104407976B true CN104407976B (en) | 2018-08-07 |
Family
ID=52645609
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410714715.3A Active CN104407976B (en) | 2014-11-28 | 2014-11-28 | A kind of interface robustness testing case generation method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104407976B (en) |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105005532B (en) * | 2015-08-05 | 2017-11-24 | 广东欧珀移动通信有限公司 | A kind of system and method for automatic test application programming interfaces stability |
| CN105373392A (en) * | 2015-12-09 | 2016-03-02 | 浪潮电子信息产业股份有限公司 | A Method of Controlling the Digits of Scanning Sequence String Based on DOS System |
| CN105528294B (en) * | 2015-12-29 | 2018-05-25 | 广东金赋科技股份有限公司 | The method and system that a kind of interface testing use-case automatically generates |
| CN107203473A (en) * | 2017-05-26 | 2017-09-26 | 四川长虹电器股份有限公司 | The automatization test system and method for automatic expansion interface test case |
| CN107179994A (en) * | 2017-07-27 | 2017-09-19 | 深圳易嘉恩科技有限公司 | Association's input test case designing method of XBRL systems |
| CN108763070A (en) * | 2018-05-16 | 2018-11-06 | 北京金山云网络技术有限公司 | Generation method, device and the electronic equipment of test data |
| CN109308265A (en) * | 2018-10-26 | 2019-02-05 | 广州酷狗计算机科技有限公司 | The method and apparatus for generating negative testing use-case |
| CN111274120B (en) * | 2018-12-05 | 2024-02-02 | 三六零科技集团有限公司 | Interface document verification method and device |
| CN109885474A (en) * | 2018-12-14 | 2019-06-14 | 平安万家医疗投资管理有限责任公司 | Test case editing method and device, terminal and computer-readable storage medium |
| CN110221960A (en) * | 2019-04-19 | 2019-09-10 | 平安科技(深圳)有限公司 | Generate method and device, the computer equipment, storage medium of test case |
| CN112380114A (en) * | 2020-11-05 | 2021-02-19 | 中国人寿保险股份有限公司 | Automatic generation method and device for reverse test case file and electronic equipment |
| CN112783791B (en) * | 2021-02-08 | 2024-05-24 | 中国工商银行股份有限公司 | Interface test case generation method and device |
| CN113448869B (en) * | 2021-07-16 | 2022-12-13 | 中国建设银行股份有限公司 | Method and device for generating test case, electronic equipment and computer readable medium |
| CN113704095A (en) * | 2021-08-08 | 2021-11-26 | 中国航空工业集团公司沈阳飞机设计研究所 | Automatic generation method and device for automatic interface test case |
| CN116048888A (en) * | 2022-11-01 | 2023-05-02 | 广州品唯软件有限公司 | Interface parameter recommendation method and device based on traffic data |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5542043A (en) * | 1994-10-11 | 1996-07-30 | Bell Communications Research, Inc. | Method and system for automatically generating efficient test cases for systems having interacting elements |
| CN100351811C (en) * | 2004-11-15 | 2007-11-28 | 华为技术有限公司 | Method and device for testing software product robustness |
| CN103268285A (en) * | 2013-05-31 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Method and device for automatic generation of robustness test case of API interface |
-
2014
- 2014-11-28 CN CN201410714715.3A patent/CN104407976B/en active Active
Non-Patent Citations (1)
| Title |
|---|
| 基于RSL及Fuzzing的协议测试工具的研究;王元虎;《中国优秀硕士学位论文全文数据库信息科技辑》;20131215;第11-13页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104407976A (en) | 2015-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104407976B (en) | A kind of interface robustness testing case generation method and device | |
| CN108427632B (en) | Automatic test method and device | |
| CN107608889B (en) | Method and system for automatically generating test script | |
| US10684849B2 (en) | Automating generation of library suggestion engine models | |
| US9389849B2 (en) | Test case pattern matching | |
| CN105677563B (en) | A kind of integration testing sequence generating method based on SysML module maps | |
| CN106776349B (en) | Method and system for setting interface detection flow | |
| CN102662833B (en) | Method for managing test cases | |
| CN110990053A (en) | Creation method, usage method and device of machine learning scheme template | |
| CN110764753A (en) | Business logic code generation method, device, equipment and storage medium | |
| Nguyen et al. | Detection of embedded code smells in dynamic web applications | |
| CN113392024B (en) | Method, device, equipment and medium for testing storage process | |
| CN104657274B (en) | software interface test method and device | |
| CN103530223A (en) | Method and device for automatically generating unit test cases | |
| US10942841B2 (en) | User assisted automated test case generation | |
| CN113641748B (en) | Processing system of mineral processing process flow chart | |
| CN104035873A (en) | Method and device for generating testing codes | |
| AU2015218520A1 (en) | Service extraction and application composition | |
| US10067860B2 (en) | Defining test bed requirements | |
| CN113238929B (en) | Code testing method and device based on Mock data, electronic equipment and storage medium | |
| CN117707983A (en) | Test case code generation method and related equipment | |
| CN104731698A (en) | Abnormal test case automatic generation processing method and device based on automatic tests | |
| CN105808417A (en) | Automated testing method and proxy server | |
| CN106841974A (en) | A kind of FPGA test platforms and method | |
| US9477582B2 (en) | Executable software specification generation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |