TW201039617A - Automatic test method, test device, and test system - Google Patents

Automatic test method, test device, and test system Download PDF

Info

Publication number
TW201039617A
TW201039617A TW98114278A TW98114278A TW201039617A TW 201039617 A TW201039617 A TW 201039617A TW 98114278 A TW98114278 A TW 98114278A TW 98114278 A TW98114278 A TW 98114278A TW 201039617 A TW201039617 A TW 201039617A
Authority
TW
Taiwan
Prior art keywords
image
test
expected
output
predefined
Prior art date
Application number
TW98114278A
Other languages
Chinese (zh)
Inventor
jia-hong Xu
You-Neng Xiao
Guo-Liang Wang
Original Assignee
Ipanel Technologies Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ipanel Technologies Ltd filed Critical Ipanel Technologies Ltd
Priority to TW98114278A priority Critical patent/TW201039617A/en
Publication of TW201039617A publication Critical patent/TW201039617A/en

Links

Landscapes

  • Image Analysis (AREA)

Abstract

An automatic test method, test device, and test system are disclosed. The implementation of the automatic test method includes utilizing a digital television terminal program to analysis a predetermined test sample and output image, so as to obtain the output image; comparing the output image with the predetermined test sample; if similarity between the output image and the predetermined test sample falls within a pre-set range, defining the result of test is passed; if not falling within the pre-set range, defining the test is failed. The method implement automatic test through comparing obtained output image with expected image, therefore manpower and undue testing time are both saved. Moreover, since pre-set range of similarity is the test standard, subjective factors of people are prevented in test and reliability of the test is enhanced.

Description

201039617 六、發明說明: 【發明所屬之技術領域】 本發明涉及圖像處理技術領域,特別涉及一種自動化測試 的方法、裝置和系統。 【先前技術】201039617 VI. Description of the Invention: [Technical Field] The present invention relates to the field of image processing technologies, and in particular, to a method, apparatus and system for automated testing. [Prior Art]

G Ο 數位電視軟體可以用於解析數位電視收到的資訊,然後輸 出收到的資訊,這些輸出的資訊可以通過電視等輸出設備以圖 像的形式顯示出來。隨著數位電視終端軟體的發展,數位電視 終端軟體的測試工作量呈成倍增長的趨勢◊例如,一個新的電 視終端軟體分支準備出庫’或一個電視終端軟體分支的功能發 生修改準備出庫’對該終端軟體分支測試需要遍曆全部功能測 試用例,而目前的測試工作均為人工完成。測試是 充 分,對終端軟體的品質會產生很大的影響。疋否祕及充 ^工測試的過程可以分解為以下步驟:⑴閱讀測試對 觀察測試畫面内容的變化;(2)理解測試對象:根據長時 =積累的檢驗知識對測試畫面的文字和内容進行理解,得知測 齒=的測試目的;⑶紐測試行為:將觀察到的測試晝面 ^圯憶中期望的測試結果比較,判斷是否測試通過;另外如果 可輯職盤、滑鼠或麵科交互行絲 過程或記錄測試結果。 巧人在實現本發明的過程巾發現:採用人卫測試耗時耗 測試二試是連續的’人工測試時,需要人持續關注 試、個畫面和結果’如果人的視線離開測試畫面,測 會有不完整的可能,而且人工測試的結果會因 性,進而產生偏差’造成測試結果的不確定 【發明内容】 4 201039617 本發明實施例要解決的技術問題是提供一種自動化測試 的方法、裝置和系統,實現數位電視終端軟體的自動化測試。 為解決上述技術問題’本發明所提供的自動化測試的方法 實施例可以通過以下技術方案實現·· 偷ΐί電祕端軟體麟預定義麟實顺輸_像,獲取 孩務I出圖像; ,該獲取_輸_像與預定義測試實例的預期圖像進 内,二r的範圍 可選地,該獲取輸出圖像為: 像;獲取和義顧實财通顧域絲標祕域的輸出圖 ▼ 行對比; 域的象為:預定義測試實例中通過區域座標標 出圖像=··魏位電視終端軟體解_定_試實例然後輸 實例,並續解析至少兩個不同的預定義測試 括:將輸_像與__物軸_像進行對比包 行對^取到_輸雜__的預期圖像進 可選地’該獲取輸出圖像包括: 通過圖像鏡齡物·物輸出圖像。 5 201039617 析後? 包括還輸出圖像與預定義測試實例的預期圖像進行對比還 若對比顯示為開始檩識圖像,則確 對比顯示為結束標識圖像,則較-輪測試的開始;若 括:析預定義測試實例並輪:圖像之後還包 Ο 〇 該獲取輸出圖像之前還包括 輸出圖像在顯 示設==顯示的尺規介面圖像確定該 像。該獲取輸_像包括:獲取該顯示位置_像作為輸出圖 可選地’該獲取顯示位置的圖像包括: 通過光學字糊的方式細輸出^_。 圖像=比II獲取到的輪朗像與預定義測試實例的預期 廓;運 算,得到輸出圖像輪 對比,· 、預疋義測試實例的預期圖像輪靡進行 包括該獲取物___細咐細範圍内 定的度在設 __________ 201039617 行對比包括: 圖元值通過色彩模型表示; 包括到的輪出圖像與預_像相似度在設定的範圍内 内^取_輪_像的爾侧元飢例在設定的範圍 Ο Ο 該輸出圖像為測試結果字元圖像; 行對輪1 _彳峨侧期圖像進 將獲取____咖謝元進行對比,· 包括^獲取到的輪出圖像與職圖像相似度在設定的範圍内 獲取到的輪出圖像令的字元為表示通過的字元。 n轉提供了—種自動化測試裝置,包括: 例並’用於通秘位電婦端軟贿析狀_試實 將賴取咖輸㈣像與預定義观 輸出圖像獲取單元,用於獲取該輸出圖像 — *- 、 1試實例 J , =卜範=====相為 結果確定單元, 可選地’該獲取輪出圖像為: 獲取預疋義測試實例中通騎域座標標示區域的輪出圖 7 201039617 像; Ο 〇 域的圖像為:預定義測試實例中通過區域越標示區 出圖,該數㈣視終魏體鱗試實纖後輸 實例數連續解析至少兩個不同的預定義測試 括:該將輪出圖像與預定義測試實例的預期圖像進行對比包 圖像進 行對比 ί該獲取觸輸_像與該輸_像對應的麵 可選地’該對比單元包括: 得到輸出^像輪7通過索貝爾運算子騎出圖像進行運算, 圍 例的預期麵定義測試實 内包=獲取到的輸出圖像與預期圖像相似度在設定的範 定的範=]2輪出圖像輪廓與預期圖像輪廓的相似度在設 該對比單元包括: 第二對比子單元,^ 分佈掃描,統計符合丄,,取到的輸出圖像圖元進行平均 色彩模型表示; 钱色彩的圖元值比例;該圖元值通過 _獲取到的輪出圏像與預期圖像相似度在設定的範圍 201039617 内包括: 内 圍 :或、輪出圖像的預期色彩圖元值比例在設定的範 該輪_像為物果字元圖像; 該對比單元包括: 像中的字元與預定義字元子單元,用於將獲取到輸出圖 内包括y J的輸出圖像與預細像相似度在設定的範圍 Ο 〇 獲取到的輪出圖像令的字元為表示通過的字元。 本發明實施例還提供了—種自動化測試㈣統,包括: 視終預:】圖4;該輸出圖像通過數位電 試處理值^; 制4#例_;將該輸_像發送給測 試實賴___咖定義測 行對比,得到測試結果;若該獲取到的輸 出圖像與翻圖像她度在設定的範_,刺試 ^否,則測試結果為未通過;將測試結果發送給資^庫^服 資料庫伺服器,用於接收並保存該測試結果; 前臺用戶端’用於獲取資料庫飼服器保存的該測試結果。 山也’該數位電視終端軟體解析預定義測試實例然後輸 出圖像包括: 數位電視終端軟體連續解析至少兩個不同的 實例,並連續輸出圖像; 〆 該將輸出圖像與預定義測試實例的預期圖像進行對比包 201039617 括: 行對比 fb該獲取軸嘛_輪崎軸__像進 可選地’該將獲取到的輸出圖像 圖像進行對眺括: μ關对例的麵 通過索貝_運算子對輸蝴像 :將獅_廓嫩_財二2;== ΟG Ο Digital TV software can be used to parse the information received by digital TV, and then output the received information. The output information can be displayed in the form of images through output devices such as TV. With the development of digital TV terminal software, the test workload of digital TV terminal software has multiplied. For example, a new TV terminal software branch is ready to be shipped out of the library or a TV terminal software branch is modified to prepare for delivery. The terminal software branch test needs to traverse all functional test cases, and the current test work is done manually. The test is sufficient and has a great impact on the quality of the terminal software. The process of 秘 秘 及 and the filling test can be decomposed into the following steps: (1) reading test changes to observe the contents of the test screen; (2) understanding the test object: according to the test knowledge of long time = accumulated test text Understand, know the test purpose of the test tooth =; (3) New test behavior: compare the expected test results in the test, and judge whether the test passes; in addition, if the record can be edited, mouse or face Interact the silk process or record test results. The skill person realizes the process towel of the present invention: the use of the human health test time-consuming test is a continuous 'manual test, the person needs to continuously pay attention to the test, a picture and the result' if the person's line of sight leaves the test screen, the test will There is an incomplete possibility, and the result of the manual test may be consequential, and thus the deviation may result in the uncertainty of the test result. [201039617] The technical problem to be solved by the embodiment of the present invention is to provide a method and device for automated testing. The system realizes the automatic test of the digital TV terminal software. In order to solve the above technical problem, the embodiment of the method for the automated testing provided by the present invention can be realized by the following technical solutions: · stealing ΐ 电 电 软 软 软 预 预 预 预 预 预 预 获取 获取 获取 获取 获取 获取 获取 获取 获取 获取 获取The acquisition_image_with the expected image of the predefined test instance is entered, and the range of the second r is optionally, the acquired output image is: the image; the acquisition and the real-world view of the domain of the virtual domain Contrast; the image of the domain is: in the predefined test instance, the image is marked by the area coordinate =··Wei TV terminal software solution _ _ try the instance and then input the instance, and continue to parse at least two different predefined tests: Comparing the input image with the __object axis image to the expected image of the _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ image. 5 201039617 After analysis? Including the output image is compared with the expected image of the predefined test instance. If the comparison is displayed as the start of the recognition image, then the comparison is displayed as the end of the identification image, then the start of the comparison test; If yes: Analysis of the predefined test instance and round: After the image is also included 〇 〇 The acquisition of the output image also includes the output image in the display setting == display of the ruler interface image to determine the image. The acquiring the input image includes: acquiring the display position_image as an output image. Optionally, the image of the acquired display position comprises: finely outputting ^_ by means of optical word paste. Image = the expected contour of the wheel image obtained by II and the predefined test instance; the operation, the output image wheel is compared, and the expected image rim of the pre-suppression test instance is included to include the acquisition ___ The fineness of the fine range is set in the __________ 201039617 line comparison: the primitive value is represented by the color model; the included round image and the pre-image similarity are within the set range ^ _ wheel_image The side element of the hunger is in the set range Ο Ο The output image is the test result character image; the line to the wheel 1 _ 彳峨 side image into the ____ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The rounded image obtained by the rounded image and the job image similarity within the set range is a character indicating the passing. N-turn provides an automated test device, including: Example and 'used for the secrets of the electric woman's soft bribery _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The output image - *-, 1 trial instance J, = Bu Fan ===== phase as the result determination unit, optionally 'the acquisition round image is: Get the pre-sense test instance in the riding domain coordinates The circle of the marked area is shown in Figure 7 201039617 Image; 图像 The image of the 〇 field is: in the predefined test instance, the area above the area is marked by the area, and the number (4) depends on the number of instances of the final Wei body scale test. a different predefined test includes: comparing the rotated image with the expected image of the predefined test instance for comparison with the image of the package image ί. The acquisition touches the image corresponding to the image of the input image optionally The comparison unit includes: obtaining an output ^ image wheel 7 is operated by riding the image by the Sobel operator, and the expected surface of the circumference is defined by the test real package = the acquired output image is similar to the expected image in the set specification Fan =] 2 rounds out the similarity between the contour of the image and the contour of the expected image The comparison unit comprises: a second comparison subunit, a distribution scan, a statistical conformity, and an output image primitive obtained by the average color model representation; a color value of the primitive value; the primitive value is obtained by _ The similarity between the rounded image and the expected image is included in the set range 201039617: inner circumference: or, the expected color element value ratio of the rounded image is in the set range, the image is the fruit character map. The comparison unit includes: a character in the image and a predefined character subunit for acquiring the output image including the y J in the output map and the pre-fine image similarity in a set range Ο 的The characters that are rotated out of the image order are the characters that indicate the passage. The embodiment of the present invention further provides an automated test (four) system, including: a final image: FIG. 4; the output image is processed by a digital electrical test value; a system 4# example _; the image is sent to the test Really rely on ___ coffee definition line comparison, get the test result; if the obtained output image and the flip image her degree is in the set _, the thorn test ^ no, the test result is failed; the test result The server is sent to the database server for receiving and saving the test result; the front-end client terminal is used to obtain the test result saved by the database server. The mountain also 'the digital TV terminal software parses the predefined test instance and then outputs the image including: The digital TV terminal software continuously parses at least two different instances and continuously outputs the image; 〆 the output image and the predefined test instance The expected image is compared with the package 201039617: Line comparison fb The acquisition axis _ 轮崎 axis __ image into the optional 'This will be obtained from the output image image: μ off the face of the example Sobe _ operator to lose the butterfly image: the lion _ profile tender _ 财二 2; == Ο

