基于序列和类图的系统测试的存根和驱动生成方法

Nontadaech Warangdaech, T. Suwannasart
{"title":"基于序列和类图的系统测试的存根和驱动生成方法","authors":"Nontadaech Warangdaech, T. Suwannasart","doi":"10.1109/icccs55155.2022.9846825","DOIUrl":null,"url":null,"abstract":"To efficiently search for defects, system testing can be conducted when a single system function is developed. Finding defects at an early stage of work can reduce cost and time of the rework. In order to conduct testing while there are incomplete classes in a system, stubs and drivers are introduced to temporarily replace incomplete classes. Development of stubs and drivers can take time and effort as a result testers usually try to use tools to mitigate them. Luengruengroj and Suwannasart [1] proposed an automated stubs-and-drivers generator. However, their generator aimed to help testers during integration testing. Our study presents an approach to generate stubs and drivers for system testing. Our approach uses a class diagram, sequence diagrams, and a Requirements Traceability Matrix as input. Class diagram is used to indicate classes’ attributes and create a list of method signatures. Whereas sequence diagrams are used to indicate interaction between objects and produce a call graph. In addition, our approach uses the Requirements Traceability Matrix to discover system functions. After a call graph and the method signatures are extracted, they are used to generate classes of stubs and drivers along with test input values. Consequently, stubs and drivers are exported for system testing.","PeriodicalId":121713,"journal":{"name":"2022 7th International Conference on Computer and Communication Systems (ICCCS)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-04-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Stub and Driver Generating Approach for System Testing Using Sequence and Class Diagram\",\"authors\":\"Nontadaech Warangdaech, T. Suwannasart\",\"doi\":\"10.1109/icccs55155.2022.9846825\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"To efficiently search for defects, system testing can be conducted when a single system function is developed. Finding defects at an early stage of work can reduce cost and time of the rework. In order to conduct testing while there are incomplete classes in a system, stubs and drivers are introduced to temporarily replace incomplete classes. Development of stubs and drivers can take time and effort as a result testers usually try to use tools to mitigate them. Luengruengroj and Suwannasart [1] proposed an automated stubs-and-drivers generator. However, their generator aimed to help testers during integration testing. Our study presents an approach to generate stubs and drivers for system testing. Our approach uses a class diagram, sequence diagrams, and a Requirements Traceability Matrix as input. Class diagram is used to indicate classes’ attributes and create a list of method signatures. Whereas sequence diagrams are used to indicate interaction between objects and produce a call graph. In addition, our approach uses the Requirements Traceability Matrix to discover system functions. After a call graph and the method signatures are extracted, they are used to generate classes of stubs and drivers along with test input values. Consequently, stubs and drivers are exported for system testing.\",\"PeriodicalId\":121713,\"journal\":{\"name\":\"2022 7th International Conference on Computer and Communication Systems (ICCCS)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-04-22\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 7th International Conference on Computer and Communication Systems (ICCCS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/icccs55155.2022.9846825\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 7th International Conference on Computer and Communication Systems (ICCCS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/icccs55155.2022.9846825","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

为了有效地搜索缺陷,可以在开发单个系统功能时进行系统测试。在工作的早期阶段发现缺陷可以减少返工的成本和时间。为了在系统中存在不完整类时进行测试,引入存根和驱动程序来临时替换不完整类。存根和驱动程序的开发需要时间和精力,因为测试人员通常会尝试使用工具来缓解它们。Luengruengroj和Suwannasart[1]提出了一种自动存根和驱动器生成器。然而,他们的生成器旨在帮助测试人员进行集成测试。我们的研究提出了一种为系统测试生成存根和驱动程序的方法。我们的方法使用类图、序列图和需求跟踪矩阵作为输入。类图用于指示类的属性并创建方法签名列表。而序列图则用于指示对象之间的交互并生成调用图。另外,我们的方法使用需求跟踪矩阵来发现系统功能。在提取调用图和方法签名之后,将使用它们生成存根和驱动程序类以及测试输入值。因此,存根和驱动程序被导出用于系统测试。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
A Stub and Driver Generating Approach for System Testing Using Sequence and Class Diagram
To efficiently search for defects, system testing can be conducted when a single system function is developed. Finding defects at an early stage of work can reduce cost and time of the rework. In order to conduct testing while there are incomplete classes in a system, stubs and drivers are introduced to temporarily replace incomplete classes. Development of stubs and drivers can take time and effort as a result testers usually try to use tools to mitigate them. Luengruengroj and Suwannasart [1] proposed an automated stubs-and-drivers generator. However, their generator aimed to help testers during integration testing. Our study presents an approach to generate stubs and drivers for system testing. Our approach uses a class diagram, sequence diagrams, and a Requirements Traceability Matrix as input. Class diagram is used to indicate classes’ attributes and create a list of method signatures. Whereas sequence diagrams are used to indicate interaction between objects and produce a call graph. In addition, our approach uses the Requirements Traceability Matrix to discover system functions. After a call graph and the method signatures are extracted, they are used to generate classes of stubs and drivers along with test input values. Consequently, stubs and drivers are exported for system testing.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:604180095
Book学术官方微信