Font Size: a A A

Recearch On The Method Of Generating Test Cases Based On Web Application Node Importance

Posted on:2019-04-11Degree:MasterType:Thesis
Country:ChinaCandidate:L J SunFull Text:PDF
GTID:2428330602961456Subject:Software engineering
Abstract/Summary:PDF Full Text Request
As web applications become more widely used,the quality and reliability of web applications become more and more important,and web application testing is an important means of ensuring software quality and improving reliability.Traditional web application test use cases are based on test case coverage and test case generation efficiency.They do not consider the complexity and influence of each state node in the web application in the web application.Obviously,if the state node with high complexity and high influence in the whole application can be tested first,the error can be discovered as soon as possible,and the test efficiency is improved.In order to get the complexity and influence of each state node of the web application,this paper studies the importance of each node content and the importance of the structure of each node in the whole web application.According to the measurement method of the importance degree of the node of the web application,a test case generation method based on the importance degree of the web application node is further given.The state flow chart of the web application is obtained through the EFSM model.Each state in the web application is abstracted into a node,the migration between states is abstracted into a directed edge,and the migration is divided into data migration and link migration,and the web application state is constructed.The directed graph gives the algorithm the importance of calculating the structure of each node in the web application.The EFSM model obtains the text content information of each node in the web application,constructs a content information vector model of each state,further obtains the content information vector model of the entire web application,and calculates each state in the web application through an algorithm.The importance of the content in the program.Combining the structural importance of each state in the web application with the content importance,the importance of each state in the web application is calculated by the iterative algorithm given.Taking the test cases obtained by the EFSM model as the initial population,using the obtained state importance,guided by the high priority node priority test,the search-based method is used to obtain the test cases based on the importance of the web application node.And through experiment,compare the test generation method based on web applieation node importance degree with the traditional web application test generation method in terms of test generation efficiency,test case set validity and test case set scale.The experimental results show that the test case generation method based on the importance degree of web application nodes is feasible and effective.At the same time,the test generation efficiency of this method is higher,the fault detection ability of test cases is stronger,and the test cases can be reduced the set size.
Keywords/Search Tags:Web Application Testing, Node Importance, EFSM Model, Genetic Algorithm
PDF Full Text Request
Related items