[go: up one dir, main page]

TWI747666B - Application program automatic detection method and system - Google Patents

Application program automatic detection method and system Download PDF

Info

Publication number
TWI747666B
TWI747666B TW109144525A TW109144525A TWI747666B TW I747666 B TWI747666 B TW I747666B TW 109144525 A TW109144525 A TW 109144525A TW 109144525 A TW109144525 A TW 109144525A TW I747666 B TWI747666 B TW I747666B
Authority
TW
Taiwan
Prior art keywords
electronic device
application program
script
detection
detected
Prior art date
Application number
TW109144525A
Other languages
Chinese (zh)
Other versions
TW202226095A (en
Inventor
游德榮
李明訓
余端
陳家祥
蔡子建
Original Assignee
台灣松下電器股份有限公司
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 台灣松下電器股份有限公司 filed Critical 台灣松下電器股份有限公司
Priority to TW109144525A priority Critical patent/TWI747666B/en
Application granted granted Critical
Publication of TWI747666B publication Critical patent/TWI747666B/en
Publication of TW202226095A publication Critical patent/TW202226095A/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

一種應用程式自動化檢測方法,其令錄影裝置記錄一已通過檢測的應用程式按照一檢測操作流程對應產生的多個正確影像畫面,且令影像處理裝置根據該等正確影像畫面以及該檢測操作流程製作一包含按腳本編號排序的多個操作指令以及與各該腳本編號對應的各該正確影像畫面的檢測操作流程腳本,再令電子裝置根據該檢測操作流程腳本操作待檢測的應用程式而產生對應不同腳本編號的複數個待檢測影像畫面,並比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面以產出一檢測結果,且該待檢測的應用程式是該已通過檢測的應用程式更新後的版本。An application program automatic detection method, which allows a recording device to record a plurality of correct image frames corresponding to a detection operation flow corresponding to an application program that has passed the detection, and causes the image processing device to produce according to the correct image frames and the detection operation flow A detection operation flow script containing a plurality of operation instructions sorted by script number and each correct image screen corresponding to each script number, and then the electronic device is made to operate the application to be detected according to the detection operation flow script to generate corresponding differences A plurality of image frames to be detected with a script number, and compare each image frame to be detected with each correct image frame corresponding to the same script number to produce a detection result, and the application to be detected is the one that has passed the detection The updated version of the application.

Description

應用程式自動化檢測方法及系統Application program automatic detection method and system

本發明是有關於一種應用程式之檢測方法,特別是指一種應用程式自動化檢測方法。The present invention relates to an application program detection method, in particular to an application program automatic detection method.

現有的智慧型家電,例如冰箱、冷氣、除濕機、洗衣機等,能讓使用者透過執行預先安裝於一智慧型手機中的應用程式進行遠端操控。此外,為了提供更佳的使用體驗或服務,此等應用程式經常會進行版本更新,且為了確認更新後的應用程式呈現的畫面內容完整無誤,現有做法是由測試人員根據預定的一檢測流程,依序輸入不同的操作指令至應用程式產生的操作介面中,使應用程式顯示相對應的畫面,測試人員再參照預定的一操作結果資料判斷顯示畫面是否與該操作結果資料中預定的內容一樣,以判斷顯示畫面內容是否有誤,並將檢測結果手動填入一檢測結果表單,以供軟體工程師根據該檢測結果表單對更新後的應用程式進行相關的修正或調整。Existing smart home appliances, such as refrigerators, air conditioners, dehumidifiers, washing machines, etc., allow users to perform remote control by running applications pre-installed in a smart phone. In addition, in order to provide a better user experience or service, these applications are often version updated, and in order to confirm that the screen content presented by the updated application is complete and correct, the existing practice is that testers follow a predetermined inspection process. Input different operation instructions into the operation interface generated by the application program in order to make the application program display the corresponding screen. The tester then refers to a predetermined operation result data to determine whether the display screen is the same as the predetermined content in the operation result data. To determine whether the content of the display screen is incorrect, and manually fill in the test result into a test result form, so that the software engineer can make relevant corrections or adjustments to the updated application based on the test result form.

因此,當同一款應用程式不斷地小改版,例如每次改版只更新某一或某幾個顯示畫面的背景顏色、文字或圖形時,檢測人員仍必須按照上述的檢測流程重新操作更新後的應用程式,並人工逐一判斷每一顯示畫面的完整性並且手動紀錄檢測結果,顯然相當耗費時間和人力,而有必要提出一改善方案。Therefore, when the same application is undergoing minor revisions, for example, when only the background color, text or graphics of one or a few display screens are updated each time the revision, the inspector must still re-operate the updated application in accordance with the above-mentioned inspection process. It is obviously time-consuming and labor-intensive to manually judge the integrity of each display screen one by one and manually record the test results, and it is necessary to propose an improvement plan.

因此,本發明之目的,即在提供一種應用程式自動化檢測方法及系統,其至少能解決上述先前技術以人工檢測應用程式之問題。Therefore, the purpose of the present invention is to provide an application program automatic detection method and system, which can at least solve the above-mentioned problem of manual detection of application programs in the prior art.

於是,本發明一種應用程式自動化檢測方法,包括:(A)令一錄影裝置記錄一第一電子裝置執行一已通過檢測的應用程式的過程而產生一影片,該影片記錄該第一電子裝置顯示該已通過檢測的應用程式的一操作介面,以及該已通過檢測的應用程式根據依序輸入該操作介面的多個操作指令所對應產生的多個正確影像畫面;其中該等操作指令是按照一檢測操作流程依序輸入該操作介面;(B)令一影像處理裝置從該影片中擷取出對應該等操作指令的該等正確影像畫面並儲存;(C)該影像處理裝置根據該等正確影像畫面以及該檢測操作流程製作一檢測操作流程腳本,該檢測操作流程腳本包含按腳本編號排序的該等操作指令以及與各該腳本編號對應的各該正確影像畫面;及(D)令一第二電子裝置執行一待檢測的應用程式,以顯示該待檢測的應用程式的一操作介面,且該第二電子裝置執行該檢測操作流程腳本,而自動地依序輸入按腳本編號排序的該等操作指令至該操作介面,使該待檢測的應用程式依序產生對應不同腳本編號的複數個待檢測影像畫面,且該第二電子裝置比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面,並據此產出一檢測結果;其中,該待檢測的應用程式是該已通過檢測的應用程式更新後的版本。Therefore, an application program automatic detection method of the present invention includes: (A) a video recording device is made to record a first electronic device executing an application program that has passed detection to generate a video, and the video records the display of the first electronic device An operation interface of the application program that has passed the test, and multiple correct images generated by the application program that has passed the test based on a plurality of operation instructions sequentially input to the operation interface; wherein the operation instructions are in accordance with one The detection operation flow is sequentially input into the operation interface; (B) an image processing device is asked to extract the correct image frames corresponding to the operation instructions from the video and store them; (C) the image processing device is based on the correct images The screen and the detection operation flow make a detection operation flow script, the detection operation flow script includes the operation instructions sorted by script number and each correct image screen corresponding to each script number; and (D) let a second The electronic device executes a to-be-detected application program to display an operation interface of the to-be-detected application program, and the second electronic device executes the detection operation flow script, and automatically sequentially inputs the operations sorted by the script number Command to the operating interface to make the application program to be detected sequentially generate a plurality of image frames to be detected corresponding to different script numbers, and the second electronic device compares each of the image frames to be detected corresponding to the same script number with each of the image frames to be detected The correct image screen is generated, and a test result is generated accordingly; wherein the application to be tested is the updated version of the application that has passed the test.

在本發明的一些實施態樣中,該第一電子裝置與該第二電子裝置是同一電腦裝置;或者,該第一電子裝置、該第二電子裝置與該影像處理裝置是同一電腦裝置;或者,該錄影裝置、該影像處理裝置及該第二電子裝置是同一電腦裝置。In some embodiments of the present invention, the first electronic device and the second electronic device are the same computer device; or, the first electronic device, the second electronic device, and the image processing device are the same computer device; or , The recording device, the image processing device and the second electronic device are the same computer device.

在本發明的一些實施態樣中,該已通過檢測的應用程式供安裝於一智慧型手機並由該智慧型手機執行以遠端操控智慧型家電。In some embodiments of the present invention, the detected application program is installed on a smart phone and executed by the smart phone to remotely control smart home appliances.

再者,本發明實現上述方法的一種應用程式自動化檢測系統,包括一第一電子裝置、一錄影裝置、一影像處理裝置及一第二電子裝置;其中,該第一電子裝置執行一已通過檢測的應用程式;該錄影裝置記錄該第一電子裝置執行該已通過檢測的應用程式的過程而產生一影片,該影片記錄該第一電子裝置顯示該已通過檢測的應用程式的一操作介面,以及該已通過檢測的應用程式根據依序輸入該操作介面的多個操作指令所對應產生的多個正確影像畫面;其中該等操作指令是按照一檢測操作流程依序輸入該操作介面;該影像處理裝置,其從該影片中擷取出對應該等操作指令的該等正確影像畫面並儲存;且該影像處理裝置根據該等正確影像畫面以及該檢測操作流程製作一檢測操作流程腳本,該檢測操作流程腳本包含按腳本編號排序的該等操作指令以及與各該腳本編號對應的各該正確影像畫面;該第二電子裝置執行一待檢測的應用程式,以顯示該待檢測的應用程式的一操作介面,且該第二電子裝置執行該檢測操作流程腳本,而自動地依序輸入按腳本編號排序的該等操作指令至該操作介面,使該待檢測的應用程式依序產生對應不同腳本編號的複數個待檢測影像畫面,且該第二電子裝置比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面,並據此產出一檢測結果;其中,該待檢測的應用程式是該已通過檢測的應用程式更新後的版本。Furthermore, the present invention implements an application program automatic detection system that implements the above method, including a first electronic device, a video recording device, an image processing device, and a second electronic device; wherein the first electronic device performs a passed detection The application program; the recording device records the process of the first electronic device executing the application program that has passed the test to generate a video, the video recording the first electronic device to display an operating interface of the application program that has passed the test, and The application program that has passed the inspection generates multiple correct image frames corresponding to multiple operating instructions sequentially input to the operating interface; wherein the operating instructions are sequentially input to the operating interface according to a testing operation flow; the image processing A device for extracting and storing the correct image frames corresponding to the operation instructions from the video; and the image processing device creates a detection operation flow script according to the correct image frames and the detection operation flow, and the detection operation flow The script includes the operation instructions sorted by script number and each correct image screen corresponding to each script number; the second electronic device executes an application program to be detected to display an operation interface of the application program to be detected , And the second electronic device executes the detection operation flow script, and automatically sequentially inputs the operation instructions sorted by the script number to the operation interface, so that the application to be detected sequentially generates plural numbers corresponding to different script numbers Image frames to be detected, and the second electronic device compares each image frame to be detected with each correct image frame corresponding to the same script number, and generates a detection result accordingly; wherein, the application program to be detected is The updated version of the app that has passed the test.

本發明之功效在於:藉由根據已通過檢測的應用程式所顯示的該等正確影像畫面以及該檢測操作流程製作包含按腳本編號排序的該等操作指令以及與各該腳本編號對應的各該正確影像畫面的該檢測操作流程腳本,再由電子裝置藉由執行該檢測操作流程腳本來操作該待檢測的應用程式,使該待檢測的應用程式產生對應不同腳本編號的複數個待檢測影像畫面,同時該電子裝置比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面,並據此產出一檢測結果,而達到自動化檢測更新後的應用程式並解決以往人工手動操作檢測更新後的應用程式而耗時費工的問題。The effect of the present invention is: according to the correct image screens displayed by the application programs that have passed the test and the test operation flow, the operation instructions sequenced by the script number and the correct ones corresponding to the script numbers are created. The detection operation flow script of the image screen, and the electronic device executes the detection operation flow script to operate the application program to be detected, so that the application program to be detected generates a plurality of image frames to be detected corresponding to different script numbers. At the same time, the electronic device compares each of the to-be-detected image frames corresponding to the same script number with each of the correct image frames, and generates a detection result based on this, so as to achieve automatic detection of the updated application and solve the previous manual manual operation detection and update The problem of time-consuming and labor-intensive applications after the application.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numbers.

參閱圖1所示,是本發明應用程式自動化檢測方法的一實施例的主要步驟,且本實施例是由圖2所示的一應用程式自動化檢測系統來實現,其主要包括一執行一應用程式的第一電子裝置1、一錄影裝置2、一影像處理裝置3及一第二電子裝置4。且本實施例主要為了實現自動化檢測應用程式,且在此所述的應用程式主要(但不限於)是指供安裝在可攜式電子裝置,例如智慧型手機中且用以遠端操控智慧型家電(或稱智能家電)的應用程式。由於此類遠端操控智慧型家電的應用程式開發商為了提供更好的使用體驗或服務,經常會更新應用程式的版本,且每次更新版本後,為了確認應用程式中不需更新(沒有更新)的畫面沒有在更新的過程中被不小心變更,因此應用程式更新版本後,即使只更新其中的一、兩個顯示畫面,也都需要被重新逐步操作其產生的使用者介面,以從頭到尾逐一檢測操作後所產生的顯示畫面內容(例如使用者介面的座標位置、文字、圖形、背景顏色等)是否正確無誤。1 shows the main steps of an embodiment of the application program automatic detection method of the present invention, and this embodiment is implemented by an application program automatic detection system shown in FIG. 2, which mainly includes an execution of an application program The first electronic device 1, a video recording device 2, an image processing device 3, and a second electronic device 4 of. And this embodiment is mainly for realizing automated detection applications, and the applications described here mainly (but not limited to) are intended to be installed in portable electronic devices, such as smart phones, and used to remotely control smart phones. Home appliances (or smart appliances) applications. In order to provide better user experience or services, such application developers that remotely control smart home appliances often update the version of the application, and after each version update, in order to confirm that the application does not need to be updated (no update) )’S screen has not been accidentally changed during the update process. Therefore, even if only one or two of the display screens are updated after the application is updated, the user interface generated by it needs to be re-operated step by step to start from the beginning. The tail detects whether the content of the display screen (such as the coordinate position of the user interface, text, graphics, background color, etc.) generated after the operation is correct or not.

