CN101470649B - Automatic reboot test method - Google Patents

Automatic reboot test method Download PDF

Info

Publication number
CN101470649B
CN101470649B CN2007103054802A CN200710305480A CN101470649B CN 101470649 B CN101470649 B CN 101470649B CN 2007103054802 A CN2007103054802 A CN 2007103054802A CN 200710305480 A CN200710305480 A CN 200710305480A CN 101470649 B CN101470649 B CN 101470649B
Authority
CN
China
Prior art keywords
memory storage
reopening
count value
check
test procedure
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2007103054802A
Other languages
Chinese (zh)
Other versions
CN101470649A (en
Inventor
赖志明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhang Xinna
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 CN2007103054802A priority Critical patent/CN101470649B/en
Publication of CN101470649A publication Critical patent/CN101470649A/en
Application granted granted Critical
Publication of CN101470649B publication Critical patent/CN101470649B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for testing automatic rebooting, which is suitable for an operating system. The method comprises the following steps: the time of rebooting is arranged, a memory device in a computer system is selected to activate a rebooting testing program, whether a counting value is bigger than the time of rebooting is detected, if the counting value is not bigger than the time of the rebooting, whether the memory device is normal is detected to produce a detecting result, and the detecting result is recorded in a text file. The counting value is added with 1, and returns to the step of activating the rebooting testing program.

Description

Automatic reboot test method
Technical field
The invention relates to a kind of reopening machine method, and particularly relevant for a kind of automatic reboot test method that can the test memory device operating state.
Background technology
In general, provide various automatic reboot programs on the network now,, allowed computer system be able to the action of the machine of reopening voluntarily according to above-mentioned setting-up time so that after the user carries out setting-up time.
But, because version of the every renewal of operating system all can be changed its inner program, make that the operating system of each version just can't be compatible.In addition, above-mentioned boot program again automatically, all the operating system at a certain version designs, therefore, can't compatible new operating system if be used for the automatic reboot program of old edition operating system, that is to say, on the operating system of new edition, can't use the automatic reboot program of old edition, allow computer system carry out the action of Auto Power On.
Whether also in addition, above-mentioned automatic reboot program only limits to allow computer system reopen the process of machine, and can't go to check the running often of each memory storage after computer system is started shooting again.Because, can in reopening the process of machine, not check the operating state of memory storage, therefore can not write down each yet and carry out action whether success or failure.Thus, reopen in the process of machine in computer system, if when memory storage generation problem is arranged, the user can't learn immediately, and also can't the problem analysis place.
Summary of the invention
The invention provides a kind of automatic reboot test method,, can also check in the computer system whether normal operation of memory storage by this except carrying out automatic reboot.
The present invention proposes a kind of automatic reboot test method, is suitable for an operating system.This automatic reboot test method comprises the following steps: to set one and reopens the machine number of times.Choose the memory storage in the computer system, wherein this memory storage comprise read-only memory storage and non-read-only memory storage one of them.Activate one and reopen the machine test procedure.Check that whether a count value is greater than the machine of reopening number of times.Not when reopening the machine number of times, check whether memory storage is normal if check out count value, producing a check result, and be recorded in a text file.Count value is added 1, and get back to the step that activates reopening machine test procedure.If check out when count value is non-read-only memory storage greater than this reopenings machine number of times and memory storage, delete the temporary disk that is produced in the reopening machine test procedure.Show a test result.
In an embodiment of the present invention, the step of above-mentioned memory storage in choosing computer system comprises: judge whether to choose memory storages all in the computer system.If judged result, then enters the step of activation reopening machine test procedure for being.If judged result is then chosen the memory storage of desiring to check for not, and enter the step that activates this reopening machine test procedure.
In an embodiment of the present invention, above-mentionedly before the step of the state of checking memory storage, also comprise: judge whether to stop reopening machine test procedure.Stop reopening machine test procedure if judge, then count value is adjusted into reopening machine number of times.If judge and do not stop reopening machine test procedure, then enter and check whether normally step of memory storage.
In an embodiment of the present invention, the initial value of above-mentioned count value can be 0.
In an embodiment of the present invention, above-mentioned check result comprise supervision time and memory storage be normal condition and up-set condition one of them.
From another viewpoint, the present invention proposes a kind of automatic reboot test method, is suitable for an operating system.This automatic reboot test method comprises the following steps: to set one and reopens the machine number of times.Activate one and reopen the machine test procedure.Check that whether a count value is greater than the machine of reopening number of times.If when checking out count value not greater than the machine of reopening number of times, check whether the memory storage in the computer system is normal, producing a check result, and be recorded in a text file, wherein memory storage comprise read-only memory storage and non-read-only memory storage one of them.Count value is added 1, and get back to the step that activates reopening machine test procedure.If check out when count value is non-read-only memory storage greater than this reopenings machine number of times and memory storage, delete the temporary disk that is produced in the reopening machine test procedure.Show a test result.
In an embodiment of the present invention, whether above-mentioned memory storage in checking computer system more comprises before the step normally: judge whether to stop reopening machine test procedure.Stop reopening machine test procedure if judge, then count value is adjusted into reopening machine number of times.If judge and do not stop reopening machine test procedure, then enter whether normal step of the memory storage checked in the computer system.
In an embodiment of the present invention, the initial value of above-mentioned count value is 0.
In an embodiment of the present invention, above-mentioned check result comprise the state of the memory storage in supervision time and the computer system be normal condition and up-set condition one of them.
The present invention is by a computer program, except can automatically performing the reopening machine, and can check the operating state of the memory storage in the computer system.In addition, the check result of above-mentioned memory storage can be recorded in the text file, so that allow the user learn the state of computer system, check result is analyzed, with problem analysis place effectively (for example be memory storage takes place unusual).
For above and other objects of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
Fig. 1 illustrates the process flow diagram according to the automatic reboot test method of one embodiment of the invention.
Fig. 2 illustrates the process flow diagram according to the automatic reboot test method of another embodiment of the present invention.
Embodiment
Below will propose embodiment, and come to be illustrated, in the hope of tool common knowledge in this area being looked for more can understand the present invention and can implementing according to this at the present invention.Certainly, the form that following embodiment can also computer program realizes it, and utilizes computer readable memory medium to store this computer program, carries out following method in order to computer system.In the present embodiment, above-mentioned computer program for example use one can be cross-platform program language (for example VBScript language, but do not limit its scope) design so that can be applicable to operating system (the Operating System of different editions, OS) on, and then overcome compatible problem.
Fig. 1 illustrates the process flow diagram according to the automatic reboot test method of one embodiment of the invention.The automatic reboot test method that present embodiment provided is applicable to an operating system, for example for Microsoft be Windows (Windows OS).Please refer to Fig. 1, at first, in step S102, set one and reopen the machine number of times.That is to say that the user can import reopening machine number of times in advance when the reopening machine is tested, for example 5 times, 10 times, 50 times or 200 times, but do not limit its scope, make computer system be accomplished the number of times that the user imports the reopening machine.
Behind input reopening machine number of times, the user can be further as described in the step S104, choose the memory storage (not illustrating) in the computer system (not illustrating).That is to say that the selected memory storage of getting can be when computer system be carried out reopening machine (operating system activates again) each time, the action of testing.In the present embodiment, memory storage can comprise read-only memory storage and non-read-only memory storage one of them.But not read-only memory storage for example is hard disk or the network hard disc that computer system disposed.In addition, read-only memory storage for example be CD-ROM and DVD-ROM one of them.In addition, when the user choose CD-ROM and DVD-ROM one of them the time, computer program can remind the user to put into CD or DVD, so that carry out follow-up test process.
Afterwards, when reopen machine number of times and memory storage choose finish after, can carry out step S106, be exactly formally to activate reopening machine test procedure.Can activate automatically by computer program and activate reopening machine test procedure.
Then, in step S108, whether check a count value greater than the machine of reopening number of times, wherein the original state of count value is 0.That is to say that computer system can utilize computer program to check that whether count value is greater than the machine of reopening number of times.
If check result is found count value not greater than the machine of reopening number of times, then, check whether memory storage is normal as described in the step S110, producing a check result, and this check result is recorded in a text file.In the present embodiment, check result comprise supervision time and memory storage be normal or undesired one of them.That is to say, if memory storage is normal (Pass) state, then in text file the record check result of institute for example be " " 2007.09.1010:09:50a.m. "; " P " " wherein, " 2007.09.1010:09:50a.m. " represents the supervision time, and be respectively year, month, day, hour, min, second, a.m./p.m.), P represents that check result is normal (Pass).In other words, if memory storage is undesired (Fail) state, then the record check result of institute for example is " " 2007.09.1010:19:50p.m. ", " F " " in text file, and wherein F represents that check result is undesired (Fail).
Because memory storage comprises read-only memory storage and non-read-only memory storage.Therefore, in the present embodiment,, for example when hard disk or network hard disc, then for example can utilize the built-in Notepad.exe program in Windows the inside when being checked through non-read-only memory storage, and with Notepad.exe program copy (Copy) in a temporary disk.On the other hand, computer program also can copy to the data of memory storage in the above-mentioned temporary disk, to carry out the file comparison.Wherein, the mode of comparison is for example compared the size of file position.If comparison result is normal, the running of expression memory storage is normal.Otherwise, if by the memory storage reproducer to temporary disk time failure or comparison result undesired, represent that memory storage has problem.
In addition, when checking read-only memory storage, for example CD-ROM or DVD-ROM, but do not limit its scope, user for example can carry out DIR program (that is can browse among CD-ROM or the DVD-ROM data).If execution result is normal, represent that the running of read-only memory storage is normal, that is CD-ROM or DVD-ROM can read the data content in CD or the DVD.In other words,, represent that read-only memory storage is unusual if can't the DIR execution result, that is CD-ROM or DVD-ROM reads less than the data in CD or the DVD.In addition,, also can carry out the result of DIR, therefore can check out that also read-only memory storage is an abnormal results if CD-ROM or DVD-ROM do not have when placing CD or DVD.
After checking out memory storage, then enter step S112, count value is added 1, and get back to step S106, reopen the action of machine test procedure with sustained activation, up in step S108, when computer program is checked out count value greater than the machine of reopening number of times, just can stop to reopen the process of machine test procedure.
In order more clearly to describe each step of above-mentioned automatic reboot test method, below the detailed process of automatic reboot test method of the present invention is described for an embodiment again.Fig. 2 illustrates the automatic reboot test method process flow diagram according to another embodiment of the present invention.Please refer to Fig. 2, at first, in step S202, set one and reopen the machine number of times.That is to say that the setting computer system reopens the number of times of machine.
Then, in step S204, judge whether to choose memory storages all in the computer system.For instance, can demonstrate a window on the operating system, so that allow the user determine whether choose all memory storages.If the user determines to choose all memory storages, or computer program is not in not response of a period of time discovery (that is the user has to respond), and then computer program can be judged and choose all memory storages.Computer system afterwards, just directly enters among the step S208, activates reopening machine test procedure, so that can be checked above-mentioned selected memory storage in the process of the machine of reopening.
In other words,, then can in the window of operating system, select cancellation to choose all memory storages, make computer program judge and do not choose all memory storages if when the user does not want to test all memory storages.Afterwards, in step S206, choose the memory storage of desiring to check.That is to say that the visual demand of user is chosen the specific memory device, to carry out the process of subsequent examination.In addition, no matter be in step S204 or step S206, if choose read-only memory storage, that is when CD-ROM or DVD-ROM, computer program still can remind the user need insert CD or DVD.
Afterwards, when reopen machine number of times and memory storage choose finish after, can carry out step S208, be exactly formally to activate reopening machine test procedure.Can activate automatically by operating system and activate reopening machine test procedure.
Then, in step S210, whether check count value greater than the machine of reopening number of times, wherein the original state of count value is 0.That is to say that computer system can utilize computer program to check that whether count value is greater than the machine of reopening number of times.
If check result is found count value not greater than the machine of reopening number of times, then, judge whether to stop reopening machine test procedure as described in the step S212.In this step S212, computer program can be reserved a period of time, and for example 10 seconds, and wait for whether the user determines terminator.
If judged result is for stopping reopening machine test procedure (that is the user determines to stop reopening machine test procedure), then execution in step S214 is adjusted into reopening machine number of times with count value.For instance, at this moment,, be 200 o'clock and reopen the machine number of times if count value is 5, then directly count value is adjusted into 200 by 5, so that after subsequent step executes, stopped reopening machine test procedure.After count value being adjusted into reopening machine number of times, can advance as step S216, check just whether memory storage is normal, producing a check result, and be recorded in a text file.
Hold above-mentioned, if judged result for do not end reopening machine test procedure (for example be computer program through 10 seconds counting after, find that the user there is no response), then directly enter step S216, check just whether memory storage is normal, producing a check result, and be recorded in a text file.And in step S216, the process of inspection memory storage and the step S110 of Fig. 1 embodiment are same or similar, so repeat no more.
Then, in step S218, count value is added 1, and get back to step S208,, proceed the test process of memory storage so that activate reopening machine test procedure once more.
In addition, behind execution in step S210, if judge count value when reopening the machine number of times, then as described in the step S220, the temporary disk in the deletion reopening machine test procedure.For instance, when being checked through non-read-only memory storage, can xcopy to a temporary disk, whether normal to check non-read-only memory storage.Therefore, in step S220, above-mentioned temporary disk can be deleted.Afterwards, in step S222, show test results.That is to say that this test result can demonstrate all check results that write down when reopening machine each time, for example show with an inventory, so as to allow the user from then on test result just can learn check result and problem analysis place.
In sum, the present invention is by a computer program, except can automatically performing the reopening machine, and can check the operating state of the memory storage in the computer system in the lump.In addition, the check result of above-mentioned memory storage can be recorded in the text file, so that allow the user learn that computer system carries out the state of reopening machine test, and check result is analyzed, with problem analysis place effectively (for example be memory storage takes place unusual).In addition, computer program of the present invention be to use one can be cross-platform program language, make automatic reboot test method can be used for the operating system of new and old edition, thus, can overcome compatible problem effectively.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly has the knack of this skill person, without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when with being as the criterion that claim was defined.

