欢迎来到天天文库
浏览记录
ID:33345805
大小:1.78 MB
页数:48页
时间:2019-02-25
《一种基于uml用例图和活动图的测试用例生成方法研究》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、捅斐软件测试是保证软件正确性和提高软件可靠性的最基本和最重要的手段。传统的软件测试方法和技术是基于结构化思想的,较少考虑面向对象技术的特性,模型中的重要概念能够与面向对象软件中的重要概念结合在一起,基于模型的软件测试取得快速发展。统一建模语言(UML)是面向对象的标准建模语言,UML模型具有严格的定义,提供了获得对象结构和行为的表示方法,这种形式化特性使得测试信息的提取变得容易。基于UML模型的软件测试方法对软件测试技术的发展有着重要的学术和实用意义。论文以描述系统动态行为的UML活动图和用例图作为测试基础,结合场景测试法给出了一个基于UML活动图和用例图的测试用例生成方法。论文主要涉及以下
2、几个方面的工作:1、综述了软件测试的背景知识,包括测试方法、测试级别以及怎样标识测试用例,面向对象的软件测试策略,场景测试法。2、介绍了统一建模语言UML和基于UML的测试技术。3、分析了活动图的语义和场景,描述了从UML活动图和用例图生成测试用例的方法,并给出了一个网上购物的例子,对该方法具体步骤进行分析。实验证明,该方法具有测试效率高、测试用例数量合理有效、测试序列生成方法易于理解、定义严格,便于实现自动化等优点。4、介绍了该方法的设计与实现模型,以及实现过程中的关键算法。关键词:UML;活动图;用例图;场景;测试用例AbstractSoftwaretestingisthemostfun
3、damentalandimportantmeanstoensuresoRwareaccuracyandreliability,Traditionalsoftwaretestingmethodsandtechniquesarebasedonstructuredthinkingandlessaccountintothecharacteristicsofobject.orientedtechnology,someimportantconceptsinmodelsCancombinewithsomeimportantconceptsinobject—orientedsoftware.Therefor
4、e,model.basedsoRwaretestingbeginstoachieverapiddevelopment.UnifiedModelingLanguage(UML)asastandardobject。orientedmodelinglanguage,havestrictdefinition,providingmanyrepresentationwaysinderivingobjectstructureandbehavior,whichmakesiteasytoextracttestinformation.Somethodsofautomatictestcasesgeneration
5、arebasedonUMLmodelshasimportantacademicandpracticalsignificancetosoftwaretestingtheoryandtechnology.Onthebasisofscenariotestingmethod,testcasesbasedonUMLactivitydiagramthispaperfollowsas:thePaperproposesamethodofgeneratingandUMLusecasediagram.Mainworkin1.Thebackgroundknowledgeofsoftwaretestingalesu
6、mmarized,whichmainincludingtestmethods,testlevel,howtoidentifythetestcases,object.orientedsoftwaretestingstrategy,scenariotestingmethod.2.UMLandUML—basedtestingtechniquesarestudied.3.AmethodofgeneratingtestcasesbasedonUMLactivitydiagramandUMLusecasediagramisproposed.Anexampleofonlineshoppingsystemi
7、sgiveninordertoanalyzespecificallythestepsofthemethod.Experimentsshowthatthemethodhassomemerits.Suchashi曲testefficiency,andthenumbersoftestcasesarereasonableandeffective,andtestsequencegenerationmethodiseas
此文档下载收益归作者所有