因此,為了實現自動化檢測更新後的應用程式以取代以往耗時費工的人工檢測,如圖1的步驟S1,首先,令該第一電子裝置1執行該應用程式(更新前),並令該錄影裝置2記錄(錄影)該第一電子裝置1執行該應用程式的過程而產生一影片,該影片記錄該第一電子裝置1顯示該應用程式的一操作介面(即使用者介面),以及該應用程式根據使用者依序輸入該操作介面的多個操作指令所對應產生的多個正確影像畫面;具體而言,使用者是按照一檢測操作流程文件中指示的一檢測操作流程依序於該操作介面輸入該等操作指令。而且,該第一電子裝置1執行的該應用程式是一已通過檢測的應用程式,因此該應用程式根據各該操作指令所對應產生的各該影像畫面都會是正確影像畫面。Therefore, in order to automatically detect the updated application program to replace the time-consuming and labor-intensive manual detection in the past, as shown in step S1 in Figure 1, first, the first electronic device 1 is made to execute the application program (before the update), and the The recording device 2 records (records) the process of executing the application program by the first electronic device 1 to generate a video, which records an operation interface (ie, user interface) of the application program displayed by the first electronic device 1, and the The application program generates multiple correct image frames corresponding to multiple operation commands inputted by the user in sequence on the operating interface; specifically, the user follows a testing operation process indicated in a testing operation process document in sequence. Input these operating instructions on the operating interface. Moreover, the application program executed by the first electronic device 1 is an application program that has passed the test, so each image frame generated by the application program according to each operation command is the correct image frame.

