Software testing;
UI functional testing;
Transformers;
Deep learning;
Automated testing;
D O I:
10.1016/j.engappai.2022.105446
中图分类号:
TP [自动化技术、计算机技术];
学科分类号:
0812 ;
摘要:
The application of test cases for detecting the faults within the software is called software testing. Manual testing is laborious and time-consuming hence automation tools to test software were introduced. Despite the use of automation tools at the User Interface (UI) level of the test pyramid, the limitations of current automation tools like automated test case generation and automated repairing of fragile tests still force us to carry out a large amount of manual testing. In this paper, we propose a novel method using AI to address the given challenges. With our proposed method test cases are automatically generated from the structure of the UI using a pipelined architecture of object detection, text detection and NLP models. We show that the test cases generated by the proposed framework can be translated into executable test scripts using a simple parser. The proposed method generates an average of 98.8% correct executable test cases for the applications under study. We also show the capability of the proposed method in generating new tests automatically when the application is modified. The proposed method generates an average of 98.605% correct executable test cases when the UI is modified for the applications under study. We also empirically prove that a GPU implementation of the proposed framework results in just an additional average runtime of 0.92 seconds per test case which is significantly low given the benefits of automated generation of test scripts and automated repairing of fragile tests.
机构:
Beijing Technol & Business Univ, Business Sch, Beijing 100048, Peoples R ChinaBeijing Technol & Business Univ, Business Sch, Beijing 100048, Peoples R China
Cao, Yali
Shao, Yue
论文数: 0引用数: 0
h-index: 0
机构:
Univ Int Business & Econ, Business Sch, Beijing 100029, Peoples R ChinaBeijing Technol & Business Univ, Business Sch, Beijing 100048, Peoples R China
Shao, Yue
Zhang, Hongxia
论文数: 0引用数: 0
h-index: 0
机构:
Zhejiang Agr & Forestry Univ, Jiyang Coll, Zhuji 311800, Peoples R ChinaBeijing Technol & Business Univ, Business Sch, Beijing 100048, Peoples R China
机构:
Ningbo University of Technology, School of Economics and Management, NingboNingbo University of Technology, School of Economics and Management, Ningbo
Guo, Chunrong
Zhang, Xiaodong
论文数: 0引用数: 0
h-index: 0
机构:
Inner Mongolia Agricultural University, School of Economics and Management, HohhotNingbo University of Technology, School of Economics and Management, Ningbo
机构:
Bina Nusantara Univ, Comp Sci Dept, BINUS Grad Program, Jakarta 11480, IndonesiaBina Nusantara Univ, Comp Sci Dept, BINUS Grad Program, Jakarta 11480, Indonesia
Herdian
Kusuma, Gede Putra
论文数: 0引用数: 0
h-index: 0
机构:Bina Nusantara Univ, Comp Sci Dept, BINUS Grad Program, Jakarta 11480, Indonesia
Kusuma, Gede Putra
Suharjito
论文数: 0引用数: 0
h-index: 0
机构:Bina Nusantara Univ, Comp Sci Dept, BINUS Grad Program, Jakarta 11480, Indonesia