Font Size: a A A

The Design And Implementation Of An Automated Testing Tool For Web Applications With Ajax

Posted on:2015-09-21Degree:MasterType:Thesis
Country:ChinaCandidate:M P LiFull Text:PDF
GTID:2298330452464179Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of Internet and increasing maturity ofnetwork technology, it becomes necessary for Web applications to give quickresponses to a large number of concurrent users. So the performance testingis increasingly significant for Web applications and to ensure and improve thequality of service has been an important part of the testing. Compared withtraditional software, Web applications have the characteristics of distribution,random access of concurrent users, support for asynchronous requests and therelative concentration of the server side processing. It is difficult for manuallabor to implement concurrent access of a large number of end-users.Therefore, automated testing tools play an important role in the performancetesting of Web servers.JavaScript and Ajax technology are widely used in current Webapplications that allow dynamic loading of web contents, support sendingasynchronous requests to the servers and have a better interaction with users.Meanwhile, more and more Web applications are deployed in the cloudplatform. It can dynamically provide users with on-demand resources,improve system scalability and reliability and simultaneously meet servicelevel agreements requirements. Therefore, the elasticity is also a veryimportant aspect in testing. However, the existing testing tools still use theprevious testing framework while testing complex systems. That is sendingrequests and receiving responses according to the testing scripts, collectinginformation of response time and throughput. These tools cannot generateworkload for Web applications that support asynchronous requests or aredeployed in the cloud platform in which resources can be dynamically extended. They cannot also collect valid data during testing. So the testingresult is not reliable and affects the performance testing of Web servers.To solve these problems, this paper proposes an automated testingframework based on Faban, and implements a testing tools for Webapplications--FabanPlus. It can run the JavaScript in Web applicationsaccording to the test cases and programs designed by users, generateworkload with asynchronous requests and dynamically adjust workload basedon the feedback from Web servers. FabanPlus can also monitor and collectreal-time data such as response time, Web servers’ CPU utilization, andexception information while executing JavaScript. Then it generates testingresults reports and analyzes servers’ performance.FabanPlus has been put into practice and validated in the actual project.The paper uses the Web application, Online Environmental MonitoringPlatform of Shanghai Construction Sites, as the system under test andanalyzes the servers’ logs to extract the rules of users’ behavior. FabanPlus isused to design and implement testing program and automatically test itsperformance. The testing result has an effect on analyzing and optimizing theperformance of Web applications.
Keywords/Search Tags:Performance of Web Servers, Automated Testing, Asynchronous Requests, Dynamic Workload
PDF Full Text Request
Related items