Claims (9)

1. an automatic reboot test method is suitable for an operating system, and this automatic reboot test method comprises the following steps:
Set one and reopen the machine number of times;
Choose the memory storage in the computer system, wherein this memory storage comprise read-only memory storage and non-read-only memory storage one of them;
Activate one and reopen the machine test procedure;
Check that whether a count value is greater than this reopening machine number of times;
If check out when this count value is reopened machine number of times greater than this, check whether this memory storage is normal, producing a check result, and be recorded in a text file;
This count value is added 1, and get back to the step that activates this reopening machine test procedure;
If check out when this count value is non-read-only memory storage greater than this reopening machine number of times and this memory storage, delete a temporary disk that is produced in this reopening machine test procedure; And
Show a test result.
2. automatic reboot test method as claimed in claim 1 is characterized in that, the step of this memory storage in choosing this computer system comprises:
Judge whether to choose memory storages all in this computer system;
If judged result, then enters the step of this reopening machine test procedure of activation for being; And
If judged result is then chosen the memory storage of desiring to check for not, and enter the step that activates this reopening machine test procedure.
3. automatic reboot test method as claimed in claim 1 is characterized in that, also comprises before the step of the state of checking this memory storage:
Judge whether to stop this reopening machine test procedure;
Stop this reopening machine test procedure if judge, then this count value is adjusted into this reopening machine number of times; And
If judge and do not stop this reopening machine test procedure, then enter and check whether normally step of this memory storage.
4. automatic reboot test method as claimed in claim 1 is characterized in that, the initial value of this count value is 0.
5. automatic reboot test method as claimed in claim 1 is characterized in that, this check result comprise the state of supervision time and this memory storage be normal condition and up-set condition one of them.
6. an automatic reboot test method is suitable for an operating system, and this automatic reboot test method comprises the following steps:
Set one and reopen the machine number of times;
Activate one and reopen the machine test procedure;
Check that whether a count value is greater than this reopening machine number of times;
If check out when this count value is not reopened the machine number of times greater than this, check whether the memory storage in the computer system is normal, producing a check result, and be recorded in a text file, wherein this memory storage comprise read-only memory storage and non-read-only memory storage one of them;
This count value is added 1, and get back to the step that activates this reopening machine test procedure;
If check out when this count value is non-read-only memory storage greater than this reopening machine number of times and this memory storage, delete a temporary disk that is produced in this reopening machine test procedure; And
Show a test result.
7. automatic reboot test method as claimed in claim 6 is characterized in that, whether the memory storage in checking this computer system also comprises before the step normally:
Judge whether to stop this reopening machine test procedure;
Stop this reopening machine test procedure if judge, then this count value is adjusted into this reopening machine number of times; And
If judge and do not stop this reopenings machine test procedure, then enter whether normally step of the memory storage checked in this computer system.
8. automatic reboot test method as claimed in claim 6 is characterized in that, the initial value of this count value is 0.
9. automatic reboot test method as claimed in claim 6 is characterized in that, this check result comprise the state of the memory storage in supervision time and this computer system be normal condition and up-set condition one of them.
CN2007103054802A 2007-12-26 2007-12-26 Automatic reboot test method Expired - Fee Related CN101470649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007103054802A CN101470649B (en) 2007-12-26 2007-12-26 Automatic reboot test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103054802A CN101470649B (en) 2007-12-26 2007-12-26 Automatic reboot test method

