CN1512344A - Test method for open and close of computer - Google Patents

Test method for open and close of computer Download PDF

Info

Publication number
CN1512344A
CN1512344A CNA021583668A CN02158366A CN1512344A CN 1512344 A CN1512344 A CN 1512344A CN A021583668 A CNA021583668 A CN A021583668A CN 02158366 A CN02158366 A CN 02158366A CN 1512344 A CN1512344 A CN 1512344A
Authority
CN
China
Prior art keywords
time
computing machine
testing
machine
close
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.)
Granted
Application number
CNA021583668A
Other languages
Chinese (zh)
Other versions
CN1315052C (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.)
Mitac International Corp
Original Assignee
Mitac International 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 Mitac International Corp filed Critical Mitac International Corp
Priority to CNB021583668A priority Critical patent/CN1315052C/en
Publication of CN1512344A publication Critical patent/CN1512344A/en
Application granted granted Critical
Publication of CN1315052C publication Critical patent/CN1315052C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention disclosed test method for on-off of computer, and is especially test method for on-off of computer by means of its advanced configuration power management interface (ACPI). By means of the temporary storage and ACPI table defined on ACPI, the power supply state of computer is set and the program loop with time and frequency as control factors is set to test the on-off performance of the computer for long time and several times without needing other instrument and equipment.

Description

