摘要
针对目前测试模型中未考虑对象间交互关系产生的条件、循环消息类型造成产生的测试场景覆盖率低的问题,提出基于UML动态视图构造测试模型、生成测试场景的方法。该方法结合UML顺序图、状态图构造测试模型,等价转化成有向图,采用扩展的十字链表存储结构,在遍历过程中判断消息类型,再根据消息类型生成测试场景。应用实例说明了该方法的实用性。
The current test model does not consider the condition of the interactive relationship between the objects, and the cycle message type leads to low coverage of test scenario. To resolve these problems, the authors presented a method of creating test model and test scenario based on UML dynamic view. In this method, a test model was built through UML sequential diagram and state diagram. Then it was transformed into a directed graph with extended orthogonal list structure. Test scenario was created based on the message type which was determined when traversing. Examples prove the practicability of the proposed method.
出处
《计算机应用》
CSCD
北大核心
2009年第5期1385-1388,1392,共5页
journal of Computer Applications
基金
国家自然科学基金资助项目(60773055)
江西省自然科学基金资助项目(0511066)