CN100487667C - System and method for automatically testing software unit - Google Patents

System and method for automatically testing software unit Download PDF

Info

Publication number
CN100487667C
CN100487667C CNB2005101264991A CN200510126499A CN100487667C CN 100487667 C CN100487667 C CN 100487667C CN B2005101264991 A CNB2005101264991 A CN B2005101264991A CN 200510126499 A CN200510126499 A CN 200510126499A CN 100487667 C CN100487667 C CN 100487667C
Authority
CN
China
Prior art keywords
test
file
module
setting
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005101264991A
Other languages
Chinese (zh)
Other versions
CN1983209A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005101264991A priority Critical patent/CN100487667C/en
Publication of CN1983209A publication Critical patent/CN1983209A/en
Application granted granted Critical
Publication of CN100487667C publication Critical patent/CN100487667C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A test automation system of a software unit comprises multi-language support module for confirming a programming language according to source file and for selecting compiler to compile source file to be object file, scrip interpretation module for analyzing test scrip file and for calling object file analysis module to analyze object file, binary system test code generating module for setting up relevant command, test result output module for counting up test result and for storing said result into file, and test result judgment module for judging whether test result is normal or not automatically.

Description

A kind of automatically testing software unit system and method thereof
Technical field
The present invention relates to the software unit testing field, relate in particular to the software automated testing System and method for.
Background technology
Software must can guarantee that just it is working properly in applied environment by test, and software test is the important means that ensures software quality.Software test any defective, also must be efficiently in effective discovery software, and the holding time is few and expense is little as far as possible.Automatic test will improve testing efficiency and test mass effectively.
SDLC coding stage, must carry out unit testing.Unit testing is other test activity of lowermost level that will carry out in software development process.In the unit testing activity, the separate unit of software will with the isolated situation of other parts of program under test.Software unit can be a function, class, and the method for class, scale are generally smaller.Unit testing check software unit has inerrancy, and whether verification unit coincide with design.
The method that realizes at present unit testing is to increasing test code in the tested code, and the method for writing a large amount of pile functions and driving function realizes.The problem of this method maximum is to need to increase and revise a large amount of program codes, has destroyed original code.After test is finished, the test code that increases need be from program code, deleted, regression test can not be supported easily simultaneously.To the unusual situation of unlikely generation, as file read-write failure, failures in resource application etc. can not finely be simulated, and cause that some branch does not obtain the operation test in the code, cause a hidden trouble.Test process can not robotization, and efficiency ratio is lower.Single to the test code category of language, a kind of instrument can only be supported a certain language.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of automatically testing software unit system and method thereof, need manually add and delete code when overcoming the realization test that exists in the prior art, automaticity is low, regression test is poor, unusual analog capability is low, support single language issues and defective, a kind of system and method for supporting multilingual software unit testing robotization is provided, support regression test easily.
To achieve these goals, the invention provides a kind of automatically testing software unit system, include test script file;
Script explanation module is used to obtain test script file, and converts described test script file to the internal memory mode, and therefrom reads the information relevant with unit testing;
The test setting module is used to be provided with the information relevant with unit testing, and the information of described setting is saved in the internal memory;
Script generation module is used for test setting is saved in file as test script;
Test result output module is used for being saved in test result and coverage rate statistics in the file or interface display;
Its characteristics are, also comprise:
Environment is provided with module, is used to allow the user that running environment information is set;
Multilingual support module is used for when the user opens the test source file, and the programming language type of source file is judged, calls corresponding compiler source file is compiled the generation file destination;
The file destination analysis module is used for extracting the information relevant with unit testing from file destination;
Scale-of-two test code generation module is used for on-the-fly modifying according to the code of test setting to function, inserts corresponding instruction and generation unit test binary code;
The test code execution module is used to move the test thread of creating according to the unit testing binary code that is produced;
The test result judge module is used for according to output result and Rule of judgment, judges whether test is passed through.
To achieve these goals, the present invention also provides a kind of software unit testing automated method, and its characteristics are, comprise the steps:
Step 1, environment is provided with module environmental information is provided with;
Step 2 is opened the source file that will carry out unit testing;
Step 3, multilingual support module are determined the programming language type to the source file analysis, and compiling generates file destination to source file to select corresponding compiler;
Step 4 when not having test script, is provided with the information relevant with unit testing, and the information of described setting is saved in the internal memory, and script generation module is saved in the file being provided as test script;
Step 5, the user opens test script file, and script explanation module is obtained test script file, and converts described test script file to the internal memory mode, and therefrom reads the information relevant with unit testing;
Step 6, file destination analysis module propose the information relevant with unit testing from file destination;
Whether analyze the information of coming out in the step 7, the information of analyze in the compare test script and file destination consistent, if more not by report and make mistakes;
Step 8, scale-of-two test code generation module on-the-fly modifies according to the code of test setting to function, inserts command adapted thereto automatically, generates final scale-of-two test code.
Step 9, this automatically testing software unit system is created a test thread according to the scale-of-two test code that is generated, and the thread entry address is the test code execution module, moves this test thread;
Step 10, behind the establishment thread end of run, test result output module handle output result and coverage rate statistics convert character string to and are saved in the file, are simultaneously displayed on the interface;
Step 11, test result judge module judge according to output result and Rule of judgment whether test is passed through.
Above-mentioned method, its characteristics are, in step 1, this environment is provided with the process that module is provided with running environment information and comprises: the option of increase when the path of the header file of needs, resource file path, compiling generate the deposit position of file destination and user and need compile when specifying compiling.
Above-mentioned method, its characteristics are, in step 4, this test setting module comprises at least to the process that test cell carries out test setting: test cell go into that the ginseng value is provided with, the value setting of variable, pile function setting, coverage rate setting, output are provided with, Rule of judgment as a result; And this script generation module is to convert the memory information that test setting needs to character string information, preserves as test script.
Above-mentioned method, its characteristics are, in step 5, this script explanation module is after the test script file that text is preserved is read in from hard disk, convert the internal memory mode to, and therefrom read the information relevant with unit testing, comprising: the unit under test object, go into that the ginseng value is provided with, the value setting of variable, pile function setting, coverage rate setting, output are provided with, Rule of judgment as a result.
Above-mentioned method, its characteristics are that in step 6, the described information relevant with unit testing comprises: unit information, go into ginseng information, variable information, and the code information of unit.
Above-mentioned method, its characteristics are, in step 8, this scale-of-two test code generation module is analyzed the code information of unit under test, according to test setting, code to function on-the-fly modifies, and the operation intermediate variable that inserts the unit automatically is provided with instruction, pile function and the output that instruction, coverage rate be provided with in service of instruction, unit is set instruction is set, and generates final scale-of-two test code.
Above-mentioned method, its characteristics are that in step 9, testing execution module is pressed into storehouse to the ginseng setting of going into of unit under test, finishes the initialization of initial variable, calls unit under test, finishes the operation of test thread.Above-mentioned method, its characteristics are, in step 10, the content of output comprises: unit under test title, beginning test duration, concluding time, go into ginseng settings, global variable setting, pile function setting, user value, the coverage rate statistics that needs are exported is set.
Above-mentioned method, its characteristics are that described test script file is that an INI configuration file with WINDOWS is the text of form, can directly revise by text editor.
Adopt system and method for the present invention, compared with prior art, obtained the progress of automatic interpolation test code, reached and avoided the manual code of revising, realize regression test, realize unusual simulation test easily, support the multilingual effect, save the unit testing time, improved testing efficiency.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is a test script file generative process synoptic diagram of the present invention;
Fig. 2 is a unit testing process synoptic diagram of the present invention;
Fig. 3 is a scale-of-two test code generation module schematic flow sheet of the present invention.
Embodiment
Automatically testing software unit system of the present invention, except that comprising test script file, script explanation module, test setting module, script generation module, test result output module, also comprise: environment is provided with module, multilingual support module, file destination analysis module, scale-of-two test code generation module, test code execution module, test result judge module.When carrying out unit testing, the user opens the source file and the test script file of tested unit, multilingual support module is determined the programming language type according to source file, compiling generates the target obj file to source file to select corresponding compiler, script explanation module analytical test script file, invocation target file analysis module is analyzed the file destination that compiling generates, scale-of-two test code generation module is provided with the insertion command adapted thereto according to test script, generation unit test binary code, testing tool is created process operation to the binary code that generates, test result output module is test result and coverage rate statistics, be saved in the file or interface display, the test result judge module judges automatically whether test result is normal.The user can make amendment to test script by the test setting module, is saved in the file by script generation module.
Particularly, software unit testing automatic mode of the present invention may further comprise the steps:
The first step: the setting that module is carried out running environment is set by environment;
Second step: open the source file that will carry out unit testing;
The 3rd step: multilingual support module is determined the programming language type to the source file analysis, and compiling generates the target obj file to source file to select corresponding compiler;
The 4th step: when not having test script, the user can select earlier test cell is carried out test setting, what comprise test cell goes into the setting of ginseng value, the value setting of variable, pile function setting, coverage rate setting, output is provided with, Rule of judgment etc. as a result, the test setting module is saved in the internal memory according to user's setting, and script generation module is saved in setting in the file;
The 5th step: the user opens test script file, and script explanation module analytical test script is therefrom read to locate the unit under test object, goes into the setting of ginseng value, the value setting of variable, pile function setting, coverage rate setting, output is provided with, Rule of judgment as a result, the test setting module can the basis on make amendment;
The 6th step: the file destination analysis module is analyzed obj file, proposes unit information, goes into ginseng information, variable information, and the code information of unit;
Whether the 7th step: it is consistent to analyze the information of coming out in the information of analyze in the compare test script and the file destination, whether exist in file destination as the unit that will survey, with in the file destination whether the ginseng of respectively going in the test script be provided with and conform to, if more not by report make mistakes;
The 8th step: scale-of-two test code generation module is analyzed the code information of unit under test, according to test setting, automatically the operation intermediate variable that inserts the unit is provided with instruction, pile function is provided with instruction, coverage rate is provided with instruction, the output that the unit is in service is provided with instruction, generates final scale-of-two test code;
The 9th step: testing tool is created a thread, and the thread entry address is the test code execution module.In testing execution module, the ginseng setting of going into of unit under test is pressed into storehouse, finish the initialization of initial variable, call unit under test;
The tenth step: after creating the thread end of run, test result output module is saved in output result and coverage rate statistics in the file, is simultaneously displayed on the interface;
The 11 step: the test result judge module judges according to output result and Rule of judgment whether test is passed through.
Be described in further detail below in conjunction with the enforcement of accompanying drawing technical scheme of the present invention:
Fig. 1 has listed the test script file generative process.
Environment is provided with module 101 allows the user that running environment information is set, the path of the header file that mainly being meant delimits the organizational structure when translating needs, and the resource file path, compiling generates the deposit position of target obj file, and the option that increases need compile the time of user.
Multilingual support module 102 is judged the programming language type of source file when the user opens the test source file, is called corresponding compiler source file is compiled.Mainly be to judge type with the source filename suffix, suffix is the source file of " .c " or " .cpp ", be C language form, call the compiler cl.exe of VC, suffix is the source file of " pas ", is the DELPHI type, call the dcc32.exe compiling, suffix is that the source file of " .asm " is the compilation type, calls the ml.exe compiling of masm, and masm version number is V6.14.Adopt command line mode to call compiler:
Cl/c/Zi/I header file path/Fo file destination path source filename
Dcc32-J-I header file path-R resource file path-O file destination path source filename
Ml/coff/c/Zd/Zi/I header file path/Fo file destination path source filename
The obj file that 103 pairs of compilers of file destination analysis module generate is analyzed, and the obj file form that different compilers produces is different, need call different algorithms and analyze.The main purpose of analyzing is to obtain the global variable that comprises in the source file from obj file, function, each function go into ginseng information, include the ginseng number and go into parameter according to type, the local variable information of each function, the code information of each function, and the corresponding informance of capable number of the code that needs in coverage rate statistics and source file.The gordian technique that realizes this module is the form of obj file, and the obj file that VC compiler C L.EXE generates is COFF (Common Object File Format) form, in header file WINNT.H definition is arranged.The OBJ form that DELPHI compiler DCC32.EXE generates can decompose with the TDUMP.EXE that carries under the DELPHI.During obj file that MASM compiler ML.EXE generates, input option "/coff " forces to generate the OBJ form of COFF form.
After the information that after the file destination analysis module is to the obj file analysis, produces, test setting module 104 demonstrates the function name tabulation, behind user's choice function, carry out setting operation: test name, length of testing speech, if this function has into ginseng, then allowing the user be provided with going into ginseng, mainly is to carry out assignment to going into ginseng, will consider the normal range value into ginseng when going into to join assignment, boundary value, illegal value, the normal value that function is gone into ginseng has certainly, and boundary value and exceptional value not necessarily have, but three kinds of situations must be considered during test, otherwise the code robustness has problem; The user carries out initialization according to the test needs to global variable; Pile function is provided with, list the tabulation of this other function name of function call, the user selects to be set to the function name of pile function, by pile function the isolation that realizes test cell and other unit is set, and also can be provided with by pile function and specify the pile function rreturn value to realize some abnormality tests; Coverage rate is provided with, and the user specifies the code range that need carry out the coverage rate statistics; Output is provided with, and the user specifies and needs to be saved in the file neutralization behind the end of run and be presented at variable on the interface, can be global variable, local variable, function output parameter, function return value; Test result judges that the user is set specifies the scope of exporting the variate-value in being provided with.
After test setting finishes, by script generation module 105 memory information that test setting needs is converted to character string information, be saved in the file as test script, use for regression test.
Test script file 106 is that an INI configuration file with WINDOWS is the text of form, can directly revise by text editor.
Fig. 2 has listed unit testing process of the present invention.
Script explanation module 201 after the test script file that text is preserved reads in from hard disk, converts the internal memory mode to, and this point realizes just opposite with script generation module.Script explanation module also will be carried out necessary inspection in addition, whether exist in the source file of opening as the function in the script, function go into ginseng whether with source file in consistent, need initialized global variable whether in source file, to exist, whether type is consistent, whether conform in the information that needs output and the source file, conform to during pile function is provided with in the source file.
Scale-of-two test code generation module 202 is nucleus modules of the present invention, in Fig. 3 its flow process is described.Major function is to on-the-fly modify according to the code that is provided with function, increase or the modification command adapted thereto, in time adjust jump address and call address in the code during modification,, need become the long jump instruction if jump address surpasses 128 bytes after noting original short jump instruction adjustment address.Need to begin three internal memories of application, pCodeBuf is used to deposit fresh code, length is 2 times of former code length, if it is not enough to add in the code process space afterwards, need application again in time, pDataBuf is used to deposit the information that test output is set, length be all output informations length with, pCoverBuf is used to deposit coverage rate information, and length is former code length.Unit variable setting in service is carried out assignment to named variable.Unit variable output in service is provided with, and the value of named variable is outputed to the specified memory zone.Pile function is provided with, and the position of call function is replaced with dummy instruction, and be provided with register EAX according to the user, and the EDX assignment is as the rreturn value of pile function.Coverage rate is provided with; make code branches coverage rate statistics; to the internal memory pCoverBuf clear 0 that applies for; code dis-assembling to whole unit under test; with the instruction of jump target addresses insertion coverage rate statistics, the instruction of insertion realizes that the internal memory relevant position of applying for is put 1 operates after jump instruction, and attention needs protection and inserts the original value of register that uses in the instruction; as follows, variable i CoverOff is the internal memory skew:
push?esi
mov?esi,pCoverBuf
mov[esi+iCoverOff],1
pop?esi
ICoverOff adds 1
If the internal memory intermediate value is 1 to show that corresponding branch obtains operation when coverage rate is added up, combine with the corresponding informance of capable number of the code that draws at the file destination analysis module and source file, can count the coverage rate of unit under test like this.
Test code execution module 203 is inlets of test thread.At first go into ginseng setting, corresponding common variables go into ginseng, directly value is pressed into storehouse, to pointer type, need according to internal memory of size application of pointer parent type, be pressed into storehouse to the address of applying for internal memory earlier to the ginseng of going into of the content setting of pointed, after again internal memory being changed according to pointer parent type, to each field assignment.Secondly global variable setting is according to the value of revising global varible internal memory is set.Call the test code that scale-of-two test code generation module produces at last.
Test result output module 204 behind the unit end of run, becomes character string to the information translation that needs in being provided with, and writes in the file in the mode of text, is presented on the interface.Output content comprises: the unit under test title, and the beginning test duration, the concluding time, go into ginseng setting, the global variable setting, the pile function setting, the user is provided with the value that needs output, coverage rate statistics.
Test result judge module 205, test result is judged that setting simply compiles, judge according to test result to be provided with, take out corresponding variate-value and judge whether being provided with in the scope the user, whether normal, be presented on the interface if can draw this test result.
So far, unit testing finishes, and is released in the internal memory of applying in the test.
In the whole unit test process, behind the input unit under test code, do not need manual any code of revising, realize the ginseng input automatically, the global variable initialization, variable is observed output, pile function setting, coverage rate statistics, the real automatic test of realizing, can support regression test well, save the test duration, raise the efficiency.By the unit variable simulation abnormal conditions that are provided with in service, increase branch's coverage rate.
Method of the present invention has been proved feasible in experiment.
Below be for example concrete of the inventive method:
Required unit under test is write with the C language.
int?test(int?InPara)
{
if(InPara)
return?1;
else
return?0;
}
After the test setting, test script is as follows:
[test case 0]
Use-case title=test
Number of run=1
Function operation duration (second)=1
Function 0=test ()
Function 0_ goes into to join 0_InPara=1
Function 0_ output 0=rreturn value
=0) ﹠amp; ﹠amp; (function 0_ output 0!=0)
|| (function 0_ goes into to join 0_InPara==0) ﹠amp; ﹠amp; (function 0_ exports 0==0))
Multilingual support module compiling generates obj file, and the function code dis-assembling is as follows:
push?ebp
mov?ebp,esp
cmp?dword?ptr[ebp+0x08],0x00
jz RET_ZERO
mov?eax,0x00000001
pop?ebp
ret?0x04
RET_ZERO:
xor?eax,eax
pop?ebp
ret0x04
After the operation of scale-of-two test code generation module, the final test code is as follows:
push?ebp
mov?ebp,esp
Insert coverage rate statistics 0
push?esi
mov?esi,pCoverBuf
mov[esi],1
pop?esi
cmp?dword?ptr[ebp+0x08],0x00
jz?RET_ZERO1
Insert coverage rate statistics 1
push?esi
mov?esi,pCoverBuf
mov[esi+1],1
pop?esi
mov?eax,0x00000001
pop?ebp
ret?0x04
RET_ZERO1:
Insert coverage rate statistics 2
push?esi
mov?esi,pCoverBuf
mov[esi+2],1
pop?esi
xor?eax,eax
pop?ebp
ret?0x04
The test code execution module is pressed into storehouse to the value of setting 1 of going into to join InPara, and pCodeBuf is called as function address.The return results of unit under test test is put into pDataBuf to the value of register eax in the test code execution module, as follows:
push?esi
mov?esi,pDataBuf
mov[esi],eax
pop?esi
Test result output module and test result judge module when getting function return value, are directly got from pDataBuf, guarantee data reliability.
From top simple example as can be seen, in whole test process, do not need by hand test code to be carried out any modification, can realize input automatically into ginseng, the output of function return value, the coverage rate statistics realizes, and the judgement of test result.The real automated unit test of realizing.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1, a kind of automatically testing software unit system includes
Test script file;
Script explanation module is used to obtain test script file, and converts described test script file to the internal memory mode, and therefrom reads the information relevant with unit testing;
The test setting module is used to be provided with the information relevant with unit testing, and the information of described setting is saved in the internal memory;
Script generation module is used for test setting is saved in file as test script;
Test result output module is used for being saved in test result and coverage rate statistics in the file or interface display;
It is characterized in that, also comprise:
Environment is provided with module, is used to allow the user that running environment information is set;
Multilingual support module is used for when the user opens the test source file, and the programming language type of source file is judged, calls corresponding compiler source file is compiled the generation file destination;
The file destination analysis module is used for extracting the information relevant with unit testing from file destination;
Scale-of-two test code generation module is used for on-the-fly modifying according to the code of test setting to function, inserts corresponding instruction and generation unit test binary code;
The test code execution module is used to move the test thread of creating according to the unit testing binary code that is produced;
The test result judge module is used for according to output result and Rule of judgment, judges whether test is passed through.
2, a kind of software unit testing automated method is characterized in that, comprises the steps:
Step 1, environment is provided with module environmental information is provided with;
Step 2 is opened the source file that will carry out unit testing;
Step 3, multilingual support module are determined the programming language type to the source file analysis, and compiling generates file destination to source file to select corresponding compiler;
Step 4 when not having test script, is provided with the information relevant with unit testing, and the information of described setting is saved in the internal memory, and script generation module is saved in the file being provided as test script;
Step 5, the user opens test script file, and script explanation module is obtained test script file, and converts described test script file to the internal memory mode, and therefrom reads the information relevant with unit testing;
Step 6, file destination analysis module propose the information relevant with unit testing from file destination;
Whether analyze the information of coming out in the step 7, the information of analyze in the compare test script and file destination consistent, if more not by report and make mistakes;
Step 8, scale-of-two test code generation module on-the-fly modifies according to the code of test setting to function, inserts command adapted thereto automatically, generates final scale-of-two test code;
Step 9 is created a test thread according to the scale-of-two test code that is generated, and the thread entry address is the test code execution module, moves this test thread;
Step 10, behind the establishment thread end of run, test result output module handle output result and coverage rate statistics convert character string to and are saved in the file, are simultaneously displayed on the interface;
Step 11, test result judge module judge according to output result and Rule of judgment whether test is passed through.
3, method according to claim 2, it is characterized in that, in step 1, this environment is provided with the process that module is provided with running environment information and comprises: the option of increase when the path of the header file of needs, resource file path, compiling generate the deposit position of file destination and user and need compile when specifying compiling.
4, method according to claim 3, it is characterized in that, in step 4, this test setting module comprises at least to the process that test cell carries out test setting: test cell go into that the ginseng value is provided with, the value setting of variable, pile function setting, coverage rate setting, output are provided with, Rule of judgment as a result; And this script generation module is to convert the memory information that test setting needs to character string information, preserves as test script.
5, method according to claim 4, it is characterized in that, in step 5, this script explanation module is after the test script file that text is preserved is read in from hard disk, convert the internal memory mode to, and therefrom read the information relevant with unit testing, comprising: the unit under test object, go into that the ginseng value is provided with, the value setting of variable, pile function setting, coverage rate setting, output are provided with, Rule of judgment as a result.
6, method according to claim 5 is characterized in that, in step 6, the described information relevant with unit testing comprises: unit information, go into ginseng information, variable information, and the code information of unit.
7, method according to claim 6, it is characterized in that, in step 8, this scale-of-two test code generation module is analyzed the code information of unit under test, according to test setting, code to function on-the-fly modifies, and the operation intermediate variable that inserts the unit automatically is provided with instruction, pile function and the output that instruction, coverage rate be provided with in service of instruction, unit is set instruction is set, and generates final scale-of-two test code.
8, method according to claim 7 is characterized in that, in step 9, testing execution module is pressed into storehouse to the ginseng setting of going into of unit under test, finishes the initialization of initial variable, calls unit under test, finishes the operation of test thread.
9, method according to claim 8, it is characterized in that, in step 10, the content of output comprises: unit under test title, beginning test duration, concluding time, go into ginseng settings, global variable setting, pile function setting, user value, the coverage rate statistics that needs are exported is set.
10, method according to claim 2 is characterized in that, described test script file is that an INI configuration file with WINDOWS is the text of form, can directly revise by text editor.
CNB2005101264991A 2005-12-14 2005-12-14 System and method for automatically testing software unit Expired - Fee Related CN100487667C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101264991A CN100487667C (en) 2005-12-14 2005-12-14 System and method for automatically testing software unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101264991A CN100487667C (en) 2005-12-14 2005-12-14 System and method for automatically testing software unit