j 範圍内 包括該獲取到的輸出圖像與職圖像相似度在設定的 定的到Ϊ輪出圖像輪廓與預細像輪廓的相似度在設 行對取到的輪出圖像與财義測試實例的預期圖像進 定義出圖像圖元進行平均分佈掃描,統計符合預 、、值比例;該圖元值通過色彩模型表示; 包括 圍内 該獲取到的輪㈣像與預細像她度在設定的範 内;^取到的輪_像的翻色綱元值比例在設定的範圍 該輸出圖像為挪試結果字元圖像; 行對ί3取到的輪出圖像與預定義測試實例的預期圖像進 =獲取到的輪出圖像t的字元與預定義字元進行對比; 〜獲取到的輪相像與預顧像相似度在設定的範園内 10 201039617 包括: 獲取到的輸出圖像中的字元為表示通過的字元。 上述技術方案具有如下有益效果:通過比較採集的輸出 像與預期圖像得到測試的結果,實現了自動測試,節省人的時 間和精力;另外,由於採用預定的相似度範圍 測 試的標準,消除了人的理解偏差,從而提高了測試的可^生別 【實施方式】 Ο 〇 本拥實施例姨決的技術問題是提供—種自 的方法、裝置和系統,實現數位電視終雜體的自動化測^ 第-實施例’如第1圖所示,本發明實施例提供的一種自 動化測試之方法,可以包括以下步驟: 步驟1G1 ··數位電視終端倾解析預定_試實例並輸出 圖像; 步驟102 ··獲取上述輸出圖像; 咖^⑽.將上述獲取到的輸出圖像與預定義測試實例的 行對比’·判斷上述獲取到的輸出圖像與預期圖像相 =度=否在設定的範圍内,若是,則進 進入步驟105; 步驟104 :測試結果為通過; 步驟105 :測試結果為未通過。 a夕ΐ述步驟的執行主體可以為一個職飼服器,當然也可以 ^測試裝置通過可通信方式連接共同實現上述步驟;通過 ^採ί的輸出圖像與預期圖像得到測試的結果,實現了自動 省人的時間和精力;另外,由於採用預定的相似絲 疋否通過測試的鮮,消除了人_ ,從而提高 了測試的可靠性。 201039617 Ο 上述步驟101和步驟102的執行主體可以為實體測試設 備,也可以為虛擬測試設備,不影響本發明 f雜I。4 *步驟I。5之後還可以保存測試的結果如在 疋否通過,若未通過還可以保存輸出圖像的詳細參數。 上述獲取輸出®像為··龜預定義職實例中通 過£域座標標示區域的輸出圖像; 區域貝的像為:預定義戦實例中通過區域座標標示 定的可以將輸出圖像的比較範圍縮小到—個確 二 =從而降低圖像比較的複雜度’同時也能提高圖像3 輸出Lti括述數位電視終端軟體解析預定義測試實例然後 實例數^*==連轉析至少兩__歡義測試 :述將輸出圖像與預定義測試實例的預期圖像進行對 包括 比The range of j includes the similarity between the acquired output image and the job image, and the similarity between the set image and the pre-fine image contour in the set-up image. The expected image of the test instance defines the image primitive for the average distribution scan, and the statistics conform to the pre- and the value ratio; the primitive value is represented by the color model; including the acquired wheel (four) image and pre-fine image She is in the set range; ^The ratio of the color of the image of the wheel _ image taken in the set range is the image of the result of the test; the image of the rounded image obtained by ί3 The expected image of the predefined test instance is compared with the predefined character of the obtained rounded image t; ~ The acquired image similarity with the look-ahead image is set in the scope of the field 10 201039617 Includes: The characters in the obtained output image are characters indicating the passage. The above technical solution has the following beneficial effects: automatic test is realized by comparing the collected output image with the expected image, which saves people's time and effort; in addition, the standard of the similarity range test is adopted, and the elimination is eliminated. The human understanding of the deviation, thus improving the test can be achieved [implementation] 实施 〇 拥 拥 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施As shown in FIG. 1 , a method for automated testing provided by an embodiment of the present invention may include the following steps: Step 1G1 · Digital television terminal parses a predetermined _ test instance and outputs an image; Step 102 ··Get the above output image; 咖^(10). Compare the obtained output image with the line of the predefined test instance'·determine that the obtained output image and the expected image are ==No in the setting In the range, if yes, proceed to step 105; Step 104: The test result is passed; Step 105: The test result is failed. The execution subject of the step can be a job-feeding device. Of course, the test device can be connected in a communicable manner to achieve the above steps; the output image of the image and the expected image are obtained by the test result. The time and effort of automatically saving people; in addition, because of the adoption of a predetermined similar silk thread, the adoption of the test is fresh, eliminating the person _, thereby improving the reliability of the test. 201039617 执行 The execution body of step 101 and step 102 above may be a physical test device or a virtual test device, and does not affect the present invention. 4 *Step I. After 5, you can save the test results as 在 No, if you fail, you can save the detailed parameters of the output image. The above-mentioned acquisition output® is an output image of the region marked by the £ domain coordinate in the pre-defined example of the turtle; the image of the region is: the comparison range of the output image can be determined by the regional coordinates in the predefined 戦 instance. Zoom out to - a true two = thus reducing the complexity of image comparison 'At the same time can improve the image 3 output Lti bracket digital TV terminal software parsing predefined test instances and then the number of instances ^ * = = even transfer at least two __ Joy test: the ratio of the output image to the expected image of the predefined test instance.