Publications (2)

Publication Number Publication Date
CN101470649A CN101470649A (en) 2009-07-01
CN101470649B true CN101470649B (en) 2011-03-09

Family

ID=40828134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103054802A Expired - Fee Related CN101470649B (en) 2007-12-26 2007-12-26 Automatic reboot test method

Country Status (1)

Country Link
CN (1) CN101470649B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479131A (en) * 2010-11-23 2012-05-30 英业达股份有限公司 Test method
CN102831032A (en) * 2011-06-17 2012-12-19 鸿富锦精密工业(深圳)有限公司 Repair system and method for master boot record of hard disc
CN104834578A (en) * 2015-04-29 2015-08-12 深圳市立尔讯科技有限公司 Testing method and testing system for power-on starting function
CN112764691A (en) * 2021-02-05 2021-05-07 浙江威固信息技术有限责任公司 Solid state disk and safety management method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1151058A (en) * 1995-11-23 1997-06-04 联华电子股份有限公司 Integrated circuit with limited using frequency
CN1357835A (en) * 2000-12-08 2002-07-10 英业达股份有限公司 Test and processing method and device for accident stop of computer system
CN1427338A (en) * 2001-12-17 2003-07-02 英业达股份有限公司 System starting up self examination device and method
CN1577254A (en) * 2003-07-29 2005-02-09 威鲸资讯有限公司 Method for realizing multi-timing and automatic starting program for computer system
CN1707386A (en) * 2004-06-11 2005-12-14 威鲸资讯有限公司 Control system and method with multiple timing activating computer
CN1889053A (en) * 2005-06-29 2007-01-03 英业达股份有限公司 Method for automatic diagnosing system information
CN1936856A (en) * 2005-09-19 2007-03-28 英业达股份有限公司 Method for measuring internal memory using self-starting microoperation system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1151058A (en) * 1995-11-23 1997-06-04 联华电子股份有限公司 Integrated circuit with limited using frequency
CN1357835A (en) * 2000-12-08 2002-07-10 英业达股份有限公司 Test and processing method and device for accident stop of computer system
CN1427338A (en) * 2001-12-17 2003-07-02 英业达股份有限公司 System starting up self examination device and method
CN1577254A (en) * 2003-07-29 2005-02-09 威鲸资讯有限公司 Method for realizing multi-timing and automatic starting program for computer system
CN1707386A (en) * 2004-06-11 2005-12-14 威鲸资讯有限公司 Control system and method with multiple timing activating computer
CN1889053A (en) * 2005-06-29 2007-01-03 英业达股份有限公司 Method for automatic diagnosing system information
CN1936856A (en) * 2005-09-19 2007-03-28 英业达股份有限公司 Method for measuring internal memory using self-starting microoperation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CN 1889053 A,全文.

