Abstract
The importance of regression testing in assuring the integrity of a program after changes is well recognized. One major obstacle in practicing regression testing is in maintaining tests that become obsolete due to evolved program behavior or specification. For mobile apps, the problem of maintaining obsolete GUI test scripts for regression testing is even more pressing. Mobile apps rely heavily on the correct functioning of their GUIs to compete on the market and provide good user experiences. But on the one hand, GUI tests break easily when changes happen to the GUI, On the other hand, mobile app developers often need to fight for a tight feedback loop and are left with limited time for test maintenance. In this paper, we propose a novel approach, called ATOM, to automatically maintain GUI test scripts of mobile apps for regression testing. ATOM uses an event sequence model to abstract possible event sequences on a GUI and a delta ESM to abstract the changes made to the GUI. Given both models as input, ATOM automatically updates the test scripts written for a base version app to reflect the changes. In an experiment with 22 versions from 11 production Android apps, ATOM updated all the test scripts affected by the version change, the updated scripts achieve over 80% of the coverage by the original scripts on the base version app, all except one set of updated scripts preserve over 60% of the actions in the original test scripts.
Original language | English |
---|---|
Title of host publication | Proceedings - 10th IEEE International Conference on Software Testing, Verification and Validation, ICST 2017 |
Publisher | IEEE |
Pages | 161-171 |
Number of pages | 11 |
ISBN (Electronic) | 9781509060313 |
DOIs | |
Publication status | Published - 15 May 2017 |
Event | 10th IEEE International Conference on Software Testing, Verification and Validation, ICST 2017 - Tokyo, Japan Duration: 13 Mar 2017 → 17 Mar 2017 |
Conference
Conference | 10th IEEE International Conference on Software Testing, Verification and Validation, ICST 2017 |
---|---|
Country/Territory | Japan |
City | Tokyo |
Period | 13/03/17 → 17/03/17 |
ASJC Scopus subject areas
- Safety, Risk, Reliability and Quality
- Software