Q 將上述獲取到的輸出圖像 像進行對比。 園像與上錢出圖像對應的預期圖 上述實施方式,提供了連續 法’上述多個預定義測試實、夕個預定義測試實例的方 通過連續的測試實例可以一4、由不同的測試目的來確定; 測試結果。 - 人剩試出需要測試的多種實例的 可選地,上述獲取輪出 獲取需要的輸出圖像。 象匕括:通過圖像鏡頭分割方式 上述實施方式,給出了在數位 電視終端軟體連續輪出圖像 12 201039617 的時候,獲取輪Ψ # 細沾鮮日日β 園像的方式;在後續實施例中將對此作更詳 細的說明 解柄至少兩個不同的預定義測試實例中具有一個 像;’…、w竭始標識圖像,一個解析後顯示為結束標識圖 還包括,將輪出圖像與預定義測試實例的預期圖像進行對比 對比i 圖像’則確定-輪測試的開始;若 Ο 采^袖像,财定_輪賊的結束。 例顯-獅心通過測試實 、、。束的標〜來確定一輪測試的開始或結束。 括·t士述解析預定義測試實例並輸_像之後還包 將上述顯不上述輪出圖像; 上述獲取輸出圖像之前還包括: 顯示===㈣細嫩纖出圖像在 〇 出圖^述獲取輪出圖像包括:獲取上述顯示位置的圖像作為輸 的不圖像輸出的時候可能出現®像在顯雜備上位置 顯示上^方法給出了通過尺規介面來確定輸出圖像在 的法’使本發明實施綱方法具有好 可選地,上述獲取顯示位置的圖像包括: 通過光學子元識別的方式獲取上述輪出圖像中的字元。 是,施方式,給出了圖像獲取的—種方式,可以理解的 用其他的方式來獲取上述顯示位置的圖像的方法也是可 13 201039617 以的,對此本發明實施例不作限定。 麵IS對㈣哺㈣像與默翻試實例的預 ^峨進行運算,制輪出_ 行對比,·圖像輪廓與預定義測試實例的預期圖像輪廓進 Ο 土述獲取到的輸出圖像與預期圖像相似度在設定的範圍 設定is:到的輪出圖像輪廓無期圖像輪廓的相似度在 内包括 差異上^基翔像轉酬财法,可以避免顏色 關心輪_像的麵對職絲奴的影響;在比較 法。園料輪廓的時候可以採用基於圖像輪廓的測試方 像進ί對ttl觀顺輸朗賴狀義職實_預期圖 〇 獲取到的輸出圖像圖元進行平均分佈捂粑絲化人 -義色彩的圖元值比例;該圖元二^二符合預 例在設定的範圍 測試輪出〔圖像的3 的測試方法,可以更明確地 較關心輸出圖像的色^ 松]圖像色彩的相似度,對於比 方法。 乂時候可以採用基於圖像顏色的測試 包括該獲取到的輸_像與預_像相似度在設定的範圍内 内;獲取到的輸出圖像的預期色彩圖元值比 201039617 或上述輪出圖像為測試結果字元圖像; 進行iiif取到的輸_像與預定義賴實_預期圖像 將獲取到的輸出圖像中的字元與預定義字元進行對比. 内包i述獲取到的輸出圖像與預期圖像相似度在設定的範圍 獲取到的輪出圖像中的字元為表示通過的字元。 Ο =撤義的測軟體 定義的 果月匕约使測試結果的獲取難度降低。就 ^ : 11 : ^ τ ^ 試實’用於通過數位電視終端軟體解析預定義測 ❹ 輸出圖像獲取單元202,用於獲取上述輸出圖像; 試實增取到的輪出圖像與預定_ 於二出圖像與預期 結果為未通過。 。果為通過,否,則測試 測試麵像得到 由於採用預定的相似度範圍作為是否通過‘:二:卜了, 15 201039617 人的理解偏差,從而提高了測試的可靠性。 可選地,上述獲取輸出圖像為: 像·獲取預定義測試實例中通過區域座標標示區域的輪出圖 區域貝二:Γ像為:預定義測試實例中通過區域座標標示 像比較 定的式’可以將輪出圖像的比較範圍縮小到—個確 =從而降低圖像比較的複雜度,同時也能提高圖像= 輸出述數位電視終端軟贿析預定_試實例然後 實例連細妓少兩__财義測試 包括找將輸出圖像與預定義測試實例的議_進行對比 圖 Ο 方 像進=獲取到的輸出圖像與上述輸出圖像對應的預期 法,上莫提供了連續測試多個預定義測試實例的 測試結果。 ’ 需麵試的多種實例的 可選地,如第3圖所示,上述對比單元包括: 算’ 輪:通過索貝爾運算子對輸出圖像進行運 測試ί例進述輸出圖像輪廓與預定義 16 201039617 菌内包括 =述獲取_輸_像與_圖像相 似度在設定的範 到的輸出圖像輪廓與預期 設定的範圍内; 圖像輪摩的相似度在 Ο Ο 圍 内 差異上=¾象對輪r:方式, 可以避免顏色 r_姆廓物可:二 或,上述對比單元包括·· 平丄:子 圍内獲取到的輸出圖像與預期圖像相似度在設定的範 ;獲取到的輸出圖像的預期色彩圖元值比例在設定的範 測試色的測試f式 ,可以更明確地 較關心輸出圖色彩的相似度,對於比 方式。 α的時候可以採用基於圖像顏色的測試 或’上述輸出圖像為測試結果字元圖像; 上述對比單元包括: 預』;於將獲取到輸出圖像中的字元與 圍内=述獲取賴輸㈣像與糊®像相在設定的範 獲取到的輪出圖像中的字元為表示通過的字元。 17 201039617 在解析論式,數位電視終端軟體 實例的測試結果’上述測試的結果上=義的測試 圖像來表&amp;謂胁财咖=字元 以直接將獲取到的輸出圖像與預式;像對比的時候可 可以得_!試絲,使戦結細獲行對比就 自心本發明實施例還提供了 1 採集伺服器401,用於獲取輪出圖 ❹ Ο 預定她實例得到 定義==:^:輪果= 庫飼服器; n収結果發送給資料 資料庫舰器4G3,用於接收並保存上述測試结果· 結果前臺用戶端·,餘獲取倾庫鑛雜存的上述測試 的標準,消除了’ 輸出縱端賴糾贼_对例然後 實例數纖㈣'術_定義測試 18 201039617 上述將輪出圖像與預定義測試眘 包括: 气貫例的預期圖像進行對比 2獲取到的輸出圖像與上述輪出圖 像進行對比 像對應的預期圖 Ο 上述實施方式,提供了連續測 法,上述多個預定義測試實例可以 預定義測試實例的方 通過連續的測試實例可以—次測試=^_試目的來確定; 測試結果。 、出需要測試的多種實例的 期圖ίίί對與預定義測試 通過索貝爾運算子對輪出圖像 靡;將上述輪峨 實例的預 行對比; 内包括 ^取轉_咖__嶋設定的範 的輸崎峨預期圖像輪 圍 設定的範圍内; #的相似度在 影響;在比較 差異、試方式’可以避免顏色 以輸== 元格式、對測試結果造成的 式。俺__树_鳴廓的測試方 像進I亍對比蝴哺4 ®像與預定義測試實例的預期圖 定義色彩的心f:象表 =符合預 上述獲取到的輸_像與預_像相似度在設定的範圍 201039617 内包括: 内 獲取到的輪出圖像 只J色形圖π值比例在設定的範圍 可以更明確地 測試輸出顏色的測試方式…— 較關心輸出圖像的^ ‘疋的輸出圖像色彩的相似度,對於比 方式。 巴杉的時候可以採用基於圖像顏色的測試 為測試結果字元圖像; Ο 〇 進行取到的輸岫像與預定義 測試實例的預期圖像 ㈣職細行對比; 内包括y獲取到的輪出圖像與預期圖像相似度在設定的範圍 獲取到的輸出圖像中的字元為表示通過的字元。 在解為基於腳本的測試方式’數位電視終端軟體 例後可以給出解析上述預定義的3 丨腳本的測試方式,在圖像對比的時候可 可輸if像與預定義的結果圖像進行對比就 τ以仔到獻結果’賴㈣試結果的獲取難度降低。 第四實_,本㈣實施·給出了上述第—實施 二實施例的思想的更詳細的實施方式。 在本實施例中,實例(CASE)為測試用例(也可稱為測試 實例),在本發明實施例中的測試用例可以以CASE圖片的方 式表現出來,故文中提到CASE圖片可以認為是一個CASE。 解析測試用例的設備’可以為硬體數位電視終端,例如:機頂 20 201039617 盒,也可以為模擬數位電視終端,例如:模擬器。被測試的設 備:可以為數位電視終端軟體,而數位電視終端軟體可以嵌入 在一個運行環境中,上述環境可以是硬體數位電視終端,也可 以是模擬數位電視終端,故被測設備可以理解為:實體設備也 可以為模擬設備。 可以將本發明第一實施例中步驟101和102理解為測試用 例的準確識別,包括兩種情況; f (1)靜態CASE編號識別(可以理解為單個測試用例的識 別): ° 〇 所s胃靜態CASE編號識別,是對一個固定的CASE圖片提 取該CASE編號的方法,每一個有效的CASE圖片都必須有一 個編號,識別實現如下: 步驟1 ·讀取CASE圖片編號區域的座標位置,上述編號 區域可以是用戶輸入的固定位置; 步驟2:根據該座標位置截取CASE圖片編號區域子圖片; 步驟3 :利用光學字元識別(〇ptical Character Recognition,OCR)技術對該編號子圖片進行字元識別; Ο 步驟4 :對獲得的字元識別結果進行分析校驗,判斷是否 符合編碼規則; 通過以上幾個步驟就完成對一個靜態的CASE 準確識別。 (2)動態連續下發CASE馨別(可用理解為多個測試用例 的識別): 在測試環境中,母個CASE可以間隔固定時間連續動態地 通過終端軟體自動下發、接收並進行測試;動態連續下發CASE 鐾別可以_為騎個CASE _達準確減採樣’然後對採 21 201039617 T +的“靜態⑽編號朗”方法進 打識別的動態過程,實現方式可以為: 步驟1 .每隔2秒鐘採樣一次接收到的⑽圖片·上 述採樣的週期設置為其他_例如〗秒等 發明實施例不作限定,· 疋J 乂的對此本 像處理技術比較本次採樣到的⑽圖片 ‘ 與上—人採樣1的圖片進行圖像輪摩比較,而且只需要比較前後 兩個CASE圖片的編號區域的輪廊·· 而竞比伽傻 Π y 較結果不同(如果本次是第一次採樣,上次採樣圖 ,較結果肯定不同,否則說明前後CASE編號不 圖片到來標誌,並記錄當前時間為新case 圖片到來的時間; 如果比較結果相同,判斷當前時間與上次新CASE圖片到 =時間之差是否超過號呈現不變_,該“CASE編 遽呈現不變時間”是由“CASE間隔跳轉時間,,計算得到。如 果超過,可以確定當前⑽圖片為有效的⑽圖片,於是 =通過靜態CASE編號識別”方法對其翻,進入測試處 理&gt;711•程;否則重複執行上述步驟1和步驟2。 舉例說明:假設CASE頁面跳轉時間⑴為8秒,而一 固CASE頁面從開始跳轉進入到整姐以邠頁面最终呈現完 J可能需要1〜6秒的時間⑻,當檢測到新CASE頁面到 β二不能立即抓圖作為CASE圖片,因為此時的CASE圖片很有 =月b不元整。由於檢測採樣是間隔2秒(评)進行一次的,從 測到新CASE頁面到來至該頁面最終完整呈現這段時間(τ) &amp;CASE編號一直是不變的(可以理解為:從檢測到新的CASE 開始,需等上一段時間τ,這段時間被稱為CASE編號呈 =變時間,才可以抓圖作為有效的CASE圖片),經驗總結大 致為:τ = (I - w) χθ.6 ; 22 201039617 可以將本發明第-實施例中步驟1〇3 比較’測試比較的方式可以分為3種類型:用例的 基於顏色測試以及基於腳本測試,它們的測試大 步驟1 :讀取該CASE測試屬性的標注區域; 目同· 步驟2 ··遍曆該CASE測試屬性的標注區域: 如果該標注區域是要求基於輪廓測試: 則’首先截取該⑽:測試圖片的標注區域 後,讀取該CASE對應編號的標準則,截取⑽Q Compare the acquired image images obtained above. The above embodiment of the image of the image corresponding to the image of the money, the above embodiment provides a continuous method of the above-mentioned plurality of predefined test real and the evening of a predefined test instance through a continuous test instance can be a 4, by different tests Purpose to determine; test results. - There are multiple instances of the test that need to be tested. Alternatively, the above acquisition takes turns to obtain the desired output image.匕 : 通过 通过 通过 通过 通过 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像 图像In the example, this will be explained in more detail. At least two different predefined test instances have an image; '..., w is used to mark the image, and one is displayed as the end of the logo. The image is compared with the expected image of the predefined test instance. The i image 'is determined - the beginning of the round test; if the 袖 采 袖 袖 , , , , 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 The example shows that the Lionheart passed the test. Bundle the mark ~ to determine the start or end of a round of testing. Included in the analysis of the predefined test examples and after the input _ image, the package will display the above-mentioned rounded image; the above-mentioned acquisition of the output image also includes: Display === (4) Fine and fine fiber image in the output The method of obtaining the rounded image includes: obtaining the image of the above display position as the output of the non-image output may appear as shown on the display of the position on the display device. The method is given to determine the output image through the ruler interface. For example, the method of the present invention has a method of obtaining the display position. The obtaining the image of the display position includes: acquiring the characters in the rounded image by means of optical sub-component identification. </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> </ RTI> Face IS (4) Feeding (4) Image and the pre-test of the default test instance, making a round-out _ line comparison, image contour and the expected image contour of the predefined test instance Ο The acquired output image The degree of similarity with the expected image is set in the set range is: the similarity of the contour of the out-of-round image of the rounded image contour including the difference is based on the difference, and the face of the color care wheel can be avoided. The influence of the slaves; in the comparative law. When the contour of the material is used, the image of the image based on the contour of the image can be used to calculate the average image of the output image elements obtained by the expected image. The ratio of the color element value of the color; the picture element 2^2 conforms to the pre-example test round in the set range [the test method of the image 3, which can more clearly care about the color of the output image] Similarity, for the ratio method. The image color-based test may be used to include the acquired image-to-pre-image similarity within a set range; the obtained output image has an expected color-element value ratio of 201039617 or the above-mentioned round-out chart. Like the test result character image; the input image obtained by iiif and the predefined real_predicted image will compare the characters in the obtained output image with the predefined characters. The character in the rotated image obtained by the output image and the expected image similarity in the set range is a character representing the passing. Ο = The software of the undefined software defines the difficulty of obtaining the test results. ^ : 11 : ^ τ ^ Trial 'for parsing the predefined test by the digital TV terminal software output image acquisition unit 202 for acquiring the above output image; trial-and-acquisition of the round-out image and the reservation _ The image is out of the second and the expected result is failed. . If it is passed, no, then the test surface image is obtained. Because the predetermined similarity range is adopted as the pass or not, the reliability of the test is improved by the understanding deviation of ‘:2: 卜, 15 201039617. Optionally, the obtaining the output image is: acquiring the wheel-out area of the area marked by the area coordinate in the predefined test instance. The second image is: the predefined test instance is marked by the area coordinate. 'You can narrow the comparison range of the rounded image to - a certain = thus reducing the complexity of the image comparison, but also can improve the image = output the digital TV terminal soft bribery scheduled _ try the example and then the example is even less The two __ financial test includes finding the output image and the pre-defined test instance _ _ Ο Ο = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Test results for multiple predefined test instances. Optionally, as shown in Figure 3, the above comparison unit includes: Counting 'round: testing the output image through the Sobel operator ί Example of output image contour and predefined 16 201039617 Intrabacteria include = description of the acquisition_image_image and _image similarity within the range of the set output image contour and the expected setting; the similarity of the image rotation is within the difference of Ο = = 3⁄4 like the wheel r: mode, the color r_m can be avoided: or the above comparison unit includes: · flat: the similarity between the output image obtained in the sub-area and the expected image is in the set range; The expected color element value ratio of the obtained output image can be more clearly related to the similarity of the output image color in the test f formula of the set standard test color, for the ratio mode. When α is used, the image color based test or 'the above output image is used as the test result character image; the above comparison unit includes: pre-"; the character and the surrounding character in the output image will be acquired. The characters in the rounded image acquired by the set image in the image of the paste and the paste image are the characters that pass through. 17 201039617 In the analytic theory, the test result of the digital TV terminal software example 'the result of the above test = the test image of the meaning table &amp; threat risk = the character to directly obtain the output image and the pre-form As for the comparison, you can get the _! test wire, so that the 戦 细 获 获 就 就 就 就 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 本 采集 采集 采集 采集 采集 采集 采集 采集 采集 采集 采集 采集=:^: rotation fruit = library feeding machine; n receiving results sent to the data library 4G3, used to receive and save the above test results · results front-end user terminal, the remaining test for the accumulation of the deposits Standard, eliminates the 'output vertical 赖 thief _ _ example and then instance number fiber (four) 'surgery _ definition test 18 201039617 The above will take out the image with the pre-defined test carefully include: the expected image of the gas case comparison 2 get The expected image corresponding to the output image of the above-mentioned rounded image. The above embodiment provides a continuous measurement method. The above plurality of predefined test instances can predefine the test instance by successive test instances. - test = ^ _ test purpose to determine; test results. , the period diagram of the various instances that need to be tested ίίί and the predefined test through the Sobel operator pair to rotate the image 靡; the above-mentioned rim instance of the pre-line comparison; including the ^ _ _ _ _ _ 嶋 settings Fan's input is expected to be within the range of image wheel circumference setting; #similarity is in effect; in comparison of differences, test mode 'can avoid color to lose == yuan format, the formula caused by test results.俺 __ tree _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The similarity in the set range 201039617 includes: The rounded image obtained within the J-shaped π value ratio can be tested more clearly in the set range. The test method of the output color is more... The similarity of the color of the output image of the ,, for the ratio. In the case of Bashan, the image color-based test can be used as the test result character image; Ο 〇 the obtained image is compared with the expected image of the predefined test instance (4); The character in the output image obtained by the rounded image and the expected image similarity in the set range is a character representing the passing. After the solution to the script-based test method 'digital TV terminal software', you can give a test method for parsing the above-mentioned predefined 3 丨 script. When the image is compared, you can compare the if image with the predefined result image. τ is less difficult to obtain the results of the results of the Lai (four) test results. Fourth Reality, (4) Implementation A more detailed embodiment of the above-described first embodiment and the second embodiment is given. In this embodiment, the example (CASE) is a test case (also referred to as a test instance), and the test case in the embodiment of the present invention can be expressed in the form of a CASE picture, so the CASE picture mentioned in the text can be considered as a CASE. The device for parsing the test case can be a hardware digital television terminal, for example, a set top 20 201039617 box, or an analog digital television terminal, such as an emulator. The device to be tested: it can be a digital TV terminal software, and the digital TV terminal software can be embedded in an operating environment. The above environment can be a hardware digital television terminal or an analog digital television terminal, so the device under test can be understood as : The physical device can also be an analog device. Steps 101 and 102 of the first embodiment of the present invention can be understood as accurate identification of test cases, including two cases; f (1) Static CASE number identification (can be understood as identification of a single test case): ° 〇 s stomach The static CASE number identification is a method for extracting the CASE number for a fixed CASE picture. Each valid CASE picture must have a number. The identification is implemented as follows: Step 1 · Read the coordinate position of the CASE picture number area, the above number The area may be a fixed position input by the user; Step 2: intercepting the CASE picture number area sub-picture according to the coordinate position; Step 3: performing character recognition on the numbered sub-picture by using 〇ptical Character Recognition (OCR) technology Ο Step 4: Analyze and verify the obtained character recognition result to determine whether the coding rule is met. Through the above steps, the accurate recognition of a static CASE is completed. (2) Dynamically and continuously issuing CASE (can be understood as the identification of multiple test cases): In the test environment, the parent CASE can be automatically sent, received and tested through the terminal software continuously and dynamically at fixed time intervals; Continuously issued CASE screening can be _ for riding CASE _ up to accurate downsampling' and then the dynamic process of identifying the "Static (10) numbering Lang" method of 21 201039617 T +, the implementation can be: Step 1. Every The received (10) picture is sampled once every 2 seconds. The period of the above sampling is set to other _, for example, seconds. The invention is not limited, and 疋J 乂 compares this (10) picture with this image processing technology. The image of the upper-person sampling 1 is compared with the image, and only the front and back of the two CASE images are compared. The result is different (if this is the first sampling) The last sampled picture is definitely different from the result. Otherwise, the CASE number is not the picture arrival sign, and the current time is the time when the new case picture arrives. If the comparison result is the same, Whether the difference between the current time and the last new CASE picture to = time is greater than the number is unchanged _, the "CASE compilation presents a constant time" is calculated by the "CASE interval jump time, calculated. If exceeded, the current can be determined (10) The picture is a valid (10) picture, then = it is identified by the static CASE number identification method, and it enters the test process &gt; 711 • otherwise; otherwise, the above steps 1 and 2 are repeatedly executed. Example: Assume that the CASE page jump time (1) is 8 seconds, and a solid CASE page jumps from the beginning to the whole sister to the end of the page. It may take 1~6 seconds (8). When the new CASE page is detected, it can't immediately capture the picture as a CASE picture. At this time, the CASE picture is very = the month b is not integer. Since the detection sample is performed once every 2 seconds (evaluation), from the time when the new CASE page is detected to the time when the page is finally fully presented (τ) &amp; CASE The number is always the same (can be understood as: from the detection of the new CASE, it is necessary to wait for a period of time τ, this time is called CASE number = change time, you can capture the map as a valid CASE Picture), the experience summary is roughly: τ = (I - w) χ θ.6; 22 201039617 The method of comparing the test comparison of the steps 1〇3 in the first embodiment of the present invention can be divided into three types: the use case based Color test and script-based test, their test step 1: read the label area of the CASE test attribute; the same as step 2 · traverse the label area of the CASE test attribute: If the label area is required to be based on the contour test : Then 'first intercept the (10): after testing the marked area of the picture, read the standard of the CASE corresponding number, intercept (10)

