Font Size: a A A

Design And Implementation Of Automated Testing Framework For B/S System

Posted on:2016-11-09Degree:MasterType:Thesis
Country:ChinaCandidate:F K GaoFull Text:PDF
GTID:2308330473456534Subject:Agricultural informatization
Abstract/Summary:PDF Full Text Request
With the rapid popularization of B/S system, big data and cloud computing era has arrived. B/S system is becoming complex and diverse increasingly. Traditional manual testing has been unable to meet the test requirements of B/S system, Automated testing is to get a great play space. Automated testing can reduce the pressure of tester, improve the efficiency of testing and reduce the cost of it.But now automated testing, especially automated testing for B/S system has many problems. Mainly in the following points:(1) High cost of testing, the prices of many testing tools are very high.(2) Front page changing constantly, the script need to be modified due to the modification of the front page.(3) There is no hierarchical in many automated testing tools, which will make the business test scripts written in low efficiency, if the business process changes, many businesses test scripts will fail and the maintenance costs of automated test will become large. In addition, without stratification, test logic mingled with other code, it is difficult to distinguish the test logic.(4) Test data, most automated testing tools are not integrated function to read a large number of test data from the database. The database has a great advantage in massive data management and retrieval.According to these problems mentioned above, some of the current automated testing tools only cover some basic features which can not solve all of these problems above. Therefore, the purpose of the automated testing framework is to solve these problems. The frame will greatly improved efficiency of writing test scripts and reduces maintenance costs by five-layer structures. It integrated the function of reading from the database, such that improve the efficiency of retrieval large volumes of test data. Using open source tool Selenium, frame can well positioned front page elements to solve frequent changes of business test scripts caused by the front page changes.Through analysis, we chose Selenium, Junit4. Mybatis as main core technology to build automated testing frame, and hierarchical frame for automated testing. Selenium is an open source automated testing tool for B/S system. It’s free. Selenium has good compatibility, powerful features and high controllability, offers a variety of ways to find the elements of corresponding page to cope with frequent changes of the front page. Junit4 plays a key role in the control layer of the automated testing framework as a standard test frame, and it provides a parametric test capabilities for the separation of data and scripts. At the same time, Mybatis, a read-write database tool in this framework, is able to read out the data from the database as a script parameter, so that this frame can run test script with a large number of test data without having to modify the script. Framework can make database of the tested B/S system as a test data source directly, so as much as possible to simulate the real environment.This dissertation is based on a continuing education platform for the main test site. During testing, this automated testing frame mainly for regression testing. This framework is very convenient on script writing,script organization, and maintenance, because it is layered. By using this framework, platform read test data source to complete user login, video learning, test content hours inquiries, examinations and other aspects, testing tasks was completed well. Through the database, the system can simulate the functioning of the real case, thus reducing the pressure on testers, improving test efficiency and reduce the cost of test. This dissertation confirms the automated testing framework to complete the testing tasks of automated testing, regression testing.
Keywords/Search Tags:software test, automated testing, automated testing frame, automated testing framework for B/S system
PDF Full Text Request
Related items