A kind of method for testing open/close machine of computing machine
Technical field
The present invention relates to a kind of method for testing open/close machine of computing machine, refer in particular to a kind of high energy management interface (ACPI that utilizes each computing machine; Advance Configuration Power Management Interface) carries out the method that switching on and shutting down are tested.
Background technology
Present power supply loop test needs a machine to control the Push And Release of AC power, yet itself costs an arm and a leg machine, and its use habit difference of different users, easily causes the serviceable life of machine and the problems such as precision attenuating of test.
So, as how new thinking, new technology, new method will be simply, method of testing imports this field fast, is current important problem.
Summary of the invention
Fundamental purpose of the present invention is to save cost.The present invention is the high energy interface that utilizes computing machine itself, to test, is to have got rid of known thinking and technology, with this interface and the simple testing software of a cover, can reach the purpose of switching on and shutting down test, saves many costs widely.
Another object of the present invention is to increase precision and test speed.Owing to need not install hardware to test, only need utilize software to control, therefore convenient many, increase work efficiency; And owing to there is not the restriction of hardware, therefore when test because of the error problem that hardware produced, will not exist.
Above-mentioned purpose of the present invention is achieved in that a kind of method for testing open/close machine of computing machine, is test computer required step of carrying out quality control after production is finished, and it is characterized in that step comprises:
(a) with a computer booting to be tested;
(b) this computing machine will carry out the initialized operation first time;
(c) obtain the recurrence operation via one first recursive program;
(d) write down recurrence value to a log file that recursive program each time produces;
(e) contrast definition in this time recurrence value and the initialization for the first time, if contrast is for equating, end of test (EOT) then; If contrast then continues following steps for unequal;
(f) this computing machine carries out the initialization second time;
(g) compare via each definition in the initialization for the second time of one second recursive program, if contrast for unequal, is then carried out the operation of start; If contrast is then carried out the operation of soft-off for equating.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, the initialization operation first time of described (b) item comprises:
(1) definition of the on time length (On Interval) in the command line (Command Line), a unused time length (Off Interval) and a master switch machine number of times (Total Times) is read;
(2) write down the value that reads a defined testing time (T1mes Tested) in the archives from one.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, first recursive program of described (c) item defines the present invention to carry out system testing repeatedly and test the rule of finishing.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, the rule of described first recursive program is that this testing time is that the preceding testing time of recurrence adds a sum.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, described can obtaining via recursive program each time via a Basic Input or Output System (BIOS) (BIOS; Basic Input/OutputSystem) a fixed high energy management interface table (ACPI Table who is provided; AdvanceConfiguration Power Management Interface Table) working storage (Register) in is with temporary data.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, the initialization operation second time of described (f) item comprises:
(1) from a real-time timer (RTC; Real Time Clock) reads the on time first time in;
(2) read a present time (Current Time) in this real-time timer certainly.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, second recursive program of described (g) item is to define the test order that the present invention starts shooting and shuts down.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, the test order of described second recursive program is that present time is the on time first time and on time length sum.
The method for testing open/close machine of a kind of computing machine of the present invention is characterized in that, the operation of the soft-off of described (g) item comprises:
(1) definition one warning time (Alarm Time) is present time and unused time length sum;
(2) this warning time is set in the alarm working storage (Alarm Register) in the real-time timer, with temporary data;
(3) close all just in the incident of computing, and with the data activation system of this alarm working storage in the real-time timer, once more should computer booting to be tested.
Below will be to make a detailed description, can fully understand technology contents of the present invention at accompanying drawing of the present invention and figure number.
Description of drawings
Fig. 1 is a preferred embodiment process flow diagram of the present invention.
Embodiment
Relate to following figure number in that this law is bright: (1) step 1, (2) step 2, (3) step 3, (4) step 4, (5) step 5, (6) step 6, (61) step 6 11, (62) step 6 12, (63) step 6 13, (64) step 6 14, (65) step 6 15, (66) step 6 16, (67) step 6 17, (68) step 6 18, (70) step 7 ten.
(1)-(3) be computing machine of the present invention initialization step for the first time.
(4) be to define the present invention to carry out system testing repeatedly and test the rule of finishing.
(5) be record and contrast each step that defines of the present invention to (6).
(61) be to show test passes notice of the present invention and finish step of the present invention to (70).
(62) to (65) be the step of computing machine of the present invention initialization for the second time and start.
The present invention be directed to the whether normal and test procedure of invention of computer development stage test computer switching on and shutting down.Utilize again this program directly is poured in the test computer, but or be poured into the interface of stored routines such as diskette sheet, discs, with itself and the binding of computer run system, the step of testing.
Seeing also shown in Figure 1ly, is the process flow diagram of preferred embodiment of the present invention, is test computer required step of carrying out the quality checking after the development phase.The present invention is setting computer start and the total degree of shutdown, and sets the length of on time and unused time, with repeatedly switching on and shutting down with test for a long time under finish the test of computer system, its step is as follows:
Step 1 (1): can utilize with manual type or in the computer power supply opening device of a test macro and open a computing machine to be measured;
Step 2 (2): a central processing unit (CPU of this computing machine to be measured; Central Process Unit) can read the definition value of an on time length (On Interval) in the command line (Command Line), a unused time length (Off Interval) and a master switch machine number of times (Total Times);
Step 3 (3): this central processing unit can read one again and be present in a defined testing time (Times Tested) value in the record archives (Record File) of memory block in the computing machine;
Step 4 (4): obtain the recurrence operation via one first recursive program, and first recursive program is to define the present invention to carry out system testing repeatedly and test the rule of finishing, the rule of this preferred embodiment be this testing time be testing time (i.e. defined testing time value in this record archives) before the recurrence add one with, be expressed as testing time=testing time+1 with mathematical formulae, so, for example, if this test is begun by zero degree, then the defined testing time value in these record archives was zero in last step, computing via above-mentioned formula, this number of times that adds the General Logistics Department is for once, so this COMPUTER DETECTION was promptly calculated, accumulative frequency used when detecting next time; Answering above-mentioned computing, can obtain via recursive program each time via a Basic Input or Output System (BIOS) (BIOS; Basic Input/Output System) a fixed high energy management interface table (ACPI Table who is provided; Advance Configuration PowerManagement Interface Table) working storage (Register) address in adds up the temporary value of testing time afterwards with temporary this;
Step 5 (5): this tested computing machine can write down a recurrence value (number of times that promptly adds the General Logistics Department) of recursive program generation each time to this working storage one log file, so that the defined testing time value that writes down in the archives to be provided next time;
Step 6 (6): central processing unit can contrast the definition value (promptly reading the definition value of this master switch machine number of times in this command line) in this time recurrence value (being this number of times that adds the General Logistics Department) and the initialization for the first time;
Step 6 ten one (61): if the contrast of step 6 (6) is for equating that then the display of the display of computing machine or this test macro promptly shows the information by test, and skips to step 7 ten (70);
Step 6 ten two (62): if the contrast of step 6 (6) is unequal, then this computing machine carries out the initialization second time, i.e. a real-time timer (RTC in computing machine; Real Time Clock) reads an on time (the First On Time) first time in;
Step 6 ten three (63): read a present time (Current Time) certainly in this real-time timer;
Step 6 ten four (64): compare via each definition in the initialization for the second time of one second recursive program, this second recursive program is to define the test order that the present invention starts shooting and shuts down, be that present time is for the first time on time and on time length sum, be expressed as present time=first time on time+on time length with mathematical formulae;
Step 6 ten five (65): if second recursive program of above-mentioned steps 64 (64) is unequal, then carry out the operation of start, get back to step 6 ten three (63) after promptly waiting for a second;
Step 6 ten six (66): if second recursive program of above-mentioned steps 64 (64) is for equating, computing machine can carry out the operation of soft-off, promptly define a warning time (Alarm Time) and be present time and unused time length sum, be expressed as warning time=present time+unused time length with mathematical formulae;
Step 6 ten seven (67): computing machine one of is set in this warning time in the real-time timer in the alarm working storage (Alarm Register), with temporary data;
Step 6 ten eight (68): computing machine cuts out all just in the incident of computing, and will be in the data activation system of this alarm working storage in step 6 ten seven (67) the real-time timers, and with power settings is S5 state (the promptly at this moment real-time timer of meaning is still in timing), and when the time of real-time timer is identical with the time in the alarm working storage, promptly once more should computer booting to be tested, promptly get back to step 1 (1);
Step 7 ten (70): test is finished.
Take a broad view of institute in steps, the present invention is the loop that utilizes program, with time and number of times is the factor of control, desire start and the testing time and the test duration length of shutdown are done an arbitrary setting, and do not need cooperating of Other Instruments and equipment, therefore cost be can save, precision and test speed improved.
The above only is the detailed description of preferred embodiment of the present invention; be not to be used for limiting the scope of the invention, so every personnel that are familiar with this type of technology are not breaking away from the spirit and scope of the present invention; appropriate change of being done and adjustment all are included in the scope of patent protection of the present invention.

