[go: up one dir, main page]

TWI385404B - Method for testing computer - Google Patents

Method for testing computer Download PDF

Info

Publication number
TWI385404B
TWI385404B TW95135241A TW95135241A TWI385404B TW I385404 B TWI385404 B TW I385404B TW 95135241 A TW95135241 A TW 95135241A TW 95135241 A TW95135241 A TW 95135241A TW I385404 B TWI385404 B TW I385404B
Authority
TW
Taiwan
Prior art keywords
computer
tested
test
image file
server
Prior art date
Application number
TW95135241A
Other languages
Chinese (zh)
Other versions
TW200815780A (en
Inventor
Jian Wu
Original Assignee
Hon Hai Prec Ind Co 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW95135241A priority Critical patent/TWI385404B/en
Publication of TW200815780A publication Critical patent/TW200815780A/en
Application granted granted Critical
Publication of TWI385404B publication Critical patent/TWI385404B/en

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

電腦測試方法 Computer test method

本發明涉及一種測試方法,尤指一種適用於測試電腦之測試方法。 The invention relates to a test method, in particular to a test method suitable for testing a computer.

生產線上成批之產品,通常係按照一定之測試流程來作業,以提高測試效率,並且保證產品之品質。以前測試電腦產品(如個人電腦、伺服器等)之方法係採用PXE(Pre-boot Execution Environment,先啟動執行環境)啟動,從PXE伺服器下載測試鏡像文件到待測電腦之硬碟機,然後待測電腦啟動並運行測試模組,其具體步驟如下:1.建立一台PXE伺服器;2.建立一台測試資料存儲伺服器;3.伺服器管理人員根據不同待測電腦之硬體配置製作不同之測試鏡像文件;4.建立一台DHCP(Dynamic Host Configure Protocol,動態主機組態協定)伺服器;5.從PXE伺服器下載測試鏡像文件至待測電腦之硬碟機,運行測試模組,對待測產品之UUT(unit under test,待測單元)進行測試;6.上傳測試結果至測試資料存儲伺服器;7.清空測試鏡像文件所在之硬碟機之內容。 Batch products on the production line are usually operated according to certain test procedures to improve test efficiency and ensure product quality. Previously, the method of testing computer products (such as personal computer, server, etc.) was started by PXE (Pre-boot Execution Environment), and the test image file was downloaded from the PXE server to the hard disk drive of the computer to be tested. The test computer starts and runs the test module. The specific steps are as follows: 1. Establish a PXE server; 2. Establish a test data storage server; 3. Server management personnel according to different hardware configurations of the computer to be tested Create a different test image file; 4. Create a DHCP (Dynamic Host Configure Protocol) server; 5. Download the test image file from the PXE server to the hard disk drive of the computer to be tested, run the test mode Group, the UUT (unit under test) of the product to be tested is tested; 6. The test result is uploaded to the test data storage server; 7. The content of the hard disk drive where the test image file is located is cleared.

由於測試時是在硬碟機上運行測試模組,如果測試過程中突然斷電或操作員誤操作,則會導致硬碟機上之文件系統損壞而不得不重新安裝系統,延誤了測試時間,降低了測試效率。 Since the test module is run on the hard disk drive during the test, if the test power is suddenly powered off or the operator misuses, the file system on the hard disk drive may be damaged and the system has to be reinstalled, delaying the test time and reducing the test time. Test efficiency.

鑒於以上內容,有必要提供一種穩定且方便快捷之電腦測試方法。 In view of the above, it is necessary to provide a stable and convenient computer test method.

一種電腦測試方法,用於測試一待測電腦,該待測電腦包括一記憶體及一存儲設備,該電腦測試方法包括以下步驟:將一內核文件、一映像文件、一存儲設備映像文件及一測試模組分別存儲至該存儲設備,該映像文件包括該待測電腦之系統驅動模組、設備文件及各種命令,該存儲設備映像文件包括該待測電腦存儲設備之驅動模組;該待測電腦從該存儲設備啟動,將該內核文件及該存儲設備映像文件分別加載至該記憶體;該待測電腦將該存儲設備中之測試模組複製到記憶體,運行該測試模組開始測試。 A computer test method for testing a computer to be tested, the computer to be tested includes a memory and a storage device, and the computer test method comprises the following steps: a kernel file, an image file, a storage device image file, and a The test module is respectively stored in the storage device, and the image file includes a system driver module, a device file, and various commands of the computer to be tested, and the storage device image file includes a driving module of the computer storage device to be tested; The computer is started from the storage device, and the kernel file and the storage device image file are respectively loaded into the memory; the computer to be tested copies the test module in the storage device to the memory, and runs the test module to start testing.

相對習知技術,本發明在記憶體運行測試模組,不僅避免了在硬碟機上運行測試模組時,由於突然斷電或操作員之誤操作而導致硬碟機上之文件系統損壞,不得不重新安裝系統之情形,且在記憶體上運行測試模組所需之時間較短,提高了測試效率,保證了測試之穩定性。 Compared with the prior art, the invention runs the test module in the memory, which not only avoids the damage of the file system on the hard disk machine due to sudden power failure or operator error operation when the test module is run on the hard disk drive. The situation that the system is not reinstalled and the test module is run on the memory is shorter, which improves the test efficiency and ensures the stability of the test.

請參閱圖1,實現本發明電腦測試方法較佳實施方式之測試系統包括一具有一記憶體11及一存儲設備13之待測電腦10、一DHCP伺服器20及一PXE伺服器30。該DHCP伺服器20用於對網路中之IP位址進行自動分配以使網路管理員可以集中管理一個網路系統。該PXE伺服器30中存儲有內核文件31、映像文件33、存儲設備映像文件35及測試模組37。本實施例中,該存儲設備13為一硬碟機,該存 儲設備映像文件35為一硬碟機映像文件。該待測電腦10分別與該DHCP伺服器20及PXE伺服器30之間藉由網路40相連。在實施過程中,該DHCP伺服器20及PXE伺服器30也可以整合為一台伺服器,同時提供DHCP伺服器20與PXE伺服器30之功能。該內核文件31用於控制系統之記憶體管理、資料之輸入輸出操作及中斷處理等。該映像文件33包括該待測電腦10之系統驅動模組、設備文件及各種命令。該硬碟機映像文件包括該待測電腦10之硬碟機之驅動模組。該測試模組37用於對該待測電腦10進行測試。 Referring to FIG. 1 , a test system for implementing a preferred embodiment of the computer test method of the present invention includes a computer 10 to be tested having a memory 11 and a storage device 13 , a DHCP server 20 , and a PXE server 30 . The DHCP server 20 is used to automatically allocate IP addresses in the network to enable the network administrator to centrally manage a network system. The PXE server 30 stores a kernel file 31, an image file 33, a storage device image file 35, and a test module 37. In this embodiment, the storage device 13 is a hard disk drive, and the storage device The storage device image file 35 is a hard disk image file. The computer 10 to be tested is connected to the DHCP server 20 and the PXE server 30 via a network 40. In the implementation process, the DHCP server 20 and the PXE server 30 can also be integrated into one server, and the functions of the DHCP server 20 and the PXE server 30 are provided. The kernel file 31 is used to control the memory management of the system, the input and output operations of the data, and the interrupt processing. The image file 33 includes the system driver module, device files, and various commands of the computer 10 to be tested. The hard disk image file includes a drive module of the hard disk drive of the computer 10 to be tested. The test module 37 is used to test the computer 10 to be tested.

在對該待測電腦10測試前,先將編譯好之內核文件31放置在該PXE伺服器30上,將該映像文件33、該硬碟機映像文件及該測試模組37分別存儲至該PXE伺服器30上。將該待測電腦10開啟後,該待測電腦10從PXE伺服器30上將該內核文件31、映像文件33、硬碟機映像文件及測試模組37分別下載至該待測電腦10之硬碟機中。該待測電腦10下載完將重新啟動,待該待測電腦10自動重啟時,由於該待測電腦10之硬碟機中已存儲有各種文件,則系統將從該硬碟機啟動。啟動後,首先將該內核文件31加載至該待測電腦10之記憶體11,再將該硬碟機映像文件複製到該記憶體11,即將該硬碟機映像文件中之驅動模組加載至記憶體11,最後將該測試模組37複製到該記憶體11中,運行該測試模組37開始測試,並將測試結果上傳到該PXE伺服器30或該DHCP伺服器20之資料存儲中心。 Before the test of the computer 10 to be tested, the compiled kernel file 31 is placed on the PXE server 30, and the image file 33, the hard disk image file and the test module 37 are respectively stored to the PXE. Server 30. After the computer 10 to be tested is turned on, the computer 10 to be tested downloads the kernel file 31, the image file 33, the hard disk image file and the test module 37 from the PXE server 30 to the hard computer 10 to be tested. In the disc player. After the computer 10 to be tested is downloaded, it will be restarted. When the computer 10 to be tested is automatically restarted, since various files are already stored in the hard disk drive of the computer 10 to be tested, the system will be booted from the hard disk drive. After the booting, the kernel file 31 is first loaded into the memory 11 of the computer 10 to be tested, and the hard disk image file is copied to the memory 11, that is, the driving module in the hard disk image file is loaded to The memory 11 finally copies the test module 37 into the memory 11, runs the test module 37 to start the test, and uploads the test result to the PXE server 30 or the data storage center of the DHCP server 20.

請參閱圖2,利用上述測試系統測試待測電腦10之方法包 括以下步驟: Please refer to FIG. 2, the method package for testing the computer 10 to be tested by using the above test system. Including the following steps:

S10:該待測電腦10藉由該DHCP伺服器20得到IP位址。 S10: The computer under test 10 obtains an IP address by the DHCP server 20.

S20:該待測電腦10將該PXE伺服器30中之內核文件31、映像文件33、硬碟機映像文件及測試模組37分別下載至該待測電腦10之硬碟機中。 S20: The computer to be tested 10 downloads the kernel file 31, the image file 33, the hard disk image file and the test module 37 in the PXE server 30 to the hard disk drive of the computer 10 to be tested.

S30:該待測電腦10自動重啟。 S30: The computer 10 to be tested automatically restarts.

S40:該待測電腦10從硬碟機啟動,將該內核文件31加載至該待測電腦10之記憶體11,再將該硬碟機映像文件中之驅動模組加載至記憶體11。 S40: The computer 10 to be tested is booted from the hard disk drive, the kernel file 31 is loaded into the memory 11 of the computer 10 to be tested, and the drive module in the hard disk image file is loaded into the memory 11.

S50:該待測電腦10將該硬碟機中之測試模組37複製到該記憶體11中。 S50: The computer to be tested 10 copies the test module 37 in the hard disk drive into the memory 11.

S60:該待測電腦10運行該記憶體11中之測試模組37,開始測試。 S60: The computer 10 to be tested runs the test module 37 in the memory 11 to start testing.

S70:將測試結果上傳到一伺服器之資料存儲中心。 S70: Upload the test result to a data storage center of a server.

測試結束,將該待測電腦10之硬碟機中之內容清空。 At the end of the test, the contents of the hard disk drive of the computer 10 to be tested are emptied.

在另一種實施方式中,在S40步驟前,無需將該待測電腦10與該DHCP伺服器20及該PXE伺服器30連接,先將該內核文件31、映像文件33、存儲設備映像文件35及測試模組37直接存儲至該存儲設備13中,測試時直接從該存儲設備13啟動並執行後面之步驟。 In another embodiment, before the step S40, the computer 10 to be tested does not need to be connected to the DHCP server 20 and the PXE server 30, and the kernel file 31, the image file 33, the storage device image file 35, and The test module 37 is directly stored in the storage device 13, and the subsequent steps are directly initiated and executed from the storage device 13 during the test.

本發明電腦測試方法相較於傳統之測試方法,在記憶體11進行測試時,若突然斷電或操作員誤操作,只需重新 從硬碟機啟動並運行之後步驟進行測試,不會造成系統之損壞,避免了在硬碟機上運行測試模組37時,由於突然斷電或操作員之誤操作而導致硬碟機上之文件系統損壞,不得不重新安裝系統之情形,而且在記憶體11上運行測試模組37所需時間較短,提高了測試效率,保證了測試之穩定性。 Compared with the conventional test method, the computer test method of the present invention only needs to be restarted when the memory 11 is tested, if the power is suddenly turned off or the operator misuses the operation. After the hard disk drive is started and run, the test will not cause damage to the system. When the test module 37 is run on the hard disk drive, the file on the hard disk drive will be caused due to sudden power failure or operator error. The system is damaged, the system has to be reinstalled, and the test module 37 is run on the memory 11 for a shorter period of time, which improves the test efficiency and ensures the stability of the test.

10‧‧‧待測電腦 10‧‧‧Computer under test

11‧‧‧記憶體 11‧‧‧ memory

13‧‧‧存儲設備 13‧‧‧Storage equipment

20‧‧‧DHCP伺服器 20‧‧‧DHCP server

30‧‧‧PXE伺服器 30‧‧‧PXE server

31‧‧‧內核文件 31‧‧‧ kernel file

33‧‧‧映像文件 33‧‧‧Image files

35‧‧‧存儲設備映像文件 35‧‧‧Storage device image file

37‧‧‧測試模組 37‧‧‧Test module

40‧‧‧網路 40‧‧‧Network

圖1為實現本發明電腦測試方法較佳實施方式之測試系統硬體構成圖。 1 is a diagram showing the hardware configuration of a test system for implementing a preferred embodiment of the computer test method of the present invention.

圖2為本發明電腦測試方法較佳實施方式之流程圖。 2 is a flow chart of a preferred embodiment of a computer testing method of the present invention.

Claims (5)

一種電腦測試方法,用於測試一待測電腦,該待測電腦包括一記憶體及一硬碟機,該電腦測試方法包括以下步驟:a.將一內核文件、一映像文件、一硬碟機映像文件及一測試模組分別存儲至該硬碟機,該映像文件包括該待測電腦之系統驅動模組、設備文件及各種命令,該硬碟機映像文件包括該待測電腦之硬碟機之驅動模組;b.該待測電腦從該硬碟機啟動,將該內核文件及該硬碟機映像文件分別加載至該記憶體;c.該待測電腦將該硬碟機中之測試模組複製到記憶體,運行該記憶體中之測試模組開始測試;及d.若測試時待測電腦突然斷電或出現誤操作時,則該待測電腦重新從該硬碟機啟動並運行尚未完成之測試步驟繼續進行測試。 A computer test method for testing a computer to be tested, the computer to be tested comprises a memory and a hard disk drive, the computer test method comprises the following steps: a. putting a kernel file, an image file, a hard disk drive The image file and a test module are respectively stored in the hard disk drive, and the image file includes a system driver module, a device file, and various commands of the computer to be tested, and the hard disk image file includes the hard disk drive of the computer to be tested. a driving module; b. the computer to be tested is booted from the hard disk drive, and the kernel file and the hard disk image file are separately loaded into the memory; c. the computer to be tested is tested in the hard disk drive The module is copied to the memory, and the test module in the memory is started to start the test; and d. if the computer to be tested is suddenly powered off or misoperation occurs during the test, the computer to be tested is restarted and runs from the hard disk drive. The test steps that have not been completed continue to test. 如申請專利範圍第1項所述之電腦測試方法,其步驟還包括:在步驟a之前將該待測電腦連接於一DHCP伺服器,該待測電腦從該DHCP伺服器上得到IP位址。 The computer test method of claim 1, the method further comprising: connecting the computer to be tested to a DHCP server before the step a, the computer to be tested obtaining an IP address from the DHCP server. 如申請專利範圍第1項所述之電腦測試方法,其步驟還包括:在步驟a之前將該待測電腦連接於一PXE伺服器,該PXE伺服器中存儲有該內核文件、該映像文件、該存儲設備映像文件及該測試模組,該內核文件、該映像文件、該存儲設備映像文件及該測試模組從該PXE伺服器中被下載至該存儲設備中。 The computer test method of claim 1, wherein the step further comprises: connecting the computer to be tested to a PXE server before the step a, wherein the PXE server stores the kernel file, the image file, The storage device image file and the test module, the kernel file, the image file, the storage device image file, and the test module are downloaded from the PXE server to the storage device. 如申請專利範圍第1項所述之電腦測試方法,其步驟還包括:在步驟a之前將該待測電腦連接於一台伺服器,該伺 服器同時提供DHCP伺服器及PXE伺服器之功能,該伺服器中存儲有該內核文件、該映像文件、該存儲設備映像文件及該測試模組,該待測電腦從該伺服器上得到IP位址,該內核文件、該映像文件、該存儲設備映像文件及該測試模組從該伺服器中被下載至該存儲設備中。 The computer test method according to claim 1, wherein the step further comprises: connecting the computer to be tested to a server before the step a, the server The server also provides a function of a DHCP server and a PXE server, wherein the server stores the kernel file, the image file, the storage device image file, and the test module, and the computer to be tested obtains an IP from the server. The address file, the kernel file, the image file, the storage device image file, and the test module are downloaded from the server to the storage device. 如申請專利範圍第1項所述之電腦測試方法,該電腦測試方法還包括將測試結果上傳到該PXE伺服器或DHCP伺服器中存儲之步驟。 For example, the computer test method described in claim 1 of the patent scope further includes the step of uploading the test result to the PXE server or the DHCP server for storage.
TW95135241A 2006-09-22 2006-09-22 Method for testing computer TWI385404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95135241A TWI385404B (en) 2006-09-22 2006-09-22 Method for testing computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95135241A TWI385404B (en) 2006-09-22 2006-09-22 Method for testing computer

Publications (2)

Publication Number Publication Date
TW200815780A TW200815780A (en) 2008-04-01
TWI385404B true TWI385404B (en) 2013-02-11

Family

ID=44768899

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95135241A TWI385404B (en) 2006-09-22 2006-09-22 Method for testing computer

Country Status (1)

Country Link
TW (1) TWI385404B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI399559B (en) * 2009-07-22 2013-06-21 Wistron Corp Automated test equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084342A1 (en) * 2001-10-30 2003-05-01 Girard Luke E. Mechanism to improve authentication for remote management of a computer system
TW200530800A (en) * 2004-03-12 2005-09-16 Hon Hai Prec Ind Co Ltd System and method for rapidly diagnosing and testing computer hardware
TW200535602A (en) * 2004-04-16 2005-11-01 Hon Hai Prec Ind Co Ltd A system and method for testing motherboards automatically

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084342A1 (en) * 2001-10-30 2003-05-01 Girard Luke E. Mechanism to improve authentication for remote management of a computer system
TW200530800A (en) * 2004-03-12 2005-09-16 Hon Hai Prec Ind Co Ltd System and method for rapidly diagnosing and testing computer hardware
TW200535602A (en) * 2004-04-16 2005-11-01 Hon Hai Prec Ind Co Ltd A system and method for testing motherboards automatically

Also Published As

Publication number Publication date
TW200815780A (en) 2008-04-01

Similar Documents

Publication Publication Date Title
TWI578233B (en) Unified firmware managment system, non-transitory computer-readable storage medium and method for unified firmware managment
US9292312B2 (en) Simulated network boot environment for bootstrap redirection
US7069428B2 (en) System for managing boot-up of target computers
US20170228228A1 (en) Remote launch of deploy utility
US20100318779A1 (en) Platform and board customization technique in uefi firmware
US20100199290A1 (en) System and method for multifunction device enumeration
TW201610849A (en) Device, method, and non-transitory computer-readable medium for automatically configuring BIOS performance profiles of a computer system
CN107463388B (en) UEFI diskless starting method
US20160306757A1 (en) Bridge configuration in computing devices
CN106569904A (en) Information storage method and device and server
CN111414285A (en) Test method, test device and test equipment for starting function of server system
JP6750605B2 (en) Computer system, baseboard management controller, OS installation method, and program
CN116483468B (en) Operating system installation method and device, computer equipment and storage medium
TW201428613A (en) System and method for staring a diskless workstation
CN101373448A (en) Computer system with remote management
CN101055539A (en) Computer test system and method
US7490267B2 (en) System and method for testing computer
WO2017173924A1 (en) Method and device for switching between file systems
CN101145121B (en) computer testing method
TWI385404B (en) Method for testing computer
CN115981733A (en) Menu setting method, device, electronic device and storage medium
CN107506271A (en) A kind of method of testing and device
TWI416320B (en) System and method for testing computer
CN116049011A (en) Deployment method and device of test environment, electronic equipment and storage medium
CN115328717A (en) Kernel testing method and system supporting various domestic platforms

Legal Events

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