接著,如圖1的步驟S2,該影像處理裝置3取得該錄影裝置2記錄的該影片,並從該影片中擷取出對應該等操作指令的該等正確影像畫面並儲存;換句話說,使用者可藉由操作該影像處理裝置3,將該影片中對應各該操作指令所產生的各該正確影像畫面分割出來並另外儲存(存檔),使存檔的各該正確影像畫面分別對應於該檢測操作流程中的各該操作指令。Then, in step S2 of FIG. 1, the image processing device 3 obtains the video recorded by the video recording device 2, and extracts and stores the correct image frames corresponding to the operation commands from the video; in other words, use By operating the image processing device 3, the correct image frames generated in the movie corresponding to the operation instructions can be segmented and stored (archived) separately, so that each correct image frame in the archive corresponds to the detection. Each operation instruction in the operation flow.

然後,如圖1的步驟S3,該影像處理裝置3根據該等正確影像畫面以及該檢測操作流程製作一檢測操作流程腳本,該檢測操作流程腳本包含按腳本編號排序的該等操作指令以及與各該腳本編號對應(亦即與各該操作指令對應)的各該正確影像畫面。Then, in step S3 of FIG. 1, the image processing device 3 creates a detection operation flow script based on the correct image frames and the detection operation flow. The detection operation flow script includes the operation instructions sorted by the script number and the The script number corresponds to each of the correct image frames (that is, corresponds to each of the operation instructions).

