Font Size: a A A

Detecting Research Of Ajax Sequence Errors In Web Application

Posted on:2017-07-13Degree:MasterType:Thesis
Country:ChinaCandidate:H B JiFull Text:PDF
GTID:2348330518494160Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Web application is a kind of applications which users can access to only via a Web browser.Development of network technology result in an access network applications surge,huge traffic demand promote the Web application'development and progress.In order to increase the speed of interaction between users and Web applications,AJAX technology has been widely used.AJAX uses asynchronous data transfer between the browser and the Web server,it is that a small amount of information request pages are required from the server,rather than the entire page of data.It greatly improves the user interactive speed by achieving the asynchronous transmission request and continuing performing of the client.However,due to network delays and unreasonable program code design in asynchronous request,the uncertain sequence of client request and server response may result in data errors,that affect user's use.In a Web application,there may be more than one event which can trigger asynchronous request.If an asynchronous request event have been triggered,it is likely to occur during the execution of another asynchronous request event which is already starting.If these two events are acting on different DOM elements of one page,and their parameters have no relevance,then data errors will not occur,but if the parameters of these two events have a certain relationship,it may lead to errors.Therefore,this paper tackles the issues of asynchronous request with multiple events.We first get complete return data of asynchronous request from the server side by the URL parameter whose return data contains event operation,analysis of the problem between two return event operations or between one of them and original asynchronous request,and defines such problems as the asynchronous request sequence problems.Then the asynchronous request interleaving graph has been constituted to describe them,and also uses to detect asynchronous request errors by the connected relationship of the graph.Based on the proposed method,a complete technical implementation framework is established for automated testing asynchronous request in the Web applications.Five case Web applications and five open source applications are selected for experiments in which asynchronous request errors are detected.By controlling the network conditions for verification,the results show that the proposed detection method is effective for testing the asynchronous request errors.Moreover,comparing with previous methods,the proposed method candetect more Web application errors.
Keywords/Search Tags:Web application detection, asynchronous request, AJAX Sequence, Interleaving graph
PDF Full Text Request
Related items