Claims (9)

1, a kind of method for testing open/close machine of computing machine is test computer required step of carrying out quality control after production is finished, and it is characterized in that step comprises:
(a) with a computer booting to be tested;
(b) this computing machine will carry out the initialized operation first time;
(c) obtain the recurrence operation via one first recursive program;
(d) write down recurrence value to a log file that recursive program each time produces;
(e) contrast definition in this time recurrence value and the initialization for the first time, if contrast is for equating, end of test (EOT) then; If contrast then continues following steps for unequal;
(f) this computing machine carries out the initialization second time;
(g) compare via each definition in the initialization for the second time of one second recursive program, if contrast for unequal, is then carried out the operation of start; If contrast is then carried out the operation of soft-off for equating.
2, the method for testing open/close machine of a kind of computing machine as claimed in claim 1 is characterized in that, the initialization operation first time of described (b) item comprises:
(1) definition of the on time length in the command line, a unused time length and a master switch machine number of times is read;
(2) write down the value that reads a defined testing time in the archives from one.
3, the method for testing open/close machine of a kind of computing machine as claimed in claim 1 is characterized in that, first recursive program of described (c) item defines the present invention to carry out system testing repeatedly and test the rule of finishing.
4, the method for testing open/close machine of a kind of computing machine as claimed in claim 3 is characterized in that, the rule of described first recursive program is that this testing time is that the preceding testing time of recurrence adds a sum.
5, the method for testing open/close machine of a kind of computing machine as claimed in claim 3, it is characterized in that, working storage in the described fixed high energy management interface table that can obtain via recursive program each time being provided via a Basic Input or Output System (BIOS) is with temporary data.
6, the method for testing open/close machine of a kind of computing machine as claimed in claim 1 is characterized in that, the initialization operation second time of described (f) item comprises:
(1) in a real-time timer, reads the on time first time;
(2) read a present time in this real-time timer certainly.
7, the method for testing open/close machine of a kind of computing machine as claimed in claim 1 is characterized in that, second recursive program of described (g) item is to define the test order that the present invention starts shooting and shuts down.
8, the method for testing open/close machine of a kind of computing machine as claimed in claim 7 is characterized in that, the test order of described second recursive program is that present time is the on time first time and on time length sum.
9, the method for testing open/close machine of a kind of computing machine as claimed in claim 1 is characterized in that, the operation of the soft-off of described (g) item comprises:
(1) definition one warning time is present time and unused time length sum;
(2) this warning time is set in the alarm working storage in the real-time timer, with temporary data;
(3) close all just in the incident of computing, and with the data activation system of this alarm working storage in the real-time timer, once more should computer booting to be tested.
CNB021583668A 2002-12-30 2002-12-30 Test method for open and close of computer Expired - Fee Related CN1315052C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021583668A CN1315052C (en) 2002-12-30 2002-12-30 Test method for open and close of computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021583668A CN1315052C (en) 2002-12-30 2002-12-30 Test method for open and close of computer

Publications (2)

Publication Number Publication Date
CN1512344A true CN1512344A (en) 2004-07-14
CN1315052C CN1315052C (en) 2007-05-09

Family

ID=34236985

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021583668A Expired - Fee Related CN1315052C (en) 2002-12-30 2002-12-30 Test method for open and close of computer

Country Status (1)