的標注區域子圖片;最後’利用圖片處理技術比較該^ 試圖片的標注區域子圖片與該CASE標準圖片的標注子 圖片、,如果比較結果超過設定的期望通過門限,判^該°°以 測試通過,否則不通過; 人 如果該標注區域是要求基於顏色測試:The label area sub-picture; finally 'use the image processing technology to compare the label area sub-picture of the ^ test picture with the label sub-picture of the CASE standard picture, and if the comparison result exceeds the set expectation pass threshold, judge the ° ° to test Pass, otherwise not pass; if the marked area is required to be based on color testing:

則首先截取該CASE測試圖片的標注區域子圖片;然後, 掃描該CASE測試圖片的標注區域子圖片的每一個圖元了判斷 每一個圖元的顏色值是否符合期望值;最後統計符合期望顏色 值的圖元點所占的比例’如果比例結果超過設定的期望通過門 限’判定該CASE測試通過,否則不通過; 如果該標注區域是要求基於腳本測試: 、貝1首先截取該CASE測試圖片的固定的腳本結果顯示區 域子圖片;然後,通過光學字元識別(OCR)技術識別該子圖 ^的結果字串,如果該結果字串為“PASS”,判定該CASE測 試通過’否則不通過; 步驟3 :保存測試結果。 更具體地,上述實施方式的實現過程可以分為6個部分: (1)製作測試用例; 23 201039617 自動測試的每一個CASE它的呈現來源都可以為一個或多 個網頁: 自動測試過程中把每一個CASE當成一張圖片來處理,把 測試從觀查終端軟體解析呈現方式轉化為對該呈現畫面圖片 的圖像處理方式,這樣每張圖片就是一個獨立的CASE。在這 裏,這張CASE圖片被稱為標準圖片,為方便唯一區分每—個 CASE,在每個CASE的左下方通過超文本鏈接標示語言 (Hypertext Markup Language,HTML)聊本嵌人一個六公二 數位編碼加以識別,例如“010101” ;First, the labeled area sub-picture of the CASE test picture is intercepted; then, each picture element of the labeled area sub-picture of the CASE test picture is scanned to determine whether the color value of each picture element meets the expected value; and finally, the statistics meet the expected color value. The proportion of the element point 'if the ratio result exceeds the set expectation threshold', the CASE test passes, otherwise it does not pass; if the label area is required to be based on the script test:, Bay 1 first intercepts the fixed CASE test picture The script result displays the area sub-picture; then, the result string of the sub-picture is identified by optical character recognition (OCR) technology, and if the result string is "PASS", it is determined that the CASE test passes 'otherwise not passed; step 3 : Save test results. More specifically, the implementation process of the above embodiment may be divided into six parts: (1) making a test case; 23 201039617 Each CASE of the automatic test may be rendered by one or more web pages: during the automatic test process Each CASE is treated as a picture, and the test is transformed from the viewing terminal software parsing presentation mode to the image processing mode of the rendered picture picture, so that each picture is an independent CASE. Here, this CASE picture is called a standard picture. For the convenience of uniquely distinguishing each CASE, the Hypertext Markup Language (HTML) is embedded in the lower left of each CASE. The digit code is identified, for example "010101";

