Font Size: a A A

WEB Automated Testing WATIR Framework

Posted on:2013-10-08Degree:MasterType:Thesis
Country:ChinaCandidate:J Y ShenFull Text:PDF
GTID:2268330398995839Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of the computer network technology, Web has become popular and has been introduced into every area because of its universality, interactivity and usability. Driven by the demands of market, the Web application software changes from regular websites into platforms which are used to do electronic commerce, release the information and provide all kinds of Internet service. As a result, it becomes larger and more complex. However, the fierce competition in the business force the researchers to shorten the Web application development cycles and testing cycles as well as satisfying the needs of frequent Web application update. As a consequence, it not only increases the difficulty of test management, but also challenges the test researchers a lot. According to some statistics, the cost on the software testing accounts for30%to50%of total. In reality, even if we have spent a great of resources on testing, it is impossible to make software to be perfect that is without of any errors or defects. Therefore, as the most effective automation test technology to ensure the software quality, it has got a high attention.This thesis researched the automatic test on Web application system whose practical application was based on the Watir framework. Firstly, I analysised the recognition and positioning controlled by the page elements and attempted to simulate page’s elements operation which were usually by hand.Comparing with the responses and expected results on Web applications, this paper analysised and determined the mistakes and defects to achoeve the automatic test. The main content as follows:1. Summarized the achievements of the software test automation technology research including the main tools and technology, the existing problems, the advantages and limitations and the main characters and difficulties.2. Introduced and expanded the basic Web testing knowledge, not only the theories on the Internet testing characteristics, testing methods, testing procedures and testing techniques, but also analysing the automatic test used in Web application.3. Described the identification and location method based on the Watir framework for automatic test of Web applications on the Web page elements. Two aspects of Web page elements from Watir framework to support the identification method and Watir does not support Web page element identification method, innovatived regular expression support to identify the Web page elements combination with the Watir framework, in order to achieve full recognition Watir-based framework for automatic test of Web page elements,the thesis has been designed and achieved two kinds of methods to identify and locate the Web page elements for Watir framework does not supported. Through the testing of Alibaba and Taobao website, the results show that these methods are feasibility and effectiveness.4. Contraposing the " post form transform of AliExpress" project,I have studied and analyzed the perform range and key points of the Web application of automatic test basing on the framework of the project Watir,and began to design and realize the project five modules of the test automation.5. Show the process and the results of the automatic test’s debugging. Listed the failure of test automation in4classes scene and analysised the reasons and provide the solutions.After debugging, the article development of the test automation tool are used to the actual project test, to show the automatic test software defect found and improve the software quality results.At last execution105times validation of the test automation tool developed in this paper to show the stability and reliability.
Keywords/Search Tags:Web, test, automated, Watir
PDF Full Text Request
Related items