Country Link
CN (1) CN1315052C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100382044C (en) * 2004-10-22 2008-04-16 英业达股份有限公司 Cell information acquiring method and acquiring module
CN100395720C (en) * 2005-11-25 2008-06-18 鸿富锦精密工业(深圳)有限公司 Automated computer on-off operation testing device and method
CN100410881C (en) * 2004-04-16 2008-08-13 伊斯曼柯达公司 Electronic device, control method, and program product
CN100478839C (en) * 2006-09-25 2009-04-15 佛山市顺德区顺达电脑厂有限公司 Periodic switch control device of electric power supply
CN100489794C (en) * 2006-01-21 2009-05-20 鸿富锦精密工业(深圳)有限公司 System and method for detecting time of starting up computer system
CN101957789A (en) * 2009-07-17 2011-01-26 精品科技股份有限公司 Method for counting operation time of computer
CN101526585B (en) * 2008-03-07 2011-02-16 佛山市顺德区顺达电脑厂有限公司 Automatic switching test system and method
CN101685415B (en) * 2008-09-27 2011-05-04 佛山市顺德区顺达电脑厂有限公司 Test device and test method
CN102479120A (en) * 2010-11-22 2012-05-30 鸿富锦精密工业(深圳)有限公司 Startup/shutdown test system and startup/shutdown test method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566960B (en) * 2008-04-25 2011-02-16 佛山市顺德区顺达电脑厂有限公司 Method for testing automatically powering on and off

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134641A (en) * 1998-03-20 2000-10-17 Vsli Technology, Inc. Method of and system for allowing a computer system to access cacheable memory in a non-cacheable manner
CN1142442C (en) * 2000-12-01 2004-03-17 英业达股份有限公司 Autoamtic on-off tester

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100410881C (en) * 2004-04-16 2008-08-13 伊斯曼柯达公司 Electronic device, control method, and program product
CN100382044C (en) * 2004-10-22 2008-04-16 英业达股份有限公司 Cell information acquiring method and acquiring module
CN100395720C (en) * 2005-11-25 2008-06-18 鸿富锦精密工业(深圳)有限公司 Automated computer on-off operation testing device and method
CN100489794C (en) * 2006-01-21 2009-05-20 鸿富锦精密工业(深圳)有限公司 System and method for detecting time of starting up computer system
CN100478839C (en) * 2006-09-25 2009-04-15 佛山市顺德区顺达电脑厂有限公司 Periodic switch control device of electric power supply
CN101526585B (en) * 2008-03-07 2011-02-16 佛山市顺德区顺达电脑厂有限公司 Automatic switching test system and method
CN101685415B (en) * 2008-09-27 2011-05-04 佛山市顺德区顺达电脑厂有限公司 Test device and test method
CN101957789A (en) * 2009-07-17 2011-01-26 精品科技股份有限公司 Method for counting operation time of computer
CN101957789B (en) * 2009-07-17 2013-12-04 精品科技股份有限公司 Method for counting operation time of computer
CN102479120A (en) * 2010-11-22 2012-05-30 鸿富锦精密工业(深圳)有限公司 Startup/shutdown test system and startup/shutdown test method

Also Published As

Publication number Publication date
CN1315052C (en) 2007-05-09

Similar Documents

Publication Publication Date Title
Gupta et al. ACT: Designing sustainable computer systems with an architectural carbon modeling tool
CN1248114C (en) Method for checking sofeware memory leak
CN1315052C (en) Test method for open and close of computer
CN100338581C (en) Operating system-independent method and system of determining CPU utilization
CN104360919A (en) Method for automatically testing performance, function and stability of SSD (solid state drive)
CN104407951A (en) Method for automatically testing server
CN101051271A (en) Intelligent CPU super frequency method
CN101593249A (en) A kind of apocrypha analytical approach and system
CN103577310A (en) Method and device for recording software debugging logs
CN103984634A (en) Memory unsteady state pressure test method of LINUX server
CN101739319B (en) Computer device
CN106844184A (en) A kind of distributed system metadata performance test methods, script and instrument
CN1295614C (en) Testing software timing method
CN1815454A (en) Method for controlling flash memory access time, access system of flash memory and flash memory controller
CN1223942C (en) Automatic periodic test system and method for power switch of computer equipment
CN1402125A (en) Method and system for direct enabling multiple PDA operation systems by hardware element
CN111858703B (en) Method and device for counting performance test data of benchmark SQL
CN1402124A (en) Method and system for enabling multiple PDA operation systems by menu
CN101000575A (en) Computer program execution bottleneck analysing processing method and system
Liu et al. TRACER: A trace replay tool to evaluate energy-efficiency of mass storage systems
CN1670695A (en) Quick computer starting-up method and apparatus
Minartz et al. Tool environments to measure power consumption and computational performance
CN105427890A (en) Method and device for recording restart times of storage system
CN111475107A (en) Method and device for formatting hard disk and storage medium
CN1171149C (en) Test method of interval timer inside computer 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
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee