文档详情

基于UML的面向对象的软件测试技术研究与应用-软件工程专业论文.docx

发布:2018-12-15约4.68万字共53页下载文档
文本预览下载声明
STUDY AND APPLICATION OF OBJECT-ORIENTED SOFTWARE TESTING TECHNOLOGY BASED ON UML A Dissertation submitted in fulfillment of the requirements of the degree of MASTER OF SOFTWARE ENGINEERING from Shandong University of Science and Technology by Zhu Yuye Supervisor: Professor Li Dengdao Supervisor: Professor Shi Zhong College of Information Science and Engineering May 2006 声 明 本人呈交给山东科技大学的这篇硕士学位论文,除了所列参考文献和世所公认的文 献外,全部是本人在导师指导下的研究成果。该论文资料尚没有呈交于其它任何学术机 关作鉴定。 硕士生签名: 日 期: AFFIRMATION I declare that this dissertation, submitted in fulfillment of the requirements for the award of Master of Philosophy in Shandong University of Science and Technology, is wholly my own work unless referenced of acknowledge. The document has not been submitted for qualification at any other academic institute. Signature: Date: 摘要 软件测试是软件开发工程中极其重要的一环,是保证软件质量、提高软件可靠性的 关键。本文从传统软件测试技术出发,从软件工程的角度对面向对象的基本概念进行分 析,讨论了面向对象软件的特点对软件测试的影响及面向对象软件测试的内容。从 UML 模型的特点入手,分析统一建模语言(UML)对面向对象软件测试的支持。 本文研究了基于 UML 的面向对象的软件测试的方法,提出了一种基于协作图的协作 集成测试模式,并给出了一种基于 UML 协作图的面向对象的集成测试用例的生成方法, 该方法采用基于线程执行的方法识别协作图中的场景路径,用控制流和数据流方法遍历 场景路径获取交互中的参数变量和方法调用序列,使用范畴-划分方法找到场景路径上 的变量、方法、输入、输出、环境条件的合理组合,并以此作为覆盖该场景路径的测试 用例。 本文把上述方法应用于本单位自主开发的校园自助银行(SHB)项目的测试中,实例 验证了上述方法的可行性,并从实际应用的角度出发对本文研究并验证的方法提出了有 待进一步讨论和改进的方法。 关键词:软件测试;面向对象;UML;集成测试;测试用例;场景路径 Abstract Software testing is extremely important in software development,is the key ensure software quality, increase software reliability.We study from traditional software testing technologies, analysis the basic concepts of object-oriented from perspective of software projects,and discuss in the affect of object-oriented software features in the software testing.From the characteristics of UML model, analysis the support of unified modelling language (UML) for object-oriented software testing. The research based on UML collaboration diagram software test, and the mathod of collaboration integration testing model to produce integrat testing use cases has been given. This method uses system imple
显示全部
相似文档