藉此,當上述的該應用程式更新版本而成為一待檢測的應用程式時,則可執行圖1的步驟S4,令該第二電子裝置4執行該待檢測的應用程式,使顯示該待檢測的應用程式產生的一操作介面(即使用者介面),然後,該第二電子裝置4執行預先從該影像處理裝置3取得的該檢測操作流程腳本,並根據該檢測操作流程腳本,自動地依序輸入按腳本編號排序的該等操作指令至該操作介面,使該待檢測的應用程式依序產生對應不同腳本編號(亦即對應各該操作指令)的複數個待檢測影像畫面,且該第二電子裝置4會依序比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面的內容是否一致,例如逐一檢測操作後該待檢測的應用程式所產生的各該顯示畫面內容(例如使用者介面的座標位置、文字、圖形、背景顏色等)與相對應的各該正確影像畫面內容是否完全相同,並據此產出一檢測結果。舉例來說,如圖3所示,當該第二電子裝置4比對對應同一腳本編號的該待檢測影像畫面(圖3中的左圖)與該正確影像畫面(圖3中的右圖),發現該待檢測影像畫面最下方的「確定」為錯誤文字,即自動將該判斷結果及其對應的該腳本編號填入一檢測結果表單中,藉此,當該第二電子裝置4執行完該檢測操作流程腳本後,該第二電子裝置4即自動產生並儲存(或輸出或顯示)該檢測結果表單做為該待檢測的應用程式的該檢測結果。因此,軟體工程師即可根據該檢測結果表單對更新後的應用程式(即前述的該待檢測的應用程式)所產生的錯誤顯示畫面進行相關的修正或調整。Thereby, when the above-mentioned updated version of the application program becomes an application program to be detected, step S4 of FIG. 1 can be performed to make the second electronic device 4 execute the application program to be detected, and display the application program to be detected Then, the second electronic device 4 executes the detection operation flow script obtained in advance from the image processing device 3, and automatically according to the detection operation flow script Input the operation commands sorted by script number to the operation interface, so that the application program to be tested will sequentially generate a plurality of images to be tested corresponding to different script numbers (that is, corresponding to each operation command), and the first The two electronic devices 4 will sequentially compare whether the content of each image frame to be detected corresponding to the same script number is consistent with the content of each correct image frame, for example, the content of each display screen generated by the application program to be detected after the detection operation is performed one by one. Whether (such as the coordinate position of the user interface, text, graphics, background color, etc.) is exactly the same as the content of the corresponding correct image screen, a detection result is generated based on this. For example, as shown in FIG. 3, when the second electronic device 4 compares the image frame to be detected (the left image in FIG. 3) corresponding to the same script number with the correct image image (the right image in FIG. 3) , It is found that the "OK" at the bottom of the image to be detected is the wrong text, that is, the judgment result and the corresponding script number are automatically filled in a detection result form, so that when the second electronic device 4 is finished executing After the detection operation flow script, the second electronic device 4 automatically generates and stores (or outputs or displays) the detection result form as the detection result of the application to be detected. Therefore, the software engineer can make relevant corrections or adjustments to the error display screen generated by the updated application (that is, the aforementioned application to be tested) according to the test result form.

