发明名称 Method and apparatus for the performing unit testing of software modules in software systems
摘要 In a method and apparatus of performing unit testing of a software module, the method provides for reading, by a computer, target data and discovering of functional aspects of a piece of software code, dividing the target data into chunks, estimating a plurality of decision/condition statements of the software code, estimating an amount of possible test cases based on the program inputs, defining a data set over the plurality of identified decisions/conditions, finding subset relationships between all the defined data sets, defining a plurality of optimal data sets, classifying the condition of the plurality of optimal data sets by category, refining the plurality of optimal data sets, and calculating the best amount of data sets.
申请公布号 US8799868(B2) 申请公布日期 2014.08.05
申请号 US201113088678 申请日期 2011.04.18
申请人 Siemens Aktiengesellschaft 发明人 Ndem Guy Collins;Tahir Abbas Abdelhamid Abbas
分类号 G06F9/44 主分类号 G06F9/44
代理机构 King & Spalding L.L.P. 代理人 King & Spalding L.L.P.
主权项 1. A method of performing unit testing of a software module, comprising: identifying, by a computer, functional aspects of a piece of software code; identifying a plurality of decision/condition statements of the piece of software code; estimating an amount of possible test cases based on the plurality of identified decision/condition statements; defining a data set over the plurality of identified decision/condition statements; finding subset relationships between all the defined data sets; defining a plurality of optimal data sets, the defining a plurality of optimal data sets including defining at least two data sets for each of said identified decision/condition statements, a first data set characterized as true and a second data set characterized as false; classifying each decision/condition statement into one of a plurality of decision/condition categories including at least a sequential decision/condition category and a nested decision/condition category; refining the plurality of optimal data sets by overlapping at least a subset of the plurality of decision/condition statements based on the decision/condition category classifications of the decision/condition statements, and calculating a reduced amount of data sets as compared with the plurality of optimal data sets based on the refined optical data sets, the reduced amount comprising an amount that provides optimal coverage with a minimal number of test cases.
地址 Munich DE