G 〇 ▲自動測試CASE製作主要有兩個方面:一個方面是自動 f CASE標準圖片選擇,在被用來作為測試用例標準圖片之 以依靠人的經驗驗證並確認呈現正確後,存儲為測試用 ίΐί圖片。以編號為“議101,,❺⑽為例,該測試用例 的測=象是“在源碼巾插人轉,流覽^衫可見”,預期 =是如果下面只有-行代碼而不是兩行,剩試通過”, 的肉眼觀測,確實符合預期現象’則可以將該圖片作為 迷免準圖片存儲在11定的地方供自動職比較。另-方面 叫參閱下面第(2)部分: (2)標注測試用例; 此測式用例都可以有特定的測試屬性和測試目的,這 以的都可以以文字或圖案的方式表現在 报快理m對於人〜職來說,_人的直接_,可以 是的測試屬性和測試目的,並得出測試結果。但 的ί讀轉獅職目的?電腦 測物和測試目的的含=:=== 201039617 自細嶋統中,這裏可崎過對⑽圖片 座標參數化存儲在將庫中供自動測耻較; ‘主 (3)測試用例下發; =的兩個步驟準備好了測試用例之後,就可以開始進入 ❹ 〇 iiH’如前所述,每一個case圖片都存在相對應的播 二i周頁)’為保證測試是連續的,需要將所有case網頁統 了存放’然後終端軟體通過導航功能經超文本傳輸協定 (Hypertext Transfer Protocol ? HTTP)/mm^ (Internet 訪問這些已製作好的CASE網頁,按順序或隨 機解析播發,母-個CASE網頁解浦發咖相同的時長,這 些都可以财設置導航錄妨改變,it人每-侧試分類, 首先進入,動跳轉設置頁面,在下sCASE頁面之前,可以預 先串連好母一個CASE頁面的上一個和下一個跳轉鏈接,只要 進入任意一個CASE頁面,自動跳轉通過嵌入CASE頁面自動跳 轉事件觸發從該CASE頁面的下一個跳轉開始,可以不再靠人 工作業遙控器進行翻轉;除了通過HTTP/IP網路下發CASE的 方式之外,還可以通過對象輪播產生器(〇bj.ec1: Car〇uselG 〇 ▲ automatic test CASE production has two main aspects: one aspect is the automatic f CASE standard picture selection, after being used as a test case standard picture to rely on human experience to verify and confirm the correct rendering, stored as test ίΐί image. Take the numbered "Proposal 101,, ❺ (10) as an example, the test case test = "In the source code towel inserted, the view ^ shirt visible", expected = if the following only - line code instead of two lines, left If you try to pass the "visual observation of the naked eye, it does match the expected phenomenon", you can store the picture as a fan-free image in the 11 places for automatic job comparison. The other side is referred to the following section (2): (2) Labeling test cases; this test case can have specific test attributes and test purposes, which can be expressed in text or pattern. m for people ~ job, _ person's direct _, can be the test attributes and test purposes, and get the test results. But what about reading the lion's job? Computer measurement and test purposes include::=== 201039617 From the fine system, here you can satisfactorily (10) picture coordinates parameterized storage in the library for automatic shame comparison; 'master (3) test cases issued; After the two steps of the test are ready for the test case, you can start to enter ❹ 〇 iiH 'as mentioned above, each case picture has a corresponding broadcast two i week page) 'To ensure that the test is continuous, you need to All the case pages are stored in the 'then the terminal software through the hypertext transfer protocol (Hypertext Transfer Protocol? HTTP) / mm ^ (Internet access to these prepared CASE pages, in order or randomly parsing the broadcast, the mother - a CASE The same time length of the webpage is the same as the time of the webpage. These can be changed by the navigation setting. It is divided into the side-by-side trials. First, enter the jump setting page. Before the next sCASE page, you can pre-connect the parent CASE page. The previous and next jump links, as long as you enter any CASE page, the automatic jump is triggered by the embedded CASE page. The automatic jump event triggers the next jump from the CASE page. It can be flipped by the remote control of the work industry; in addition to the way of sending CASE over the HTTP/IP network, it can also be passed through the object carousel generator (〇bj.ec1: Car〇usel

Generator,0CG)將CASE頁面當成一個完整的對象輪播 (Object Carousel ’ 0C)應用播發下去’數位電視終端通過 接收光纖同軸混合(HybridFiber-Coax,HFC)網路中的有線 電視(Community Antenna Television,CATV)信號也可以同樣 達到目的。 為準確檢測到測試開始,測試用例下發之前,設置下發頁 面之後,可以下發一個標識測試開始的標誌圖片,測試用例接 收時,可以檢測到測試實際是否開始: 檢測開始標諸,是通過OCR技術讀取圖像設定區域,當識 別結果為“開始(START) ”時認為開始標諸已經檢測到。測 25 201039617 試用例下發’經Η·264編碼器接收之後可能會變成如下产 形·上’左,右三個方向出現了多餘的黑色邊框,原因是 ^ 的輪出解析度(704x576)與數位電視終端軟體的輪出解析 (_^&lt;526)不同,造成有不重合的區域,對於不同的 ^ 出’這個不重合的邊框大小不是確定的,這樣會造成前面製作 (^ASE時所標注的關注區域的定位會有誤差,因為實際的椤、、主 區域參數參考值是按照沒有邊框影響的前提下標注的,、為^消 ^這個不確定的邊框帶來的誤差影響,自動測試系統通過引^ 尺規”的計算方法進行處理,具體實現如下: Ο 雖然上,左,右都存在黑色邊框,但是只要得到上邊和左 邊的黑色邊框的準確位置就可以準確定位標注區域的位置。由 =黑色邊框與終端輸出有效圖像之間存在明顯的分界線,找到 這個分界線就能準確知道邊框大小,我們開發了特定的尺規檢 測演算法來測試這些黑色邊框的位置,從而消除機 圖像尺寸和採集卡輸_像尺寸秘配對自動職造成= 響0 (4)測試用例接收; CASE頁面經過數位電視終端軟體解析之後輸出的都是統 -的數位電視視頻錄,卩往手酬試較將雜丨直接輸入 到電視機’然後通過人的肉眼進行觀測。&amp;於自動測試系統是 基於圖像處理H將触觀信雜樣成圖像進行處理,這 裏採用Η. 264編碼器直接接收數位電視終端的輸出然後對 Η. 264編碼器輸出採樣關鍵+貞圖。 經過H· 264編碼器輸出的視頻幀率可以為扔幀/秒, 意味這每秒鐘有25張圖像連續輸出,自動測試祕&lt;以不用 拿所有的圖片進行處理,因為連續多_像可能是同〆個畫面 内容’-個CASE頁面解析下發輸出之後,需要間隔〆定時間 之後自動跳制下-個卿頁面,錢個時間段裏,編碼器 26 201039617 ,出的每1幾乎是相同的畫面内容,這麼 谷,從中挑選完整的(CASE頁面所有元素被办入=的畫面内 ί代^&quot;—_像拿來被處觀可以達優 二=完整的、代表性的-_像叫做關鍵ΐ ΐΪΐ: i;: _,這裏我們使用圖像鏡頭分割的技術來: 兩個相鄰的㈣跳轉間隔時間為8秒,上一個 CASE解析之後經Η·264編碼器最終輸出為·· “〇1〇 Ο 〇 =2^解Ϊ之後經Η.264編碼器最終輪出為: 庠列/‘咖=實際這兩個獅圖像經過Η·咖編碼輸出的 序歹i疋oloioi被顯不了η#,然後顯示“〇1〇1〇2” ; 假定第0幀為CASE “010101”的第i幀,第n植爲 〇!0101的最後一幀’到了第η + 1幀開始為CASE 201 ,依此類推再經過η幀之後又會出現下一個case 圖像,假定Η. 264編碼器的輸出幀率是25幀/秒,CASE頁面 下發時間間隔為8秒,那麼η應該約等於25 X 8,這個數位 不是一個精確的數位,實際下發過程中,時間間隔不一定嚴格 準確,而且終端軟體的解析也不一定每次都能準確精確時間, 所以無法準確地讓電腦知道上一幀圖像與下一幀圖像發生了 變化’但疋由於連續多!jj貞圖像可能是通一個圖片内容,這樣可 以準確的讓電腦知道前一秒與前一秒的圖像發生了變化,或者 前兩秒與後兩秒的圖像發生了變化,可以通過間隔圖像採用, 然後比較圖像比較的方式來檢測圖像是否發生了變化,具體的 採樣檢測流程如下: 每間隔2秒,採樣一次,然後比較本次採樣的圖像與上 次採樣的圖像的相似度,如果相似度低於一定的門限,就認為 本次採樣的圖像與上次採樣的圖像内容是不同的,即一個新的 CASE圖片到達,然而此時的新CASE圖片還不一定是完整 的,因為一個CASE頁面經過終端軟體解析到呈現完整是有一 27 201039617 定時間延時的,所以當檢測到新的CASE圖片到達之後,還需 要等待一定延時時間,可以保證測試的CASE圖片是完整的, 具體的延時時間確定如:(CASE頁面下發時間間隔(默認 秒)-2) X 〇. 6 ; 〇 〇 比較兩個圖像是否相似可以採用比較兩幅圖像的灰度圖 像索貝爾(S0BEL)運算子圖像是否相似,以上述兩個CASE圖 片為例’計算其灰度圖像的S0BEL運算子圖像;然後逐個圖元 從左到右,從上到下掃描比較兩幅s〇BEL運算子圖像得出相 似度為61. 62 %,設定80. 00 %為兩個圖像基本相似門限, 所以檢測出這兩幅圖像内容不相同,為了提高更加檢測效率和 檢測的準;度’可以將比較區域縮小範圍到編號區域,由於每 個有效CASE都會嵌入一個六位元編碼,相鄰兩個CASE的六 位元編碼肯定是不同的,而且故入的位置是固定的;雄然相^ ^兩個CASE的六位元編碼肯定不同,但是一般只會有一個數 字不同,為了減少相同部分比例太多導致檢測準確度不高,可 =進7&quot;步縮小比較區域,直接拿編碼的後三位元區域進行檢測 综上所述’自細彳試纟統可以很精確的採樣檢測接收到 的元整的、有代表性的CASE。 (5)測試用例處理; 測试用例處理也就是圖月處理,測試處理的過程大致可以 分為四個過程: =戦⑽圖片:將圖像六位域位編碼怎麼能被系 ^這絲絲學字元朗⑽)技娜圖像上的 L轉為子疋’不管是資料庫存儲還是程式識別都以此六位 這樣可以讓自動測試系統知道正^ 製作準圖片··根據⑽ '編號在固定存儲已 SE標準圖片的網路位置讀取該CASE的標準圖 28 201039617 片’目的是為了讓測試圖片與標準圖片進行比較; 資料關注測試區域:根據_編號在⑽ 試處理有測試標注區域參數資訊’目的是讓測 可以==、、GASE、财職區域職峨處理:同-個CASE 測諸魅二主區域供測試,每-個標注區域可以是不同關注 1 ’匕們各自單獨測試;測試處理分為三種類型測試: A.基於圖形輪摩測試, · Ο Ο 财於要求測試的屬性’很難用文字能夠描述,但是呈 ^匕較固疋,比如:CASE的測試屬性是框内部分,當框 個圓點和五角星的時候,測試通過,對於自動测試: =:麼檢測什麼才叫-個圓點和五角星,多大的圓點和多大 星才算符合,圓點與五角星位置怎樣擺放才算通過?這 就需要用到前面製作CASE時的標準圖片: 準圖片可以經過人I事先挑選準備好,只要實際測試 ,▲接收到圖片與標準圖片一模一樣,或非常相似,就算通 過。這裡利用邊緣檢測技術,得到測試圖片的輪庵資訊與標準 圖片的輪締訊,首辆輯這義圖#職屬性_注區域 灰度圖像的S0BEL運算子處理制實賴試屬性輪廊資訊。 然後比較鮮職屬性輪輕訊和實關試屬性轉資訊,比 較方式可以為逐個圖元從左到右,從上到下掃描比較得出它們 的相似比例,例如相似比例為86· 15%,設定通過門限為8〇 /6 ’所以此用例測試通過,否則不通過。 基於輪廓測試的優點是:避免了顏色差異造成的影響;避 免了光線強弱造成的影響;避免了圖元格式造成的影響。 B:基於圖像顏色測試; 有時對於要求測試的屬性是顏色敏感的’比如:CASE的 29 201039617 ,試屬性分別為兩個紅線框内部分,如果I和點的顏色為紅 ’ =職_,對於自賴m錄姻職屬性的顏 ^色隨光線強弱、終端設備顯示、Η· 264編碼採集等原因 同程度的變化。以上面的CASE為例’其⑽下發源 ^面中,於該測試屬性!和點顏色都是採用三原色⑽ 描述成(255 ’G,G) ’而實際接收採集後點和I 顏色值可能變成:(48,49,31)和⑽,4,22),顏 ίίίΐΓ都發生了變化,而且—種顏色的名稱是人自然語 1==_義,同—個名稱定義的顏色表現在視覺效果Generator, 0CG) treats the CASE page as a complete object carousel (Object Carousel '0C) application broadcasts. 'Digital TV terminals receive cable TV in the Hybrid Fiber-Coax (HFC) network (Community Antenna Television, The CATV signal can also achieve the same purpose. In order to accurately detect the start of the test, before the test case is sent, after setting the delivery page, a flag picture indicating the start of the test can be issued. When the test case is received, it can be detected whether the test actually starts: the detection start is marked by The OCR technique reads the image setting area, and when the recognition result is "START", it is considered that the start label has been detected. Measure 25 201039617 The test case is issued after the 'Phase 264 encoder is received, it may become the following shape. On the left and right, there are extra black borders in the three directions. The reason is that the round-out resolution of ^ (704x576) and The round-trip parsing (_^&lt;526) of the digital TV terminal software is different, resulting in non-coincident areas. For different ^'s, the size of the non-coincident border is not certain, which will cause the front production (^ASE) There is an error in the positioning of the marked area of interest, because the actual 椤, and the main area parameter reference values are marked on the premise that there is no border effect, and the error is caused by the uncertainty of the frame. The system is processed by the calculation method of the guide ruler. The specific implementation is as follows: Ο Although there are black borders on the top, left and right, the position of the marked area can be accurately located as long as the exact position of the upper and left black borders is obtained. There is a clear dividing line between the = black border and the terminal outputting the effective image. Finding this dividing line will accurately know the border size. We developed A specific ruler detection algorithm is used to test the position of these black borders, thereby eliminating the machine image size and the capture card input image size. The pairing is automatically created = 0 (4) test case reception; CASE page passes through the digital TV terminal software. After parsing, the output is a digital video recording of the system. The trick is to input the video directly into the TV' and then observe it through the human eye. &amp; The automatic test system is based on image processing H. The touch signal is processed into an image for processing. Here, the 264 encoder is used to directly receive the output of the digital TV terminal and then output the sampling key + map for the 264 encoder. The video frame rate output by the H·264 encoder. Can be throwing frames / second, which means that 25 images per second are continuously output, automatically test the secret &lt; not to take all the pictures for processing, because consecutive multiple _ like may be the same picture content '- a CASE After the page parsing is sent out, it is necessary to automatically jump to the next page after the set time. In the time period of the money, the encoder 26 201039617, each of the 1 is almost the same picture. Rong, such a valley, from which to choose the complete (CASE page all elements are taken into the screen = ί ^ ^ ^ _ _ like to be treated to reach the best two = complete, representative - _ like the key ΐ ΐΪΐ: i;: _, here we use the technology of image lens segmentation: two adjacent (four) jump interval is 8 seconds, after the last CASE analysis, the final output of the 264264 encoder is ··· 〇Ο 〇=2^ After the Ϊ 264 264 264 encoder finally turns out as: 庠 column / 'Caf = the actual two lion images after the Η · coffee code output of the order 歹 i疋oloioi is not visible η# And then display "〇1〇1〇2"; assume that frame 0 is the ith frame of CASE "010101", the nth frame is 〇! The last frame of 0101' is the CASE 201 at the beginning of the η + 1 frame. After the n-frame is passed, the next case image will appear. Suppose the output frame rate of the 264 encoder is 25 frames/second, and the CASE page is sent at 8 seconds. Then η should be equal to 25 X 8 This digit is not an exact digit. During the actual delivery process, the time interval is not necessarily strictly accurate, and the terminal is soft. Resolution is not necessarily accurate precise time every time, so I can not exactly let the computer know that a picture from the next frame image has changed 'but due to the continuous multi-Cloth! The jj贞 image may be a picture content, so that the computer can accurately know that the image of the previous second and the previous second has changed, or the image of the first two seconds and the last two seconds has changed. The image is taken, and then the image comparison method is compared to detect whether the image has changed. The specific sampling detection process is as follows: sampling every interval of 2 seconds, and then comparing the image of the current sampling with the image of the last sampling. The similarity, if the similarity is lower than a certain threshold, it is considered that the image of this sampling is different from the content of the last sampled image, that is, a new CASE image arrives, but the new CASE picture at this time is not yet It must be complete, because a CASE page is parsed by the terminal software until the rendering complete has a time delay of 27 201039617, so after detecting the arrival of a new CASE picture, it still needs to wait for a certain delay time to ensure that the tested CASE picture is The complete, specific delay time is determined as follows: (CASE page delivery time interval (default seconds) -2) X 〇. 6 ; 〇〇 Compare two images is No similarity can be used to compare the gray image of the two images Sobel (S0BEL) operation sub-image is similar, take the above two CASE pictures as an example 'calculate the S0BEL operator image of its gray image; then one by one From left to right, the image is compared with the two s〇BEL operator images from top to bottom. The similarity is 61.62%, and 80. 00% is set as the basic similarity threshold of the two images, so this is detected. The content of the two images is different, in order to improve the detection efficiency and the accuracy of the detection; the degree 'can narrow the comparison area to the numbered area, since each valid CASE will embed a six-digit code, six adjacent CASE The bit coding is definitely different, and the location of the entry is fixed; the binary phase ^ ^ two CASE six-bit encoding is definitely different, but generally only one number is different, in order to reduce the proportion of the same part too much The detection accuracy is not high, you can = step into the 7&quot; step to narrow down the comparison area, and directly take the coded post-three-dimensional area for detection. The above-mentioned self-small test system can accurately detect the received integers. ,Have Table of CASE. (5) test case processing; test case processing is also graphical month processing, the process of test processing can be roughly divided into four processes: = 戦 (10) picture: how to encode the image six-bit field bit ^ ^ silk Learning the word lang (10)) The L on the image of the techno image is changed to the 疋 疋 ' Whether it is the data storage or the program identification, the six-digit can make the automatic test system know that the positive picture is produced. · According to (10) 'Number in Fixed storage of the standard location of the SE standard picture to read the standard of the CASE Figure 28 201039617 The purpose of the film is to compare the test picture with the standard picture; the data focus on the test area: according to the _ number in (10) test processing with test label area parameters The purpose of the information is to allow the test to be ==, GASE, and the financial job area to deal with: the same - a CASE test the second main area for testing, each of the marked areas can be different concerns 1 'we each individually tested; The test processing is divided into three types of tests: A. Based on the graphical round-robin test, · Ο Ο 于 于 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 要求 ' ' ' ' ' Sex is the part of the box. When the box is round and the five-pointed star, the test passes. For the automatic test: =: What is the detection of what is called - a dot and a five-pointed star, how big a dot and a large star are met. How do you position the dots and the five-pointed star? This requires the use of the standard picture in the previous production of CASE: The quasi-picture can be selected in advance by the person I, as long as the actual test, ▲ received the picture is exactly the same as the standard picture, or very similar, even if passed. Here, using the edge detection technology, the round information of the test picture is obtained from the rim information and the standard picture. The first set of this picture is the attribute attribute_Note area gray image S0BEL operation sub-process processing real test attribute round gallery information . Then compare the information of the fresh job attribute light and the actual test attribute, the comparison method can be from left to right, from top to bottom, and the similar proportions are obtained from the top to the bottom, for example, the similar proportion is 86·15%. Set the pass threshold to 8〇/6 ' so this use case test passes, otherwise it does not pass. The advantages of contour-based testing are: avoiding the effects of color differences; avoiding the effects of light intensity; avoiding the effects of primitive formats. B: Based on image color test; Sometimes the attribute required to test is color-sensitive' (eg: CASE 29 201039617, the test attribute is the two red line inside the box, if the color of I and point is red ' = job _ For the self-respecting of the attributes of the marriage of the color of the color with the light intensity, terminal equipment display, Η · 264 code collection and other reasons of the same degree of change. Take the above CASE as an example. Its (10) is issued in the source area, in the test attribute! And the point color is described by the three primary colors (10) as (255 'G, G) ' while the actual receiving point and the I color value may become: (48, 49, 31) and (10), 4, 22), and the yan ί ΐΓ Change, and - the name of the color is human natural language 1 == _ meaning, the same name defines the color in the visual effect

G 〇 nil ),(255,132,132),(174)〇^)^255^0, ,64,124)都被認為是紅色,而RGB值各不相同, 以不能以比較_是否相同,或比較_在 異顏^能產生的變化差 多射Π色值間無法比較’自動測試系統將對顏 产)、斷由+.RG?色值空間變換到色彩模型[Hue (色 ίH (飽和度),Value (純度),_空間,鑒於 收的時候根據具體的環境會發生變化,自動測 猶社截織少而針的幾種顏色 ====;=?分成人自然 測試系統採用的顏色測試麵擬較 符號化的顏色值與騰顏色值對^時候可以將 色識別的問題。 ㈣值對應起來,讀就可以解決顏 的區的區域標注不基於輪廓測試屬性 以將整個標注的區域看作一個整體谁 全部“測試顏蓋的區域内 色可能跟其他顏色塊相鄰很近,對此,顏 30 201039617 求標注區域崎全侧元轉是期望峨色值,不過可以在標 注區域内平均抽樣⑽_元點,織制這100侧元點的 顏色值’最後統計這100個圖元點令有多少個圖元點符合期望 的顏色值,設定-個通過的門限值5,也就是,當標注區域記 ,體在大於等於5%賴元點符合财顏色值,制試屬性就 算f試通過,同理還可以應用於顏色排除的測試,即“反色” 測試’在標注區域内只要不出現期望的顏色,測試屬性的測試 通過’ Η限正好相反,當存在大於等於5%的圖元點符合期望 顏色值時,測試屬性的測試不通過; C:基於腳本測試;G 〇nil ), (255,132,132), (174)〇^)^255^0, ,64,124) are all considered red, and the RGB values are different, so that they cannot be compared _ is the same, Or compare _ can not be compared between the difference of the multi-shot color can be compared between the 'automatic test system will be on the production", break from the +. RG color value space to the color model [Hue (color ίH (saturation Degree), Value (purity), _ space, in view of the change in the environment according to the specific circumstances, the automatic measurement of the quilt is less woven and several colors of the needle ====; =? divided into human natural test system The color test surface is compared with the symbolized color value and the gradation color value. The color recognition problem can be recognized. (4) The value is matched, and the reading can solve the area label of the area of the color. The contour is not based on the contour test attribute to mark the entire labeled area. As a whole, whoever "tests the color of the area of the cover may be close to other color blocks. For this, Yan 30 201039617 asks to mark the area of the full side of the area is the expected color value, but can be in the marked area Average sampling (10)_yuan points, weaving the color value of the 100 side points 'most Counting the 100 primitive points to determine how many primitive points meet the expected color value, and set a pass threshold of 5, that is, when the marked area is recorded, the body is equal to 5% of the Lai Yuan points. If the test attribute is passed, the same can be applied to the color exclusion test, that is, the "inverse color" test. As long as the desired color does not appear in the marked area, the test attribute is tested by 'limitation is the opposite, when When there are 5% or more of the pixel points meeting the expected color value, the test attribute test fails; C: based on the script test;