Publications (2)

Publication Number Publication Date
CN1983209A CN1983209A (en) 2007-06-20
CN100487667C true CN100487667C (en) 2009-05-13

Family

ID=38165762

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101264991A Expired - Fee Related CN100487667C (en) 2005-12-14 2005-12-14 System and method for automatically testing software unit

Country Status (1)

Country Link
CN (1) CN100487667C (en)

Families Citing this family (54)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101634965B (en) * 2008-07-24 2012-01-11 三星电子(中国)研发中心 Method for testing Linux kernel-grade unit
CN102289365B (en) * 2010-06-21 2015-07-22 中兴通讯股份有限公司 Method and device for constructing script driving software
WO2012119267A1 (en) * 2011-03-08 2012-09-13 Hewlett-Packard Development Comany, L.P. Creating a test case
CN102147758A (en) * 2011-03-16 2011-08-10 深圳创维数字技术股份有限公司 Automatic compiling and configuring method for equipment to be tested, device and system
CN103164323B (en) * 2011-12-09 2016-12-07 深圳市腾讯计算机系统有限公司 Data auto-generation method and data automatic creation system
CN102567164A (en) * 2011-12-23 2012-07-11 中国科学院自动化研究所 Instruction set batch testing device and method for processor
CN102591777B (en) * 2012-01-10 2016-04-13 深圳市同洲电子股份有限公司 A kind of unit test code generation method and device
CN103425572B (en) * 2012-05-24 2016-04-13 腾讯科技(深圳)有限公司 Code analysis methods and code analysis system
CN102841837B (en) * 2012-06-26 2014-07-30 中国科学院声学研究所 Software and hardware co-verification method based on simulator and system thereof
CN103049378A (en) * 2012-12-18 2013-04-17 惠州市亿能电子有限公司 Program debugging method without emulator
CN104123218B (en) * 2013-04-23 2015-06-24 腾讯科技(深圳)有限公司 Method, device and system for code coverage test
CN103500141A (en) * 2013-10-09 2014-01-08 中国联合网络通信集团有限公司 Automated testing method and device
CN104699596A (en) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 Method and device for processing code coverage rate
CN104731700B (en) * 2013-12-20 2018-11-09 广州凯乐软件技术有限公司 A kind of unit test system and method for supporting table driving local data
CN103714006B (en) * 2014-01-07 2017-05-24 浪潮(北京)电子信息产业有限公司 Performance test method of Gromacs software
CN104834590B (en) * 2014-02-11 2018-11-23 腾讯科技(深圳)有限公司 Method for testing software and system
CN104035873A (en) * 2014-06-30 2014-09-10 青岛海信电器股份有限公司 Method and device for generating testing codes
US10459830B2 (en) 2014-07-29 2019-10-29 Micro Focus Llc Executable code abnormality detection
CN104199767B (en) * 2014-08-19 2017-08-29 北京金山安全软件有限公司 Test method and device
CN105677297B (en) * 2014-11-18 2018-05-04 龙芯中科技术有限公司 Lock set implementation method and device
CN105718251B (en) * 2014-12-03 2019-02-01 苏宁易购集团股份有限公司 Multilingual SDK automates realization method and system
CN105760292B (en) * 2014-12-18 2019-01-08 阿里巴巴集团控股有限公司 A kind of assertion verification method and apparatus for unit testing
CN104657270A (en) * 2015-02-28 2015-05-27 北京嘀嘀无限科技发展有限公司 Method and system for testing
CN105867990A (en) * 2015-11-20 2016-08-17 乐视云计算有限公司 Software development integration method and device thereof
CN106933730A (en) * 2015-12-29 2017-07-07 北京国睿中数科技股份有限公司 Method of testing, device and test frame system based on test frame system
CN105893104A (en) * 2016-03-28 2016-08-24 乐视控股(北京)有限公司 Code compiling method and device
CN106294053A (en) * 2016-07-28 2017-01-04 浪潮电子信息产业股份有限公司 A kind of internal memory performance method of testing and device
CN107992405A (en) * 2016-10-27 2018-05-04 中兴通讯股份有限公司 application software testing method and device
CN108073499B (en) * 2016-11-10 2020-09-29 腾讯科技(深圳)有限公司 Application program testing method and device
CN108090347B (en) * 2016-11-23 2022-01-14 阿里巴巴集团控股有限公司 Data processing method and system
CN106649110B (en) * 2016-12-15 2023-09-15 中标软件有限公司 Software testing method and system
CN106980504B (en) * 2017-03-28 2022-07-01 腾讯科技(深圳)有限公司 Application program development method and tool and equipment thereof
CN107643980A (en) * 2017-08-21 2018-01-30 武汉斗鱼网络科技有限公司 A kind of method and apparatus for positioning crash info
CN107748302B (en) * 2017-09-06 2020-08-18 国营芜湖机械厂 Automatic test control method for automatic comprehensive detection equipment for electrical accessories of seat
CN110018953B (en) * 2018-01-10 2022-12-23 武汉斗鱼网络科技有限公司 Method, storage medium, device and system for testing JS code by using python
CN111382055B (en) * 2018-12-29 2023-09-15 贝壳技术有限公司 Automatic unit testing method and device based on unified description language
CN109710537B (en) * 2019-01-02 2022-02-18 郑州云海信息技术有限公司 Intelligent automatic testing method and system
CN111400162B (en) * 2019-01-02 2023-04-25 阿里巴巴集团控股有限公司 Test method and test system
CN111488140B (en) * 2019-01-29 2023-10-27 杭州海康威视数字技术股份有限公司 Method, device and computer equipment for supporting multiple programming libraries in multiple programming languages
CN110175131A (en) * 2019-04-29 2019-08-27 合肥移瑞通信技术有限公司 A kind of script management method and system based on PyQt kit
CN110300377A (en) * 2019-06-17 2019-10-01 合肥移瑞通信技术有限公司 A kind of test method and system of base station location dynamic field
CN112181799A (en) * 2019-07-05 2021-01-05 北京新能源汽车股份有限公司 Software configuration parameter testing method and device and automobile
CN110580226B (en) * 2019-09-23 2021-09-14 上海创景信息科技有限公司 Object code coverage rate testing method, system and medium for operating system level program
CN110990282B (en) * 2019-12-04 2023-07-21 中国直升机设计研究所 Automatic unit testing method
CN112988551B (en) * 2019-12-12 2023-09-26 腾讯科技(深圳)有限公司 Code coverage rate testing method and device
CN111008151B (en) * 2019-12-20 2023-06-13 上海品顺信息科技有限公司 Program scanning method, terminal device and computer readable storage medium
CN111552475B (en) * 2020-04-20 2023-08-15 武汉精测电子集团股份有限公司 Method, method and system for compiling work load test file for aging test of semiconductor memory
CN111651346B (en) * 2020-04-27 2022-11-18 深圳平安医疗健康科技服务有限公司 Method and device for testing front-end component, storage medium and computer equipment
CN112131869B (en) * 2020-09-02 2021-09-10 苏州好玩友网络科技有限公司 Multi-language-based text detection method and device
CN112035370A (en) * 2020-09-04 2020-12-04 常州新途软件有限公司 Automatic generation system and generation method for unit test code
CN112328226B (en) * 2020-09-17 2022-03-04 北京中数科技术有限公司 Embedded system automatic test code generation method and device
CN112445550A (en) * 2020-12-08 2021-03-05 中国科学院深圳先进技术研究院 Server-free computing method and system for preprocessing function
CN113326190A (en) * 2021-05-27 2021-08-31 北京百度网讯科技有限公司 Method and device for determining code coverage rate and electronic equipment
CN113360410A (en) * 2021-07-19 2021-09-07 上汽通用五菱汽车股份有限公司 Test method of C code software and readable storage medium

