TW201411341A - Method for testing client apparatus - Google Patents

Method for testing client apparatus Download PDF

Info

Publication number
TW201411341A
TW201411341A TW101132867A TW101132867A TW201411341A TW 201411341 A TW201411341 A TW 201411341A TW 101132867 A TW101132867 A TW 101132867A TW 101132867 A TW101132867 A TW 101132867A TW 201411341 A TW201411341 A TW 201411341A
Authority
TW
Taiwan
Prior art keywords
test
log file
processing program
file
server
Prior art date
Application number
TW101132867A
Other languages
Chinese (zh)
Other versions
TWI477963B (en
Inventor
Po-Lin Chen
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW101132867A priority Critical patent/TWI477963B/en
Publication of TW201411341A publication Critical patent/TW201411341A/en
Application granted granted Critical
Publication of TWI477963B publication Critical patent/TWI477963B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A method for testing client apparatuses, applying to a server, is provided. In the method, a newly log file is read from a log-file database, wherein each client apparatus produces the log file after executing a process and saves the log file into the log-file database. Whether a corresponding client apparatus passes the process is determined according the log file. The corresponding client apparatus is determined to be a non-defective unit if it passes the process. Oppositely, if the corresponding client apparatus does not pass the process, whether a failure number is over than a default value is determined. The corresponding client apparatus is determined to be a defective unit if the failure number is over than the default value. Accordingly, the defective client apparatus could be detected.

Description

客戶端裝置的測試方法 Client device test method

本發明是有關於一種測試方法,且特別是有關於一種客戶端裝置的測試方法。 The present invention relates to a test method, and more particularly to a test method for a client device.

一般來說,電腦系統的作業系統(Operating System,OS)都會存放於儲存裝置(硬碟)上。另外,還會於儲存裝置的儲存空間中,再去分割出一個獨立的隱藏分區來備份作業系統的映像檔(Image)。因此當作業系統損壞或不能正常使用(例如作業系統的資料遺失等)時,可以藉由上述映像檔,使得作業系統恢復到正常狀態,以便電腦系統能夠正常運作。 Generally, the operating system (OS) of a computer system is stored on a storage device (hard disk). In addition, in the storage space of the storage device, an independent hidden partition is further divided to back up the image file of the operating system. Therefore, when the operating system is damaged or cannot be used normally (for example, the data of the operating system is lost, etc.), the operating system can be restored to the normal state by the above image file, so that the computer system can operate normally.

不過,由於儲存裝置本身可能發生物理損壞,例如儲存映像檔的磁區損壞或是儲存作業系統的磁區損壞,使得使用者將無法藉由上述的映像檔讓作業系統恢復到正常狀態,因此電腦系統將無法正常運作。 However, due to physical damage to the storage device itself, such as damage to the magnetic area of the storage image file or damage to the magnetic area of the storage operating system, the user will not be able to restore the operating system to the normal state by the above image file, so the computer The system will not function properly.

然而,使用者往往是在執行映像檔程序的時候,才發現作業系統有異常而導致執行映像檔程序失敗,但使用者卻也無法確定映像檔程序的異常,是人為執行上的錯誤,或是電腦裝置有損壞。如此,不僅在使用上造成不便,也將會帶來人為操作上的風險以及無法預期的損失。 However, the user often finds that the operating system is abnormal and the execution of the image file fails when the image file program is executed, but the user cannot determine the abnormality of the image file program, which is a human error in execution, or The computer device is damaged. In this way, not only is it inconvenient to use, but it also brings about human operational risks and unpredictable losses.

本發明提供一種客戶端裝置的測試方法,其可自動化地測試客戶端裝置,以及快速辨識出不良的客戶端裝置,進而可避免繁瑣的人為測試步驟及人工操作上的風險。 The invention provides a testing method for a client device, which can automatically test a client device and quickly identify a bad client device, thereby avoiding cumbersome human testing steps and manual operation risks.

本發明提出一種客戶端裝置的測試方法,適於透過伺服器來測試多個客戶端裝置,其中伺服器連接至客戶端裝置。在本測試方法中,自記錄檔資料庫中讀取新增的記錄檔,其中每一客戶端裝置在執行處理程序之後會將所產生的記錄檔儲存至記錄檔資料庫。依據記錄檔判斷對應的測試裝置是否通過處理程序,其中測試裝置屬於客戶端裝置其中之一。若測試裝置通過處理程序,判定測試裝置為良品。若測試裝置並未通過處理程序,判斷測試裝置未通過處理程序的失敗次數是否超過預設次數。若失敗次數尚未超過預設次數,刪除記錄檔資料庫中的記錄檔,並計數失敗次數。若失敗次數超過預設次數時,保留資料庫中的記錄檔,並判定測試裝置為不良品。 The present invention provides a test method for a client device adapted to test a plurality of client devices through a server, wherein the server is connected to the client device. In the test method, the newly added log file is read from the log file database, and each client device stores the generated log file to the log file database after executing the processing program. Whether the corresponding test device passes the processing program according to the log file, wherein the test device belongs to one of the client devices. If the test device passes the processing program, it is determined that the test device is a good product. If the test device does not pass the processing program, it is determined whether the number of failures of the test device that failed to pass the processing program exceeds a preset number of times. If the number of failures has not exceeded the preset number, delete the log file in the log file database and count the number of failures. If the number of failures exceeds the preset number, the log file in the database is retained, and the test device is determined to be defective.

在本發明之一實施例中,上述測試方法更包括依據測試日期建立備份資料夾。並且,還可在備份資料夾中分別建立測試通過資料夾與測試失敗資料夾。測試通過資料夾用以備份通過處理程序的記錄檔,而測試失敗資料夾用以備份並未通過處理程序的記錄檔。 In an embodiment of the invention, the testing method further includes establishing a backup folder according to the test date. Moreover, a test pass folder and a test failure folder can be separately created in the backup folder. The test is used to back up the log file that passes through the processing program, and the test failure folder is used to back up the log file that has not passed the processing program.

在本發明之一實施例中,倘若上述失敗次數超過預設次數,可將測試裝置的硬體位址記錄至不良品記錄檔中。 In an embodiment of the present invention, if the number of failures exceeds a preset number of times, the hardware address of the test device may be recorded in the defective product record file.

在本發明之一實施例中,若上述測試裝置通過處理程 序,可在顯示單元中顯示記錄檔的檔名。 In an embodiment of the invention, if the test device passes the processing In order, the file name of the log file can be displayed in the display unit.

在本發明之一實施例中,在上述依據記錄檔判斷對應的測試裝置是否通過處理程序的步驟中,可依據記錄檔的檔名來判斷測試裝置是否通過處理程序。 In an embodiment of the present invention, in the step of determining whether the corresponding test device passes the processing program according to the record file, whether the test device passes the processing program may be determined according to the file name of the record file.

在本發明之一實施例中,若上述失敗次數超過預設次數時,可在顯示單元中顯示記錄檔的檔名。 In an embodiment of the present invention, if the number of failures exceeds a preset number of times, the file name of the log file may be displayed in the display unit.

在本發明之一實施例中,上述處理程序為映像檔下載程序(image download process)。 In an embodiment of the invention, the processing program is an image download process.

基於上述,伺服器可讀取客戶端裝置在執行處理程序之後所產生的記錄檔,並且依據所讀取的記錄檔,判斷客戶端裝置為良品或不良品。如此一來,可自動化地辨識出不良的客戶端裝置,進而避免繁瑣的人為測試步驟及人工操作上的風險。 Based on the above, the server can read the log file generated by the client device after executing the processing program, and judge whether the client device is a good product or a defective product according to the read log file. In this way, poor client devices can be automatically identified, thereby avoiding cumbersome human testing steps and manual risk.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the present invention will be more apparent from the following description.

圖1是依照本發明一實施例所繪示之測試系統的方塊圖。請參照圖1,測試系統100包括伺服器110以及多個客戶端裝置120,其中伺服器110連接至客戶端裝置120-1~120-3以互相傳遞資料。為了方便說明,在此僅繪示三台客戶端裝置120-1~120-3,然而在實際應用中,並不限制客戶端裝置的數量。 1 is a block diagram of a test system in accordance with an embodiment of the invention. Referring to FIG. 1, the test system 100 includes a server 110 and a plurality of client devices 120, wherein the server 110 is connected to the client devices 120-1~120-3 to transfer data to each other. For convenience of description, only three client devices 120-1~120-3 are shown here, however, in practical applications, the number of client devices is not limited.

客戶端裝置120-1~120-3例如為輕量用戶端(Thin Client,TC)、個人電腦或筆記型電腦。客戶端裝置120-1~120-3可各自執行一處理程序。在此,處理程序例如是映像檔下載程序、安裝程序,或其他應用程式的指令操作,但處理程序不以此為限制。此外,客戶端裝置120執行處理程序後,可產生對應的記錄檔以記錄在執行處理程序過程中的相關資訊。 The client devices 120-1~120-3 are, for example, lightweight clients (Thin Client, TC), PC or laptop. Client devices 120-1~120-3 can each execute a processing routine. Here, the processing program is, for example, an image file download program, an installer program, or an instruction operation of other applications, but the processing program is not limited thereto. In addition, after the client device 120 executes the processing program, a corresponding log file can be generated to record related information during the execution of the processing program.

伺服器110可透過網際網路W連接至每一台客戶端裝置120-1~120-3。伺服器110中包括處理單元111與儲存單元113。在此,儲存單元113中包括記錄檔資料庫130,以儲存所有客戶端裝置120-1~120-3執行處理程序所產生的記錄檔。並且,處理單元111還可事先在儲存單元113中額外設置一個備份資料夾132,以供測試人員便於瞭解測試狀況。舉例來說,在此備份資料夾132中建立測試通過資料夾134以及測試失敗資料夾136,藉以在測試通過資料夾134儲存通過測試的記錄檔,而在測試失敗資料夾136中儲存未通過測試的記錄檔。 The server 110 can be connected to each of the client devices 120-1 to 120-3 via the Internet W. The processing unit 111 and the storage unit 113 are included in the server 110. Here, the storage unit 113 includes a log file database 130 for storing the log files generated by all the client devices 120-1 to 120-3 executing the processing program. Moreover, the processing unit 111 may additionally set a backup folder 132 in the storage unit 113 in advance for the tester to easily understand the test condition. For example, a test pass folder 134 and a test failure folder 136 are created in the backup folder 132, so that the test passes the test record file through the data folder 134, and the failed test is stored in the test failure folder 136. Log file.

在測試系統100中,客戶端裝置120-1~120-3執行處理程序所產生對應的記錄檔,可透過網際網路W自動地儲存到記錄檔資料庫130。而客戶端裝置120-1~120-3可根據記錄檔資料庫130中對應之記錄檔的存在與否,來決定是否執行處理程序。舉例來說,當處理程序為映像檔下載程序時,以客戶端裝置120-1為例,若在記錄檔資料庫130中已儲存在客戶端裝置120-1對應的記錄檔,則客戶端裝置120-1便不會再重複執行映像檔下載程序。反之,若記 錄檔資料庫130中尚不存在客戶端裝置120-1對應的記錄檔,則客戶端裝置120-1便會去執行映像檔下載程序。 In the test system 100, the client devices 120-1~120-3 execute the corresponding log files generated by the processing program, and can be automatically stored in the log file database 130 via the Internet W. The client devices 120-1~120-3 can decide whether to execute the processing program according to the presence or absence of the corresponding record file in the log file database 130. For example, when the processing program downloads the program for the image file, the client device 120-1 is taken as an example. If the log file corresponding to the client device 120-1 is already stored in the log file database 130, the client device is used. 120-1 will not repeat the image download process. On the contrary, if you remember If there is no record file corresponding to the client device 120-1 in the record database 130, the client device 120-1 will execute the image file download program.

以下即搭配上述測試系統100來說明客戶端裝置120-1~120-3的測試方法。圖2是依照本發明一實施例所繪示之客戶端裝置的測試方法流程圖。本實施例中的測試方法,適於透過伺服器110來測試客戶端裝置120-1~120-3。舉例來說,伺服器110可利用處理單元111執行多個程式碼片段,藉以實現下列測試方法的各步驟。 The test method of the client devices 120-1 to 120-3 will be described below in conjunction with the above test system 100. 2 is a flow chart of a test method of a client device according to an embodiment of the invention. The test method in this embodiment is adapted to test the client devices 120-1~120-3 through the server 110. For example, the server 110 can utilize the processing unit 111 to execute a plurality of code segments to implement the steps of the following test methods.

請同時參照圖1及圖2,於步驟S201中,伺服器110透過處理單元111自記錄檔資料庫130中讀取新增的記錄檔。詳細而言,由於每一客戶端裝置120在執行處理程序之後,會將所產生的記錄檔儲存至記錄檔資料庫130中,因此假設客戶端裝置120-1執行處理程序後,記錄檔資料庫130則會新增一個對應於客戶端裝置120-1的記錄檔。另外,客戶端裝置120-2及客戶端裝置120-3在執行處理程序後,亦會各自產生對應的記錄檔並儲存至記錄檔資料庫130。 Referring to FIG. 1 and FIG. 2 simultaneously, in step S201, the server 110 reads the newly added log file from the record file library 130 through the processing unit 111. In detail, since each client device 120 stores the generated log file into the log file repository 130 after executing the processing program, it is assumed that the client device 120-1 executes the processing program and records the file database. 130 will add a log file corresponding to the client device 120-1. In addition, after the client device 120-2 and the client device 120-3 execute the processing program, the corresponding log files are also generated and stored in the log file database 130.

藉此,根據記錄檔資料庫130所儲存的每個記錄檔,伺服器110可獲得客戶端裝置120-1~120-3在執行處理程序期間所記錄的資訊。 Thereby, based on each of the log files stored in the log file repository 130, the server 110 can obtain the information recorded by the client devices 120-1 to 120-3 during execution of the processing program.

另外,伺服器110還可依據測試日期建立備份資料夾132,例如是依照測試日期來命名備份資料夾132的名稱。備份資料夾132可建立於伺服器110中,或是建立於其他連接於伺服器110的儲存裝置(未繪示)。而在本實施例 中,以將備份資料夾132建立於伺服器110為例進行說明。進一步地說,伺服器110可在備份資料夾132中建立測試通過資料夾134與測試失敗資料夾136以供後續步驟使用。上述測試通過資料夾134用以備份通過處理程序的記錄檔,而測試失敗資料夾136用以備份並未通過處理程序的記錄檔。值得一提的是,若伺服器110偵測到具有相同測試日期的備份資料夾132,則伺服器110不會進行備份資料夾132的建立。 In addition, the server 110 can also create a backup folder 132 according to the test date, for example, the name of the backup folder 132 is named according to the test date. The backup folder 132 can be established in the server 110 or in another storage device (not shown) connected to the server 110. In this embodiment The description will be made by taking the backup folder 132 on the server 110 as an example. Further, the server 110 can establish a test pass folder 134 and a test failure folder 136 in the backup folder 132 for use in subsequent steps. The above test is used to back up the log file passing through the processing program by the folder 134, and the test failure folder 136 is used to back up the log file that has not passed through the processing program. It is worth mentioning that if the server 110 detects the backup folder 132 having the same test date, the server 110 does not perform the establishment of the backup folder 132.

接著,於步驟S203中,伺服器110依據記錄檔判斷對應的測試裝置是否通過處理程序,其中測試裝置屬於客戶端裝置120其中之一。舉例來說,假設伺服器110在記錄檔資料庫130所讀取之新增的記錄檔,其對應至客戶端裝置120-1,則將客戶端裝置120-1視為測試中的測試裝置。 Next, in step S203, the server 110 determines whether the corresponding test device passes the processing program according to the record file, wherein the test device belongs to one of the client devices 120. For example, assuming that the server 110 is in the new log file read by the log file repository 130, which corresponds to the client device 120-1, the client device 120-1 is considered to be the test device under test.

在本實施例中,伺服器110可依據所讀取之記錄檔的檔名,判斷測試裝置是否通過處理程序。舉例來說,以客戶端裝置120-1為例。倘若客戶端裝置120-1所對應之記錄檔的檔案名稱包括「fin」,則表示客戶端裝置120-1通過處理程序。若記錄檔的檔案名稱包括「end」,則表示客戶端裝置120-1在執行處理程序時發生錯誤而未通過處理程序。 In this embodiment, the server 110 can determine whether the test device passes the processing program according to the file name of the read log file. For example, the client device 120-1 is taken as an example. If the file name of the log file corresponding to the client device 120-1 includes "fin", it means that the client device 120-1 passes the processing program. If the file name of the log file includes "end", it means that the client device 120-1 has an error while executing the processing program and has not passed the processing program.

如此一來,伺服器110只要偵測記錄檔的檔名,即可判斷此記錄檔所對應的測試裝置是否通過處理程序。然而,本實施例不限制伺服器110依據記錄檔的檔名來判斷 測試裝置是否通過處理程序,於其他實施例中,伺服器110也可藉由讀取記錄檔中的字串以判斷測試裝置是否通過處理程序。也就是說,記錄檔中也可記錄代表通過處理程序或異常執行處理程序的字串,而藉由偵測記錄檔中是否存在代表通過或異常的字串來判定是否通過處理程序。 In this way, the server 110 can determine whether the test device corresponding to the log file passes the processing program by detecting the file name of the log file. However, this embodiment does not limit the server 110 to judge according to the file name of the log file. Whether the test device passes the processing program, in other embodiments, the server 110 can also determine whether the test device passes the processing program by reading the string in the log file. That is to say, the string representing the execution of the processing program by the processing program or the abnormality can also be recorded in the log file, and whether or not the processing program is passed can be determined by detecting whether there is a string representing the pass or abnormal in the log file.

在步驟S203中,倘若伺服器110判斷測試裝置通過處理程序,則執行步驟S205,伺服器110將會判定此測試裝置為良品。此外,伺服器110還可藉由顯示單元140來顯示將通過處理程序的記錄檔之檔名,或顯示對應記錄檔之測試裝置的硬體位址等相關資訊。硬體位址例如為媒體存取控制(Mcdia Access Control,MAC)位址。而顯示單元140例如是螢幕或其他具有顯示功能的電子裝置。 In step S203, if the server 110 determines that the test device passes the processing program, step S205 is executed, and the server 110 determines that the test device is a good product. In addition, the server 110 may also display, by the display unit 140, the file name of the log file to be passed through the processing program, or the related information such as the hardware address of the test device corresponding to the log file. The hardware address is, for example, a Media Access Control (MAC) address. The display unit 140 is, for example, a screen or other electronic device having a display function.

另外,當伺服器110判定測試的測試裝置為良品時,伺服器110還會在記錄檔資料庫130中,保留測試通過的記錄檔,並且將此記錄檔備份至測試通過資料夾134,以提供使用者進一步地查詢記錄檔中的詳細資訊。因此,若測試裝置已經執行且通過處理程序,則記錄檔資料庫130中會保留測試裝置的記錄檔,使得此測試裝置不會再次執行處理程序。如此一來,根據記錄檔資料庫130中的記錄檔,伺服器110可得知測試裝置是否正常執行處理程序,進而自動地判定測試裝置是否為良品,同時也可將記錄檔的相關資訊藉由顯示單元140以提示使用者,讓使用者可免於使用人工方式來進行測試裝置的檢查。 In addition, when the server 110 determines that the tested test device is a good product, the server 110 also keeps the log file passed the test in the log file database 130, and backs up the log file to the test pass folder 134 to provide The user further queries the detailed information in the log file. Therefore, if the test device has executed and passed the processing program, the log file of the test device will remain in the log file repository 130, so that the test device does not execute the processing program again. In this way, according to the log file in the log file database 130, the server 110 can know whether the test device normally executes the processing program, and thus automatically determines whether the test device is a good product, and can also use the related information of the log file. The display unit 140 is to prompt the user to prevent the user from performing the inspection of the test device by using a manual method.

而在步驟S203中,倘若伺服器110判斷測試裝置並 未通過處理程序,則執行步驟S207,由伺服器110判斷測試裝置未通過處理程序的失敗次數是否超過預設次數。詳細而言,伺服器110可由使用者來設定一預設次數做為伺服器110判斷測試裝置的次數上限(或者預設次數已內建於伺服器110內),用以給予未通過處理程序的測試裝置能夠再次執行處理程序的機會。也就是說,若預設次數越高,則測試裝置所執行的處理程序處理程序可容許較多次的失敗,而若預設次數越低,則測試裝置所執行的處理程序則會容許較少次的失敗。此外,伺服器110可記錄測試裝置未通過處理程序的失敗次數。舉例來說,若測試裝置是第一次在步驟S203中並未通過處理程序,則失敗次數將會被記錄為“1”,而若測試裝置是第二次在步驟S203中並未通過處理程序,則失敗次數將會被記錄為“2”,其餘以此類推,直到失敗次數超過預設次數。藉此,伺服器110可藉由計算失敗次數,進一步地判斷測試裝置未通過處理程序的失敗次數是否超過預設次數。 In step S203, if the server 110 determines the test device and If the processing program is not passed, step S207 is executed, and it is determined by the server 110 whether the number of failures of the test device not passing the processing program exceeds a preset number of times. In detail, the server 110 can be set by the user as a preset number of times as the upper limit of the number of times the server 110 determines the test device (or the preset number of times is built into the server 110) for giving a failed process. The test device is able to execute the opportunity to process the program again. That is to say, if the preset number is higher, the processing program executed by the testing device can allow more than one failure, and if the preset number is lower, the processing executed by the testing device will be less. The failure of the second. In addition, the server 110 can record the number of failures of the test device not passing the processing program. For example, if the test device does not pass the processing program for the first time in step S203, the number of failures will be recorded as "1", and if the test device is not passed the processing program for the second time in step S203 , the number of failures will be recorded as "2", and so on until the number of failures exceeds the preset number of times. Thereby, the server 110 can further determine whether the number of failures of the test device failing to pass the processing program exceeds a preset number of times by calculating the number of failures.

於步驟S207中,倘若伺服器110計算的失敗次數尚未超過預設次數,則執行步驟S209,伺服器110將會刪除記錄檔資料庫130中的記錄檔。也就是說,由於伺服器110會刪除未通過處理程序之測試裝置的記錄檔,使得記錄檔資料庫130中不具有對應此測試裝置的記錄檔,因此測試裝置可再一次執行處理程序。如此一來,只要測試裝置未通過處理程序的失敗次數未超過預設次數,此測試裝置皆可重新執行處理程序,而重新產生記錄檔並儲存至記錄檔 資料庫130,而重新回到步驟S201,伺服器110可再讀取此測試裝置執行處理程序所產生的記錄檔,進而判斷此測試裝置是否通過處理程序。 In step S207, if the number of failures calculated by the server 110 has not exceeded the preset number of times, then step S209 is performed, and the server 110 deletes the record file in the log file database 130. That is, since the server 110 deletes the log file of the test device that has not passed the processing program, so that the log file library 130 does not have a log file corresponding to the test device, the test device can execute the processing program again. In this way, as long as the number of failures of the test device failing to pass the processing program does not exceed the preset number of times, the test device can re-execute the processing program, and regenerate the log file and store it in the log file. The database 130 is returned to step S201, and the server 110 can read the log file generated by the test device to execute the processing program, thereby determining whether the test device passes the processing program.

然而,於步驟S207中,倘若伺服器110進行測試的測試裝置並未通過處理程序,且伺服器110計算的失敗次數超過預設次數時,則執行步驟S211,伺服器110將會保留記錄檔資料庫130中的記錄檔,並判定伺服器110所測試的測試裝置為不良品。此外,伺服器110可藉由顯示單元140以顯示對應不良品的記錄檔之檔名,或顯示對應不良品的硬體位址等相關資訊。 However, in step S207, if the test device that the server 110 performs the test does not pass the processing program, and the number of failures calculated by the server 110 exceeds the preset number of times, then step S211 is performed, and the server 110 retains the log file data. The log file in the library 130 is determined to be a defective product by the test device tested by the server 110. In addition, the server 110 can display the file name of the record file corresponding to the defective product by the display unit 140, or display related information such as the hardware address of the defective product.

另外,當伺服器110判定測試裝置為不良品時,伺服器110可將此測試裝置的硬體位址記錄至一個不良品記錄檔。具體而言,伺服器110可產生一個不良品記錄檔,用以記錄所有被判定為不良品的測試裝置(不良的客戶端裝置)。如此一來,當所有測試裝置皆被伺服器110測試完畢後,使用者只要取得不良品記錄檔,即可得知不良品的硬體位址,進而辨識不良的客戶端裝置。 In addition, when the server 110 determines that the test device is a defective product, the server 110 can record the hardware address of the test device to a defective product record file. Specifically, the server 110 can generate a defective product record for recording all the test devices (poor client devices) that are determined to be defective. In this way, after all the test devices are tested by the server 110, the user can obtain the hardware address of the defective product by obtaining the defective product record file, thereby identifying the bad client device.

綜上所述,在上述實施例中,客戶端裝置在執行處理程序之後會將所產生的記錄檔儲存在記錄檔資料庫中。伺服器可自記錄檔資料庫中讀取新增的記錄檔,藉以判斷各客戶端裝置是否通過處理程序。將通過處理程序的客戶端裝置判定為良品,將未通過處理程序且失敗次數超過預設次數的客戶端裝置判定為不良品。藉此,可自動化地辨識出不良的客戶端裝置,進而避免繁瑣的人為測試步驟及人 工操作上的風險。並且,給予未通過處理程序的客戶端裝置能夠再次執行處理程序的機會,而可降低不良品的數量。 In summary, in the above embodiment, the client device stores the generated log file in the log file database after executing the processing program. The server can read the newly added log file from the record file database to determine whether each client device passes the processing program. The client device that has passed the processing program determines that it is a good product, and determines that the client device that has not passed the processing program and the number of failures exceeds the preset number of times is a defective product. In this way, the poor client device can be automatically identified, thereby avoiding cumbersome human testing steps and people. Risk of operation. Further, the client device that has not passed the processing program can be given the opportunity to execute the processing program again, and the number of defective products can be reduced.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

100‧‧‧測試系統 100‧‧‧Test system

110‧‧‧伺服器 110‧‧‧Server

111‧‧‧處理單元 111‧‧‧Processing unit

113‧‧‧儲存單元 113‧‧‧ storage unit

120-1、120-2、102-3‧‧‧客戶端裝置 120-1, 120-2, 102-3‧‧‧ client devices

130‧‧‧記錄檔資料庫 130‧‧‧record file database

132‧‧‧備份資料夾 132‧‧‧Backup folder

134‧‧‧測試通過資料夾 134‧‧‧Test pass folder

136‧‧‧測試失敗資料夾 136‧‧‧Test failure folder

140‧‧‧顯示單元 140‧‧‧Display unit

S201~S211‧‧‧客戶端裝置的測試方法各步驟 S201~S211‧‧‧ Test methods for client devices

W‧‧‧網際網路 W‧‧‧Internet

圖1是依照本發明一實施例所繪示之測試系統的方塊圖。 1 is a block diagram of a test system in accordance with an embodiment of the invention.

圖2是依照本發明一實施例所繪示之客戶端裝置的測試方法流程圖。 2 is a flow chart of a test method of a client device according to an embodiment of the invention.

S201~S211‧‧‧客戶端裝置的測試方法各步驟 S201~S211‧‧‧ Test methods for client devices

Claims (7)

一種客戶端裝置的測試方法,適於透過一伺服器來測試多個客戶端裝置,其中該伺服器連接至該些客戶端裝置,該方法包括:自一記錄檔資料庫中讀取新增的一記錄檔,其中每一該些客戶端裝置在執行一處理程序之後會將所產生的該記錄檔儲存至該記錄檔資料庫;依據該記錄檔判斷對應的一測試裝置是否通過該處理程序,其中該些測試裝置屬於該些客戶端裝置其中之一;若該測試裝置通過該處理程序,判定該測試裝置為一良品;若該測試裝置並未通過該處理程序,判斷該測試裝置未通過該處理程序的一失敗次數是否超過一預設次數;若該失敗次數尚未超過該預設次數,刪除該記錄檔資料庫中的該記錄檔,並計數該失敗次數;以及若該失敗次數超過該預設次數時,保留該記錄檔資料庫中的該記錄檔,並判定該測試裝置為該不良品。 A method for testing a client device, adapted to test a plurality of client devices through a server, wherein the server is connected to the client devices, the method comprising: reading a new one from a log file database a log file, wherein each of the client devices stores the generated log file to the log file database after executing a processing program; and determining, according to the log file, whether the corresponding one of the test devices passes the processing program, The test device belongs to one of the client devices; if the test device passes the processing program, it is determined that the test device is a good product; if the test device does not pass the processing program, it is determined that the test device does not pass the Whether the number of failures of the processing program exceeds a preset number of times; if the number of failures has not exceeded the preset number of times, deleting the log file in the log file database, and counting the number of failures; and if the number of failures exceeds the preset number When the number of times is set, the log file in the log file database is retained, and the test device is determined to be the defective product. 如申請專利範圍第1項所述之客戶端裝置的測試方法,更包括:依據一測試日期建立一備份資料夾;以及在該備份資料夾中分別建立一測試通過資料夾與一測試失敗資料夾,其中該測試通過資料夾用以備份通過該處理程序的該記錄檔,而該測試失敗資料夾用以備份並未通過該處理程序的該記錄檔。 The method for testing a client device according to claim 1, further comprising: establishing a backup folder according to a test date; and establishing a test pass folder and a test failure folder in the backup folder respectively. The test is used to back up the log file that passes through the processing program, and the test failure folder is used to back up the log file that has not passed the processing program. 如申請專利範圍第1項所述之客戶端裝置的測試方法,其中倘若該失敗次數超過該預設次數,更包括:將該測試裝置的一硬體位址記錄至一不良品記錄檔中。 The method for testing a client device according to claim 1, wherein if the number of failures exceeds the preset number of times, the method further comprises: recording a hardware address of the testing device into a defective product file. 如申請專利範圍第1項所述之客戶端裝置的測試方法,其中若該測試裝置通過該處理程序,更包括:在一顯示單元中顯示該記錄檔的檔名。 The method for testing a client device according to claim 1, wherein if the testing device passes the processing program, the method further includes: displaying a file name of the log file in a display unit. 如申請專利範圍第1項所述之客戶端裝置的測試方法,其中依據該記錄檔判斷對應的該測試裝置是否通過該處理程序的步驟包括:依據該記錄檔的檔名來判斷該測試裝置是否通過該處理程序。 The method for testing a client device according to claim 1, wherein the step of determining whether the corresponding test device passes the processing program according to the record file comprises: determining whether the test device is determined according to a file name of the record file Pass this handler. 如申請專利範圍第1項所述之客戶端裝置的測試方法,其中若該失敗次數超過該預設次數時,更包括:在一顯示單元中顯示該記錄檔的檔名。 The test method of the client device of claim 1, wherein if the number of failures exceeds the preset number of times, the method further comprises: displaying the file name of the record file in a display unit. 如申請專利範圍第1項所述之客戶端裝置的測試方法,其中該處理程序為映像檔下載程序。 The method for testing a client device according to claim 1, wherein the processing program is an image file downloading program.
TW101132867A 2012-09-07 2012-09-07 Method for testing client apparatus TWI477963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101132867A TWI477963B (en) 2012-09-07 2012-09-07 Method for testing client apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101132867A TWI477963B (en) 2012-09-07 2012-09-07 Method for testing client apparatus

Publications (2)

Publication Number Publication Date
TW201411341A true TW201411341A (en) 2014-03-16
TWI477963B TWI477963B (en) 2015-03-21

Family

ID=50820841

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101132867A TWI477963B (en) 2012-09-07 2012-09-07 Method for testing client apparatus

Country Status (1)

Country Link
TW (1) TWI477963B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120676B2 (en) * 2000-04-28 2006-10-10 Agilent Technologies, Inc. Transaction configuration system and method for transaction-based automated testing
TWI229996B (en) * 2003-12-16 2005-03-21 Mitac Int Corp Operation system for accessing test function log file
TW200535602A (en) * 2004-04-16 2005-11-01 Hon Hai Prec Ind Co Ltd A system and method for testing motherboards automatically
CN101464828A (en) * 2007-12-19 2009-06-24 英业达股份有限公司 Evaluation method for main unit and its status

Also Published As

Publication number Publication date
TWI477963B (en) 2015-03-21

Similar Documents

Publication Publication Date Title
US9405666B2 (en) Health monitoring using snapshot backups through test vectors
US20160110268A1 (en) Apparatus and support method for state restoration
US11327742B2 (en) Affinity recommendation in software lifecycle management
CN106951345B (en) Consistency test method and device for disk data of virtual machine
WO2017124808A1 (en) Fault information reproduction method and reproduction apparatus
US9632919B2 (en) Request change tracker
CN106326067B (en) A kind of method and device that cpu performance is monitored under pressure test
JP2014501997A (en) Storage location selection for data storage based on storage location attributes and data usage statistics
EP3084610A1 (en) Process for displaying test coverage data during code reviews
US20130124610A1 (en) Generating production server load activity for a test server
CN104461860B (en) The method and system verified for operating system
WO2012130009A1 (en) Method and device for module repair in software
US20190079854A1 (en) Systems and methods for executing tests
US9842044B2 (en) Commit sensitive tests
US8140906B1 (en) Techniques for recovering data from cold images
JP6238221B2 (en) Apparatus, method and program for monitoring execution of software
US9557932B1 (en) Method and system for discovering snapshot information based on storage arrays
JP2016162428A (en) Information processing system, management device, and management method of information processing system
US9946853B1 (en) Techniques for application code obfuscation
US10382311B2 (en) Benchmarking servers based on production data
TWI477963B (en) Method for testing client apparatus
US10936400B2 (en) Dynamic handling of callhome data
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
TWI662407B (en) Computer apparatus, diagnostic method and non-transitory computer-readable storage medium
US20120030175A1 (en) System for offloading data analyis overhead from a primary site to a remote site

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees