Font Size: a A A

Research On The Method Of Model-based Mobile Application Functional Test Case Generation

Posted on:2022-05-05Degree:MasterType:Thesis
Country:ChinaCandidate:H X DengFull Text:PDF
GTID:2518306551970069Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the continuous development of the Internet,the demand for mobile applications is growing rapidly.The quality assurance of a mobile application is the main factor determining its success.Test automation may be an effective solution to improve the quality of mobile applications and reduce the cost of testing,but it is complicated and difficult to automate functional testing of mobile applications.It is an expensive and time-consuming activity and faces many challenges.At present,there are two major challenges,namely automatic generation of test sequences and automatic acquisition of test Oracle:(1)How to automatically generate the test sequence of functional testing to achieve the purpose of automated functional testing?(2)How to automatically obtain the test Oracle to verify the correctness of the results after the functional test sequence is executed?(3)How to associate the functional test sequence with the test Oracle to form a complete functional test suite to achieve the purpose of functional testing of mobile applications?In response to the above problems,this paper proposes a model-based mobile application function test case generation scheme.First of all,this paper uses GUI model-based testing technology to solve the problem of generating functional test sequences for mobile applications.Based on the GUI Ripping technology,construct the GUI tree of the application under test,then derive the event flow graph EFG from the GUI tree,extract and classify the EFG,optimize the EFG by eliminating nonfunctional events,and then use the graph traversal algorithm DFS traverses EFG and generates functional test sequence.Secondly,this article uses two methods to obtain the test Oracle of the functional test.One is to directly obtain the known test oracle for partially application independent functions(AIF),and use formal definitions to give the operation sequence and test oracle information of the two types of functions.The other is based on the application-based requirement specification document that meets the IEEE standard format,obtains the test Oracle,and uses regular expressions to extract the function-related test Oracle information from the requirement document,including the pre-state of the application,the execution of the function,and the expected behavior of the application,Then make a formal definition.Finally,this paper proposes a matching mechanism to associate the functional test sequence generated based on the GUI model with the obtained test Oracle to obtain a complete functional test case.The mechanism uses three matching methods:(1)structural matching,(2)semantic matching,and(3)perfect matching.Among them,the structure matching uses the string matching algorithm KMP to match the test sequence with the operation sequence included in the test Oracle;Semantic matching is mainly for the case where the matching is unsuccessful due to the naming difference between the test sequence and the operation sequence contained in the test Oracle in the structure matching,but the semantics are the same;Perfect matching is used to solve the problem that the sequence of events required for interactive function testing cannot be obtained through the GUI model.This paper designs three experiments to verify the effectiveness of the scheme.The experimental results show that the scheme can generate a minimum functional test sequence that satisfies functional edge coverage.The functional test case formed by the association between the test sequence and the test Oracle can more accurately detect the functional defects of most applications,and the false alarm rate is low.This shows that the solution in this paper can effectively solve the partial problems faced by mobile application functional testing,and can reduce the work of testers,save test time and improve test efficiency.
Keywords/Search Tags:Functional testing, GUI model optimization, Test sequence generation, Test Oracle obtention, Functional test case generation
PDF Full Text Request
Related items