D 有時對於可以直接使用HTML腳本語言檢測頁面解析是否 成功的CASE,可以結合HTML腳本以及圖像處理來達到測試目 的,比如· CASE的測試屬性是測試文本框的賦值功能,只要 檢測到標題(title)定義值為“測試通過”,這個測試^算 通過,檢測title定義值完全可以交由HTML腳本去執行, 為讓自動測試系統很快識別HTML腳本功能是否通過,可以由 腳本執行之後在頁面固定的位置嵌入固定的識別字元,這樣可 以滿足自動測試系統一貫的字元識別方式,這裏採用在編號區 域右邊固定的位置輸出“通過(PASS)”,如果腳本執行^ 3 功,輸出“失敗(FAIL)”,具體的腳本頁面執行示例如下: &lt;P&gt;測試的屬性:br標藏中title屬性&lt;/p&gt; &lt;P&gt;測試的功能:設置或獲取對象的諮詢資訊&lt;/p&gt; &lt;P&gt;測試的現象:title在這裏只是起一個說明的作用, 沒有實現任何功能,只要能獲取其定義值&quot;測試通過”則_ 試通過&lt;/p&gt; ' 31 201039617 &lt;br id=”br_id&quot; title=&quot;測試通過&quot;〉 title = &lt;input type=&quot;textl&quot; id=&quot;textl&quot;Xbr&gt;&lt;br&gt; • · _ 〈SCRIPT LANGUAGE:&quot;JavaScript&quot;〉 var testvalue = document. getElementByldC' textl&quot;). value; if(testvalue==’ 測試通過’) o {D Sometimes CASE can detect the success of page parsing directly by using HTML script language. It can be combined with HTML script and image processing to achieve the test purpose. For example, the test attribute of CASE is the evaluation function of test text box, as long as the title is detected ( Title) The defined value is "test pass". This test passes, and the detection of the title definition value can be completely executed by the HTML script. In order for the automatic test system to quickly recognize whether the HTML script function passes, it can be executed by the script after the page. The fixed position is embedded with a fixed recognition character, which can satisfy the consistent character recognition mode of the automatic test system. Here, the "PASS" is output at a fixed position on the right side of the numbered area, and if the script performs ^3 work, the output "failure" (FAIL)", the specific script page execution example is as follows: &lt;P&gt; Test attribute: title attribute in br tag&lt;/p&gt;&lt;P&gt; Test function: set or get object consultation information &lt;/ p&gt;&lt;P&gt; Tested phenomenon: title is just a description here, does not implement any function, To get its defined value &quot;test passed" then _ try by &lt;/p&gt; ' 31 201039617 &lt;br id=”br_id&quot;title=&quot;testby&quot;> title = &lt;input type=&quot;textl&quot ; id=&quot;textl&quot;Xbr&gt;&lt;br&gt; • · _ 〈SCRIPT LANGUAGE:&quot;JavaScript&quot;〉 var testvalue = document. getElementByldC' textl&quot;). value; if(testvalue=='test passed') o {

document· getElementByldC cresult’)· innerHTML=,P ASS,; } else {Document· getElementByldC cresult’)· innerHTML=,P ASS,; } else {

document. getElementById(, cresulf ). innerHTML=, F AIL, } 〈/SCRIPT〉 羼 • · · ' 自動測試系統通過MR識別預定的輪出測試結果的區 為“ pass,,就算通過,否則不管輸出是 mil ’或者沒有輸出都認為不通過。 (6)保存測試結果; 32 201039617 如果測試通過,可以只保存測試用例編號、測試類型、 試時間’如果測試不it過,還可以保存不通過的標注區域 體結果值、以及當時測試不通過時的CASE圖像現場 果後可以方便測試人員事後進行查看。 ’、讦、、、。 整個自動化測試系統可以包括六個系統組成部分 士 構示意圖請參考第5圖: α 視頻採集伺服器501、模擬採集伺服器502、測試處理 服器503、資料庫伺服器504、中心平臺伺服器5〇5、前臺配 置終端506 ; 其申,視頻採集伺服器501負責對數位電視終端信號的採 集,並鏡頭分割處理之後將新的有效CASE圖片通過 給測試處理伺服器503 ; ^ 模擬採集伺服器502負責對數位電視模擬終端輸出的採 集,並鏡頭分割處理之後將新的有效case圖片通過網路傳遞 給測試處理伺JI民器503 ; 視頻採集伺服器50卜模擬採集伺服器5〇2執行上述自動 測試過程⑷“實酬朗例的接收”;可以理解的是視頻 採集伺服器501和模擬採集伺服器5〇2可以都存在,也可以只 存在一種; 八 測試處理伺服器503收到來自視頻採集伺服器5〇1或模擬 ,集伺服器502的CASE後對上述CASE進行測試,並將最終測 試結果通過網路保存在資料庫伺服器5〇4上。測試處理伺服器 503執行上述自動測試過程(5) “測試用例處理,,。 中心平臺伺服器505負責管理多個視頻採集伺服器5〇1和 模擬採集伺服器502與多個測試處理伺服器5〇3之間的對應關 係’它保證任何一個採集伺服器加入測試系統能有效獲得處理 飼服器資源’同時也保證任何一個測試處理飼服器加入測 33 201039617 統能有效分配資源給各個視頻採集伺服器5{Π、模擬採集 ^器5〇2,當然中心平臺伺服器5〇5可以用於保證加入測試 糸統的所有部署服務能有效溝通; =臺配置終端5G6負責整個自動測試祕酬試用例管 埋,貝訊管理,測試管理以及測試結果查看管理; Ο 〇 魅次^述 &gt; 訊管理包括基本資訊管理,比如:測試用例分 試設備資訊(即被測終端設備的分類描述資訊)、 if案資訊(即測試用例的資料庫資訊)、測試通道資訊(即 維的,5連,,資訊)以及用戶資訊、飼服器管理資訊的 停測iiU括測試的各種操作’比如:啟動測試、 看、測試結果查看等;前臺配置終端用 測^專i ^則試系統的資訊配置、測試的各種操作入口以及 β、、σ果一看的視窗,不參與測試的處理過程。 奉口 f還包括:網際網路507、電視網路_,網口與 串口轉換Is 509,路由器510,H. 264採集卡511 ; =中^際網路507為視頻採集飼服器測、模擬採集舰 飼服考、^ί試處ΐ伺,5〇3、資料庫舰11 504、中:平臺 s、的資料父互通道,視頻採集伺服器501採隼的 貝通過H. 264採集卡511解析後經路由_ SI 卡、模擬採可以提供《薦採集 34 201039617 施方式進行了蘭述,以上實施例的說明只是用於幫助 I又3 方法及其核心思想;同時,對於本領域的一般技 的限制 本發崎思想,在具體實财式及顧範圍上均 ίίί變之4 ’紅舰,本綱#邮不顧解膽本發明 【圖式簡單說明】 第1圖為本發明第—實施例方法流程意圖,· 第2圖為本發明第二實施例裝置結構示意圖; 第3圖為本發明第二實施例另—裝置結構示意圖; 第4圖為本發卿三實施_聽構示意圖; 第5圖為本發明第四實施齡騎構示意圖。Document. getElementById(, cresulf ). innerHTML=, F AIL, } 〈/SCRIPT〉 羼• · · ' The automatic test system identifies the area of the predetermined test result by the MR as "pass, even if it passes, otherwise the output is Mil 'or no output is considered to pass. (6) Save test results; 32 201039617 If the test passes, you can save only the test case number, test type, test time 'If the test is not completed, you can also save the marked area that does not pass. The result value of the body and the CASE image at the time of the test failure can be easily checked by the tester afterwards. ',讦,,,. The whole automated test system can include six system components. Figure: α video capture server 501, analog capture server 502, test processing server 503, database server 504, central platform server 5〇5, foreground configuration terminal 506; its application, video capture server 501 is responsible for Digital TV terminal signal acquisition, and after the lens split processing, the new valid CASE picture is passed to the test processing 503; ^ analog acquisition server 502 is responsible for the digital TV analog terminal output acquisition, and after the lens segmentation process, the new valid case picture is transmitted to the test processing server 503 through the network; video capture server 50 simulation The acquisition server 5〇2 performs the above-mentioned automatic test process (4) “receiving the real-life example”; it can be understood that the video capture server 501 and the analog acquisition server 5〇2 may both exist, or only one type exists; The processing server 503 receives the CASE from the video capture server 5〇1 or the analog server 502 and tests the CASE, and saves the final test result on the database server 5〇4 through the network. The processing server 503 performs the above-described automatic test process (5) "test case processing,". The central platform server 505 is responsible for managing the correspondence between the plurality of video capture servers 5〇1 and the analog acquisition server 502 and the plurality of test processing servers 5〇3. It ensures that any one of the acquisition servers can be effectively added to the test system. Obtaining the processing of the feeding device resources also ensures that any one of the test processing feeders can be added to the test 33 201039617 system can effectively allocate resources to each video capture server 5 {Π, analog acquisition device 5〇2, of course, the central platform server 5 〇5 can be used to ensure that all deployment services that participate in the test system can communicate effectively; = station configuration terminal 5G6 is responsible for the entire automatic test secret test case buried, Beixun management, test management and test results viewing management; Ο 〇 次^Status> Management includes basic information management, such as: test case test equipment information (ie, classification description information of the tested terminal equipment), if case information (ie test case database information), test channel information (ie dimension) , 5,, information) and user information, feeding device management information, stop test iiU including various operations of the test 'such as: start test Test, look, test results, etc.; front-end configuration terminal test ^ special i ^ test system information configuration, test various operation entries and β, σ fruit look at the window, do not participate in the test process. Fengkou f also includes: Internet 507, TV network _, network port and serial port conversion Is 509, router 510, H. 264 capture card 511; = medium network 507 for video capture feeding device measurement, simulation Collecting the ship's feeding service test, ^ί test office, 5〇3, database ship 11 504, medium: platform s, data parent channel, video capture server 501 picking shell through H.264 capture card 511 After the analysis, the routing_SI card and the analog mining can provide the recommended acquisition 34 201039617. The description of the above embodiment is only used to help the I and 3 methods and their core ideas. At the same time, for the general technology in the field. The limitation of this hairpin thought, in the specific real money style and the range of care ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ Method flow intent, FIG. 2 is a schematic structural view of a device according to a second embodiment of the present invention; FIG. 3 is a schematic structural view of a second embodiment of the present invention; FIG. 4 is a schematic diagram of a third embodiment of the present invention; Figure 5 is a schematic view of the fourth embodiment of the present invention.

