使用基本路径在 Java 程序中利用分支和重复结构优化白盒测试

Kalfin Kalfin, Riza Andrian Ibrahim, Grida Sakti Laksito
{"title":"使用基本路径在 Java 程序中利用分支和重复结构优化白盒测试","authors":"Kalfin Kalfin, Riza Andrian Ibrahim, Grida Sakti Laksito","doi":"10.46336/ijmsc.v2i2.98","DOIUrl":null,"url":null,"abstract":"Software testing is a process created to detect anomalies in the operation of a program or system in order to achieve the expected results. White box testing is a software testing method that tests the internal structure, design and program code. This research aims to produce an optimization method for white box testing in Java programs by utilizing branching and repetition structures using the basis path method, as well as analyzing the effectiveness of the proposed method in generating test cases. The Java program tested in this research includes input function calls, loops, branching, and exception handling. Test case design is carried out by applying the basis path method to achieve comprehensive coverage. The test results show that the base path method is able to produce effective test cases for testing control structures without redundancy. Test case design is assisted by flowgraph and matrix graph modeling. It is hoped that this research can contribute to the optimization of white box testing techniques.","PeriodicalId":517271,"journal":{"name":"International Journal of Mathematics, Statistics, and Computing","volume":"315 4","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Optimization of White Box Testing by Utilizing Branching and Repeating Structures in Java Programs Using Base Path\",\"authors\":\"Kalfin Kalfin, Riza Andrian Ibrahim, Grida Sakti Laksito\",\"doi\":\"10.46336/ijmsc.v2i2.98\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Software testing is a process created to detect anomalies in the operation of a program or system in order to achieve the expected results. White box testing is a software testing method that tests the internal structure, design and program code. This research aims to produce an optimization method for white box testing in Java programs by utilizing branching and repetition structures using the basis path method, as well as analyzing the effectiveness of the proposed method in generating test cases. The Java program tested in this research includes input function calls, loops, branching, and exception handling. Test case design is carried out by applying the basis path method to achieve comprehensive coverage. The test results show that the base path method is able to produce effective test cases for testing control structures without redundancy. Test case design is assisted by flowgraph and matrix graph modeling. It is hoped that this research can contribute to the optimization of white box testing techniques.\",\"PeriodicalId\":517271,\"journal\":{\"name\":\"International Journal of Mathematics, Statistics, and Computing\",\"volume\":\"315 4\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-05-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"International Journal of Mathematics, Statistics, and Computing\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.46336/ijmsc.v2i2.98\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Mathematics, Statistics, and Computing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.46336/ijmsc.v2i2.98","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

软件测试是为了检测程序或系统运行中的异常现象,以达到预期效果而创建的过程。白盒测试是一种测试内部结构、设计和程序代码的软件测试方法。本研究旨在利用基础路径法的分支和重复结构,为 Java 程序的白盒测试提供一种优化方法,并分析所提方法在生成测试用例方面的有效性。本研究测试的 Java 程序包括输入函数调用、循环、分支和异常处理。测试用例设计采用了基础路径法,以实现全面覆盖。测试结果表明,基础路径法能够生成有效的测试用例,对控制结构进行无冗余测试。测试用例设计由流程图和矩阵图建模辅助。希望这项研究能为优化白盒测试技术做出贡献。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Optimization of White Box Testing by Utilizing Branching and Repeating Structures in Java Programs Using Base Path
Software testing is a process created to detect anomalies in the operation of a program or system in order to achieve the expected results. White box testing is a software testing method that tests the internal structure, design and program code. This research aims to produce an optimization method for white box testing in Java programs by utilizing branching and repetition structures using the basis path method, as well as analyzing the effectiveness of the proposed method in generating test cases. The Java program tested in this research includes input function calls, loops, branching, and exception handling. Test case design is carried out by applying the basis path method to achieve comprehensive coverage. The test results show that the base path method is able to produce effective test cases for testing control structures without redundancy. Test case design is assisted by flowgraph and matrix graph modeling. It is hoped that this research can contribute to the optimization of white box testing techniques.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信
小红书