Test Scenarios Generation Using UML Sequence Diagram

Satyajeet Panigrahi, Shreshtha Shaurya, Pramita Das, Anil Kumar Swain, A. Jena
{"title":"Test Scenarios Generation Using UML Sequence Diagram","authors":"Satyajeet Panigrahi, Shreshtha Shaurya, Pramita Das, Anil Kumar Swain, A. Jena","doi":"10.1109/ICIT.2018.00022","DOIUrl":null,"url":null,"abstract":"Testing is an important phase of software development process. Automatic generation of test scenarios not only reduces the time, but also reduces the effort of the user. In this work, we propose a method for generating the test scenarios at an early stage of development. It involves complex sub tasks such as generating test cases from user scenarios, parsing user scenarios with a specific test coverage criteria and test script generation from test scenarios. We have selected model based testing due to its humongous advantages. By using Unified Modeling Language(UML) sequence diagram, the test scenario generation approach is proposed to achieve the flaws at the early stage and for better coverage. First, we converted the case study of the model into a sequence diagram (SD). The sequence diagram is then transformed into a Sequence Diagram Graph(SDG), to generate test scenarios from SDG. Depth first search (DFS) algorithm is followed to traverse the paths of the SDG. A case study of ATM deposit and withdrawal system is considered and our proposed approach is implemented in this. By using this approach, we are not only able to achieve the flaws in the initial stages but also reduce redundant test cases and flaws like decision, loop, interaction, message path and synchronization are achieved.","PeriodicalId":221269,"journal":{"name":"2018 International Conference on Information Technology (ICIT)","volume":"25 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 International Conference on Information Technology (ICIT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICIT.2018.00022","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 8

Abstract

Testing is an important phase of software development process. Automatic generation of test scenarios not only reduces the time, but also reduces the effort of the user. In this work, we propose a method for generating the test scenarios at an early stage of development. It involves complex sub tasks such as generating test cases from user scenarios, parsing user scenarios with a specific test coverage criteria and test script generation from test scenarios. We have selected model based testing due to its humongous advantages. By using Unified Modeling Language(UML) sequence diagram, the test scenario generation approach is proposed to achieve the flaws at the early stage and for better coverage. First, we converted the case study of the model into a sequence diagram (SD). The sequence diagram is then transformed into a Sequence Diagram Graph(SDG), to generate test scenarios from SDG. Depth first search (DFS) algorithm is followed to traverse the paths of the SDG. A case study of ATM deposit and withdrawal system is considered and our proposed approach is implemented in this. By using this approach, we are not only able to achieve the flaws in the initial stages but also reduce redundant test cases and flaws like decision, loop, interaction, message path and synchronization are achieved.
使用UML序列图生成测试场景
测试是软件开发过程中的一个重要阶段。测试场景的自动生成不仅减少了时间,而且减少了用户的工作量。在这项工作中,我们提出了一种在开发的早期阶段生成测试场景的方法。它涉及复杂的子任务,例如从用户场景生成测试用例,用特定的测试覆盖标准解析用户场景,以及从测试场景生成测试脚本。我们选择了基于模型的测试,因为它具有巨大的优势。通过使用统一建模语言(UML)序列图,提出了测试场景生成方法,以实现早期阶段的缺陷和更好的覆盖。首先,我们将模型的案例研究转换为序列图(SD)。然后将序列图转换为序列图(SDG),以从SDG生成测试场景。采用深度优先搜索(Depth first search, DFS)算法遍历SDG的路径。以自动柜员机存取款系统为例,对本文提出的方法进行了应用。通过使用这种方法,我们不仅能够实现初始阶段的缺陷,而且还可以减少冗余的测试用例,并实现决策、循环、交互、消息路径和同步等缺陷。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信