Font Size: a A A

Automatic Generation And Maintenance Of GUI Test Scripts For Mobile Applications

Posted on:2018-11-15Degree:MasterType:Thesis
Country:ChinaCandidate:X LiFull Text:PDF
GTID:2428330512998179Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the continuous development of mobile Intermet,mobile devices are becom-ing more and more popular,and the number of mobile applications is huge with rapid growth.Testing is the most common way of quality assurance for mobile applications.Mobile applications are event-driven applications,so they are suitable for using GUI-based scripts for automated test execution,which is widely used by academics and industry.Mobile applications development cycle is short and they are always updated frequently.In that case,the test cycle is often short too,so testing for mobile appli-cations is facing big challenges:the majority of test scripts rely on manual writing or recording,and frequent changes will make test scripts fail.This problem is very prominent.This dissertation studies the automatic generation and maintenance of mo-bile application test scripts based on model,uses the model to describe the behavior and changes of mobile applications,and studies the test scripts automatic generation based on behavior model and test scripts automatic maintenance based on change model.The main contributions of this paper are concluded as follows:1.This dissertation proposes a model-based test scripts automatic generation ap-proach for mobile applications.This dissertation proposes a modeling method to describe the behaviors of mobile applications using Event Sequence Model(ES-M).Besides,it proposes a test scripts automatic generation method for mobile applications based on ESM,and sets up the mapping relationship between the model and test scripts.2.This dissertation proposes a model-based test scripts automatic maintenance ap-proach for mobile applications.Based on the analysis of the changes between different versions of mobile applications and their impact on the events,this dissertation proposes a modeling method of GUIs changes using Delta ESM(DESM).On this basis,it proposes a test scripts automatic maintenance method for mobile applieations based on the delta model.First,the event sequenee in the scripts is mapped on the ESM,and the corresponding model event sequence is found;then the event sequence is maintained according to the changes;finally,the updated event sequence is generated to test scripts again.3.This dissertation developed a prototype tool called ATOM and conducted an ex-perimental study.We selected 11 real applications in Android market and two different versions for each application.We built ESM,DESM,and generated test scripts for each application.Then we carried out the experimental research for automatic maintenance.The tool successfully maintained all the affected test scripts.After the maintenance,the test scripts retained the events in the old scripts,and at the same time,covered the events related to the changes as much as possible,greatly reducing the workload of manual maintenance,which has high availability.
Keywords/Search Tags:Mobile Testing, Model, Changes, Test Script Generation, Test Script Maintenance
PDF Full Text Request
Related items