摘要
为了降低面向对象软件的测试复杂性,降低测试的成本,提高软件质量,在目前软件可测试性研究的基础上,提出了将圈复杂度和UML类图转化而来的类依赖关系图(CDG图)结合起来,分析和度量类之间相互关系的复杂性,以此来指导可测试性的改善以及开发和测试的设计。最后通过实例表明,该方法可以指导软件的设计,提高软件的可测试性,从而降低整个软件测试的成本。
To reduce the testing complexity,decrease the cost of testing,and improve the quality of the object-oriented software,a solution is provided based on the current study.Cyclomatic complexity and class dependency graph(CDG) which is transformed from UML class diagram can be combined to analyze and measure the complexity of classes’ relationship.The consequence can be instructed the melioration of testability and the devise of developing and testing.Finally,a case is given to demonstrate that this method can be used to guide the software design,improve the software testability,and thus reduce the whole testing cost.
出处
《计算机工程与设计》
CSCD
北大核心
2011年第4期1326-1329,共4页
Computer Engineering and Design
关键词
可测试性
类图
类依赖关系图
软件测试
圈复杂度
software testability
UML class diagram
class dependency graph
software testing
cyclomatic complexity