面向Web Service的自動(dòng)化測(cè)試系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-06-27 17:13
本文選題:Play框架 + Scala語(yǔ)言 ; 參考:《南京大學(xué)》2014年碩士論文
【摘要】:隨著軟件產(chǎn)品開(kāi)發(fā)速度的不斷提高,測(cè)試人員的壓力也在相應(yīng)增加。為了提高測(cè)試的效率,越來(lái)越多的大型公司在開(kāi)發(fā)自己的自動(dòng)化測(cè)試系統(tǒng)。ebay的Stubhub子公司適應(yīng)軟件發(fā)展趨勢(shì),同樣提出了開(kāi)發(fā)面向Web Service的自動(dòng)化測(cè)試系統(tǒng)的需求。而這種本公司開(kāi)發(fā)的自動(dòng)化測(cè)試系統(tǒng)既能適合本公司的產(chǎn)品和環(huán)境,又能為今后類似自動(dòng)化測(cè)試系統(tǒng)的開(kāi)發(fā)積累了技術(shù)和經(jīng)驗(yàn)。面向Web Service的自動(dòng)化測(cè)試系統(tǒng)就是由測(cè)試框架和測(cè)試工具兩個(gè)部分組成。測(cè)試框架是通過(guò)maven依賴來(lái)提供API的自動(dòng)化測(cè)試方案。而測(cè)試工具是一個(gè)Web工程,提供API的信息管理和請(qǐng)求功能。對(duì)于自動(dòng)化測(cè)試框架,采用基礎(chǔ)的java技術(shù)即可實(shí)現(xiàn)。對(duì)于自動(dòng)化測(cè)試工具,由于Play 2框架提供了web開(kāi)發(fā)的所有基本功能,所以決定選擇Play 2框架來(lái)實(shí)現(xiàn)web開(kāi)發(fā)。在此基礎(chǔ)上,使用具備函數(shù)式編程特性的Scala語(yǔ)言完成開(kāi)發(fā)。數(shù)據(jù)庫(kù)是MongoDB,選擇的理由是它是NoSQL數(shù)據(jù)庫(kù),適合存儲(chǔ)結(jié)構(gòu)不確定的數(shù)據(jù)存儲(chǔ),且操作簡(jiǎn)便。本文首先闡明了自動(dòng)化測(cè)試系統(tǒng)的項(xiàng)目背景和意義。接著本文介紹了項(xiàng)目開(kāi)發(fā)過(guò)程中使用的各項(xiàng)技術(shù),包括AngularJS、Scala、MongoDB、Play框架等技術(shù)。然后本文明確了項(xiàng)目的需求并根據(jù)需求完成項(xiàng)目的設(shè)計(jì),需求的內(nèi)容包括功能性需求、非功能需求以及用例分析,設(shè)計(jì)內(nèi)容包括MongdoDB數(shù)據(jù)庫(kù)設(shè)計(jì)和模塊的詳細(xì)設(shè)計(jì)等。之后,本文詳細(xì)介紹了系統(tǒng)各個(gè)模塊的具體實(shí)現(xiàn),以及Play 2框架的配置和實(shí)現(xiàn),同時(shí)還以舉例的形式詳細(xì)介紹了AKKA和WebSocket等技術(shù)的核心代碼。最后,總結(jié)了整個(gè)項(xiàng)目的不足和進(jìn)一步的展望。在后續(xù)的工作中,我們將美化部分的界面,并優(yōu)化系統(tǒng)的一些操作,使本系統(tǒng)的使用體驗(yàn)更為人性化。同時(shí)增加組合測(cè)試和界面測(cè)試等新的模塊,添加數(shù)據(jù)統(tǒng)計(jì)、郵件通知等新的功能,使產(chǎn)品功能更加豐富。而在代碼結(jié)構(gòu)這一方面,依然需要優(yōu)化,如降低類之間的耦合程度,優(yōu)化調(diào)用關(guān)系。
[Abstract]:With the rapid development of software products, the pressure of testers is also increasing. In order to improve the efficiency of testing, more and more large companies are developing their own automated testing system. EBay's Stubhub subsidiary company adapts to the trend of software development. The automatic test system developed by this company can not only adapt to the products and environment of our company, but also accumulate technology and experience for the development of similar automatic test system in the future. Web Service-oriented automated test system is composed of two parts: testing framework and testing tools. The test framework is an automated test scheme that provides APIs through maven dependencies. The testing tool is a Web project that provides API information management and request capabilities. For the automated testing framework, the basic java technology can be implemented. For automated testing tools, because the play 2 framework provides all the basic functions of web development, it is decided to choose the play 2 framework to implement web development. On this basis, the use of functional programming features of Scala language development. The database is MongoDB, the reason is that it is NoSQL database, suitable for storage structure of uncertain data storage, and easy to operate. In this paper, the project background and significance of automated test system are first expounded. Then this paper introduces the technologies used in the development of the project, including Angular JS Scala / MongoDB play framework and so on. Then this paper defines the requirements of the project and completes the project design according to the requirements. The requirements include functional requirements, non-functional requirements and use case analysis. The design content includes the MongdoDB database design and the detailed design of modules. After that, this paper introduces the implementation of each module of the system, the configuration and implementation of the play 2 framework, and introduces the core codes of AKKA and WebSocket in detail with an example. At last, the deficiency of the whole project and further prospect are summarized. In the following work, we will beautify the part of the interface, and optimize some of the system operation, so that the system experience more humanized. At the same time, new modules such as combination test and interface test are added, data statistics, email notification and other new functions are added to enrich the function of the product. However, in the aspect of code structure, we still need optimization, such as reducing the coupling between classes and optimizing the call relation.
【學(xué)位授予單位】:南京大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:TP311.53;TP393.09
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 ;自動(dòng)化測(cè)試系統(tǒng)[J];電子質(zhì)量;2002年11期
2 何洪波;新一代通用自動(dòng)化測(cè)試系統(tǒng)的開(kāi)發(fā)與應(yīng)用[J];中國(guó)計(jì)量;2004年06期
3 李忠明,張威;短信自動(dòng)化測(cè)試系統(tǒng)的開(kāi)發(fā)與應(yīng)用[J];移動(dòng)通信;2004年06期
4 王麗英;基于以太網(wǎng)技術(shù)的自動(dòng)化測(cè)試系統(tǒng)[J];今日電子;2005年10期
5 李華;;綜合儀器和新一代自動(dòng)化測(cè)試系統(tǒng)[J];國(guó)外電子測(cè)量技術(shù);2005年12期
6 張舜堯;;手機(jī)自動(dòng)化測(cè)試系統(tǒng)設(shè)計(jì)淺析[J];電腦知識(shí)與技術(shù)(學(xué)術(shù)交流);2007年20期
7 ;構(gòu)建以軟件為中心的下一代自動(dòng)化測(cè)試系統(tǒng)[J];電子技術(shù)應(yīng)用;2008年08期
8 徐,
本文編號(hào):2074636
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2074636.html
最近更新
教材專著