企業(yè)項(xiàng)目管理系統(tǒng)的Web自動(dòng)化測(cè)試研究與實(shí)現(xiàn)
發(fā)布時(shí)間:2019-06-20 20:29
【摘要】:科技發(fā)展日新月異,Web系統(tǒng)的規(guī)模和復(fù)雜度也隨之不斷增加,怎樣確保Web系統(tǒng)的正確性和可靠性也日漸成為人們關(guān)注的焦點(diǎn)。Web測(cè)試也越來(lái)越重要,已然成為Web開(kāi)發(fā)過(guò)程的一個(gè)重要環(huán)節(jié)。測(cè)試效率低和測(cè)試覆蓋率不能保證是手工測(cè)試的兩大缺點(diǎn),由此手工測(cè)試越來(lái)越不能滿(mǎn)足規(guī)模不斷變大,復(fù)雜度不斷變高的Web系統(tǒng)的測(cè)試的要求。因而每個(gè)開(kāi)發(fā)團(tuán)隊(duì)都面臨著開(kāi)展自動(dòng)測(cè)試,提高工作效率的挑戰(zhàn)。然而自動(dòng)化測(cè)試并不是萬(wàn)能藥,也不能隨意使用,只有經(jīng)過(guò)嚴(yán)格測(cè)試之后的自動(dòng)化測(cè)試,才能真正提高Web測(cè)試的測(cè)試覆蓋率,減少測(cè)試時(shí)間,提高工作效率。企業(yè)項(xiàng)目管理系統(tǒng)是一個(gè)以軟件系統(tǒng)的開(kāi)發(fā)為使用場(chǎng)景,實(shí)現(xiàn)需求分析、概要設(shè)計(jì)、詳細(xì)設(shè)計(jì)、編程實(shí)現(xiàn)和軟件測(cè)試的生命周期管理的系統(tǒng),是為了實(shí)現(xiàn)企業(yè)內(nèi)部項(xiàng)目參與人之間溝通、協(xié)作和管理而研發(fā)的一個(gè)Web系統(tǒng),也是一個(gè)復(fù)雜度高規(guī)模大的Web系統(tǒng)。它主要包括資源管理、團(tuán)隊(duì)管理、任務(wù)管理、里程碑管理等功能模塊,支持Firefox、IE和Chrome等瀏覽器。在分析了企業(yè)項(xiàng)目管理系統(tǒng)的特點(diǎn)和自動(dòng)化測(cè)試相關(guān)知識(shí),并了解了現(xiàn)有的自動(dòng)化測(cè)試工具之后,Selenium以其可以像真實(shí)用戶(hù)一樣直接在瀏覽器中運(yùn)行以及開(kāi)源的優(yōu)點(diǎn)被選作企業(yè)項(xiàng)目管理系統(tǒng)自動(dòng)化測(cè)試的測(cè)試工具。首先文章介紹了題目來(lái)源、論文研究的背景、國(guó)內(nèi)外研究現(xiàn)狀及研究意義。接著論文主要闡述了Web測(cè)試和自動(dòng)化測(cè)試的相關(guān)知識(shí),以及Selenium WebDriver的工作原理。除此之外,本項(xiàng)目根據(jù)軟件測(cè)試的流程規(guī)范,制定了測(cè)試計(jì)劃,明確測(cè)試范圍,確定測(cè)試方法。并在分析待測(cè)的企業(yè)項(xiàng)目管理系統(tǒng)特點(diǎn)之后,根據(jù)系統(tǒng)的詳細(xì)設(shè)計(jì)說(shuō)明說(shuō)以及開(kāi)發(fā)人員的培訓(xùn),明確了測(cè)試需求。根據(jù)系統(tǒng)的測(cè)試需求和測(cè)試計(jì)劃,結(jié)合Python和Selenium2.0的WebDriver設(shè)計(jì)、搭建了測(cè)試平臺(tái),并通過(guò)Python腳本控制批處理過(guò)程,實(shí)現(xiàn)測(cè)試用例的逐個(gè)次序運(yùn)行,并記錄測(cè)試結(jié)果生成測(cè)試報(bào)告。引入Page Object設(shè)計(jì)模式,采用分層架構(gòu)的方法,把測(cè)試腳本分為五層,通過(guò)調(diào)用UI層定義的界面元素,實(shí)現(xiàn)常用動(dòng)作和一些輔助功能的封裝,進(jìn)而實(shí)現(xiàn)測(cè)試用例甚而測(cè)試集合的測(cè)試,提高了代碼的復(fù)用性,使測(cè)試腳本的實(shí)現(xiàn)更加簡(jiǎn)便。同時(shí)使用Firefox的插件Selenium IDE錄制和編輯測(cè)試腳本,運(yùn)行測(cè)試腳本,實(shí)現(xiàn)企業(yè)項(xiàng)目管理系統(tǒng)的Web自動(dòng)化測(cè)試,查看測(cè)試報(bào)告,分析測(cè)試結(jié)果。企業(yè)項(xiàng)目管理系統(tǒng)的Web自動(dòng)化測(cè)試的測(cè)試結(jié)果表明,自動(dòng)化測(cè)試平臺(tái)能夠滿(mǎn)足系統(tǒng)的測(cè)試需求,提高了企業(yè)項(xiàng)目管理系統(tǒng)的測(cè)試效率。最后論文總結(jié)了論文的主要工作內(nèi)容,并對(duì)后續(xù)工作進(jìn)行了展望。
[Abstract]:With the rapid development of science and technology, the scale and complexity of Web system are also increasing, how to ensure the correctness and reliability of Web system has become the focus of attention. Web testing is becoming more and more important, which has become an important link in the Web development process. Low test efficiency and unguaranteed test coverage are two major shortcomings of manual testing, so manual testing can not meet the requirements of Web system with larger scale and higher complexity. Therefore, each development team is faced with the challenge of carrying out automatic testing and improving work efficiency. However, automated testing is not a universal medicine, and can not be used at will. Only after strict testing, can the test coverage of Web test be really improved, the test time can be reduced, and the work efficiency can be improved. Enterprise project management system is a Web system which takes the development of software system as the use scene, realizes the life cycle management of requirement analysis, outline design, detailed design, programming implementation and software testing. It is also a Web system with high complexity and large scale in order to realize the communication, cooperation and management among project participants in the enterprise. It mainly includes resource management, team management, task management, milestone management and other functional modules, supporting Firefox,IE and Chrome browsers. After analyzing the characteristics of enterprise project management system and the related knowledge of automation testing, and understanding the existing automation test tools, Selenium has been selected as the test tool for enterprise project management system automation testing because of its advantages that it can run directly in browser like real users and open source. First of all, the paper introduces the source of the topic, the background of the paper research, the research status at home and abroad and the significance of the research. Then the paper mainly describes the knowledge of Web testing and automatic testing, as well as the working principle of Selenium WebDriver. In addition, according to the process specification of software testing, this project formulates the test plan, clarifies the test scope, determines the test method. After analyzing the characteristics of the enterprise project management system to be tested, according to the detailed design instructions of the system and the training of developers, the test requirements are defined. According to the test requirements and test plan of the system, combined with the WebDriver design of Python and Selenium2.0, the test platform is built, and the batch process is controlled by Python script to realize the running of test cases one by one, and the test results are recorded to generate the test report. By introducing Page Object design pattern and adopting the method of hierarchical architecture, the test script is divided into five layers. By calling the interface elements defined by UI layer, the encapsulation of common actions and some auxiliary functions is realized, and then the test case and even the test set are tested, which improves the reusability of the code and makes the realization of the test script easier. At the same time, Selenium IDE, a plug-in of Firefox, is used to record and edit the test script, run the test script, realize the Web automation test of the enterprise project management system, view the test report and analyze the test results. The test results of Web automation test of enterprise project management system show that the automatic test platform can meet the test requirements of the system and improve the test efficiency of enterprise project management system. Finally, the paper summarizes the main work of the paper, and looks forward to the follow-up work.
【學(xué)位授予單位】:西安電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類(lèi)號(hào)】:TP311.52
[Abstract]:With the rapid development of science and technology, the scale and complexity of Web system are also increasing, how to ensure the correctness and reliability of Web system has become the focus of attention. Web testing is becoming more and more important, which has become an important link in the Web development process. Low test efficiency and unguaranteed test coverage are two major shortcomings of manual testing, so manual testing can not meet the requirements of Web system with larger scale and higher complexity. Therefore, each development team is faced with the challenge of carrying out automatic testing and improving work efficiency. However, automated testing is not a universal medicine, and can not be used at will. Only after strict testing, can the test coverage of Web test be really improved, the test time can be reduced, and the work efficiency can be improved. Enterprise project management system is a Web system which takes the development of software system as the use scene, realizes the life cycle management of requirement analysis, outline design, detailed design, programming implementation and software testing. It is also a Web system with high complexity and large scale in order to realize the communication, cooperation and management among project participants in the enterprise. It mainly includes resource management, team management, task management, milestone management and other functional modules, supporting Firefox,IE and Chrome browsers. After analyzing the characteristics of enterprise project management system and the related knowledge of automation testing, and understanding the existing automation test tools, Selenium has been selected as the test tool for enterprise project management system automation testing because of its advantages that it can run directly in browser like real users and open source. First of all, the paper introduces the source of the topic, the background of the paper research, the research status at home and abroad and the significance of the research. Then the paper mainly describes the knowledge of Web testing and automatic testing, as well as the working principle of Selenium WebDriver. In addition, according to the process specification of software testing, this project formulates the test plan, clarifies the test scope, determines the test method. After analyzing the characteristics of the enterprise project management system to be tested, according to the detailed design instructions of the system and the training of developers, the test requirements are defined. According to the test requirements and test plan of the system, combined with the WebDriver design of Python and Selenium2.0, the test platform is built, and the batch process is controlled by Python script to realize the running of test cases one by one, and the test results are recorded to generate the test report. By introducing Page Object design pattern and adopting the method of hierarchical architecture, the test script is divided into five layers. By calling the interface elements defined by UI layer, the encapsulation of common actions and some auxiliary functions is realized, and then the test case and even the test set are tested, which improves the reusability of the code and makes the realization of the test script easier. At the same time, Selenium IDE, a plug-in of Firefox, is used to record and edit the test script, run the test script, realize the Web automation test of the enterprise project management system, view the test report and analyze the test results. The test results of Web automation test of enterprise project management system show that the automatic test platform can meet the test requirements of the system and improve the test efficiency of enterprise project management system. Finally, the paper summarizes the main work of the paper, and looks forward to the follow-up work.
【學(xué)位授予單位】:西安電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類(lèi)號(hào)】:TP311.52
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 張曉敏;;構(gòu)建整體化的自動(dòng)化測(cè)試平臺(tái)[J];中國(guó)高新技術(shù)企業(yè);2010年22期
2 杭漢慶;;關(guān)于軟件自動(dòng)化測(cè)試工具的研究[J];無(wú)線互聯(lián)科技;2012年01期
3 王益芝;吳言潤(rùn);李艷;李特;;淺析智能手機(jī)的自動(dòng)化測(cè)試[J];現(xiàn)代電信科技;2012年12期
4 季淑引;;軟件自動(dòng)化測(cè)試工具的應(yīng)用研究[J];科技致富向?qū)?2012年20期
5 張佳s,
本文編號(hào):2503510
本文鏈接:http://sikaile.net/guanlilunwen/xiangmuguanli/2503510.html
最近更新
教材專(zhuān)著