Also Published As

Publication number Publication date
CN1983209A (en) 2007-06-20

Similar Documents

Publication Publication Date Title
CN100487667C (en) System and method for automatically testing software unit
CN102819492B (en) Keyword driven automatic testing frame on basis of Android
CN101739339B (en) Program dynamic dependency relation-based software fault positioning method
CN106776343A (en) A kind of web application automated test tool and method
US20070061641A1 (en) Apparatus and method for generating test driver
US20030200532A1 (en) System and method for sharing reusable code base
US20070169027A1 (en) Methods and systems for complete static analysis of software for building a system
CN105678169A (en) Binary program vulnerability discovery method and system
US20080244541A1 (en) Code translator and method of automatically translating modeling language code to hardware language code
KR940703049A (en) A system that divides processing tasks into signal processors and decision microprocessors that interface with them
CN105528287A (en) Apparatus and method for unit test of code
CN103605556A (en) Virtual test subject integrally-constructing system and method
Tiwari et al. Reuse: reducing test effort
CN113553035A (en) Design and construction method of universal front-end UI component library
CN112131116A (en) Automatic regression testing method for embedded software
CN104199770B (en) A kind of automated testing method of mobile phone music APK
US10157057B2 (en) Method and apparatus of segment flow trace analysis
CN114036072B (en) Method and system supporting automatic detection of program defects
CN112882718A (en) Compiling processing method, device, equipment and storage medium
CN106649110B (en) Software testing method and system
CN104915199B (en) A kind of method and apparatus that Flash projects are converted to Html5 projects
CN110275715A (en) Unmanned aerial vehicle station software implementation method based on kylin operating system
CN201383144Y (en) Testing device
US20180314497A1 (en) Translation of assembler language code using intermediary technical rules language (trl)
CN109857640B (en) Embedded code advanced verification method based on prototype design

Legal Events

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

Granted publication date: 20090513

Termination date: 20141214

EXPY Termination of patent right or utility model