【主要元件符號說明】 解析單元.................201 輸出圖像獲取單元.........202 對比單元.................203 結果確定單元.............2〇4 運算單元.................301 第一對比子單元...........302 第二對比子單元...........303 第三對比子單元...........304 採集伺服器...............401 測試處理伺服器...........402 資料庫伺jj艮器.............403 35 404 201039617 前臺用戶端 視頻採集伺服器...........501 模擬採集伺服器...........502 測試處理伺服器...........503 資料庫伺服器.............504 中心平臺伺服器...........505 前臺配置終端.............506 網際網路.................507 〇 電視網路.................508 網口與串口轉換器.........509 路由器...................510 H. 264採集卡..............511 〇 36[Explanation of main component symbols] Parsing unit....................201 Output image acquisition unit.........202 Contrast unit....... ..........203 Result determination unit.............2〇4 arithmetic unit.................301 First Contrast Subunit...........302 Second Contrast Subunit........303 Third Contrast Subunit........... 304 Acquisition Server...............401 Test Processing Server...........402 Database Servo jj艮........ .....403 35 404 201039617 Front-end client video capture server...........501 analog acquisition server...........502 test processing server.. .........503 Database Server.............504 Center Platform Server...........505 Front End Configuration Terminal... ..........506 Internet.................507 〇TV Network.............. ...508 network port and serial port converter.........509 router...................510 H. 264 capture card.... ..........511 〇36

Claims (1)

