TWI385404B - Method for testing computer - Google Patents
Method for testing computer Download PDFInfo
- 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
Links
- 238000012360 testing method Methods 0.000 title claims description 73
- 238000000034 method Methods 0.000 title claims description 4
- 238000010998 test method Methods 0.000 claims description 17
- 230000006870 function Effects 0.000 claims description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Description
本發明涉及一種測試方法,尤指一種適用於測試電腦之測試方法。 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)
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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI399559B (en) * | 2009-07-22 | 2013-06-21 | Wistron Corp | Automated test equipment |
Citations (3)
| 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 |
-
2006
- 2006-09-22 TW TW95135241A patent/TWI385404B/en not_active IP Right Cessation
Patent Citations (3)
| 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 |