此外,值得一提的是,上述的該第一電子裝置1、該錄影裝置2、該影像處理裝置3及該第二電子裝置4除了是各自獨立的電腦裝置外,也可以是該第一電子裝置1與該第二電子裝置2事實上是同一電腦裝置;或者,該第一電子裝置1、該第二電子裝置2與該影像處理裝置3事實上是同一電腦裝置;或者,該錄影裝置2、該影像處理裝置3及該第二電子裝置4事實上是同一電腦裝置。In addition, it is worth mentioning that the above-mentioned first electronic device 1, the recording device 2, the image processing device 3, and the second electronic device 4 may be independent computer devices or the first electronic device. The device 1 and the second electronic device 2 are in fact the same computer device; or, the first electronic device 1, the second electronic device 2 and the image processing device 3 are in fact the same computer device; or, the video recording device 2 The image processing device 3 and the second electronic device 4 are actually the same computer device.

綜上所述,上述實施例藉由擷取已通過檢測的應用程式根據按照一檢測操作流程所輸入的多個操作指令所對應產生的多個正確影像畫面,再根據該等正確影像畫面以及該檢測操作流程製作一檢測操作流程腳本,使該檢測操作流程腳本包含按腳本編號排序的該等操作指令以及與各該腳本編號對應的各該正確影像畫面,再由電子裝置執行上述應用程式經過更新後的一待檢測的應用程式,且該電子裝置藉由執行該檢測操作流程腳本,使該待檢測的應用程式依序產生對應不同腳本編號的複數個待檢測影像畫面,同時該電子裝置比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面,並據此產出一檢測結果,而達到自動化檢測更新後的應用程式,而解決以往人工手動操作檢測更新後的應用程式而相當耗時費工的問題,確實達到本發明的功效與目的。In summary, the above-mentioned embodiment captures multiple correct image frames corresponding to multiple operation instructions inputted in accordance with a testing operation flow by the application program that has passed the test, and then according to the correct image frames and the A detection operation flow script is created to make the detection operation flow script include the operation instructions sorted by the script number and each correct image screen corresponding to each script number, and then the electronic device executes the above-mentioned application program after updating The latter application program to be detected, and the electronic device executes the detection operation flow script so that the application program to be detected sequentially generates a plurality of to-be-detected image frames corresponding to different script numbers, and at the same time the electronic device compares Correspond to each of the to-be-detected image screens and each of the correct image screens of the same script number, and generate a detection result based on this, so as to achieve automatic detection of updated applications, and solve the problem of manual manual operation to detect updated applications in the past. The time-consuming and labor-intensive problem does indeed achieve the efficacy and purpose of the present invention.

惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above are only examples of the present invention, and should not be used to limit the scope of implementation of the present invention, all simple equivalent changes and modifications made in accordance with the scope of the patent application of the present invention and the content of the patent specification still belong to This invention patent covers the scope.

1:第一電子裝置1: The first electronic device

2:錄影裝置2: Recording device

3:影像處理裝置3: Image processing device

4:第二電子裝置4: The second electronic device

S1~S4:步驟S1~S4: steps

本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地顯示,其中: 圖1是本發明應用程式自動化檢測方法的一實施例的主要流程; 圖2是本發明應用程式自動化檢測系統的一實施例的硬體裝置示意圖;及 圖3是本實施例說明自動化比對應用程式之待檢測顯示畫面與正確顯示畫面的示意圖。 Other features and effects of the present invention will be clearly shown in the embodiments with reference to the drawings, in which: FIG. 1 is the main flow of an embodiment of the application automatic detection method of the present invention; 2 is a schematic diagram of the hardware device of an embodiment of the application automatic detection system of the present invention; and FIG. 3 is a schematic diagram illustrating the to-be-detected display screen and the correct display screen of the automatic comparison application in this embodiment.

S1~S4:步驟 S1~S4: steps

Claims (10)

一種應用程式自動化檢測方法,包括:(A)令一錄影裝置記錄一第一電子裝置執行一已通過檢測的應用程式的過程而產生一影片,該影片記錄該第一電子裝置顯示該已通過檢測的應用程式的一操作介面,以及該已通過檢測的應用程式根據依序輸入該操作介面的多個操作指令所對應產生的多個正確影像畫面;其中該等操作指令是按照一檢測操作流程依序輸入該操作介面;(B)令一影像處理裝置從該影片中擷取出對應該等操作指令的該等正確影像畫面並儲存;(C)該影像處理裝置根據該等正確影像畫面以及該檢測操作流程製作一檢測操作流程腳本,該檢測操作流程腳本包含按腳本編號排序的該等操作指令以及與各該腳本編號對應的各該正確影像畫面;及(D)令一第二電子裝置執行一待檢測的應用程式,以顯示該待檢測的應用程式的一操作介面,且該第二電子裝置執行該檢測操作流程腳本,而自動地依序輸入按腳本編號排序的該等操作指令至該操作介面,使該待檢測的應用程式依序產生對應不同腳本編號的複數個待檢測影像畫面,且該第二電子裝置比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面,並據此產出一檢測結果;其中,該待檢測的應用程式是該已通過檢測的應用程式更新後的版本。 An application program automatic detection method, including: (A) a video is generated by making a video recording device record a first electronic device executing an application program that has passed the detection, the video recording the first electronic device showing that the first electronic device has passed the detection An operating interface of the application program, and multiple correct images generated by the application program that has passed the inspection according to the multiple operation instructions sequentially input to the operating interface; wherein the operating instructions are based on a detection operation flow Input the operating interface in sequence; (B) order an image processing device to extract the correct image frames corresponding to the operating instructions from the video and store them; (C) the image processing device according to the correct image frames and the detection The operation flow makes a detection operation flow script, the detection operation flow script includes the operation instructions sorted by script number and each of the correct image frames corresponding to each of the script numbers; and (D) making a second electronic device execute a The application program to be detected displays an operation interface of the application program to be detected, and the second electronic device executes the detection operation flow script, and automatically sequentially inputs the operation instructions sorted by the script number to the operation The interface enables the application program to be detected to sequentially generate a plurality of image frames to be detected corresponding to different script numbers, and the second electronic device compares each image frame to be detected corresponding to the same script number with each correct image frame, Based on this, a test result is generated; among them, the application to be tested is the updated version of the application that has passed the test. 如請求項1所述的應用程式自動化檢測方法,其中該第一電子裝置與該第二電子裝置是同一電腦裝置。 The application automatic detection method according to claim 1, wherein the first electronic device and the second electronic device are the same computer device. 如請求項1所述的應用程式自動化檢測方法,其中該第一電子裝置、該第二電子裝置與該影像處理裝置是同一電腦裝置。 The application automatic detection method according to claim 1, wherein the first electronic device, the second electronic device, and the image processing device are the same computer device. 如請求項1所述的應用程式自動化檢測方法,其中該錄影裝置、該影像處理裝置及該第二電子裝置是同一電腦裝置。 The application automatic detection method according to claim 1, wherein the recording device, the image processing device and the second electronic device are the same computer device. 如請求項1所述的應用程式自動化檢測方法,其中該已通過檢測的應用程式供安裝於一智慧型手機並由該智慧型手機執行以遠端操控智慧型家電。 The application program automatic detection method according to claim 1, wherein the detected application program is installed on a smart phone and executed by the smart phone to remotely control smart home appliances. 一種應用程式自動化檢測系統,包括:一第一電子裝置,其執行一已通過檢測的應用程式;一錄影裝置,其記錄該第一電子裝置執行該已通過檢測的應用程式的過程而產生一影片,該影片記錄該第一電子裝置顯示該已通過檢測的應用程式的一操作介面,以及該已通過檢測的應用程式根據依序輸入該操作介面的多個操作指令所對應產生的多個正確影像畫面;其中該等操作指令是按照一檢測操作流程依序輸入該操作介面;一影像處理裝置,其從該影片中擷取出對應該等操作指令的該等正確影像畫面並儲存;且該影像處理裝置根據該等正確影像畫面以及該檢測操作流程製作一檢測操作流程腳本,該檢測操作流程腳本包含按腳本編號排 序的該等操作指令以及與各該腳本編號對應的各該正確影像畫面;及一第二電子裝置,其執行一待檢測的應用程式,以顯示該待檢測的應用程式的一操作介面,且該第二電子裝置執行該檢測操作流程腳本,而自動地依序輸入按腳本編號排序的該等操作指令至該操作介面,使該待檢測的應用程式依序產生對應不同腳本編號的複數個待檢測影像畫面,且該第二電子裝置比對對應同一腳本編號的各該待檢測影像畫面與各該正確影像畫面,並據此產出一檢測結果;其中,該待檢測的應用程式是該已通過檢測的應用程式更新後的版本。 An application program automatic detection system includes: a first electronic device that executes an application program that has passed the detection; a recording device that records the process of the first electronic device executing the application program that has passed the detection to generate a video , The video records an operation interface of the first electronic device displaying the application program that has passed the test, and multiple correct images generated by the application program that has passed the test according to a plurality of operation instructions sequentially input to the operation interface Screen; where the operation commands are sequentially input to the operation interface according to a detection operation flow; an image processing device that extracts and saves the correct image frames corresponding to the operation commands from the video; and the image processing The device creates a detection operation flow script based on the correct image frames and the detection operation flow, and the detection operation flow script includes a script numbered The sequence of the operating instructions and each of the correct image frames corresponding to each of the script numbers; and a second electronic device that executes an application program to be detected to display an operation interface of the application program to be detected, and The second electronic device executes the detection operation flow script, and automatically sequentially inputs the operation instructions sorted by the script number to the operation interface, so that the application to be detected sequentially generates a plurality of waits corresponding to different script numbers. The image frame is detected, and the second electronic device compares each of the image frames to be detected corresponding to the same script number with each of the correct image frames, and generates a detection result accordingly; wherein, the application to be detected is the The updated version of the app that passed the test. 如請求項6所述的應用程式自動化檢測系統,其中該第一電子裝置與該第二電子裝置是同一電腦裝置。 The application automatic detection system according to claim 6, wherein the first electronic device and the second electronic device are the same computer device. 如請求項6所述的應用程式自動化檢測系統,其中該第一電子裝置、該第二電子裝置與該影像處理裝置是同一電腦裝置。 The application automatic detection system according to claim 6, wherein the first electronic device, the second electronic device, and the image processing device are the same computer device. 如請求項6所述的應用程式自動化檢測系統,其中該錄影裝置、該影像處理裝置及該第二電子裝置是同一電腦裝置。 The application automatic detection system according to claim 6, wherein the recording device, the image processing device and the second electronic device are the same computer device. 如請求項6所述的應用程式自動化檢測系統,其中該已通過檢測的應用程式供安裝於一智慧型手機並由該智慧型手機執行以遠端操控智慧型家電。The application program automatic detection system according to claim 6, wherein the application program that has passed the detection is installed on a smart phone and executed by the smart phone to remotely control smart home appliances.
TW109144525A 2020-12-16 2020-12-16 Application program automatic detection method and system TWI747666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109144525A TWI747666B (en) 2020-12-16 2020-12-16 Application program automatic detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109144525A TWI747666B (en) 2020-12-16 2020-12-16 Application program automatic detection method and system

