A deep learning-based automated framework for functional User Interface testing

被引:0
作者
Khaliq, Zubair [1 ]
Farooq, Sheikh Umar [1 ]
Khan, Dawood Ashraf [1 ]
机构
[1] Univ Kashmir, Srinagar, India
关键词
Software testing; UI functional testing; Transformers; Deep learning; Automated testing;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: The use of automation tools in software testing helps keep pace with the timeline of the deliverables. Over time with the inclusion of continuous integration/continuous delivery (CI/CD) pipelines, automation tools are becoming less effective. The testing community is turning to AI to help keep the pace.Objective: We study the use of transformers to automate the process of test case generation directly from the User Interface (UI) element description instead of relying on the test specification document from which test cases are extracted manually. We also demonstrate the capability of the proposed approach in repairing flaky tests. Method: We employ object detection algorithms EfficientDet and DEtectionTRansformer for detecting the elements from an application UI automatically without requiring a tester to locate complex-scripted UI elements. We also use Tesseract to automatically identify the text present on the UI elements. We transform the generated UI element description to actual test designer-written test cases using text-generation transformers like GPT-2 and T5. The generated test cases are then translated into executable test scripts using a simple parser. We carry out our cases study on 30 e-commerce applications.Results: The percentage of correct executable test cases generated by the framework employing EfficientDet is 93.82% and employing DEtectionTRansformer is 98.08%. The framework eliminates an average of 96.05% flakiness across the applications selected for the study.Conclusion: It is concluded that the proposed approach can be used with current automation tools in the industry to enhance their capability in generating test cases and repairing the flaky tests.
引用
收藏
页数:13
相关论文
共 33 条
  • [1] Maintenance of automated test suites in industry: An empirical study on Visual GUI Testing
    Alegroth, Emil
    Feldt, Robert
    Kolstrom, Pirjo
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 73 : 66 - 80
  • [2] Alexander Kirillov, 2020, Arxiv, DOI arXiv:2005.12872
  • [3] Leveraging Flexible Tree Matching to repair broken locators in web automation scripts (vol 107, pg 2411, 2007)
    Brisset, Sacha
    Rouvoy, Romain
    Seinturier, Lionel
    Pawlak, Renaud
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2022, 144
  • [4] Change-Based Test Script Maintenance for Android Apps
    Chang, Nana
    Wang, Linzhang
    Pei, Yu
    Mondal, Subrota K.
    Li, Xuandong
    [J]. 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2018), 2018, : 215 - 225
  • [5] Test Automation Pyramid from Theory to Practice
    Contan, Andrei
    Dehelean, Catalin
    Miclea, Liviu
    [J]. 2018 IEEE INTERNATIONAL CONFERENCE ON AUTOMATION, QUALITY AND TESTING, ROBOTICS (AQTR), 2018,
  • [6] Translation from layout-based to visual android test scripts: An empirical evaluation
    Coppola, Riccardo
    Ardito, Luca
    Torchiano, Marco
    Alegroth, Emil
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 171
  • [7] Scripted GUI testing of Android open-source apps: evolution of test code and fragility causes
    Coppola, Riccardo
    Morisio, Maurizio
    Torchiano, Marco
    Ardito, Luca
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (05) : 3205 - 3248
  • [8] Dyutiman Choudhary, 2011, Pro-poor value chain development for high value products in mountain regions: Indian Bay Leaf
  • [9] Google, TESSERACT OCR
  • [10] Deep Residual Learning for Image Recognition
    He, Kaiming
    Zhang, Xiangyu
    Ren, Shaoqing
    Sun, Jian
    [J]. 2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, : 770 - 778