【正文】
em, we designed a parative testing laboratory in the Ministry of Information Industry of the test project for will test engineers divided into two groups, the first group to use this system MobileTest test, the second group uses the industry39。s automated testing platforms to the mobile digital terminal on the system software and 專業(yè)英語(yǔ)期末考查第9頁(yè)application layer software build modular, reusable test script library, to improve the efficiency of various black box testing, automation the generation of test results and test results to achieve 1: Test platform divided into four layers, including user interface layer, the test control layer, munication layer and the equipment Agent them, the process monitoring module, test equipment, environmental control module and the use of Agent Agent layer design ideas to better support embedded devices user interface layerTesting management and configurationScript editorVirtual cell phoneTestControl layer Test results show Testing steps executiontestrepository Test environment control Testing process monitoring AgentCommunications layer Set for Agent layerBluetooth GPRS 3G ATSynblan Agent Windows mobile AgentCustomization AgentAT 接口Figure 1 The overall architecture test system The basic system implementation processTesting process is a real cell phone users inputconditionaction rules(ECARULE)Control Agent This is a test based on the core rules, which defines a test case of interest, and according to parison conditions, take appropriate action.⑵ exception handling rules(EMRULE)Test Control Agent also ply with exception handling rules, which occurred during the test can detect abnormal events and to implement appropriate solutions to enable testing to proceed Test Control Agent39。來(lái)源于:《 Journal of Electronic Science and Technology》專業(yè)英語(yǔ)期末考查第7頁(yè)附:英文原文Embedded system research 1 IntroductionIntelligent Software Agent is the ability to perform specific tasks for the user, with a certain degree of intelligence, able to perform some tasks and autonomy in a proper manner and environment interactions software has autonomy, responsiveness, learning and social and other makes it suitable for highly dynamic environment to make a timely technology and the development of new generation mobile munication networks makes the emergence of a large number of embedded intelligent of these devices with embedded operating system support, and run an increasingly rich to test for these applications to be a need to article Intelligent Agent technology into embedded devices test, using the target device Agent, test control Agent, Network Agent and treatment were simulated test equipment, test engineers and test plexity of the environment, the use of Agent has its own characteristics, proposed An effective automated Related research and ideas of this articleAgent possess autonomy, responsiveness, learning and social and other features, makes it very suitable for handling plex problems in the test technology in the test area will already have some relevant research, the following is a specific Choi and Byoungju Choi [1] proposed a testing tool based on Agent technology, which through the use of Agent to handle user interface and test those interactions, the use of Agent to carry out the test case test case selection choices, and use the Agent for regression testing regression testing, so a good automated software they can only be made in a large number of test selection techniques select test cases has been the best use cases, write test cases can not reduce its 第8頁(yè)Other studies will Agent technology applied to a field Qi, David Hung and Eric Wong [3] proposed a Webbased Agent technology application testing technology to reduce their use of the network application testing method not only for Web application testing, but also for the testing of embedded intelligent the actual testing process, testers great task is still the preparation of various test cases, to really improve test efficiency, we must improve the general test scripts, reduce test script changes [2] [4].Common test tools for embedded smart devices(such as TestQuest)using image parison to determine the status of the target device, although this method to achieve a noninvasive test, but there are two problems, the image capture and transmission consumes a lot of test resources, the different style of phone39。將來(lái)的研究工作中,我們會(huì)進(jìn)一步拓展整個(gè)測(cè)試系統(tǒng),使之能夠支持整個(gè)測(cè)試的生命周期。此外,MobileTest 完成測(cè)試任務(wù)的時(shí)間時(shí)15天,比TestQuest 的測(cè)試效率要高。從表中可見(jiàn),雖然TestQuest 在功能測(cè)試上有更高的自動(dòng)化率,在壓力測(cè)試,多狀態(tài)測(cè)試,多任務(wù)測(cè)試,臨界測(cè)試和總計(jì)中,MobileTest有更好的測(cè)試覆蓋率。測(cè)試的內(nèi)容是根據(jù)這兩個(gè)系統(tǒng)各自已經(jīng)建立好的回歸測(cè)試用例對(duì)新的智能手機(jī)進(jìn)行回歸測(cè)試,從而比較這兩個(gè)測(cè)試工具的測(cè)試效率和腳本的可維護(hù)性。我們將測(cè)試工程師分為兩組,第一組使用本文的系統(tǒng)MobileTest進(jìn)行測(cè)試,第二組使用業(yè)界著名的TestQuest Pro 進(jìn)行測(cè)試。系統(tǒng)評(píng)估為了評(píng)價(jià)本系統(tǒng)的有效性,我們?cè)O(shè)計(jì)了一個(gè)比較實(shí)驗(yàn)。 網(wǎng)絡(luò)環(huán)境Agent 網(wǎng)絡(luò)環(huán)境Agent 實(shí)現(xiàn)了對(duì)網(wǎng)絡(luò)環(huán)境的模擬和控制。⑵智能性測(cè)試控制Agent能夠根據(jù)用戶選擇的測(cè)試目標(biāo),自動(dòng)生成ECA規(guī)則表,并根據(jù)ECA規(guī)則,進(jìn)行推理并采取相應(yīng)的動(dòng)作。⑵ 異常處理規(guī)則(EMRULE)測(cè)試控制Agent也遵守異常處理規(guī)則,它能夠檢測(cè)測(cè)試過(guò)程中發(fā)生的異常事件,并執(zhí)行相應(yīng)的解決方案,使得測(cè)試能夠順利的進(jìn)行。⑵ 通過(guò)和腳本解釋器交互,實(shí)現(xiàn)異步的事件通知和交互測(cè)試用例的執(zhí)行。測(cè)試控制 Agent測(cè)試控制Agent 實(shí)現(xiàn)了對(duì)測(cè)試過(guò)程的建模。⑵ 智能性當(dāng)目標(biāo)設(shè)備Agent獲取到一個(gè)變化的被測(cè)系統(tǒng)狀態(tài)或信息時(shí),它會(huì)根據(jù)推理規(guī)則,僅僅把和本次目標(biāo)相關(guān)的信息發(fā)送給測(cè)試控制Agent。專業(yè)英語(yǔ)期末考查第4頁(yè)異常處理規(guī)則(EMRULE)這個(gè)決策規(guī)則決定了當(dāng)Agent發(fā)現(xiàn)測(cè)試中出現(xiàn)異常,要采取的處理方式。本系統(tǒng)中它接收從PC機(jī)中接收到的控制命令,然后在智能設(shè)備中進(jìn)行相應(yīng)的操作,包括模擬鍵盤(pán)事件,截取屏幕并返回給PC,以及根據(jù)知識(shí)庫(kù)中的配置的測(cè)試目標(biāo),通過(guò)推理,有所選擇的將必需的狀態(tài)信息主動(dòng)通知測(cè)試宿主機(jī)。腳本繼續(xù)運(yùn)行下面的語(yǔ)句,直到運(yùn)行結(jié)束。專業(yè)英語(yǔ)期末考查第3頁(yè)用戶接口層測(cè)試管理與配置腳本編輯器虛擬手機(jī)測(cè)試控制層測(cè)試結(jié)果驗(yàn)證測(cè)試資源庫(kù)測(cè)試腳步執(zhí)行測(cè)試環(huán)境控制測(cè)試過(guò)程監(jiān)控Agent通訊層設(shè) 備agent層Synblan Agent藍(lán)牙 GPRS 3G AT視窗的移動(dòng)Agent定制AgentAT 接口圖1 測(cè)試系統(tǒng)的整體架構(gòu) 系統(tǒng)基本執(zhí)行流程測(cè)試過(guò)程是對(duì)真實(shí)用戶使用手機(jī)時(shí)“輸入-反饋”模型的一個(gè)模擬。如圖1所示:測(cè)試平臺(tái)分為四層,包括用戶接口層,測(cè)試控制層,通訊層和設(shè)備Agent層。此外,考慮到目標(biāo)設(shè)備處于復(fù)雜的網(wǎng)絡(luò)環(huán)境中,我們利用網(wǎng)絡(luò)環(huán)境Agent來(lái)控制目標(biāo)設(shè)備所處的網(wǎng)絡(luò)信號(hào),從而實(shí)現(xiàn)對(duì)設(shè)備所處網(wǎng)絡(luò)環(huán)境的控制。而測(cè)試控制Agent收到敏感事件后,根據(jù)自己的知識(shí),采取相應(yīng)的動(dòng)作的機(jī)制(如異常處理,重新調(diào)度測(cè)試等)加以處理。常見(jiàn)的嵌入式智能設(shè)備測(cè)試工具(比如TestQuest)使用圖像比對(duì)來(lái)判斷目標(biāo)設(shè)備的狀態(tài), 這種方法雖然實(shí)現(xiàn)了非侵入性的測(cè)試,但是存在兩個(gè)問(wèn)題,圖片的抓取和傳送消耗了大量測(cè)試資源,不同手機(jī)的用戶界面風(fēng)格變化很大,實(shí)際的設(shè)備中,當(dāng)重要的事件發(fā)生時(shí),只要操作系統(tǒng)相同,敏感事件的捕獲方式也是一樣,測(cè)試用例不會(huì)因?yàn)榻缑娴淖兓兓?。他們的方法不僅僅適用于Web應(yīng)用程序的測(cè)試,也適合于嵌入式智能設(shè)備的測(cè)試。Yu Qi、David Hung 和 Eric Wong [3] 提出了一個(gè)基于Agent 技術(shù)的Web 應(yīng)用程序測(cè)試方法。但是他們提出的測(cè)試用例選擇技術(shù)僅能在大量已有的測(cè)試用例中選擇最佳的用例,不能減少編寫(xiě)測(cè)試用例本身的復(fù)雜性。將Agent技術(shù)應(yīng)用于測(cè)試領(lǐng)域已經(jīng)有一些相關(guān)的研究,下面是具體的介紹。本文將Agent技術(shù)引入嵌入式智能設(shè)備的測(cè)試中,使用目標(biāo)設(shè)備Agent, 測(cè)試控制Agent,