在遗留Web应用程序中引入自适应行为对测试覆盖率的影响:一个案例研究

Rogerio Jeronimo Gentil, D. Porto, F. Ferrari
{"title":"在遗留Web应用程序中引入自适应行为对测试覆盖率的影响:一个案例研究","authors":"Rogerio Jeronimo Gentil, D. Porto, F. Ferrari","doi":"10.1145/3482909.3482914","DOIUrl":null,"url":null,"abstract":"Self-Adaptive systems (ASs) are an alternative to get IT professionals free from details of operation and maintenance. Web applications can incorporate characteristics of an AS in order to make them autonomous. However, one of the challenges of software engineering is to transform a legacy system into an AS. Furthermore, transforming a legacy system into an AS can lead to the insertion of faults. This way, the code coverage information produced by software tests assist in activities related to the evolutionary maintenance of the system. In this work, we analyzed, through the comparison of coverage metrics, how the introduction of adaptive behaviors in a real world legacy web application impacted on code coverage. For each implemented scenario, a set of test cases was created in the legacy version of the web application. Then, evolutionary versions were developed with the introduction of adaptive behavior. The versions (legacy and adaptive) were organized into branches of the version control system so that adaptive implementations have evolved in two technological ways. The coverage metrics for each version of the web application were collected to allow data analysis. Beyond the legacy version, we analyzed the coverage of six versions of the web application with adaptive behavior. The results indicate that the impact on the total code coverage is relevant, where even relatively small changes can considerably affect, either positively or negatively, the percentage of coverage of the changed unit.","PeriodicalId":355243,"journal":{"name":"Proceedings of the 6th Brazilian Symposium on Systematic and Automated Software Testing","volume":"44 6","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"The Impact on the Test Coverage Caused by the Introduction of Adaptive Behavior in a Legacy Web Application: A Case Study\",\"authors\":\"Rogerio Jeronimo Gentil, D. Porto, F. Ferrari\",\"doi\":\"10.1145/3482909.3482914\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Self-Adaptive systems (ASs) are an alternative to get IT professionals free from details of operation and maintenance. Web applications can incorporate characteristics of an AS in order to make them autonomous. However, one of the challenges of software engineering is to transform a legacy system into an AS. Furthermore, transforming a legacy system into an AS can lead to the insertion of faults. This way, the code coverage information produced by software tests assist in activities related to the evolutionary maintenance of the system. In this work, we analyzed, through the comparison of coverage metrics, how the introduction of adaptive behaviors in a real world legacy web application impacted on code coverage. For each implemented scenario, a set of test cases was created in the legacy version of the web application. Then, evolutionary versions were developed with the introduction of adaptive behavior. The versions (legacy and adaptive) were organized into branches of the version control system so that adaptive implementations have evolved in two technological ways. The coverage metrics for each version of the web application were collected to allow data analysis. Beyond the legacy version, we analyzed the coverage of six versions of the web application with adaptive behavior. The results indicate that the impact on the total code coverage is relevant, where even relatively small changes can considerably affect, either positively or negatively, the percentage of coverage of the changed unit.\",\"PeriodicalId\":355243,\"journal\":{\"name\":\"Proceedings of the 6th Brazilian Symposium on Systematic and Automated Software Testing\",\"volume\":\"44 6\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-09-27\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 6th Brazilian Symposium on Systematic and Automated Software Testing\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3482909.3482914\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 6th Brazilian Symposium on Systematic and Automated Software Testing","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3482909.3482914","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

自适应系统(ASs)是让IT专业人员从操作和维护的细节中解脱出来的另一种选择。Web应用程序可以合并AS的特征,以使它们自治。然而,软件工程的挑战之一是将遗留系统转换为AS。此外,将遗留系统转换为应用服务器可能会导致故障的插入。这样,由软件测试产生的代码覆盖信息有助于与系统的进化维护相关的活动。在这项工作中,我们通过覆盖率指标的比较,分析了在现实世界的遗留web应用程序中引入自适应行为是如何影响代码覆盖率的。对于每个实现的场景,在web应用程序的遗留版本中创建了一组测试用例。然后,进化版本随着适应性行为的引入而发展。版本(遗留版本和自适应版本)被组织到版本控制系统的分支中,因此自适应实现以两种技术方式发展。收集了每个版本的web应用程序的覆盖率指标,以便进行数据分析。除了遗留版本,我们还分析了具有自适应行为的六个版本的web应用程序的覆盖率。结果表明,对总代码覆盖率的影响是相关的,即使是相对较小的更改也会对更改单元的覆盖率百分比产生积极或消极的影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
The Impact on the Test Coverage Caused by the Introduction of Adaptive Behavior in a Legacy Web Application: A Case Study
Self-Adaptive systems (ASs) are an alternative to get IT professionals free from details of operation and maintenance. Web applications can incorporate characteristics of an AS in order to make them autonomous. However, one of the challenges of software engineering is to transform a legacy system into an AS. Furthermore, transforming a legacy system into an AS can lead to the insertion of faults. This way, the code coverage information produced by software tests assist in activities related to the evolutionary maintenance of the system. In this work, we analyzed, through the comparison of coverage metrics, how the introduction of adaptive behaviors in a real world legacy web application impacted on code coverage. For each implemented scenario, a set of test cases was created in the legacy version of the web application. Then, evolutionary versions were developed with the introduction of adaptive behavior. The versions (legacy and adaptive) were organized into branches of the version control system so that adaptive implementations have evolved in two technological ways. The coverage metrics for each version of the web application were collected to allow data analysis. Beyond the legacy version, we analyzed the coverage of six versions of the web application with adaptive behavior. The results indicate that the impact on the total code coverage is relevant, where even relatively small changes can considerably affect, either positively or negatively, the percentage of coverage of the changed unit.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信