Publications (2)

Publication Number Publication Date
TWI747666B true TWI747666B (en) 2021-11-21
TW202226095A TW202226095A (en) 2022-07-01

Family

ID=79907735

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109144525A TWI747666B (en) 2020-12-16 2020-12-16 Application program automatic detection method and system

Country Status (1)

Country Link
TW (1) TWI747666B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8918760B2 (en) * 2012-12-07 2014-12-23 Sugarcrm Inc. Test script generation for application image validation
CN106652081A (en) * 2016-09-23 2017-05-10 郑州云海信息技术有限公司 Automatic inspection method of OQC (outgoing quality control) inspection machine
TWI650705B (en) * 2017-08-17 2019-02-11 凌華科技股份有限公司 System module and method for constructing customized display screen of non-intrusive data capture system
TWI693535B (en) * 2019-03-11 2020-05-11 凌華科技股份有限公司 Mouse cursor image detection comparison and feedback state judgment method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8918760B2 (en) * 2012-12-07 2014-12-23 Sugarcrm Inc. Test script generation for application image validation
CN106652081A (en) * 2016-09-23 2017-05-10 郑州云海信息技术有限公司 Automatic inspection method of OQC (outgoing quality control) inspection machine
TWI650705B (en) * 2017-08-17 2019-02-11 凌華科技股份有限公司 System module and method for constructing customized display screen of non-intrusive data capture system
TWI693535B (en) * 2019-03-11 2020-05-11 凌華科技股份有限公司 Mouse cursor image detection comparison and feedback state judgment method