Also Published As

Publication number Publication date
CN101470649A (en) 2009-07-01

Similar Documents

Publication Publication Date Title
EP1989857B1 (en) Multi-protocol removable storage device
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN100498715C (en) Method for simulating IPMI by BIOS
CN101470649B (en) Automatic reboot test method
CN103744764A (en) Crontab based whole computer memory stability test method
US20090063580A1 (en) Apparatus, system, and method for hierarchical rollback of business operations
CN103257919A (en) Inspection method and device for script programs
CN109062741A (en) A kind of detection determination method of computer hardware configuration
CN108009067A (en) A kind of method and system that RAID card details are checked under server
CN100392606C (en) Method for leaking memory of positioning virtual operation system
CN106021030A (en) Database system and database fault processing method and device
CN107273251A (en) A kind of method of testing of the racks of Rack in a production environment JBOD storages
CN101398791A (en) Method for automatically monitoring USB disc
US7421574B2 (en) Method for auto-executing and booting-host computer through semiconductor storage device
CN101556552A (en) Test method of basic input output system
US20120137274A1 (en) Software application feedback collection system and method
CN105468527A (en) Test method and device of assembly in application
CN113157555A (en) System, method and equipment for online pressure measurement data leakage library real-time detection
CN101071396A (en) Method for setting system reset reason monitoring information and monitoring method
CN111858239B (en) Server hard disk monitoring method, device, equipment and medium
CN113626233B (en) Method, device and equipment for automatically detecting BIOS watchdog function
CN117369890B (en) Method, device, equipment and medium for starting server in guiding manner
CN102446107A (en) Startup method of computer system
CN101727369B (en) Method for automatically verifying environment variable settings
CN115168921B (en) Lossless deletion management device suitable for multi-solid-state hard disk system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhang Longjie

Inventor after: Zhang Wei

Inventor after: Zhang Xinna

Inventor after: Zhang Jinping

Inventor after: Liu Hongxia

Inventor before: Lai Zhiming

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170919

Address after: Double town Longhua street in Shuangcheng city of Heilongjiang Province, Harbin Municipal Committee of two group

Co-patentee after: Zhang Wei

Patentee after: Zhang Longjie

Co-patentee after: Zhang Xinna

Co-patentee after: Zhang Jinping

Co-patentee after: Liu Hongxia

Address before: Taipei City, Taiwan Chinese Shilin District Hougang Street No. 66

Patentee before: Inventec Corporation

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110309

Termination date: 20171226