201039617 七、申請專利範圍: 一種自動化測試之方法,包括: 該輸視終錄贿析預定義峨實顺輸出圖像 ’獲取 行對Ϊ該獲取到的輪出圖像與預定義測試實例的預期圖像進 Ο 圍内ϊ出圖像與預_像相似度在設定的—範 Λ 為通過’否’則測試結果為未通過。 2·如請求項1所述之方法,其中該獲取輪出圖像為: 像;獲取預定義測試實例中通過區域座標標示區域的輪出圖 像為:預定義測試實例中通過區域座標標 域的預期圖像 示區 測試中述數位電視終端軟想解析預定義 ❹ 實例連輪攸少雜柯的預定義測試 § 、輸出圖像與預定義測試實例的預期圖像進行對比 行對Ξ該獲取到的輪出圖像與該輸_像對應龍期圖像進 月求項3所述之方法,其中該獲取輸出圖像包括: ▲通像鏡齡财式獲取需要的輸出圖像。 方法,_其中該至少兩個不_預定義測試實 後顯示為開始標識圖像,一個解析後顯示為 37 201039617 結束標識圖像;其中將輪屮阁 進行對比還包括·· _像_定義測試實 若對比顯示為開始標識圖像, 例的預期圖像 若針比顯干A娃击搞 則確定一輪洌試的開始; 右對比顯不為結束標識圖像 6·如請求項1所述之方法,其中 的結束。 〇 獲取該顯雜置_像作騎出圖像。 7·如明求項6所之方法’其中該獲取顯示位置的圖像包括: ▲通過光學字元朗的方式獲取該輸_像中的字元。 8, 〇 通過索貝爾運算子對輪出圖像進行運算 ^比將該輸出圖像輪廓與預編m實例的預細像輪廉ίί 範圍像無期圖像相似度在就的 在設iS内的輪_象輪廊與預期圖綱的相似度 或 該將獲取到的輸出圖像與預定義測試實例的預期圖像進 行對比包括: 對獲取到的輪出圖像圖元進行平均分佈掃描’統計符 38 201039617 合預定義Μ彡細 示; 4通圖疋值通過色彩模型表 的範温取到的輪出圖像與預期 圖像相似度在設定 設定預期色彩圖元值比例在 或 Ο 圖像與預定到的輸出 進行對比;該獲二字j 為表示通過的字^獲取到的輪出圖像中的字元 9. 一種自動化測試裝置,包括: 試實數位電視終端軟體解析-預定_ 〇 輸出圖像獲取單元,用於獲取該輪_像; 的預:=行=將該獲取到的輪出圖像與預定義測試實例 為預疋義測試實例中,通過區域座標標示區域的圖像 •如清求項9所述之裝置,其中該數位電視終端軟體解析預定羲 39 201039617 測試實例然後輪出圖像包括: 數位電視終端軟體連續解析至少 實例,並連續輪出圖像;兩個不同的預定羲剛試 括 包 :該將輸出圖像與預定義測試實例的預期圖像進行對比 Ο 進行g獲取_輸出圖像與該輸出圖像對應的預期圖像 12·如請求項9所述之裝置,其中該對比單元包括: 得到Si;輪:於通過索貝爾運算子對輪出圖像進行運算, 例的職將該輸出®像輪軸預定義翊試實 内包括J 獲取到的輸出圖像與預期圖像相似度在設定的範園 〇 設定^3的輸_輪__像輪_相似度在 或 該對比單元包括: 元推子單元,用於對獲取到的輸出圖像圖 統計符合預定義色彩的圖二 例,該圖TG值通過色彩模型表示; 内包括^獲取到的輪出圖像與預期圖像相似度在設定的範圍 的範圍内/的輪出圖像的預期色彩圖元值比例在設定 201039617 或 該輸出圖料測試結果字元圖像; 該對比單元包括: 與預比用於將獲取到輸出圖像中的字元 f 取到的輪出圖像與預期圖像 的範圍内包括: 相似度在設定 Ο η-錄“獲取到的輸出圖像中的字元為表示通過的字元。 13. —種自動化測試的系統,包括: 採集魏器,用於獲取輸出圖像 視終端軟體解析預定義測試實例得〜 過數位電 測試處理伺服器; 斤述輸出圖像發送給 測試處_服H ’用於將顧取到 2例的預期圖像進行對比,得到測試結果出 出圖像與翻圖像她度在設定的軸内,^試 ^ 否’則測試結果為未通過;將測試結果發送給資^庫= 果並果用於接收該資料庫伺服器發送之該測試結 果 前臺用戶端,用於獲取該資料糊服器 的試結 14.如請求項13所述之系統,其中該數位電視終 測試實例然後輸出圖像包括·· 雜體解析預疋義 實連續解析至少兩個不關預定義測試 實例,並連續輸出圖像; 201039617 括 •該將輸細_咖__糊料行對比包 行對r獲取到的輪_像與該輪出圖像對應的預期圖像進 15·如請求項13所述之系統,其中該 測試實例的預期圖像進行對比包括,取到的輸出圖像與預定義 通過索貝爾運算子對輸出圖 作 Ο Ο 2比將該輸峨輪额預定軸=:¾ 圍内=該獲取到的輪出圖像與預期圖像相似度在設定的範 設定圖像輪廓的相似度在 或 行取到的輪出圖像與預定義測試實例的預期圖像進 對獲取到的輪出圖像 _ 合預定義色彩_元值 ^1仃平均*佈掃描,統計符 其中,該 槪例,該圖元值通過色彩模型表示; 的範^内包ί獲取到的輸出圓像與預期圖像相似度在設定 的範當輸出圖像的預期色彩圖元值比例在設定 圖像結果字元圖像;該將獲取到的輸出 ^實_預_像進行_包括: 比;該圖像中的字元與預定義字元進行對 、3出圖像與預期圖像相似度在設定的範圍 42 201039617 内包括:獲取到的輸出圖像中的字元為表示通過的字元。201039617 VII. Scope of application for patents: A method of automated testing, including: The finalization of the escaping of the pre-defined 峨 实 顺 输出 输出 ' ' 获取 获取 获取 ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' When the image is entered, the similarity between the image and the pre-image is set. If the result is 'No', the test result is not passed. 2. The method of claim 1, wherein the acquiring the rounded image is: the image; obtaining the rounded image of the area marked by the area coordinate in the predefined test instance is: the area coordinate field in the predefined test instance In the expected image display area test, the digital TV terminal soft-sense parsing is predefined ❹ The example is connected with the pre-defined test of the 杂 杂 杂 、, and the output image is compared with the expected image of the predefined test instance. The method of obtaining the output image includes: ▲ the output image required for obtaining the image of the image. Method, _ wherein the at least two non-predefined tests are displayed as the start identification image, and one parsed is displayed as 37 201039617 end identification image; wherein the comparison of the rims includes: · _ like _ definition test If the contrast is shown as the start of the logo image, the expected image of the example determines the start of a round of trials if the needle is sharper than the stem. The right contrast is not the end marker image. 6. As described in claim 1. Method, which ends. 〇 Get the display _ as a ride out image. 7. The method of claim 6, wherein the obtaining the image of the display position comprises: ▲ acquiring the character in the input image by means of an optical character. 8. The operation of the rounded image is performed by the Sobel operator. The ratio of the output image contour to the pre-fine image of the pre-coded image is like the image of the indefinite image. Comparing the similarity of the wheel_image corridor with the expected pattern or comparing the acquired output image with the expected image of the predefined test instance includes: performing an average distribution scan on the acquired rounded image primitives.符38 201039617 Combined with predefined definitions; 4 疋 疋 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过 通过Comparing with the predetermined output; the obtained word j is a character in the rounded image obtained by the passed word ^. An automated test device comprising: a virtual digital television terminal software parsing - predetermined _ 〇 The output image obtaining unit is configured to acquire the pre-:= line of the wheel_image; and the image of the area indicated by the area coordinate in the pre-defined test instance of the acquired round-out image and the predefined test instance • as clear The device of item 9, wherein the digital television terminal software parses the predetermined 羲39 201039617 test instance and then rotates the image comprising: the digital television terminal software continuously parses at least the instance and continuously rotates the image; two different predetermined 羲Trial package: the output image is compared with the expected image of the predefined test instance, and the g-acquisition image is outputted with the expected image corresponding to the output image. The comparison unit includes: obtaining Si; wheel: performing an operation on the wheeled image by the Sobel operator, and the example of the output® image wheel axle is predefined, and the output image and the expected image obtained by J are included in the trial. The image similarity is set in the set of Fan Park ^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ In the second example of the figure, the TG value of the figure is represented by a color model; the expected color element of the rounded image of the rounded image with the expected image similarity within the set range The value ratio is set to 201039617 or the output image test result character image; the comparison unit includes: a pre-ratio for taking out the rounded image obtained from the character f in the output image and the expected image The range includes: Similarity is set in Ο η - Record "The character in the acquired output image is the character that represents the pass. 13. - A system for automated testing, including: Acquisition of the Wei device for obtaining the output map For example, the visual terminal software parsing pre-defined test instance is obtained by the over-digit electrical test processing server; the output image is sent to the test station _ service H' for comparing the expected images of 2 cases, and the test result is obtained. Out of the image and the flip image, the degree is within the set axis, ^ test ^ no 'the test result is not passed; the test result is sent to the library = fruit and is used to receive the database server to send The test result is used by the front-end user terminal to obtain the test result of the data pasting device. The system of claim 13, wherein the digital television final test instance then outputs an image including: · miscellaneous analysis Continuously parsing at least two unconstrained test instances and continuously outputting images; 201039617 Included • This will convert the _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The system of claim 13, wherein the expected image of the test instance is compared, wherein the obtained output image is compared with the predefined output image by the Sobel operator. The input wheel is predetermined axis =: 3⁄4 circumference = the acquired wheel image is similar to the expected image similarity in the set fan setting image contour similarity in the line of the rounded image and The expected image of the predefined test instance is obtained by the rounded image obtained by the predefined_color_yuan value^1仃average* cloth scan, the statistical character, wherein the instance value is represented by the color model; The image of the output circle is obtained from the expected image similarity with the expected image. The ratio of the expected color element value of the output image is set in the image result character image; the output will be obtained. _ pre-image _ includes: ratio; in the image Predefined characters for character pairs, three image and the expected image similarity within the set range 42201039617 comprising: obtaining the output image is a character by character. 4343
TW98114278A 2009-04-29 2009-04-29 Automatic test method, test device, and test system TW201039617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98114278A TW201039617A (en) 2009-04-29 2009-04-29 Automatic test method, test device, and test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98114278A TW201039617A (en) 2009-04-29 2009-04-29 Automatic test method, test device, and test system

Publications (1)

Publication Number Publication Date
TW201039617A true TW201039617A (en) 2010-11-01

Family

ID=44995597

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98114278A TW201039617A (en) 2009-04-29 2009-04-29 Automatic test method, test device, and test system

Country Status (1)

Country Link
TW (1) TW201039617A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board method of testing, apparatus and system
CN107396088A (en) * 2016-05-16 2017-11-24 北京小米移动软件有限公司 The method and device of test image quality

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396088A (en) * 2016-05-16 2017-11-24 北京小米移动软件有限公司 The method and device of test image quality
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board method of testing, apparatus and system

Similar Documents

Publication Publication Date Title
CN101521834B (en) Automatic testing method, device and system
CN108322788B (en) Advertisement display method and device in live video
CN109862414B (en) Mask bullet screen display method and device and server
US10134441B2 (en) Method and system for overlaying image in video stream
CN107862315B (en) Subtitle extraction method, video searching method, subtitle sharing method and device
WO2018095142A1 (en) Livestream interaction method and apparatus
US7151540B2 (en) Audience attention and response evaluation
US20160188938A1 (en) Image identification marker and method
JP2015186202A (en) Residence condition analysis device, residence condition analysis system and residence condition analysis method
JP4848001B2 (en) Image processing apparatus and image processing method
CN105338887A (en) Skin function evaluation device and skin evaluation method
CN107169135B (en) Image processing method and device and electronic equipment
CN102740111A (en) Method and device for testing video fluency based on frame number watermarks under remote desktop
CN108010037A (en) Image processing method, device and storage medium
CN105069812A (en) Image processing apparatus, setting device and method for image processing apparatus
FR2529041A1 (en) METHOD FOR ANALYZING DIFFUSE DATA, NETWORK ANALYZER USING SUCH A METHOD AND RECEPTION EQUIPMENT USING SUCH ANALYZER
CN111950457A (en) Oil field safety production image identification method and system
TW201039617A (en) Automatic test method, test device, and test system
WO2011108183A1 (en) Image processing device, content delivery system, image processing method, and program
JP5232619B2 (en) Inspection apparatus and inspection method
CN115845350B (en) Method and system for automatic ranging of standing long jump
JP2012022353A (en) Image evaluation device and image evaluation program
CN111126378B (en) Method for extracting video OSD and reconstructing coverage area
CN115830599B (en) Industrial character recognition method, model training method, device, equipment and medium
CN115841353A (en) Advertisement delivery photo collecting and auditing method and device and terminal equipment