Politecnico di Torino (logo)

Machine Learning Methods for Adaptive Test Case Generation for Android Activities

Arturo Cardone

Machine Learning Methods for Adaptive Test Case Generation for Android Activities.

Rel. Maurizio Morisio, Ugo Buy. Politecnico di Torino, Corso di laurea magistrale in Ingegneria Informatica (Computer Engineering), 2019

PDF (Tesi_di_laurea) - Tesi
Licenza: Creative Commons Attribution Non-commercial No Derivatives.

Download (2MB) | Preview

In the following Thesis work, we will illustrate both the design and implementation of a testing framework for Android applications, which is able to adapt its execution according to the type of app under examination. The system is very modular, and as such can be divided into four phases. First, a logic model of the whole user interface is automatically built by traversing the screens' layout, while also performing a UI stress test. Then, thanks to machine learning algorithms, we are able to classify the entire application into a category, and the same is done with the app's activities. In this way, we are able to gain some insights about the expected structure and behavior of each screen, allowing us to perform the last phase, which is the execution of test scripts written in a specifically-tailored custom language. The user has to write a suite of test cases, where each one is fired upon encountering a specific category of activity. The suite consists of a succession of adaptive commands which are able to interpret the current screen layout to perform an action with a given semantic value. In this way, the user has just to write a single test script that can be recycled on many other instances, without needing to rewrite it to conform to new or modified UI layouts.

Relators: Maurizio Morisio, Ugo Buy
Academic year: 2019/20
Publication type: Electronic
Number of Pages: 157
Corso di laurea: Corso di laurea magistrale in Ingegneria Informatica (Computer Engineering)
Classe di laurea: New organization > Master science > LM-32 - COMPUTER SYSTEMS ENGINEERING
Aziende collaboratrici: UNSPECIFIED
URI: http://webthesis.biblio.polito.it/id/eprint/13245
Modify record (reserved for operators) Modify record (reserved for operators)