摘要
软件测试在控制软件质量中起着非常重要的作用。JUnit作为一款功能强大的开源单元测试工具,在单元测试中得到较为广泛的应用。本文在分析JUnit实现测试用例、处理单元测试用例与测试套件关系以及收集结果与判断方法的基础上,用UML时序图表示了JUnit框架测试流程,并利用JUnit框架对后缀表达式实现算法进行了单元测试和套件测试。
Software testing is playing an important role in the process of software quality control.As a powerful open source testing tool,JUnit is widely used in unit testing.This article studies the methods of JUnit dealingwith problems like generating test cases,test suites,collecting results,and making assertions.Then UML sequence diagrams of JUnit framework testing process are shown.With JUnit framework,we processed a series of testing over the implementation of postfix expression algorithm.
出处
《河北省科学院学报》
CAS
2013年第2期81-87,共7页
Journal of The Hebei Academy of Sciences