Also Published As

Publication number Publication date
TW202226095A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US10019346B2 (en) Generating software test script from video
CN104123219B (en) Method and device for testing software
JP7012968B2 (en) Program inspection equipment, program inspection method and program inspection program
US10810113B2 (en) Method and apparatus for creating reference images for an automated test of software with a graphical user interface
KR20140038381A (en) Systems and methods for testing content of mobile communication devices
CN103136094A (en) Page testing method and device
JP2011060052A (en) Method for executing software test
CN105608005A (en) Television system test method and system
CN102789405A (en) Automated testing method and system for mainboard
US10705950B2 (en) Method and system for semi-automatic testing of program code for graphical user interfaces
CN105955884A (en) Method and device for checking white screen of App (Application) page
TWI747666B (en) Application program automatic detection method and system
US20150254170A1 (en) Method and system for entering information
KR20140059600A (en) Gui test apparatus using test scenario model based on states and the method thereof
US11422696B2 (en) Representation of user interface interactive regions
JP2009223568A (en) Scenario-generating device and program
CN113766212A (en) Test method, test device and test equipment for video decoding function
JP2022036210A (en) Program inspection equipment, program inspection method and program inspection program
CN111277818A (en) Multimedia format test method, device, system, terminal and storage medium
CN116643984A (en) Method, device, medium and electronic equipment for automatically testing component codes
CN110572641A (en) A testing method, device, and computer-readable storage medium for a display device
JP2020077150A (en) Trace device and programmable controller
EP3574406B1 (en) Method and system for automated testing of computer program code
KR101999321B1 (en) Program test system and test method using the same
CN116347067A (en) A set-top box automatic testing system and method