AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

Test-Driven Feature Extraction of Web Components

School of Computer Science and Engineering, National Engineering Research Center of Digital Life Sun Yat-sen University, Guangzhou 510006, China
School of Design, The Hong Kong Polytechnic University, Hong Kong, China
Guangdong Key Laboratory for Big Data Analysis and Simulation of Public Opinion, The School of Communication and Design, Sun Yat-sen University, Guangzhou 510006, China
School of Information Technology and Engineering, Guangzhou College of Commerce, Guangzhou 511363, China
Show Author Information

Abstract

With the growing requirements of web applications, web components are developed to package the implementation of commonly-used features for reuse. In some cases, the developer may want to reuse some features which cannot be customized by the component's APIs. He/she has to extract the implementation by hand. It is labor-intensive and error-prone. Considering the widely-used test cases which can be useful to specify the software features, a test-driven approach is proposed to extract the implementation of the desired features in web components. The satisfaction of the user's requirements is transformed into the passing rate of user-specified test cases. In this way, the quality of the extraction result can be evaluated automatically. Meanwhile, a record/replay-based GUI test generation method is proposed to ensure that the extraction result has the correct GUI appearance. To extract the feature implementation, a hierarchical genetic algorithm is proposed to find the code snippet that can pass all the tests and has the approximate smallest size. We compare our method with two existing feature extraction methods. The result shows that our method can extract the correct implementation with the minimum size. A human-subject study is conducted to show the effectiveness and weaknesses of our method in helping users extract the features.

Electronic Supplementary Material

Download File(s)
jcst-37-2-389-Highlights.pdf (263 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 389-404

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Long Y-H, Chen Y-C, Chen X-P, et al. Test-Driven Feature Extraction of Web Components. Journal of Computer Science and Technology, 2022, 37(2): 389-404. https://doi.org/10.1007/s11390-022-0673-4

956

Views

4

Crossref

3

Web of Science

4

Scopus

0

CSCD

Received: 31 May 2020
Accepted: 18 February 2022
Published: 31 March 2022
©Institute of Computing Technology, Chinese Academy of Sciences 2022