TWI399641B - Method for verifying data - Google Patents
Method for verifying data Download PDFInfo
- Publication number
- TWI399641B TWI399641B TW97130876A TW97130876A TWI399641B TW I399641 B TWI399641 B TW I399641B TW 97130876 A TW97130876 A TW 97130876A TW 97130876 A TW97130876 A TW 97130876A TW I399641 B TWI399641 B TW I399641B
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- verifying
- storage unit
- code
- extracting
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
本發明是有關於一種電腦系統的測試方法,且特別是有關於電腦系統的系統資料的驗證方法。The present invention relates to a test method for a computer system, and more particularly to a method for verifying system data of a computer system.
一般而言,電腦系統開啟時,首先基本輸入輸出系統(Basic Input Output System,BIOS)將被啟動,以執行啟動自我測試(Power On Self Test,POST)。在完成POST之後,BIOS便會將有關於電腦系統的資料整合成一個表格,而寫入至記憶體中。也就是說,BIOS是依據系統管理基本輸入輸出系統(System Management BIOS,SMBIOS)所訂定的規格,將所擷取的資料以資料結構的方式儲存至記憶體中。In general, when the computer system is turned on, the Basic Input Output System (BIOS) will be activated to perform the Power On Self Test (POST). After completing the POST, the BIOS will integrate the data about the computer system into a table and write it to the memory. That is to say, the BIOS stores the captured data in the memory structure according to the specifications set by the system management basic input/output system (SMBIOS).
當電腦系統處於測試階段時,測試人員需要藉由讀取SMBIOS的資料,判斷BIOS所擷取的資料是否正確,藉以測試BIOS的程式碼是否有誤。然而,傳統在驗證SMBIOS的資料是否正確時,只能藉由人工方式來逐一進行比對,此舉不僅浪費人力亦耗費時間。When the computer system is in the test phase, the tester needs to read the SMBIOS data to determine whether the data retrieved by the BIOS is correct, so as to test whether the BIOS code is incorrect. However, traditionally, when verifying that the SMBIOS data is correct, it can only be compared manually by manual means, which is not only a waste of manpower but also time consuming.
本發明提供一種驗證資料的方法,可依據不同的需求而制定出不同的規格書,據以藉由規格書來自動進行驗證的動作。The invention provides a method for verifying data, which can be developed according to different requirements, and the verification action is automatically performed by the specification.
有鑑於此,本發明提出一種驗證資料的方法,適用於驗證電腦系統的多個系統資料。首先,自儲存單元擷取系 統資料。接著,依據使用者的選擇,自多個規格代號中擇一。其中這些規格代號各自具有對應的規格資料。之後,將規格資料更新至規格書中。最後,比對這些系統資料與規格書,獲得比對結果,並記錄比對結果。In view of this, the present invention provides a method for verifying data, which is suitable for verifying multiple system data of a computer system. First, the self-storage unit capture system General information. Then, according to the user's choice, one of the multiple specification codes is selected. Each of these specification codes has corresponding specifications. After that, update the specifications to the specification. Finally, compare these system data and specifications, obtain the comparison results, and record the comparison results.
在本發明之一實施例中,驗證資料的方法更包括建立資料庫。在資料庫中包括上述規格代號、各個規格代號所對應的規格資料以及規格書。In an embodiment of the invention, the method of verifying data further includes establishing a database. The specification code and the specification data and specifications corresponding to each specification code are included in the database.
在本發明之一實施例中,上述更新規格書的步驟可依據所選擇的規格代號,將此規格代號對應的一組規格資料填入至規格書對應的欄位中。In an embodiment of the present invention, the step of updating the specification may be based on the selected specification code, and the set of specification data corresponding to the specification code is filled into the field corresponding to the specification.
在本發明之一實施例中,上述在自儲存單元擷取系統資料的步驟之前,可藉由BIOS來擷取這些系統資料,而儲存至儲存單元。In an embodiment of the present invention, before the step of extracting system data from the storage unit, the system data may be retrieved by the BIOS and stored in the storage unit.
在本發明之一實施例中,上述自儲存單元擷取系統資料的步驟,可在電腦系統進入磁碟作業系統(Disk Operating System,DOS)時來進行之。In an embodiment of the present invention, the step of extracting system data from the storage unit may be performed when the computer system enters a Disk Operating System (DOS).
在本發明之一實施例中,上述在依據使用者的選擇,自上述規格代號中擇一的步驟之前,更可藉由使用者介面來顯示一清單,而呈現出這些規格代號以供使用者選擇。In an embodiment of the present invention, before the step of selecting one of the specification codes according to the user's selection, a list may be displayed through the user interface, and the specification codes are presented for the user. select.
在本發明之一實施例中,上述記錄比對結果的步驟,為儲存比對結果為記錄檔。In an embodiment of the present invention, the step of recording the comparison result is to store the comparison result as a record file.
綜上所述,本發明為預先設定好多組規格代號及各個規格代號所對應的規格資料。因此,在規格代號被選定之後,便能自動地將相關的規格資料填入至規格書中。據此, 在使用上更具彈性。之後,便能夠自動比對更新後的規格書與系統資料,並儲存比對後的比對結果。如此一來,不僅加快驗證過程的速度,亦提高驗證的正確率。In summary, the present invention pre-sets a plurality of sets of specification codes and specification data corresponding to each specification code. Therefore, after the specification code is selected, the relevant specification data can be automatically filled in the specification. According to this, More flexible in use. After that, the updated specification and system data can be automatically compared, and the comparison result after the comparison is stored. In this way, not only speeds up the verification process, but also improves the accuracy of verification.
為讓本發明之上述特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.
為了使本發明之內容更為明瞭,以下特舉實施例作為本發明確實能夠據以實施的範例。此領域具有通常知識者可以電腦程式的形式實現下述諸實施例,並利用電腦可讀取儲存媒體儲存此一電腦程式,以利電腦系統執行之,以電子自動化的方式完成驗證資料的方法。為了方便說明,下述實施例是以應用軟體做為實施方式。In order to clarify the content of the present invention, the following specific examples are given as examples in which the present invention can be implemented. Those skilled in the art can implement the following embodiments in the form of a computer program, and use a computer readable storage medium to store the computer program for the computer system to perform the method of verifying the data in an electronically automated manner. For convenience of explanation, the following embodiments are based on application software.
圖1是依照本發明一實施例所繪示的驗證資料的方法流程圖。請參照圖1,首先,在步驟S105中,應用軟體自儲存單元擷取系統資料。在本實施例中,儲存單元例如為記憶體,系統資料例如為SMBIOS資料。FIG. 1 is a flow chart of a method for verifying data according to an embodiment of the invention. Referring to FIG. 1, first, in step S105, the application software retrieves system data from the storage unit. In this embodiment, the storage unit is, for example, a memory, and the system data is, for example, SMBIOS data.
以測試BIOS流程來說,電腦系統(也就是被測系統(System Under Test,SUT))啟動之後,電腦系統首先會去執行BIOS,以藉由BIOS來擷取週邊設備的系統資料(例如,中央處理器的速度、快取的大小等),而儲存至儲存單元。也就是說,在BIOS完成POST之後,BIOS便會將有關於電腦系統的系統資料寫入至記憶體中。In order to test the BIOS process, after the computer system (that is, the System Under Test (SUT)) is started, the computer system first executes the BIOS to retrieve the system data of the peripheral device by the BIOS (for example, the central The speed of the processor, the size of the cache, etc.) are stored to the storage unit. That is to say, after the BIOS completes the POST, the BIOS will write the system data about the computer system into the memory.
在進行驗證時,應用軟體便能夠自記憶體中讀出相關的系統資料。在此,可在電腦系統進入磁碟作業系統(Disk Operating System,DOS)時,便藉由BIOS從儲存單元擷取系統資料。這是因為,在DOS環境下,記憶體當中的系統資料是由BIOS擷取而儲存之。據此,透過驗證BIOS所擷取的系統資料,便能夠測試BIOS的程式碼是否有誤。When verifying, the application software can read relevant system data from the memory. Here, you can enter the disk operating system in the computer system (Disk Operating System (DOS), the system data is retrieved from the storage unit by the BIOS. This is because, in the DOS environment, the system data in the memory is stored by the BIOS. Accordingly, by verifying the system data captured by the BIOS, it is possible to test whether the BIOS code is incorrect.
接著,在步驟S110中,應用軟體依據使用者的選擇,自多個規格代號中擇一。其中,這些規格代號各自具有對應的規格資料。由於規格資料會隨著硬體型號的不同而有所不同,因此,在比對系統資料跟規格書之前,先對規格書中的會變動的規格資料來進行設定。Next, in step S110, the application software selects one of the plurality of specification codes according to the user's selection. Among them, these specification codes have corresponding specifications and materials. Since the specification data will vary depending on the hardware model, set the specifications of the specifications in the specification before comparing the system data with the specifications.
舉例來說,可預先建立一個資料庫來記錄上述規格代號、各個規格代號所對應的規格資料以及一份規格書。可將規格書的欄位分為固定欄位與變動欄位。固定欄位用以記錄不會變動的規格資料,而變動欄位則用來記錄會隨著硬體設備的不同而變動的規格資料。之後,再藉由使用者介面來顯示一清單,藉以呈現出這些規格代號供使用者進行選擇。For example, a database may be pre-established to record the specification code, the specification data corresponding to each specification code, and a specification. The fields of the specification can be divided into fixed fields and variable fields. Fixed fields are used to record specifications that do not change, while change fields are used to record specifications that vary from hardware to device. Then, a list is displayed through the user interface, so that these specification codes are presented for the user to select.
以中央處理器(CPU)而言,不同廠商所生產的CPU,其規格資料亦不相同。因此,在資料庫中先建立好各種CPU的規格資料,並依據各個CPU的型號將一個規格代號賦予給其對應的一組規格資料。也就是建立規格代號與其對應的規格資料的關聯性。之後,使用者便可在清單中,透過選擇符合需求的規格代號,來獲得對應的規格資料。In terms of a central processing unit (CPU), the specifications of the CPUs produced by different manufacturers are also different. Therefore, the specifications of various CPUs are first established in the database, and a specification code is assigned to its corresponding set of specifications according to the model of each CPU. That is to establish the association between the specification code and its corresponding specification data. After that, the user can obtain the corresponding specification data by selecting the specification code that meets the requirements in the list.
在選擇完規格代號之後,在步驟S115中,應用軟體將規格資料更新至規格書中。例如,應用軟體依據與所選 擇的規格代號,將此規格代號對應的規格資料填入至規格書對應的欄位中。After the specification code is selected, in step S115, the application software updates the specification data to the specification. For example, application software basis and selection Select the specification code and fill in the specification data corresponding to the specification code in the field corresponding to the specification.
舉例來說,分散式管理任務編組(Distributed Management Task Force,DMTF)所訂定的SMBIOS的規格書中定義了多組的類型(Type)。例如,Type 0記錄BIOS的規格資料,Type 4記錄CPU的規格資料等。For example, the SMBIOS specification defined by the Distributed Management Task Force (DMTF) defines multiple sets of types. For example, Type 0 records the BIOS specification data, and Type 4 records the CPU specification data.
以修改CPU的規格資料為例,假設使用者介面所顯示的清單中,CPU包括“01”~“05”五組規格代號。當使用者選擇了規格代號“01”時,應用軟體便可依據規格代號“01”,去資料庫中取出規格代號“01”下所有相關的規格資料(也就是規格代號“01”的CPU資料)。之後,應用軟體再將此規格代號底下所對應的規格資料填入至規格書中Type 4的各個欄位中。Taking the specification data of the CPU as an example, assume that the CPU includes five sets of specification codes of "01" to "05" in the list displayed by the user interface. When the user selects the specification code “01”, the application software can take out the relevant specification data (that is, the CPU data of the specification code “01” according to the specification code “01” according to the specification code “01”. ). After that, the application software fills in the specification data corresponding to the specification code into the fields of Type 4 in the specification.
接著,在步驟S120中,應用軟體開始比對這些系統資料與規格書,而獲得比對結果。最後,如步驟S125所示,應用軟體將比對結果記錄下來。也就是將比對結果儲存為記錄檔。例如,將錯誤的比對結果儲存為一個記錄檔,而將正確的比對結果儲存為另一個記錄檔。另外,亦可將錯誤與正確的比對結果合併在同一個記錄檔中。可視使用者情況來決定,在此並不限制。據此,使用者便能夠檢視記錄檔來查詢SMBIOS的系統資料是否有誤。Next, in step S120, the application software starts to compare the system data and the specification to obtain the comparison result. Finally, as shown in step S125, the application software records the comparison result. That is, the comparison result is stored as a log file. For example, storing the wrong comparison result as one log file and storing the correct comparison result as another log file. In addition, errors can be combined with the correct comparison results in the same log file. It can be determined by the user's situation and is not limited here. According to this, the user can view the log file to check whether the system data of the SMBIOS is incorrect.
另外,更可設定在驗證過程結果之後,僅將錯誤的比對結果的記錄檔輸出,以供使用者快速得知錯誤之處來修改BIOS的程式碼。In addition, it is also possible to set the log file of the wrong comparison result after the result of the verification process, so that the user can quickly know the error to modify the BIOS code.
綜上所述,在上述實施例中,預先在資料庫中設定一個規格代號給不同型號的硬體,並將各個硬體相關的規格資料與其對應的規格代號設定好關聯性。據此,便可依據不同的需求而制定出不同的規格書,在使用上更具彈性。 之後,再藉由更新後的規格書來自動驗證系統資料。如此一來,不僅加快驗證過程的速度,亦提高驗證的正確率。In summary, in the above embodiment, a specification code is set in the database to different types of hardware in advance, and the related specifications of each hardware are set to be associated with the corresponding specification code. According to this, different specifications can be developed according to different needs, and it is more flexible in use. After that, the system data is automatically verified by the updated specification. In this way, not only speeds up the verification process, but also improves the accuracy of verification.
雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above preferred 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. Therefore, the scope of the invention is defined by the scope of the appended claims.
S105~S125‧‧‧本發明一實施例的驗證資料的方法各步驟S105~S125‧‧‧ steps of the method for verifying data according to an embodiment of the present invention
圖1是依照本發明一實施例所繪示的驗證資料的方法流程圖。FIG. 1 is a flow chart of a method for verifying data according to an embodiment of the invention.
S105~S125‧‧‧本發明一實施例的驗證資料的方法各步驟S105~S125‧‧‧ steps of the method for verifying data according to an embodiment of the present invention
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97130876A TWI399641B (en) | 2008-08-13 | 2008-08-13 | Method for verifying data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97130876A TWI399641B (en) | 2008-08-13 | 2008-08-13 | Method for verifying data |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201007446A TW201007446A (en) | 2010-02-16 |
TWI399641B true TWI399641B (en) | 2013-06-21 |
Family
ID=44827056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97130876A TWI399641B (en) | 2008-08-13 | 2008-08-13 | Method for verifying data |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI399641B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI804301B (en) * | 2022-05-05 | 2023-06-01 | 仁寶電腦工業股份有限公司 | Verification system of basic input output system and verification method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI221255B (en) * | 2003-05-09 | 2004-09-21 | Via Tech Inc | Device information management system of application device and method thereof |
TWI259369B (en) * | 2004-12-28 | 2006-08-01 | Inventec Corp | Method for updating system management basic input/output system data |
TWI296778B (en) * | 2006-01-26 | 2008-05-11 | Asustek Comp Inc | Method and system for maintaining smbios |
-
2008
- 2008-08-13 TW TW97130876A patent/TWI399641B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI221255B (en) * | 2003-05-09 | 2004-09-21 | Via Tech Inc | Device information management system of application device and method thereof |
TWI259369B (en) * | 2004-12-28 | 2006-08-01 | Inventec Corp | Method for updating system management basic input/output system data |
TWI296778B (en) * | 2006-01-26 | 2008-05-11 | Asustek Comp Inc | Method and system for maintaining smbios |
Also Published As
Publication number | Publication date |
---|---|
TW201007446A (en) | 2010-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103699372B (en) | From central storage means booting computer system | |
US20150269058A1 (en) | Completing functional testing | |
JP2007047862A5 (en) | ||
TW201243722A (en) | Booting method and computer system | |
WO2011079685A1 (en) | Method and device for magaging regression test | |
CN108777158B (en) | Method and device for testing Trim performance of solid state disk and computer equipment | |
JP2008532118A5 (en) | ||
US20120260130A1 (en) | Non-volatile random access memory test system and method | |
US10713237B2 (en) | Automatically correcting invalid scripts in web applications | |
CN109426611A (en) | A kind of method for testing software and device | |
TW201818253A (en) | Detection system and detection method | |
CN110377468A (en) | A kind of test method and relevant apparatus of CPU activation core number setting | |
CN109213505A (en) | Server hard disc firmware method for refreshing and device | |
US20090217259A1 (en) | Building Operating System Images Based on Applications | |
CN104956326A (en) | Test script creation based on abstract test user controls | |
TWI399641B (en) | Method for verifying data | |
JP2005196779A5 (en) | ||
CN116467975B (en) | Data processing method, device, electronic equipment and storage medium | |
US20130326466A1 (en) | Human Readable Software Program Test Step | |
US11106571B2 (en) | Identification of input object in a graphical user interface | |
US8892956B2 (en) | Electronic device and method for managing test results | |
CN107368596A (en) | A kind of method and device of Bloom filter query set element | |
CN111581219A (en) | Monitoring data acquisition method and device | |
CN110389777A (en) | A kind of edition upgrading verification method, system and the relevant apparatus of BIOS node | |
CN113987378A (en) | Page rendering time duration monitoring method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |