Abstract

The increasing popularity of Android and the GUI-driven nature of its apps have motivated the need for applicable automated GUI testing techniques. This paper presents a proposed strategy and a supporting tool for GUI testing of Android apps. The strategy employs a model-based approach to capture the event-driven nature of Android apps. It includes two phases: Modeling Phase and Test Evaluation Phase. In the modeling phase, an event sequence diagram (ESD) is created for each activity in the app under test (AUT), which depicts its events and possible transitions between them, and used to generate event sequences (test cases). In the test evaluation phase, certain event-based coverage criteria are employed to measure the adequacy of the generated test cases. The proposed tool analyses the AUT, creates an ESD for each activity, and generates event sequences. It handles the event sequences explosion problem and ensures the event sequences feasibility. For each event sequence, the tool generates a test script and a corresponding Robotium test class, adds it to the AUT and executes it. The paper also presents a case study that illustrates the use of the proposed strategy and tool for testing a simple Android app.

Highlights

  • The number of mobile apps continues to grow at a rapid pace and the requirements for their performance grow as they become more advanced and are exposed to higher loads of users

  • The employed model is the event sequence diagram (ESD), which depicts the events for an app and the possible transitions between them

  • Having defined the ESD and the event-based coverage criteria for UI testing, the following steps are performed in order to apply the proposed UI testing strategy to test the UI of an Android app: – Identify the app activities and create the corresponding ESDs. – Using the activities ESDs, construct the App ESD. – Generate test cases according to the defined coverage criteria. – Execute the test cases. – Analyze and evaluate the execution results

Read more

Summary

A GUI TESTING STRATEGY AND TOOL FOR ANDROID APPS

Paper history: Received 24 July 2019 Received in revised form 23 April 2020 Accepted 08 July 2020 Available online 27 September 2020.

INTRODUCTION
RELATED WORK
ANDROID APPS UI COMPONENTS
ROBOTIUM TEST FRAMEWORK
THE PROPOSED ANDROID APPS UI TESTING STRATEGY
THE EVENT SEQUENCE DIAGRAM
THE UI TESTING COVERAGE CRITERIA
THE PROPOSED ANDROID APPS UI TESTING TOOL
17. Produce accumulated Criteria Coverage
10. End While
Read a line ln from testScriptFile
CASE STUDY
CONCLUSION

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.