{"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}
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.