【正文】
企業(yè)即時(shí)通信客戶端的開發(fā)與性能測試Development and Performance Testingof the Enterprise Instant Message Client院 系 數(shù)學(xué)與計(jì)算機(jī)科學(xué)系 專 業(yè) 計(jì)算機(jī)科學(xué)與技術(shù) 班 級 xxxxxxxxxxx 姓 名 xxxxxxxx 學(xué) 號 xxxxxxxxxxxx (空行,五號字,)指導(dǎo)教師單位 數(shù)學(xué)與計(jì)算機(jī)科學(xué)系 指導(dǎo)教師姓名 xxxxxxxx 指導(dǎo)教師職稱 副教授 企業(yè)即時(shí)通信客戶端的開發(fā)與性能測試摘要當(dāng)今世界處于信息爆炸式增長并迅速更新的時(shí)代。隨著網(wǎng)絡(luò)的發(fā)展,即時(shí)通信服務(wù)深入到人們生活的方方面面。對企業(yè)來說,即時(shí)消息、語音、視頻通信和即時(shí)文件傳輸?shù)睦寐史浅8?。企業(yè)級即時(shí)通信系統(tǒng)作為未來的主流辦公工具,集成了多種先進(jìn)的信息溝通方式。目前不少即時(shí)通信軟件都有針對企業(yè)的版本。這些軟件功能雖然全面,卻并不符合許多中小型企業(yè)的工作要求。通過深入研究開源的Openfire服務(wù)器和Smack API的實(shí)現(xiàn),本系統(tǒng)充分利用更高安全性即時(shí)通信協(xié)議XMPP,編寫接口的工廠類以實(shí)現(xiàn)即時(shí)通信協(xié)議的客戶端軟件模塊。企業(yè)級即時(shí)通信軟件SPGEcq就是從企業(yè)工作的實(shí)際出發(fā),在大幅減少企業(yè)通信費(fèi)用的同時(shí),提高了企業(yè)整體的工作效率,使得企業(yè)員工脫離網(wǎng)絡(luò)聊天所帶來的問題。在即時(shí)通信、文件傳輸?shù)裙δ艿幕A(chǔ)上,各企業(yè)還可以通過二次開發(fā)來定制自己的多樣性功能和主題,使用豐富的擴(kuò)展插件來滿足自身的需求。此外,本即時(shí)通信軟件遵循開源的GNU協(xié)議,具有跨平臺特性。最后本文對系統(tǒng)進(jìn)行了性能測試。根據(jù)測試結(jié)果分析, 本文針對存在的系統(tǒng)性能瓶頸進(jìn)行相應(yīng)的評估,消除系統(tǒng)性能瓶頸,使系統(tǒng)能夠達(dá)到預(yù)期的性能指標(biāo)期望值。經(jīng)過性能測試和調(diào)優(yōu)工作,本系統(tǒng)在思普企業(yè)集團(tuán)SPGLinux上穩(wěn)定運(yùn)行至今,并將逐步推動企業(yè)集團(tuán)整體業(yè)務(wù)的自動化,為企業(yè)提供更堅(jiān)實(shí)、更好的系統(tǒng)平臺以及更多、更適合的應(yīng)用。(空行,小四號字)關(guān)鍵詞:即時(shí)通信,企業(yè)級,XMPP,跨平臺,性能測試Development and Performance Testing of the Enterprise Instant Message ClientComputer Science and Technology 20052 Teng BinyunSupervisor Li ChaojianAbstractThe current world locates in the period of information explosive growth and rapid update. As the network developed, instant message service gets into the various facets of people’s lives. For enterprise, instant message, voice, video munication and instant file transfer have very high rate of apply. To be the future mainstream in office tools, enterprise instant message system integrates various advanced way for information munication. At present, much instant message software have the version for enterprise. They have plete functions but not fit with the work demand in many small and mediumsized enterprises.Through deeply researching the implement of opensource Openfire server and Smack API, the system plenty uses the higher security instant message protocol XMPP and carries out the instant message protocol’s client software module by writing the factory class of interface code. Enterprise instant message software SPGEcq starts with the practical work of enterprise and improves the whole work efficiency that employee gets rid of the problem of network chat, as well as reduces the enterprise munication cost by a big margin. On basis of the functions like instant message and file transfer, various enterprises customize their own various functions and theme by repeatedly development and use plenty of extended plugin to fulfill their own requirements. Furthermore, the instant message software keeps to the opensource GNU license and has got the feature in crossplatform.At last the study makes the system performance test. On basis of test result analysis, we evaluate the existent system performance bottleneck corresponding, and eliminate it for reaching the expectation of performance guideline. Through the work of performance test and optimizing, the system will be running stably in Sipu Group’s SPGLinux to this day. It will work up the whole business automatization of group, and provides more stable, better system platforms as well as much more and more suitable applications for enterprise.(空行,小四號字)Key words:instant message, enterprise level, XMPP, crossplatform, performance test目錄1 前言 1 即時(shí)通信軟件的現(xiàn)狀和特點(diǎn) 1 即時(shí)通信軟件的現(xiàn)狀 1 目前即時(shí)通信軟件的特點(diǎn) 2 即時(shí)通信軟件的企業(yè)應(yīng)用 3 本開發(fā)項(xiàng)目的實(shí)際意義 42 即時(shí)通信軟件需求分析 5 獲取用戶需求 5 可運(yùn)行原型法 5 其他有效地獲取需求的方式 5 功能劃分 6 功能描述 6 面向?qū)ο蠓治?7 7 關(guān)鍵建模用圖 73 即時(shí)通信客戶端SPGEcq的實(shí)現(xiàn) 10 技術(shù)背景及環(huán)境配置 10 軟件開發(fā)技術(shù) 10 軟件開發(fā)工具及環(huán)境配置 10 SPGEcq客戶端的實(shí)現(xiàn) 10 登錄對話框 11 賬戶創(chuàng)建向?qū)?13 聯(lián)系人列表 15 文件傳輸管理 17 194 即時(shí)通信系統(tǒng)的性能測試 21 即時(shí)通信系統(tǒng)性能測試中使用的統(tǒng)計(jì)量 21 響應(yīng)時(shí)間 21 并發(fā)用戶數(shù) 22 即時(shí)通信系統(tǒng)性能測試方法論 24 性能下降曲線分析法 24 PTGM模型 26 測試前期準(zhǔn)備及工具引入 27 系統(tǒng)基本功能的驗(yàn)證 27 測試工具需求確認(rèn) 27 性能預(yù)備測試 28 測試計(jì)劃 28 性能測試領(lǐng)域分析 28 用戶活動剖析與業(yè)務(wù)建模 28 確定性能目標(biāo) 28 測試設(shè)計(jì)與開發(fā) 29 測試環(huán)境設(shè)計(jì) 29 測試場景設(shè)計(jì) 30 即時(shí)通信系統(tǒng)性能測試評估 31 基礎(chǔ)性能分析 31 建議和結(jié)論 32結(jié)束語 34致謝 34參考文獻(xiàn) 34 35 / 431 前言當(dāng)今世界處于信息爆炸式增長并迅速更新的時(shí)代。為適應(yīng)新的經(jīng)濟(jì)競爭環(huán)境,現(xiàn)代企業(yè)特別是中小企業(yè)的溝通越來越快,對效率的要求也越來越高,企業(yè)內(nèi)部的團(tuán)隊(duì)工作中的協(xié)調(diào)溝通必須即刻達(dá)成,順暢的溝通對生產(chǎn)效率、管理質(zhì)量起到至關(guān)重要的作用。否則將影響項(xiàng)目的整體推進(jìn),也難以迅速應(yīng)對瞬息變化的市場需求。隨著網(wǎng)絡(luò)的發(fā)展,即時(shí)通信服務(wù)深入到人們生活的方方面面。由于即時(shí)通信的方便快捷,它的出現(xiàn)大大改變了傳統(tǒng)的郵件交流方式。在異步通信已無法滿足辦公需求的情況下,好的即時(shí)溝通平臺能夠幫助實(shí)現(xiàn)高效溝通。 即時(shí)通信軟件的現(xiàn)狀和特點(diǎn) 即時(shí)通信軟件的現(xiàn)狀隨著當(dāng)今信息社會對信息的需求越來越強(qiáng)烈,人們已經(jīng)不滿足于通過互聯(lián)網(wǎng)、郵件、電視等媒體獲得信息量了,他們對于信息的及時(shí)性要求越來越高。對于外界的聯(lián)系人們也不僅局限于電子郵件和電話,還需要更快的聯(lián)系方式——即時(shí)通信(Instant Message, IM),以便可以隨時(shí)隨地傳遞信息。即時(shí)通信軟件是互聯(lián)網(wǎng)應(yīng)用工具軟件,IM軟件的歷史并不久遠(yuǎn),但是它一誕生,就立刻受到互聯(lián)網(wǎng)用戶的喜愛,并風(fēng)靡全球。它的溝通能力再次煥發(fā)出無限光彩。除了“聊天”之外,它更多地顯示出了商務(wù)通信、居家辦公的卓越性能,可以說是目前我國上網(wǎng)用戶使用率最高的軟件。據(jù)20082009中國企業(yè)即時(shí)通信市場研究年度報(bào)告稱,在基于互聯(lián)網(wǎng)工作中使用即時(shí)通信服務(wù)的人將在未來幾年內(nèi)大幅度增加,而2008年全球每天發(fā)送的即時(shí)通信消息已超過一萬億條。,下面是人們使用即時(shí)通信軟件的主要目的。 使用即時(shí)通信的主要目的 The Main Purpose of Using IM 當(dāng)前即時(shí)通信軟件的特點(diǎn)個(gè)人即時(shí)通信軟件在企業(yè)的應(yīng)用中存在著許多不足之處。首先,通常從安全和管理的角度出發(fā),企業(yè)不接受接入互聯(lián)網(wǎng)的服務(wù),也就限制了這些軟件的使用;其次,由于這些軟件主要側(cè)重聊天和娛樂,存在繁雜的功能將影響工作效率;另外,注冊用戶不需要驗(yàn)證身份證,這導(dǎo)致了在傳輸過程中企業(yè)的敏感數(shù)據(jù)極其容易被竊