[go: up one dir, main page]

CN112835751B - Method and system for judging result through counting in home terminal startup and shutdown test - Google Patents

Method and system for judging result through counting in home terminal startup and shutdown test Download PDF

Info

Publication number
CN112835751B
CN112835751B CN201911163813.1A CN201911163813A CN112835751B CN 112835751 B CN112835751 B CN 112835751B CN 201911163813 A CN201911163813 A CN 201911163813A CN 112835751 B CN112835751 B CN 112835751B
Authority
CN
China
Prior art keywords
starting
self
function
checking
result
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.)
Active
Application number
CN201911163813.1A
Other languages
Chinese (zh)
Other versions
CN112835751A (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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN201911163813.1A priority Critical patent/CN112835751B/en
Publication of CN112835751A publication Critical patent/CN112835751A/en
Application granted granted Critical
Publication of CN112835751B publication Critical patent/CN112835751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to a method and a system for judging a result through counting in a home terminal on-off test, which specifically comprise the following steps: step 1, a computer terminal is connected with a home terminal through a serial port; step 2, turning on an AC adjustable power supply of the home terminal to perform starting operation, enabling a system to perform starting self-checking on each function of the home terminal, and printing a starting self-checking result; step 3, the computer terminal reads the starting-up self-checking data; step 4, the computer terminal analyzes and judges the starting result and the state of each function according to the starting self-checking data; and 5, storing the starting-up self-checking data and analyzing and judging results. The invention can enable a tester to clearly grasp the time of successful starting of the home terminal and the state of each function, and can also effectively judge the result after each starting, thereby bringing great convenience for test data collection, problem embodiment and analysis and facilitating the tester to find out the problems in the startup and shutdown test.

Description

Method and system for judging result through counting in home terminal startup and shutdown test
Technical Field
The invention belongs to the field of test and detection of home terminal products, and particularly relates to a method and a system for judging a result through counting in a home terminal on-off test.
Background
Along with the improvement of the test technology, the accuracy and the separability of the content of the test in the on-off test of the home terminal are higher and higher, but the current on-off test can only judge the problem in the test process by manually checking the function judgment result after the test is completed, and once the problem occurs, no data is used for analyzing reasons, so that the time for solving the problem in the research and development process is prolonged, and the difficulty for solving the problem is increased.
Disclosure of Invention
The invention provides a method and a system for judging a result through counting in a home terminal on-off test in order to solve the technical problems.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
The method for judging the result through counting in the on-off test of the home terminal is characterized by comprising the following steps:
step 1, a computer terminal is connected with a home terminal through a serial port;
step 2, turning on an AC adjustable power supply of the home terminal to perform starting operation, enabling a system to perform starting self-checking on each function of the home terminal, and printing a starting self-checking result;
step 3, the computer terminal reads the starting-up self-checking data;
Step 4, the computer terminal analyzes and judges the starting result and the state of each function according to the starting self-checking data;
And 5, storing the starting-up self-checking data and analyzing and judging results.
Further, a method for judging a result through counting in a home terminal on-off test specifically comprises the following steps:
step 1, a computer terminal is connected with a home terminal through a serial port;
step 2, turning on an AC adjustable power supply of the home terminal to perform starting operation, enabling a system to perform starting self-checking on each function of the home terminal, and printing a starting self-checking result;
when the AC adjustable power supply is turned on for the first time, a power supply first-time starting keyword is printed out in a starting self-checking result, when the AC adjustable power supply is turned on, the system performs self-checking on each function, when the function self-checking is turned on, a self-checking starting keyword is printed out in the starting self-checking result, after each function is successfully started, a corresponding function starting keyword is printed out in the starting self-checking result, and when the home terminal is successfully started, a starting ending keyword is printed out in the starting self-checking result; the power supply is started for the first time, and the self-checking starting key, the starting ending key and the function starting key of each function are all different marked characters;
step 3, the computer terminal reads the starting-up self-checking data;
Step 4, the computer terminal analyzes and judges the starting result and the state of each function according to the starting self-checking data;
Step 4-1, judging a test result of the on-off machine: searching a starting-up ending keyword in starting-up self-checking data of the home terminal, which is tested, and when the searching result of the starting-up ending keyword is that the starting-up of the home terminal is successful, ending the test; when the search result of the starting-up ending keyword is none, the starting-up failure of the home terminal is obtained;
Step 4-2, judging the opening state of each function: when the home terminal is started up and fails, sequentially inquiring function starting keywords corresponding to all functions in the startup self-checking data according to the starting sequence of all functions in the startup self-checking program, and judging that the n+1th function has starting faults when the function starting keywords of the n-th function are in existence and the function starting keywords of the n+1th function are not in existence in the inquiry result;
And 5, storing the starting-up self-checking data and analyzing and judging results.
Further, in step 2, the power supply first-time starting key, the self-checking starting key, the function starting key of each function and the starting end key are printed, and the printing time of each key is recorded in the starting self-checking result;
In step 4-1, the method further comprises calculating the time-consuming time of starting by the occurrence time of the key words which are started for the first time by the power supply and the occurrence time of the key words which are ended by the starting; in step 4-2, calculating the time-consuming time of the 1 st function opening by self-checking the appearance time of the opening key and the appearance time of the function key of the 1 st function in the self-checking program; the time consuming time for opening the n+1th function is calculated by the appearance time of the function key of the n-th function and the appearance time of the function key of the n+1th function.
Furthermore, the searching and the quantity counting of the keywords in the step 4 are automatically completed by adopting program instruction codes.
Furthermore, the computer terminal adopts a data transmission mode of RS23 for reading the startup self-checking result data of the home terminal.
Compared with the prior art, the invention has the following beneficial effects:
According to the invention, the home terminal is connected with the computer terminal, the starting self-checking result of the home terminal is read through the computer terminal, the starting process of the home terminal is clearly and completely presented in front of a tester, and the information such as the time, the number of times and the like of the key word of the starting self-checking result data is automatically counted through the computer terminal, so that the tester can clearly grasp the time of successful starting of the home terminal and the state of each function, and meanwhile, the result after each starting can be effectively judged, thereby bringing great convenience for test data collection, problem embodiment and analysis and convenience for the tester to find the problems in the starting and closing test.
Drawings
Fig. 1 is a system topology diagram of a result of judgment by counting in a home terminal on-off test according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining a result of a count passing in a home terminal power on/off test according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples.
Fig. 1 shows an embodiment of a system for judging a result of a count in a power-on/off test of a home terminal, which includes a home terminal 2, an AC adjustable power source 1 connected to the home terminal 2 through a wire, a computer terminal 3 connected to the home terminal 2 through a serial port, and a software terminal 4 installed on the computer terminal 3, wherein the software terminal 4 is configured to read power-on self-test data of the home terminal 2, and analyze and judge the power-on self-test data.
Fig. 2 shows an embodiment of a method for judging a result by counting in a home terminal on-off test, which specifically includes the following steps:
step 1, a computer terminal is connected with a home terminal through a serial port;
step 2, turning on an AC adjustable power supply of the home terminal to perform starting operation, enabling a system to perform starting self-checking on each function of the home terminal, and printing a starting self-checking result;
When the AC adjustable power supply is started for the first time, printing out a power supply first-time starting keyword in a starting self-checking result, recording the time of printing out the power supply first-time starting keyword in real time, when the AC adjustable power supply is started, performing self-checking on each function by a system, when the function self-checking is started, printing out a self-checking starting keyword in the starting self-checking result, printing out a corresponding function starting keyword in the starting self-checking result after each function is started successfully, recording the time of printing out the corresponding function starting keyword in real time, and when the home terminal is started successfully, printing out a starting ending keyword in the starting self-checking result, and recording the time of printing out the starting ending keyword in real time; the power supply is started for the first time, the self-checking starting key, the starting ending key and the function starting key of each function are all of different character codes, so that the occurrence times of the keys can be counted conveniently; for example, a power supply first time starting keyword adopts 'welcom' as a keyword, a self-checking starting keyword adopts 'kss' as a keyword, a starting ending keyword adopts 'logic' as a keyword and the like, and the character code numbers of the keywords can be set at will, and only the character code numbers of the keywords are required to be ensured to be different;
step 3, the computer terminal reads the starting-up self-checking data;
the computer terminal reads the starting self-checking result data of the home terminal in an RS23 data transmission mode;
Step 4, the computer terminal analyzes and judges the starting result and the state of each function according to the starting self-checking data;
in the analysis and judgment process, searching and quantity statistics of each keyword are automatically completed by adopting program instruction codes;
Step 4-1, judging a test result of the on-off machine: searching a starting-up ending keyword in starting-up self-checking data of the home terminal, and when the searching result of the starting-up ending keyword is that the starting-up of the home terminal is successful, obtaining the success of the starting-up of the home terminal; the time difference between the occurrence time of the key word which is started for the first time by the power supply and the occurrence time of the key word which is started and ended is the time consuming time of the starting at the time, and is also the time consuming time of the starting at the time of the test;
when the search result of the starting-up ending keyword is none, the starting-up failure of the home terminal is obtained;
Step 4-2, judging the opening state of each function: when the home terminal is started up and fails, sequentially inquiring function starting keywords corresponding to all functions in the startup self-checking data according to the starting sequence of all functions in the startup self-checking program, and judging that the 1 st function has a starting fault when the self-checking starting keywords are in the inquiring result and the function starting keywords of the 1 st function are; when the function starting key words of the n-th function are available and the function starting key words of the n+1th function are unavailable in the query result, judging that the n+1th function has starting faults (n is an integer and n is greater than or equal to 1); when the starting time of each function is required to be obtained, the difference value between the occurrence time of the self-checking starting key word and the occurrence time of the function key word of the 1 st function in the self-checking program is the time-consuming time of starting the 1 st function; the difference between the occurrence time of the function key of the nth function and the occurrence time of the function key of the n+1th function is the time-consuming time of opening the n+1th function (n is an integer and n is greater than or equal to 1);
step 5, storing the starting-up self-checking data and analyzing and judging results;
The analysis and judgment result comprises an analysis result and a judgment result, and the analysis result comprises a keyword frequency statistical result;
And 6, after the one-time startup test is finished, repeating the steps 2-5 to start the startup and shutdown test of the next round until the number of startup and shutdown tests reaches the specified number after the AC adjustable power supply reaches the set time.
According to the invention, the home terminal is connected with the computer terminal, the starting self-checking result of the home terminal is read through the computer terminal, the starting process of the home terminal is clearly and completely presented in front of a tester, and the information such as the time, the number of times and the like of the key word of the starting self-checking result data is automatically counted through the computer terminal, so that the tester can clearly grasp the time of successful starting of the home terminal and the state of each function, and meanwhile, the result after each starting can be effectively judged, thereby bringing great convenience for test data collection, problem embodiment and analysis and convenience for the tester to find the problems in the starting and closing test.
The above described embodiments are only preferred examples of the invention and are not exhaustive of the possible implementations of the invention. Any obvious modifications thereof, which would be apparent to those skilled in the art without departing from the principles and spirit of the present invention, should be considered to be included within the scope of the appended claims.

Claims (4)

1. The method for judging the result through counting in the on-off test of the home terminal is characterized by comprising the following steps:
step 1, a computer terminal is connected with a home terminal through a serial port;
step 2, turning on an AC adjustable power supply of the home terminal to perform starting operation, enabling a system to perform starting self-checking on each function of the home terminal, and printing a starting self-checking result;
In the on-off test, when the AC adjustable power supply is turned on for the first time, a power supply first-time starting keyword is printed out of a starting self-checking result, when the AC adjustable power supply is turned on, the system performs self-checking on each function, when the function self-checking is turned on, a self-checking starting keyword is printed out of the starting self-checking result, after each function is successfully started, a corresponding function starting keyword is printed out of the starting self-checking result, and when the home terminal is successfully started, a starting ending keyword is printed out of the starting self-checking result; the power supply is started for the first time, and the self-checking starting key, the starting ending key and the function starting key of each function are all different marked characters;
The method comprises the steps of recording the printing time of each keyword in a starting self-checking result while printing a first starting keyword, a self-checking starting keyword, a function starting keyword and a starting ending keyword of each function of a power supply;
step 3, the computer terminal reads the starting-up self-checking data;
Step 4, the computer terminal analyzes and judges the starting result and the state of each function according to the starting self-checking data;
The searching and the quantity statistics of each keyword are automatically completed by adopting program instruction codes;
Step 4-1, judging a test result of the on-off machine: searching a starting-up ending keyword in starting-up self-checking data of the home terminal, which is tested, and when the searching result of the starting-up ending keyword is that the starting-up of the home terminal is successful, ending the test; when the search result of the starting-up ending keyword is none, the starting-up failure of the home terminal is obtained;
calculating the time consumption time of starting by the occurrence time of the key words which are started for the first time by the power supply and the occurrence time of the key words which are started up and ended;
Step 4-2, judging the opening state of each function: when the home terminal is started up and fails, sequentially inquiring function starting keywords corresponding to all functions in the startup self-checking data according to the starting sequence of all functions in the startup self-checking program, and judging that the n+1th function has starting faults when the function starting keywords of the n-th function are in existence and the function starting keywords of the n+1th function are not in existence in the inquiry result;
Calculating the time-consuming time of opening the 1 st function by the appearance time of the self-checking opening key word and the appearance time of the function key word of the 1 st function in the self-checking program; calculating the time-consuming time for starting the n+1th function by the occurrence time of the function key of the n-th function and the occurrence time of the function key of the n+1th function;
And 5, storing the starting-up self-checking data and analyzing and judging results.
2. The method for determining the result of counting in the power-on/off test of the home terminal according to claim 1, wherein the computer terminal uses an RS23 data transmission method for reading the power-on self-test result data of the home terminal.
3. The method for judging the result of counting in the startup and shutdown test of the home terminal according to claim 1, further comprising a step 6 of repeating steps 2-5 until the number of startup and shutdown tests reaches a specified number after the startup test is completed once and the AC adjustable power supply reaches a set time.
4. The system for judging the result through counting in the on-off test of the home terminal is applied to the method for judging the result through counting in the on-off test of the home terminal according to claim 1, and is characterized by comprising the home terminal (2), an AC adjustable power supply (1) connected with the home terminal (2) through a wire, a computer terminal (3) connected with the home terminal (2) through a serial port, and a software terminal (4) arranged on the computer terminal (3), wherein the software terminal (4) is used for reading the on-off self-checking data of the home terminal (2) and analyzing and judging the on-off self-checking data.
CN201911163813.1A 2019-11-25 2019-11-25 Method and system for judging result through counting in home terminal startup and shutdown test Active CN112835751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911163813.1A CN112835751B (en) 2019-11-25 2019-11-25 Method and system for judging result through counting in home terminal startup and shutdown test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911163813.1A CN112835751B (en) 2019-11-25 2019-11-25 Method and system for judging result through counting in home terminal startup and shutdown test

Publications (2)

Publication Number Publication Date
CN112835751A CN112835751A (en) 2021-05-25
CN112835751B true CN112835751B (en) 2024-09-20

Family

ID=75922758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911163813.1A Active CN112835751B (en) 2019-11-25 2019-11-25 Method and system for judging result through counting in home terminal startup and shutdown test

Country Status (1)

Country Link
CN (1) CN112835751B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107632219A (en) * 2017-10-11 2018-01-26 四川九州电子科技股份有限公司 A kind of automatic switching test system and its method of testing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1241118C (en) * 2002-09-20 2006-02-08 联想(北京)有限公司 System and method for realizing automatic on/off test of computer
CN102012855B (en) * 2010-12-08 2012-08-29 广东威创视讯科技股份有限公司 Method and device for implementing on off test by data acquisition
DE102014207457A1 (en) * 2014-04-08 2015-10-08 Siemens Aktiengesellschaft Arrangement, test bench and method for testing a point machine
CN105578238B (en) * 2015-12-11 2019-04-16 康佳集团股份有限公司 A kind of automatic test approach and system of electrical equipment switching on and shutting down

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107632219A (en) * 2017-10-11 2018-01-26 四川九州电子科技股份有限公司 A kind of automatic switching test system and its method of testing

Also Published As

Publication number Publication date
CN112835751A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN109710508B (en) Test method, test device, test apparatus, and computer-readable storage medium
CN117421217B (en) Automatic software function test method, system, terminal and medium
CN102054100A (en) Static analysis-based method and system for detecting RTL (Resistor Transistor Logic) design errors
CN111427928A (en) Data quality detection method and device
CN110334005A (en) Graph database screening method and device, storage medium, electronic equipment
CN113065300A (en) Method, system and device for backtracking simulation waveform in chip EDA (electronic design automation) simulation
CN112526319B (en) Chip testing method and device, processor chip and server
CN110928793A (en) Regular expression detection method and device and computer readable storage medium
CN111309584B (en) Data processing method, device, electronic equipment and storage medium
CN112835751B (en) Method and system for judging result through counting in home terminal startup and shutdown test
US7415560B2 (en) Method of automatically monitoring computer system debugging routine
CN113778875A (en) System test defect classification method, device, equipment and storage medium
CN113672498A (en) Automatic diagnosis test method, device and equipment
CN117785587A (en) Power consumption testing method and device for embedded device and storage medium
CN109444570B (en) Electronic product fault diagnosis module and method based on memory
CN114942623B (en) Method and device for testing controller, vehicle and computer readable storage medium
CN115309661A (en) Application testing method and device, electronic equipment and readable storage medium
CN114036012A (en) Terminal testing method and device, electronic equipment and readable storage medium
US7689399B1 (en) Automatic extraction of design properties
CN109374038B (en) Change test method of nuclear security level instrument control product based on application prototype
CN114528215A (en) Interactive page testing method and element template generating method and device
CN116560930A (en) Server system integration test method, system, terminal and storage medium
CN116414610B (en) Method, device, equipment and storage medium for acquiring abnormal log fragments
CN117637011B (en) A memory verification system
CN102236729A (en) Method and device for testing functional coverage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant