摘要
目前对于活动图的研究没有考虑到面向对象软件的多态性特点,无法在活动图中对多态消息进行测试。基于此,结合面向对象多态性的特点,根据UML类图对活动图中含有多态信息的节点进行加权扩展,利用所提出的优化算法对其进行遍历并得出数量少但覆盖率高的测试用例序列。通过实例说明该方法的实现过程,证明该方法的有效性。
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 thetest 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.
出处
《计算机工程》
CAS
CSCD
北大核心
2010年第11期83-84,87,共3页
Computer Engineering
关键词
面向对象
多态性
活动图
类图
测试用例
object-oriented
polymorphism
activity diagram
class diagram
test case