Font Size: a A A

Design And Implementation Of Web Application Functional Automated Testing Framework

Posted on:2013-05-23Degree:MasterType:Thesis
Country:ChinaCandidate:M W HuangFull Text:PDF
GTID:2298330422979889Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
With the popularity of the Internet in recent years, Web applications based on B/S structure,especially enterprise applications and e-commerce platforms has been widely used. Market demandlead to the greater scale of the Web application platform, faster version update and increasingcomplexity. Efficient Web test has become the urgent needs for companies and organizations.On the basis of the in-depth study of domestic and foreign software testing theory andtechnology, this paper analyzed and improved the Web test automation process. By analyzing themainstream Web automated testing framework and script technology’s cost and benefits, a fusion ofdata-driven and keyword-driven Web functional automated testing framework is given, then theframework is applied to actual testing activities to evaluate benefits.According to the demand for zero cost and personalized feature expansion, through comparisonand trial of three open-source tools with stable performance—Watir, Sikuli and Selenium, Watirwhich drives browser using Ruby was selected as the framework execution engine. Framework modelis divided into the user interface layer, control scheduling layer, and test data layer. FunctionalModular separate different level’s objects and logic, and makes it easy to maintain and extend theframework. Interaction between test data, keywords and object library, keyword library generates testscript, which drives Watir to perform the corresponding operations.At last a library management system was chosen as the tested Web application, through testingneeds analysis and testing environment set up, the Web application was tested in two ways—manuallyand automatically. Time consumption in test environment configuration, test project development andtest execution is compared, and benefit cost ratio formula is used to calculate actual benefits. The testresults showed that although the testing framework spend more time in preparation than manual test,it has brought substantial benefits, and with the increase of the number of tests, more test cost will besaved.
Keywords/Search Tags:Software testing, Web testing, automated testing, functional testing, test framework, Watir
PDF Full Text Request
Related items