Automated Testing Project of Web UI Based on Selenium
- Author
- XinQing
- Advisor
- WangZhiYan , ZhangMinQuan
- School
- South China University of Technology
- Major
- Software Engineering
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 123
- Citations
- 0
Abstract
Automated testing is implementing test case automately according to test engineer’s testplan by using automated testing tools or other methods. Its purpose is decreasing workload ofmanual test, in order to improve software quality. Automated testing can be interpreted as theautomation of testing process and the analysis of testing result. Compare to manual test, themajor improvement of automated testing is the introduction of automated testing tool. Thepurpose of UI automated testing is not to find new functional bugs, but to guarantee theexisting function still works well in the process of product interation or reconstruction, or toimplement some specific scenarios which is hard to implement by manual test, such as quickinput.Application Portfolio Management System is a BS-architectured system. Its developmentperiod is relatively long, and has many interations. Besides, it has to be delivered everyday.In a day, after developers finish the development and deployment, the time left for the testerstto test is about one hour. Because of the time limitation, testers can only test the newlyfinished functions, and has no time for testing the existing function. If the newly modifiedcodes affect the existing functions, testers have no time to implement regression test for it. Soit’s hard to guarantee the stabilityof the existing functions. So anautomated testing system isneeded, it’s mainly respoinsible for testing the existing fuctions, to guarantee no bugs foundin it when delivered everyday.This automated testing system is developed based on an open-source automated testingtool Selenium. Selenium is a web application tesing tool. It runs directly in browser, just likewhat a real user do. It can test the application from end user’s point of view by codingSelenium test script which can imitate users’ operation. Selenium can cross platform andcross language, and it supports multi-browsers. Selenium supports record and playback, andit supports transforming to many kinds of languages. Besides, Selenium also supportsdistributed testing.This article first introduces the background, content and significance of the topic. Then itintroduces related automated testing theory, and introduces the automated testing toolSelenium which is used by the system. At last, the article explains the architecture, designand implementation of the system. It analysis the advantage and disadvantage of the systemand proposes an improvement solution.
Table of contents
Summary 5-6
Abstract 6-10
first chapter 10-16
1.1 Background 10 <br / > 1.2 research 10-11
1.2.1 target 10
1.2.2 workflow 10-11
1.3 significance 11-13
1.4 thesis structure 13-14
1.5 Summary 14-16
The second chapter describes the relevant automated test theories 16
2.1 -30 purpose automated test benefits 16
2.2 automated test 16-17
2.3 for automated testing misunderstanding 17 <br / > 2.4 automated test principle 17-18
2.4.1 -based code -level functional test automation tool 18
2.4.2 browser and DOM -based functional test automation object model tools 18
2.4.3 GUI-based object recognition test tools principle 18
2.5 generally suitable for automated software testing occasions 18
2.6 introduced automated software testing conditions 18-24
2.7 existing mainstream features automated testing tools 24-26
2.8 current Situation 26-28
2.8.1 foreign Research 26-27
2.8.2 domestic research status 27
2.8.3 domestic software test automation implementation unsuccessful Cause Analysis : 27-28
2.8.4 correct understanding of the root causes of domestic software test automation is not implemented 28
2.9 Summary 28-30
Chapter III related technology infrastructure 30-51
3.1 Selenium is what 30
3.2 Selenium principle 30-37
3.3 Selenium choose the right tool 37-39
3.4 Selenium RC works 39-50
3.4.1 Selenium RC is composed of : 39-40
3.4.2 selenium RC relationship with TestCase 40-42
3.4.3 What is the origin policy 42-43
3.4.4 Selenium Server Why in the form of a proxy server exists 43-44 <br / > 3.4.5 proxy injection 44-45
3.4.6 improved browser permissions 45-46
3.4.7 Selenium Remote Control: server command line parameters 46-48
3.4.8 Selenium and JavaScript 48-50
3.5 Summary 50-51
Chapter IV framework 51 - 55
4.1 Requirements Analysis 51-52
4.2 basic components framework 52-53
4.2.1 using 52
4.2. 2 need to install the tool 52
4.2.3 system components 52-53
4.3 basic functions 53
4.4 workflow 53 -54
4.5 Summary 54-55
Chapter 5 System design and Implementation 55-85
5.1 Test Case design 55-58
5.2 Selenium built in under NET environment . 58-65
5.3 to achieve test Point of Selenium automated testing 65-67
5.4 script recording problem solving 67-69
5.5 to solve the problem of Internet Explorer browser window is automatically maximized 69-70
5.6 Test Case solve some issues need to follow the sequence of operation 70 - 71
5.7 Selenium solve the problem can not be captured on a modal window operation 71-72
5.8 Test Case solve frequently encountered during operation due to an error page elements refresh timeout problems 72-75
5.9 test Results test Case solved after running inconvenient and error messages saved obvious question 75
5.10 CASE realize too long, more than 100 lines , it is difficult maintenance 75
5.11 features different styles of the same realization , case fail to maintain the place needs to be modified too correspond 75-76
5.12 ID and page elements produce cost 76
5.13 remodeling 76-78
5.14 automation use cases written specification 78
5.15 Selenium 2.0 78-80 <br / > 5.16 outcomes 80-81
5.17 product list 81-82
5.18 lessons 82
5.19 to achieve results analysis 82 -84
5.19.1 advantages and disadvantages of 82-83
5.19.2 for the shortcomings of the improvement program 83-84
5.20 Summary 84 -85
Chapter VI summary and Outlook 85-86
References 86-87
Thanks 87-88
accessories 88
Related dissertations
- The Application and Research of Automation Test with Dojo Based on Selenium
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Design and Implementation of Distributed Automation Testing System for Android Application
- Research on Mobile Games Software Automated Testing Based Machine Learning
- Effect of Selenium Supplement and Peroxynitrite on Nitration and Phosphorylation of Src Protein in Human Len Epithelial Cells
- The Research Progression of Oxidation Stress on Graves Ophthalmopathy
- The study of maternal and sugar metabolism and selenium in swine serum inhibits the proliferation of human cancer cells induced by the double-edged sword effect of selenium high selenium diet
- The Effects of Selenium on Thyroid Peroxidase Antibody,Thyroglobulin Antibody and IL-10, IL-12in Hashimoto Thyroidits
- The Effect of Selenium Supplementation on Serum Thyroid Antibodies Levels in Patients with Autoimmune Thyroiditis
- The Study of Selenium and NF-kappa B in the Patients with Autoimmune Thyroid Disease
- The Changes of IL-2and IL-6in Patients with Graves'Disease, the Effects of Selenium on IL-2and IL-6
- Efficacy of Dietary Selenium and Vitamin E Alleviate Immunological Stress in Broilers
- Studies of Different Selenium Sources on the Influence of Growth-development and Apparent Digestibility in Tan Sheep
- Effects of Foliar Feeding of Selenium on Fruit Qualily, Accumulation OfCadmium, Lead and Mercury and Physiological Indexes of Leaves in Sweet Persimmon and Grape
- Study on the Interaction between Selenium and Lead on the Growth of Agaricus Bisporus
- The Effect of Fulvic Acid (FA), Zn-Se Combined Application on Quality and Growth Regulation of Alfalfa
- Effects of Selenium and Cobalt Combined Application on the Yield, Quality and Soil Fertility of Two Cultivars of Soybean
- Study on production technology of farmland in Hanyin County of selenium resources present situation analysis and selenium enriched rice
- Study on the Low of Dynamic Development in Selenium Enrichment Liquid Culture by Pleurotus Geesteranus
- Preparation of Hydrolysates from Se-enriched Rice Endosperm Protein and Their Antioxidant Activity and Immunocompetence