Abstract:
Since the current researches of activity diagram do not take into account of the polymorphism, which is one of the most important characteristics of the object-oriented software, it is impossible to test the polymorphism information of the activity diagram. Combining with the object-oriented polymorphic feature, this paper uses UML class diagram to do weighted expansion to the nodes containing polymorphism information in the activity diagram, and traversals it with an optimization algorithm to get the test case series which are smaller in amount but higher in coverage rate. It uses an example to prove the availability and effectiveness of the approach.
摘要: 目前对于活动图的研究没有考虑到面向对象软件的多态性特点,无法在活动图中对多态消息进行测试。基于此,结合面向对象多态性的特点,根据UML类图对活动图中含有多态信息的节点进行加权扩展,利用所提出的优化算法对其进行遍历并得出数量少但覆盖率高的测试用例序列。通过实例说明该方法的实现过程,证明该方法的有效性。
关键词:
面向对象,
多态性,
活动图,
类图,
测试用例
CLC Number:
QIN Zhao-Xuan, CENG Yi, CHAI Yan-Xin, XU Pan-De. UML Activity Diagram-based Polymorphic Test Case Generation[J]. Computer Engineering, 2010, 36(11): 83-84,87.
覃钊璇, 曾一, 柴艳欣, 徐攀登. 基于UML活动图的多态性测试用例生成[J]. 计算机工程, 2010, 36(11): 83-84,87.