CN104407976A - Method and device for generating interface robustness test case - Google Patents

Method and device for generating interface robustness test case Download PDF

Info

Publication number
CN104407976A
CN104407976A CN201410714715.3A CN201410714715A CN104407976A CN 104407976 A CN104407976 A CN 104407976A CN 201410714715 A CN201410714715 A CN 201410714715A CN 104407976 A CN104407976 A CN 104407976A
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.)
Granted
Application number
CN201410714715.3A
Other languages
Chinese (zh)
Other versions
CN104407976B (en
Inventor
赵军
阳淦婷
邹国平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd
Original Assignee
UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd filed Critical UNION MOBILE PAY ELECTRONIC COMMERCE Co Ltd
Priority to CN201410714715.3A priority Critical patent/CN104407976B/en
Publication of CN104407976A publication Critical patent/CN104407976A/en
Application granted granted Critical
Publication of CN104407976B publication Critical patent/CN104407976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for generating an interface robustness test case. The method comprises the following steps: acquiring definition information of an input interface to determine a used robustness test case generation template; then determining fields required to be input during robustness testing of the input interface and one or more of a required attribute, a data type, length and value range input aiming at the fields required to be input according to the definition information of the input interface and the determined robustness test case generation template; later generating a robustness test case set for the input interface according to the determined fields required to be input and one or more of the required attribute, the data type, the length and the value range input aiming at the data input by the fields required to be input. Through the embodiment of the invention, the problem that the existing technology requires to depend on a source code of development and the consistency of the source code and the definition in an interface document cannot be verified so as not to guarantee the effectiveness of testing is solved.

Description

A kind of interface robustness testing case generation method and device
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 the means checking system of artificial or robotization whether to meet regulation demand, is the committed step of software quality assurance.
The robustness testing of interface ignores business difference, and the robustness of docking port is tested, thus guarantee the correct process under various invalid or abnormal input, improves the safety and reliability of system.
Existing interface robustness is generally rely on the experience of tester to carry out robustness testing, tester adopts according to Interface design document and the test case document of prior hand-coding is changed into test code, the mode directly calling tested interface is carried out, and needs hand-coding test case and test code.Although the otherness that interface robustness testing shields business has certain rule, existing technology relies on artificial experience accumulation, and workload is heavy, execution efficiency low consumption duration, and easily occurs the infull problem of coverage rate.
The robustness testing method of another kind of interface is by extracting interface message to be measured to the scanning of static code, then carries out automatic generation and the test of robustness use-case.This method relies on completing of exploitation code, needs to guarantee that the mode that code is write meets the requirements, and prerequisite be hypothesis code realize errorless, otherwise the test case automatically generated is inherently problematic, cannot ensure the validity of interface testing.
As can be seen here, need a kind of scheme of automatic generation interface robustness testing use-case at present badly, and this test case is without the need to depending on completing of exploitation code, the robustness of effective docking port is tested.
Summary of the invention
The embodiment of the present invention provides a kind of interface robustness testing case generation method and device, in order to realize automatically generating interface robustness testing use-case and generate test case without the need to depending on the source code of exploitation.
The embodiment of the present invention provides a kind of interface robustness testing case generation method, and the method comprises:
Obtain the definition information of input interface;
Determine that used robustness testing use-case generates template according to the definition information of described input interface;
Generate template according to the definition information of described input interface and determined robustness testing use-case, determine to need when carrying out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more;
According to the field of the needs input determined and for described need the data that input of field of input must fill out in attribute, data type, length, span one or more, be that described input interface generates robustness testing set of uses case.
Preferably, the described definition information according to described input interface determines that used robustness testing use-case generates template, comprising:
If define the title of required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of the required field defined in the definition information according to described input interface and described required field disappearance robustness testing use-case generate template, determine the input data not inputting described required field when carrying out robustness testing to described input interface;
According to the title of the required field defined in definition information in described input interface and whether allow for sky, and described required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described required field are set to sky;
Template is generated according to the title of the required field defined in definition information in described input interface and length and the illegal robustness testing use-case of described field length, determine, when carrying out robustness testing to described input interface, the length of the input data of described required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described required field add 1 and the minimum length value of described required field subtract 1;
Generate template according to the title of the required field defined in definition information in described input interface and data type and the illegal robustness testing use-case of described field type, determine, when carrying out robustness testing to described input interface, the type of the input data of described required field is set to illegal data type.
Preferably, the described definition information according to described input interface determines that used robustness testing use-case generates template, comprising:
If define the title of non-required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
Title and the described non-required field disappearance robustness testing use-case of the non-required field defined in the definition information according to described input interface generate template, determine the input data not inputting described non-required field when carrying out robustness testing to described input interface;
The title of the non-required field defined in the definition information according to described input interface and whether allow for sky, and described non-required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described non-required field are set to sky;
The title of the non-required field defined in the definition information according to described input interface and length and the illegal robustness testing use-case of described field length generate template, determine, when carrying out robustness testing to described input interface, the length of the input data of described non-required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described non-required field add 1 and the minimum length value of described non-required field subtract 1;
The title of the non-required field defined in the definition information according to described input interface and data type and the illegal robustness testing use-case of described field type generate template, determine, when carrying out robustness testing to described input interface, the type of the input data of described non-required field is set to illegal data type.
Preferably, the robustness testing use-case used determined according to the definition information of described input interface generates template, also comprises: most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of all fields defined in the definition information according to described input interface and length and described most full dose field input robustness testing use-case generate template, determine to input when carrying out robustness testing to described input interface required field and the input data of non-required field and the length of each field is the maximal value of this field length;
The all required fields defined in definition information according to described input interface and the title of non-required field and length and described minimum field input robustness testing use-case generate template, determine the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface.
Preferably, after determining that used robustness testing use-case generates template according to the definition information of described input interface, also comprise:
Determine to use described robustness testing use-case to generate expected results when template carries out robustness testing to described input interface.
The embodiment of the present invention also provides a kind of interface robustness testing use-case generating apparatus, and this device comprises:
Acquiring unit, for obtaining the definition information of input interface;
Template selection unit, for determining that according to the definition information of described input interface used robustness testing use-case generates template;
Test cases technology unit, for generating template according to the definition information of described input interface and determined robustness testing use-case, need the field of input when determining to carry out robustness testing to described input interface and must attribute be filled out for the described data needing the field of input to input, data type, length, one or more in span, and according to the field of the needs input determined and for described need the data that input of field of input must fill out attribute, data type, length, one or more in span, for described input interface generates robustness testing set of uses case.
Preferably, described Test cases technology unit, specifically for:
If define the title of required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of the required field defined in the definition information according to described input interface and described required field disappearance robustness testing use-case generate template, determine the input data not inputting described required field when carrying out robustness testing to described input interface;
According to the title of the required field defined in definition information in described input interface and whether allow for sky, and described required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described required field are set to sky;
Template is generated according to the title of the required field defined in definition information in described input interface and length and the illegal robustness testing use-case of described field length, determine, when carrying out robustness testing to described input interface, the length of the input data of described required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described required field add 1 and the minimum length value of described required field subtract 1;
Generate template according to the title of the required field defined in definition information in described input interface and data type and the illegal robustness testing use-case of described field type, determine, when carrying out robustness testing to described input interface, the type of the input data of described required field is set to illegal data type.
Preferably, described Test cases technology unit, specifically for:
If define the title of non-required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
Title and the described non-required field disappearance robustness testing use-case of the non-required field defined in the definition information according to described input interface generate template, determine the input data not inputting described non-required field when carrying out robustness testing to described input interface;
The title of the non-required field defined in the definition information according to described input interface and whether allow for sky, and described non-required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described non-required field are set to sky;
The title of the non-required field defined in the definition information according to described input interface and length and the illegal robustness testing use-case of described field length generate template, determine, when carrying out robustness testing to described input interface, the length of the input data of described non-required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described non-required field add 1 and the minimum length value of described non-required field subtract 1;
The title of the non-required field defined in the definition information according to described input interface and data type and the illegal robustness testing use-case of described field type generate template, determine, when carrying out robustness testing to described input interface, the type of the input data of described non-required field is set to illegal data type.
Preferably, the robustness testing use-case used that described Test cases technology unit is determined according to the definition information of described input interface generates template, also comprises: most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case generates template;
Described Test cases technology unit also for:
The title of all fields defined in the definition information according to described input interface and length and described most full dose field input robustness testing use-case generate template, determine to input when carrying out robustness testing to described input interface required field and the input data of non-required field and the length of each field is the maximal value of this field length;
The all required fields defined in definition information according to described input interface and the title of non-required field and length and described minimum field input robustness testing use-case generate template, determine the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface.
Preferably, described Test cases technology unit, also for:
After described template selection unit to determine that according to the definition information of described input interface used robustness testing use-case generates template, determine to use described robustness testing use-case to generate expected results when template carries out robustness testing to described input interface.
In the above embodiment of the present invention, determine that used robustness testing use-case generates template by the definition information obtaining input interface, again according to definition information and the determined robustness testing use-case generation template of described input interface, need the field of input when determining to carry out robustness testing to described input interface and must attribute be filled out for the described data needing the field of input to input, data type, length, one or more in span, then according to determine needs input field and for described input data must fill out attribute, data type, length, one or more in span, for described input interface generates robustness testing set of uses case.The source code needing to depend on exploitation can be solved in prior art by the embodiment of the present invention, and cannot verify source code with define in interface document whether consistent, the problem of validity of testing cannot be ensured.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of interface robustness testing case generation method schematic flow sheet in the embodiment of the present invention;
Fig. 2 is a kind of interface robustness testing use-case generating apparatus structural representation in the embodiment of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, embodiments provide a kind of interface robustness testing case generation method schematic flow sheet, this flow process can be performed by interface robustness testing use-case generating apparatus, and described device can by software simulating.The method step comprises:
Step S101, obtains the definition information of input interface.
Concrete, in interface document, various interface is defined, the definition information of input interface can be obtained from interface document.In the definition information of an input interface, the attribute of each field of this input interface is defined, such as, field name, attribute (namely whether this field must fill out), length, data type must be filled out, whether allows for the information such as empty.
According to the definition information of described input interface, step S102, determines that used robustness testing use-case generates template.
Concrete, multiple robustness testing use-case can be pre-set and generate template, in this step, can according to obtain define in the definition information of input interface field name, attribute (namely whether this field must fill out), length, data type must be filled out, whether allow for the information such as empty, determine that required which kind of robustness testing use-case that uses generates template.
Step S103, generate template according to the definition information of described input interface and determined robustness testing use-case, determine to need when carrying out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more.
Step S104, according to the field of the needs input determined and for described need the data that input of field of input must fill out in attribute, data type, length, span one or more, be that described input interface generates robustness testing set of uses case.
In the above embodiment of the present invention, determine that used robustness testing use-case generates template by the definition information obtaining input interface, again according to definition information and the determined robustness testing use-case generation template of described input interface, need the field of input when determining to carry out robustness testing to described input interface and must attribute be filled out for the described data needing the field of input to input, data type, length, one or more in span, then according to the field of the needs input determined and for described need the data that input of field of input must fill out attribute, data type, length, one or more in span, for described input interface generates robustness testing set of uses case.The source code needing to depend on exploitation can be solved in prior art by the embodiment of the present invention, and cannot verify source code with define in interface document whether consistent, the problem of validity of testing cannot be ensured.
For the test of required field in interface, the multiple robustness testing use-case that can pre-set generates in template and can comprise: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template.
Correspondingly, in step S102 described in the embodiment of the present invention, if define the title of required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template.
In step s 103, according to the field inputted in above-mentioned each template determination test case and one or more generating test use cases must filled out in attribute, data type, length, span for the described data needing the field of input to input, can be able to comprise specifically:
The title of the required field defined in the definition information according to described input interface and described required field disappearance robustness testing use-case generate template, determine the input data not inputting described required field when carrying out robustness testing to described input interface, like this, the situation about lacking of the test case that this module can be used to generate to the required field in input interface is tested;
According to the title of the required field defined in definition information in described input interface and whether allow for sky, and described required field is that empty robustness testing use-case generates template, determine, when carrying out robustness testing to described input interface, the input data of described required field are set to sky, like this, whether the test case that this module can be used to generate is that empty situation is tested to the required field in input interface;
Template is generated according to the title of the required field defined in definition information in described input interface and length and the illegal robustness testing use-case of described field length, determine, when carrying out robustness testing to described input interface, the length of the input data of described required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described required field add 1 and the minimum length value of described required field subtract 1, like this, the test case that this module can be used to generate is tested the illegal situation of the field length in input interface;
Template is generated according to the title of the required field defined in definition information in described input interface and data type and the illegal robustness testing use-case of described field type, determine, when carrying out robustness testing to described input interface, the type of the input data of described required field is set to illegal data type, like this, the test case that this module can be used to generate is tested the illegal situation of the field type in input interface.
For the test of required field non-in interface, the multiple robustness testing use-case that can pre-set generates in template and can comprise: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template.
Correspondingly, if define the title of non-required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template.
In step S103, according to the field inputted in above-mentioned each template determination test case and one or more generating test use cases must filled out in attribute, data type, length, span for the described data needing the field of input to input, can be able to comprise specifically:
Title and the described non-required field disappearance robustness testing use-case of the non-required field defined in the definition information according to described input interface generate template, determine the input data not inputting described non-required field when carrying out robustness testing to described input interface, like this, the situation about lacking of the test case that this module can be used to generate to the non-required field in input interface is tested;
The title of the non-required field defined in the definition information according to described input interface and whether allow for sky, and described non-required field is that empty robustness testing use-case generates template, determine, when carrying out robustness testing to described input interface, the input data of described non-required field are set to sky, like this, whether the test case that this module can be used to generate is that empty situation is tested to the non-required field in input interface;
The title of the non-required field defined in the definition information according to described input interface and length and the illegal robustness testing use-case of described field length generate template, determine, when carrying out robustness testing to described input interface, the length of the input data of described non-required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described non-required field add 1 and the minimum length value of described non-required field subtract 1, like this, the test case that this module can be used the to generate situation illegal to the field length in input interface is tested,
The title of the non-required field defined in the definition information according to described input interface and data type and the illegal robustness testing use-case of described field type generate template, determine, when carrying out robustness testing to described input interface, the type of the input data of described non-required field is set to illegal data type, like this, the test case that this module can be used to generate is tested the illegal situation of the field type in input interface.
If input interface comprises N number of field, then each field needs to generate template according to above-mentioned different robustness testing use-case, and generate templating species according to robustness testing use-case, circulation generates robustness testing use-case one by one.
As one needs the interface carrying out robustness testing to comprise A, B, C tri-fields, when generating template generation robustness testing use-case according to the definition information in the interface document of interface about the definition of field and above-mentioned robustness testing use-case, field A first generates template circulation according to above-mentioned robustness testing use-case and generates robustness testing use-case one by one, then field B and field C circulates successively and generates robustness testing use-case, finally again the robustness testing use-case of all generations of three fields is aggregated into robustness testing set of uses case.
Further, also can pre-set most full dose field input robustness testing use-case and generate template and minimum field input robustness testing use-case generates template.
Correspondingly, most full dose field input robustness testing use-case is also used to generate template when carrying out robustness testing to input interface and minimum field input robustness testing use-case generates template.
Correspondingly, in step s 103, according to the field inputted in above-mentioned each template determination test case and one or more generating test use cases must filled out in attribute, data type, length, span for the described data needing the field of input to input, can be able to comprise specifically:
The title of all fields defined in the definition information according to described input interface and length and described most full dose field input robustness testing use-case generate template, determine to input required field and the input data of non-required field when carrying out robustness testing to described input interface and the length of each field is the maximal value of this field length, like this, the situation of the test case that this module can be used to generate to the most full dose field input in input interface is tested;
The all required fields defined in definition information according to described input interface and the title of non-required field and length and described minimum field input robustness testing use-case generate template, determine the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface, like this, the situation of the test case that this module can be used to generate to the minimum field input in input interface is tested.
Preferably, after step S102 described in the embodiment of the present invention, also comprise: determine to use described robustness testing use-case to generate expected results when template carries out robustness testing to described input interface.Each robustness testing use-case corresponding can generate expected results during corresponding test, by the effect in advance of each robustness testing use-case and the actual test result of this test case being contrasted, can judge the robustness problems of described input interface.
In order to explain the present invention, the present invention will be described for the example that use one is concrete below, and be understandable that, following explanation only for illustrative purposes, is not limited thereto according to embodiments of the invention.
For the purpose of removing, present embodiments provide following robustness testing use-case and generate template:
Required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, the illegal robustness testing use-case of field type generates template, most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case and generates eight kinds of robustness testing use-cases such as template and generate templates.
Required field disappearance robustness testing use-case generates template and defines the input data not inputting required field when carrying out robustness testing to input interface;
Required field is that sky robustness testing use-case generates template and defines, when carrying out robustness testing to input interface, the input data of required field are set to sky;
Non-required field disappearance robustness testing use-case generates template and defines the input data not inputting non-required field when carrying out robustness testing to input interface;
Non-required field is that sky robustness testing use-case generates template and defines, when carrying out robustness testing to input interface, the input data of non-required field are set to sky;
The illegal robustness testing use-case of field length generates template and defines, when carrying out robustness testing to input interface, the length of the input data of required field is set to illegal length value, the maximum length value that illegal length value at least comprises required field 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 and to input required field and the input data of non-required field when carrying out robustness testing to input interface and the length of each field is the maximal value of this field length;
Minimum field input robustness testing use-case generates template and defines the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface;
Field type illegal robustness testing use-case generation template defines, when carrying out robustness testing to input interface, the type of the input data of required field is set to illegal data type.
The illegal robustness testing use-case of field type each field type generated in template has the illegal data type of its correspondence, data type as field is Real-valued (double, float), and its corresponding illegal data type is: negative, 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 type (Boolean): its corresponding illegal data type is: non-true value or false value;
The data type of field is date type (date): its corresponding illegal data type is: the value of non-date cannonical format;
The data type of field is timestamp type (timestamp): its corresponding illegal data type is: the value of non-timestamp cannonical format;
The data type of field is character string type (string): limit without illegal data type;
Also comprise: the public illegal data type of the data type of all fields is: illegal punctuation symbol.
Below to carry out robustness testing to illustrate to a kind of interface realizing two numbers additions.
First, according to the interface document of this interface, obtain the definition information of this interface definition, comprising: field a (integer, must fill out, can not empty, length [3,16]) and field b (integer, must fill out, can not sky, length [2,16]).The data type of expression field a is integer, this field must be filled out, this field length span that is empty, this field can not be 3 to 16, comprise 3 and 16, the data type of field b is integer, this field be must fill out, this field length span that is empty, this field can not be 2 to 16, comprises 2 and 16.
Secondly, determine to use following robustness testing use-case to generate template according to the definition information of above-mentioned acquisition: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, field length illegal robustness testing use-case generates template, field type illegal robustness testing use-case generates template, most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case generates eight kinds of robustness testing use-cases such as template and generates templates.
Again, generate template according to the definition information of described input interface and determined robustness testing use-case, determine to need when carrying out robustness testing to described input interface the field of input and for one or more in the type of the described data needing the field of input to input, length, span.
If field a is when using required field disappearance robustness testing use-case to generate template, the shortage of data of field a required input; The data type of field b required input is integer, length gets arbitrary value in 2 to 16.
If field a is when using required field to generate template for empty robustness testing use-case, the data of field a required input are set to sky; The data type of field b required input is integer, length gets arbitrary value in 2 to 16.
If field a is when using the illegal robustness testing use-case of field length to generate template, the data type of field a required input is integer, and length value is 2 or 17; The data type of field b required input is integer, length gets arbitrary value in 2 to 16.
If field a is when using the illegal robustness testing use-case of field type to generate template, the data type of field a required input is one or more in negative, decimal, character, character string or Chinese character (rarely used word), and length is taken as arbitrary value in 3 to 16; The data type of field b required input is integer, length gets arbitrary value in 2 to 16.
As when using most full dose field input robustness testing use-case to generate template, the data type of field a required input is integer, and length gets 16; The data type of field b required input is integer, and length gets 16.
As when using minimum field input robustness testing use-case to generate template, the data type of field a required input is integer, and length gets 3; The data type of field b required input is integer, and length gets 2.
Correspondingly, field b also needs to determine when using above-mentioned robustness testing use-case to generate template, the information such as type, length, span of the data of required input.
Finally, according to one or more in the field of the needs input determined and the type needing the data that input of field of input for described, length, span, be that described input interface generates robustness testing set of uses case.
If field a is when using required field disappearance robustness testing use-case to generate template, the input data in the robustness testing use-case of generation are b=12345.
If field a is when using required field to generate template for empty robustness testing use-case, the input data in the robustness testing use-case of generation are a=, b=12345.
If field a is when using the illegal robustness testing use-case of field length to generate template, the input data in the robustness testing use-case of generation are a=23 or a=12345678998765432, b=12345.
If field a is when using the illegal robustness testing use-case of field type to generate template, the input data in the robustness testing use-case of generation are a=sgfsgs, b=12345.
As when using most full dose field input robustness testing use-case to generate template, the input data in the robustness testing use-case of generation are a=1234567899876543, b=1234567899876543.
As when using minimum field input robustness testing use-case to generate template, the input data in the robustness testing use-case of generation are a=123, b=12.
Correspondingly, field b also needs when using above-mentioned robustness testing use-case to generate template, the robustness testing use-case of generation.
The robustness testing set of uses case of all generations is combined, is used for carrying out the test of robustness to the interface that described two numbers are added.This interface define how many fields, all need to test with regard to needing to generate template to all fields according to operable all robustness testing use-cases, simultaneously requisite is generate template and minimum field input robustness testing use-case generation template generation robustness testing set of uses case to all fields according to most full dose field input robustness testing use-case.
Based on identical technical conceive, Fig. 2 shows a kind of interface robustness testing use-case generating apparatus, and this device can be applicable to the flow process shown in Fig. 1.
This device comprises:
Acquiring unit 201, for obtaining the definition information of input interface;
Template selection unit 202, for determining that according to the definition information of described input interface used robustness testing use-case generates template;
Test cases technology unit 203, for generating template according to the definition information of described input interface and determined robustness testing use-case, need the field of input when determining to carry out robustness testing to described input interface and must attribute be filled out for the described data needing the field of input to input, data type, length, one or more in span, and according to the field of the needs input determined and for described need the data that input of field of input must fill out attribute, data type, length, one or more in span, for described input interface generates robustness testing set of uses case.
Preferably, described Test cases technology unit 203, specifically for:
If define the title of required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of the required field defined in the definition information according to described input interface and described required field disappearance robustness testing use-case generate template, determine the input data not inputting described required field when carrying out robustness testing to described input interface;
According to the title of the required field defined in definition information in described input interface and whether allow for sky, and described required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described required field are set to sky;
Template is generated according to the title of the required field defined in definition information in described input interface and length and the illegal robustness testing use-case of described field length, determine, when carrying out robustness testing to described input interface, the length of the input data of described required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described required field add 1 and the minimum length value of described required field subtract 1;
Generate template according to the title of the required field defined in definition information in described input interface and data type and the illegal robustness testing use-case of described field type, determine, when carrying out robustness testing to described input interface, the type of the input data of described required field is set to illegal data type.
Preferably, described Test cases technology unit 203, specifically for:
If define the title of non-required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
Title and the described non-required field disappearance robustness testing use-case of the non-required field defined in the definition information according to described input interface generate template, determine the input data not inputting described non-required field when carrying out robustness testing to described input interface;
The title of the non-required field defined in the definition information according to described input interface and whether allow for sky, and described non-required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described non-required field are set to sky;
The title of the non-required field defined in the definition information according to described input interface and length and the illegal robustness testing use-case of described field length generate template, determine, when carrying out robustness testing to described input interface, the length of the input data of described non-required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described non-required field add 1 and the minimum length value of described non-required field subtract 1;
The title of the non-required field defined in the definition information according to described input interface and data type and the illegal robustness testing use-case of described field type generate template, determine, when carrying out robustness testing to described input interface, the type of the input data of described non-required field is set to illegal data type.
Preferably, the robustness testing use-case used that described Test cases technology unit 203 is determined according to the definition information of described input interface generates template, also comprises: most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case generates template;
Described Test cases technology unit 203 also for:
The title of all fields defined in the definition information according to described input interface and length and described most full dose field input robustness testing use-case generate template, determine to input when carrying out robustness testing to described input interface required field and the input data of non-required field and the length of each field is the maximal value of this field length;
The all required fields defined in definition information according to described input interface and the title of non-required field and length and described minimum field input robustness testing use-case generate template, determine the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface.
Preferably, described Test cases technology unit 203, also for:
After described template selection unit to determine that according to the definition information of described input interface used robustness testing use-case generates template, determine to use described robustness testing use-case to generate expected results when template carries out robustness testing to described input interface.
Based on above-described embodiment, determine that used robustness testing use-case generates template by the definition information obtaining input interface, again according to definition information and the determined robustness testing use-case generation template of described input interface, need the field of input when determining to carry out robustness testing to described input interface and must attribute be filled out for the described data needing the field of input to input, data type, length, one or more in span, then according to the field of the needs input determined and for described need the data that input of field of input must fill out attribute, data type, length, one or more in span, for described input interface generates robustness testing set of uses case.The source code needing to depend on exploitation can be solved in prior art by the embodiment of the present invention, and cannot verify source code with define in interface document whether consistent, the problem of the validity of testing cannot be ensured, increase substantially efficiency and the validity of robustness testing.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. an interface robustness testing case generation method, is characterized in that, the method comprises:
Obtain the definition information of input interface;
Determine that used robustness testing use-case generates template according to the definition information of described input interface;
Generate template according to the definition information of described input interface and determined robustness testing use-case, determine to need when carrying out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more;
According to the field of the needs input determined and for described need the data that input of field of input must fill out in attribute, data type, length, span one or more, be that described input interface generates robustness testing set of uses case.
2. the method for claim 1, is characterized in that, the described definition information according to described input interface determines that used robustness testing use-case generates template, comprising:
If define the title of required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of the required field defined in the definition information according to described input interface and described required field disappearance robustness testing use-case generate template, determine the input data not inputting described required field when carrying out robustness testing to described input interface;
According to the title of the required field defined in definition information in described input interface and whether allow for sky, and described required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described required field are set to sky;
Template is generated according to the title of the required field defined in definition information in described input interface and length and the illegal robustness testing use-case of described field length, determine, when carrying out robustness testing to described input interface, the length of the input data of described required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described required field add 1 and the minimum length value of described required field subtract 1;
Generate template according to the title of the required field defined in definition information in described input interface and data type and the illegal robustness testing use-case of described field type, determine, when carrying out robustness testing to described input interface, the type of the input data of described required field is set to illegal data type.
3. the method for claim 1, is characterized in that, the described definition information according to described input interface determines that used robustness testing use-case generates template, comprising:
If define the title of non-required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
Title and the described non-required field disappearance robustness testing use-case of the non-required field defined in the definition information according to described input interface generate template, determine the input data not inputting described non-required field when carrying out robustness testing to described input interface;
The title of the non-required field defined in the definition information according to described input interface and whether allow for sky, and described non-required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described non-required field are set to sky;
The title of the non-required field defined in the definition information according to described input interface and length and the illegal robustness testing use-case of described field length generate template, determine, when carrying out robustness testing to described input interface, the length of the input data of described non-required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described non-required field add 1 and the minimum length value of described non-required field subtract 1;
The title of the non-required field defined in the definition information according to described input interface and data type and the illegal robustness testing use-case of described field type generate template, determine, when carrying out robustness testing to described input interface, the type of the input data of described non-required field is set to illegal data type.
4. method as claimed in claim 2 or claim 3, it is characterized in that, the robustness testing use-case used determined according to the definition information of described input interface generates template, also comprises: most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of all fields defined in the definition information according to described input interface and length and described most full dose field input robustness testing use-case generate template, determine to input when carrying out robustness testing to described input interface required field and the input data of non-required field and the length of each field is the maximal value of this field length;
The all required fields defined in definition information according to described input interface and the title of non-required field and length and described minimum field input robustness testing use-case generate template, determine the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface.
5. the method for claim 1, is characterized in that, after determining that used robustness testing use-case generates template, also comprises according to the definition information of described input interface:
Determine to use described robustness testing use-case to generate expected results when template carries out robustness testing to described input interface.
6. an interface robustness testing use-case generating apparatus, is characterized in that, this device comprises:
Acquiring unit, for obtaining the definition information of input interface;
Template selection unit, for determining that according to the definition information of described input interface used robustness testing use-case generates template;
Test cases technology unit, for generating template according to the definition information of described input interface and determined robustness testing use-case, need the field of input when determining to carry out robustness testing to described input interface and must attribute be filled out for the described data needing the field of input to input, data type, length, one or more in span, and according to the field of the needs input determined and for described need the data that input of field of input must fill out attribute, data type, length, one or more in span, for described input interface generates robustness testing set of uses case.
7. device as claimed in claim 6, is characterized in that, described Test cases technology unit, specifically for:
If define the title of required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: required field disappearance robustness testing use-case generates template, required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
The title of the required field defined in the definition information according to described input interface and described required field disappearance robustness testing use-case generate template, determine the input data not inputting described required field when carrying out robustness testing to described input interface;
According to the title of the required field defined in definition information in described input interface and whether allow for sky, and described required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described required field are set to sky;
Template is generated according to the title of the required field defined in definition information in described input interface and length and the illegal robustness testing use-case of described field length, determine, when carrying out robustness testing to described input interface, the length of the input data of described required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described required field add 1 and the minimum length value of described required field subtract 1;
Generate template according to the title of the required field defined in definition information in described input interface and data type and the illegal robustness testing use-case of described field type, determine, when carrying out robustness testing to described input interface, the type of the input data of described required field is set to illegal data type.
8. device as claimed in claim 6, is characterized in that, described Test cases technology unit, specifically for:
If define the title of non-required field, length, data type in the definition information of described input interface, whether allow for sky, then determine at least to use following robustness testing use-case to generate template: non-required field disappearance robustness testing use-case generates template, non-required field is that empty robustness testing use-case generates template, the illegal robustness testing use-case of field length generates template, and the illegal robustness testing use-case of field type generates template;
According to definition information and the determined robustness testing use-case generation template of described input interface, need when determining to carry out robustness testing to described input interface the field of input and for the described data needing the field of input to input must fill out in attribute, data type, length, span one or more, comprising:
Title and the described non-required field disappearance robustness testing use-case of the non-required field defined in the definition information according to described input interface generate template, determine the input data not inputting described non-required field when carrying out robustness testing to described input interface;
The title of the non-required field defined in the definition information according to described input interface and whether allow for sky, and described non-required field is that empty robustness testing use-case generates template, determines, when carrying out robustness testing to described input interface, the input data of described non-required field are set to sky;
The title of the non-required field defined in the definition information according to described input interface and length and the illegal robustness testing use-case of described field length generate template, determine, when carrying out robustness testing to described input interface, the length of the input data of described non-required field is set to illegal length value, the maximum length value that described illegal length value at least comprises described non-required field add 1 and the minimum length value of described non-required field subtract 1;
The title of the non-required field defined in the definition information according to described input interface and data type and the illegal robustness testing use-case of described field type generate template, determine, when carrying out robustness testing to described input interface, the type of the input data of described non-required field is set to illegal data type.
9. device as claimed in claim 7 or 8, it is characterized in that, the robustness testing use-case used that described Test cases technology unit is determined according to the definition information of described input interface generates template, also comprises: most full dose field input robustness testing use-case generates template and minimum field input robustness testing use-case generates template;
Described Test cases technology unit also for:
The title of all fields defined in the definition information according to described input interface and length and described most full dose field input robustness testing use-case generate template, determine to input when carrying out robustness testing to described input interface required field and the input data of non-required field and the length of each field is the maximal value of this field length;
The all required fields defined in definition information according to described input interface and the title of non-required field and length and described minimum field input robustness testing use-case generate template, determine the minimum length only inputting the input data of required field and this field of length of each required field when carrying out robustness testing to described input interface.
10. device as claimed in claim 6, is characterized in that, described Test cases technology unit, also for:
After described template selection unit to determine that according to the definition information of described input interface used robustness testing use-case generates template, determine to use described robustness testing use-case to generate expected results when template carries out robustness testing to described input interface.
CN201410714715.3A 2014-11-28 2014-11-28 A kind of interface robustness testing case generation method and device Active CN104407976B (en)

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 true CN104407976A (en) 2015-03-11
CN104407976B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005532A (en) * 2015-08-05 2015-10-28 广东欧珀移动通信有限公司 System for automatically testing stability of application program interface and method
CN105373392A (en) * 2015-12-09 2016-03-02 浪潮电子信息产业股份有限公司 DOS-based method for controlling digit number of scanning sequence word string
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
CN107179994A (en) * 2017-07-27 2017-09-19 深圳易嘉恩科技有限公司 Association's input test case designing method of XBRL systems
CN107203473A (en) * 2017-05-26 2017-09-26 四川长虹电器股份有限公司 The automatization test system and method for automatic expansion interface test case
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
CN109885474A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Test case edit methods 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
CN111274120A (en) * 2018-12-05 2020-06-12 北京奇虎科技有限公司 Interface document verification method and device
CN112380114A (en) * 2020-11-05 2021-02-19 中国人寿保险股份有限公司 Automatic generation method and device for reverse test case file and electronic equipment
CN112783791A (en) * 2021-02-08 2021-05-11 中国工商银行股份有限公司 Interface test case generation method and device
CN113448869A (en) * 2021-07-16 2021-09-28 建信金融科技有限责任公司 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

Citations (3)

* Cited by examiner, † Cited by third party
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
CN1776643A (en) * 2004-11-15 2006-05-24 华为技术有限公司 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN1776643A (en) * 2004-11-15 2006-05-24 华为技术有限公司 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

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZTHUA: "软件异常测试", 《WWW.51TESTING.COM/HTML/16/342316-219994.HTML》 *
王元虎: "基于RSL及Fuzzing的协议测试工具的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
赵则章: "操作系统健壮性测试方法的分析与比较", 《福建电脑》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005532A (en) * 2015-08-05 2015-10-28 广东欧珀移动通信有限公司 System for automatically testing stability of application program interface and method
CN105373392A (en) * 2015-12-09 2016-03-02 浪潮电子信息产业股份有限公司 DOS-based method for controlling digit number of scanning sequence word string
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
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
CN111274120A (en) * 2018-12-05 2020-06-12 北京奇虎科技有限公司 Interface document verification method and device
CN111274120B (en) * 2018-12-05 2024-02-02 三六零科技集团有限公司 Interface document verification method and device
CN109885474A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Test case edit methods 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
CN112783791A (en) * 2021-02-08 2021-05-11 中国工商银行股份有限公司 Interface test case generation method and device
CN112783791B (en) * 2021-02-08 2024-05-24 中国工商银行股份有限公司 Interface test case generation method and device
CN113448869A (en) * 2021-07-16 2021-09-28 建信金融科技有限责任公司 Method and device for generating test case, electronic equipment and computer readable medium
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

Also Published As

Publication number Publication date
CN104407976B (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN104407976A (en) Method and device for generating interface robustness test case
CN108427632B (en) Automatic test method and device
US8868976B2 (en) System-level testcase generation
CN104331294A (en) Visual program generation method and device
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN110262783B (en) Interface generation method and device and terminal equipment
CN107347007B (en) CAD signature authentication system and CAD signature authentication method for construction drawing examination
CN104091161A (en) Schematic circuit diagram netlist comparison method
CN108572911A (en) Automate safety detecting method, device, electronic equipment and readable storage medium storing program for executing
CN113377653B (en) Method and device for generating test cases
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN107844410A (en) The adjustment method and device of a kind of distributed cluster system
CN105279092A (en) Software testing method and apparatus
CN108304614B (en) Setting method and device for integrated circuit layout pins
CN104615808B (en) A kind of test method and reference model device of hardware computation component to be tested
Eles et al. A tabular expression toolbox for Matlab/Simulink
CN112685040B (en) Method, device, equipment and storage medium for generating interface file in android system
CN117555792A (en) Test code generation method and device
CN111413607B (en) Method, device, equipment and medium for positioning sensitive door node
CN109254977A (en) Data creation method, big data air control platform and computer storage medium
CN107622013B (en) Distributed system testing method and device
CN105577424A (en) Data asset quality monitoring method based on data traceability graph
CN105373385A (en) Multi-resolution UI (User Interface) adaption scripting development method of Android application
CN110633204B (en) Program defect detection method and device
US10803219B1 (en) Method and system for combined formal static analysis of a design code

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