摘要
UML活动图不再是状态图的特例,它作为一种独立的模型广泛用于软件的行为建模。基于UML活动图的测试受到业界的普遍欢迎。然而从UML活动图自动生成完整的测试场景\用例成为一个难点。本文对基于UML活动图的测试进行了比较分析,总结了几种从UML活动图生成测试场景\用例的方法及其使用的算法,即反蚂蚁Agent方法、灰盒方法、自适应细菌Agent方法和系统的形式化方法。对这些方法进行了分析与比较,指出一些不足之处。最后对UML活动图测试的发展趋势做了一些展望。
UML activity diagram is no longer a special case of UML state diagram and it has been widely used in modelling software hehaviours in the form of independent model. The testing based on UML activity diagram is universally welcomed by industry. However, it is difficult to automatically generate test scenarios/cases form UML activity dia- grams. Some researches on the testing based on UML activity diagram are analysed in the paper, i. e. , anti-ant-like a- gent, grey-box, adaptive bacteria agent and systematic formal methods. A few approaches to generate test scenarios/ cases from UML activity diagrams are summarised and the resulting comments are depicted. Finally, the further research trend to UML activity diagram based testing is addressed.
出处
《计算机科学》
CSCD
北大核心
2008年第2期263-267,281,共6页
Computer Science
基金
国家发展与改革委员会基金项目(编号SNMCFIP-2006S001)