CN113900875A - Startup test method and device, computer equipment and storage medium - Google Patents

Startup test method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113900875A
CN113900875A CN202111392039.9A CN202111392039A CN113900875A CN 113900875 A CN113900875 A CN 113900875A CN 202111392039 A CN202111392039 A CN 202111392039A CN 113900875 A CN113900875 A CN 113900875A
Authority
CN
China
Prior art keywords
tested
equipment
information source
test
entering
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
CN202111392039.9A
Other languages
Chinese (zh)
Other versions
CN113900875B (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.)
Shenzhen KTC Commercial Technology Co Ltd
Original Assignee
Shenzhen KTC Commercial Technology 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 Shenzhen KTC Commercial Technology Co Ltd filed Critical Shenzhen KTC Commercial Technology Co Ltd
Priority to CN202111392039.9A priority Critical patent/CN113900875B/en
Priority claimed from CN202111392039.9A external-priority patent/CN113900875B/en
Publication of CN113900875A publication Critical patent/CN113900875A/en
Application granted granted Critical
Publication of CN113900875B publication Critical patent/CN113900875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/2268Logging of test results
    • 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/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a startup testing method and device, computer equipment and a storage medium. Testing the time length for entering a specified information source after a device to be tested is started, and storing corresponding test data; testing the starting state of the equipment to be tested after entering the appointed information source, and storing the corresponding test data; sending a shutdown instruction to the equipment to be tested, so that the equipment to be tested executes the shutdown instruction and completes shutdown; and repeatedly testing the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started and the starting state of the equipment to be tested entering the appointed information source until the preset times are reached, completing the test, and outputting a test report. The invention realizes the response time of the equipment to be tested from the start to the entering of the appointed information source and the automatic test of the state after the appointed information source is carried out, and automatically writes the tested data into the test report, and the whole test process is automatically completed, thereby having the advantages of saving resources such as manpower and material resources and having accurate test result.

Description

Startup test method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data detection, and in particular, to a power-on test method and apparatus, a computer device, and a storage medium.
Background
With the development of intelligent teaching and network technology supported by great effort at home and abroad, the application requirements of electronic whiteboard products are increasingly raised, and the OPS as a computing module plug-in format can greatly increase the computing capability for the flat panel display. Because the compatibility difference between the OPS and the electronic whiteboard of different brands is large, the stress test needs to be performed on the startup response time of the OPS information source of the electronic whiteboard and the startup state of the OPS.
In the prior art, a stopwatch is mainly used for manually recording the time required by an electronic whiteboard from starting to entering an OPS information source and observing whether the starting state of the OPS information source is normal or not for testing; therefore, a large amount of manpower and material resources are consumed for long-time manual testing, certain errors exist in data of the manual testing, and the whole testing work and the testing saturation are not favorable.
Disclosure of Invention
The invention aims to provide a startup testing method, a startup testing device, computer equipment and a storage medium, and aims to solve the problems that a large amount of manpower and material resources are consumed and tested data have errors in the manual testing mode of an electronic whiteboard.
In order to solve the technical problems, the invention aims to realize the following technical scheme: a boot test method is provided, which comprises:
testing the time length of entering a specified information source after the equipment to be tested is started, and storing corresponding test data;
testing the starting state of the equipment to be tested after entering the appointed information source, and storing the corresponding test data;
sending a shutdown instruction to the equipment to be tested, so that the equipment to be tested executes the shutdown instruction and completes shutdown;
and repeatedly testing the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started and the starting state of the equipment to be tested entering the appointed information source until the preset times are reached, completing the test, and outputting a test report.
In addition, another object of the present invention is to provide a boot test apparatus, including: the time length testing unit is used for testing the time length of the equipment to be tested entering the specified information source after the equipment to be tested is started and storing the corresponding test data;
the state testing unit is used for testing the starting state of the equipment to be tested after the equipment to be tested enters the appointed information source and storing the corresponding testing data;
the shutdown unit is used for sending a shutdown instruction to the equipment to be tested, so that the equipment to be tested executes the shutdown instruction and completes shutdown;
and the repeated testing unit is used for repeatedly testing the time length of the equipment to be tested entering the specified information source after being started and the starting state of the equipment to be tested after entering the specified information source until reaching the preset times, completing the test and outputting a test report.
In addition, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the power-on test method according to the first aspect when executing the computer program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program causes the processor to execute the power-on test method according to the first aspect.
The embodiment of the invention discloses a startup testing method and device, computer equipment and a storage medium. Testing the time length for entering a specified information source after a device to be tested is started, and storing corresponding test data; testing the starting state of the equipment to be tested after entering the appointed information source, and storing the corresponding test data; sending a shutdown instruction to the equipment to be tested, so that the equipment to be tested executes the shutdown instruction and completes shutdown; and repeatedly testing the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started and the starting state of the equipment to be tested entering the appointed information source until the preset times are reached, completing the test, and outputting a test report. The embodiment of the invention realizes the response time of the equipment to be tested from the start to the entering of the appointed information source and the automatic test of the state after the appointed information source is carried out, and automatically writes the tested data into the test report, and the whole test process is automatically completed, thereby having the advantages of saving resources such as manpower and material resources and having accurate test result.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a boot test method according to an embodiment of the present invention;
FIG. 2 is a sub-flow diagram of a power-on test method according to an embodiment of the present invention;
FIG. 3 is a schematic view of another sub-flow chart of the power-on test method according to the embodiment of the present invention;
FIG. 4 is a schematic view of another sub-flow chart of the power-on test method according to the embodiment of the present invention;
FIG. 5 is a schematic view of another sub-flow chart of the power-on test method according to the embodiment of the present invention;
FIG. 6 is a schematic block diagram of a boot test apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flow chart of a power-on test method according to an embodiment of the invention;
as shown in fig. 1, the method includes steps S101 to S104.
S101, testing the duration of entering a specified information source after the equipment to be tested is started, and storing corresponding test data;
s102, testing the starting state of the equipment to be tested after entering the appointed information source, and storing corresponding test data;
s103, sending a shutdown instruction to the device to be tested, so that the device to be tested executes the shutdown instruction and completes shutdown;
and S104, repeatedly testing the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started and the starting state of the equipment to be tested entering the appointed information source until the preset times are reached, completing the test, and outputting a test report.
In the embodiment, the test can be performed through a PC (personal computer) end, the equipment to be tested can be an electronic whiteboard product, the specified information source can be an OPS (optical fiber signal) information source, and before the test, a test environment is set up; the method comprises the steps of compiling a test script by using Python, debugging the electronic whiteboard by using an Android ADB (debug bridge) debugging tool, and communicating the PC end with the electronic whiteboard through an RS232 serial port communication protocol.
The specific test process is as follows: firstly, testing the time length of the equipment to be tested entering a specified information source after starting up, after determining that the equipment to be tested enters the specified information source, starting testing the starting up state of the equipment to be tested entering the specified information source, and shutting down the equipment after testing is finished, thereby completing one complete test; then repeating the test for a plurality of times; the test data obtained in the test process is written into a test report in a CSV format, the test times, the starting time of the equipment to be tested, the response time of the appointed information source, the time length for entering the appointed information source after starting, the starting state after entering the appointed information source, the average time consumption for starting response of the appointed information source, the abnormal probability of the starting state of the appointed information source and the like can be known through the test report, and therefore the performance of the equipment to be tested and the appointed information source can be known more visually.
The following describes a process of testing a duration for entering a specified information source after the device to be tested is powered on in step S101, and as shown in fig. 2, the process includes:
s201, controlling a PC (personal computer) end to send a starting-up instruction to the equipment to be tested, recording the current system time and taking the current system time as the starting-up time of the equipment to be tested;
s202, controlling the PC end to send an information source reading instruction to the equipment to be tested, recording the system time when the equipment to be tested enters an appointed information source and taking the system time as the response time when the equipment to be tested enters the appointed information source;
s203, obtaining the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started according to the starting time of the equipment to be tested and the response time of the equipment to be tested entering the appointed information source.
In this embodiment, all serial port instructions that need to be sent by using RS232 are encapsulated by establishing an RS232_ com _ port module; since the RS232 transmission data line (TD) and reception data line (RD) are separated, full duplex communication can be achieved.
Based on this, firstly, the control PC end sends a power-on instruction to the device to be tested through the RS232, the device to be tested receives the power-on instruction, responds to the action corresponding to the power-on instruction and returns power-on response information, and the PC end records the current system time after receiving the power-on response information and takes the current system time as the power-on time of the device to be tested.
And then, controlling the PC end to send an information source reading instruction to the equipment to be tested, responding to the action corresponding to the information source reading instruction and returning current information source information after the equipment to be tested receives the information source reading instruction, and recording the system time at the moment and taking the system time as the response moment when the equipment to be tested enters the specified information source when the PC end receives the information source information and reads that the current information source information is the specified information source.
And finally, calculating the time difference between the starting time of the equipment to be tested and the response time of entering the appointed information source, so as to obtain the time length of entering the appointed information source after the equipment to be tested is started.
In one embodiment, as shown in fig. 3, step S202 includes:
s301, controlling the PC end to send a signal source reading instruction to the equipment to be tested;
s302, judging whether a current information source of the equipment to be tested is a designated information source, if so, entering a step S303, and otherwise, jumping to a step S304;
s303, recording the current system time and taking the current system time as the response time when the equipment to be tested enters the specified information source;
s304, after waiting for the first preset time, sending an information source reading instruction to the equipment to be tested again until the current information source of the equipment to be tested is determined to be the specified information source.
In this embodiment, after the control PC sends the information source reading instruction to the device to be tested through the RS232, the device to be tested receives the information source reading instruction, responds to an action corresponding to the information source reading instruction and returns current information source information, the PC reads the received information source information, and determines whether the current information source of the device to be tested is an appointed information source based on the read information source information, if so, records the current system time and uses the current system time as a response time when the device to be tested enters the appointed information source, otherwise, after waiting for a first preset time (preferably 0.2S), sends the information source reading instruction to the device to be tested again, and then determines the current information source of the device to be tested again until the device to be tested enters the appointed information source.
In an embodiment, as shown in fig. 4, further describing step S302, includes:
s401, controlling the PC end to send an information source reading instruction to the equipment to be tested, enabling the equipment to be tested to receive the information source reading instruction, execute corresponding actions and return current information source information;
s402, receiving returned current information source information and decoding to obtain a character string of the current information source;
s403, judging whether the character string of the current information source contains the identification of the appointed information source, if so, indicating that the current information source of the equipment to be tested is the appointed information source, otherwise, indicating that the current information source of the equipment to be tested is not the appointed information source.
In this embodiment, for convenience of description, a specific example is introduced, for example, it is determined that a serial port instruction of a current information source is "6B 30 × 300D", if a current information source of a device under test is an OPS, a character string of "SourceStatus: OPS" may be obtained after the PC decodes returned current information source information, where the character string includes an identifier (i.e., OPS) of a specified information source, the current information source of the device under test is the specified information source, and if not, the current information source is determined again at intervals of a first preset duration until the device under test enters the specified information source.
It should be noted that the information (serial port value) returned by the device to be tested in the boot process is generally a messy code, so that the obtained messy code can be subjected to throwing exception processing, that is, the information returned by the device to be tested before entering the specified information source can be subjected to throwing exception processing by the PC end to reduce the data processing amount, thereby improving the testing speed.
The following describes a process of testing a power-on state of the device under test after entering the designated information source in step S102, as shown in fig. 5, including:
s501, controlling the PC to send a state obtaining instruction to the equipment to be tested, and obtaining a state diagram of a specified information source in the equipment to be tested;
s502, comparing pixel points of the state diagram with a pre-prepared standard diagram to obtain a similarity value;
s503, judging whether the similarity value is larger than or equal to a preset similarity value, if so, entering a step S504, otherwise, jumping to the step S505;
s504, judging that the starting state of the equipment to be tested is normal after the equipment to be tested enters the appointed information source;
and S505, judging that the starting state of the equipment to be tested is abnormal after the equipment to be tested enters the appointed information source.
In this embodiment, the control PC sends a state acquisition instruction to the device to be tested through RS232, and the device to be tested receives the state acquisition instruction and then uses the adb tool to store a screenshot of the state of the specified information source of the device to be tested, so as to obtain a state diagram of the specified information source in the device to be tested; then comparing the state diagram with the standard diagram by pixel points through an image processing algorithm, namely comparing the values of the pixel points on the same coordinate positions on the two diagrams, and obtaining the similarity value of the state diagram and the standard diagram; based on the obtained similarity value, if the similarity value is larger than or equal to a preset similarity value, the starting state of the equipment to be tested after entering the specified information source is judged to be normal, otherwise, the starting state of the equipment to be tested after entering the specified information source is judged to be abnormal.
In one embodiment, step S501 includes:
setting overtime processing for an adb tool used for executing a state acquisition instruction in a PC (personal computer) end; and when the adb tool is in an off-line state, performing reconnection every second preset time length until the reconnection is successful.
In this embodiment, in an actual test, it needs to be ensured that the PC end and the device to be tested are in the same lan, and it needs to be ensured that the adb tool does not go offline, and an offline state of the adb tool may occur in the actual test, so this embodiment may set an timeout process for the adb tool through the Popen function, that is, start another process to execute an instruction for timeout reconnection by using the Popen function, and set the timeout time to a second preset duration (preferably 3 seconds), and if the adb tool goes offline, retry connection after the second preset duration until reconnection succeeds.
The embodiment of the invention also provides a starting-up test device which is used for executing any embodiment of the starting-up test method. Specifically, referring to fig. 6, fig. 6 is a schematic block diagram of a power-on test device according to an embodiment of the present invention.
As shown in fig. 6, the boot test apparatus 600 includes: a duration test unit 601, a status test unit 602, a shutdown unit 603, and a repeat test unit 604.
The duration test unit 601 is used for testing the duration of entering a specified information source after the device to be tested is started up, and storing corresponding test data;
a state testing unit 602, configured to test a power-on state of the device under test after entering the specified information source, and store corresponding test data;
a shutdown unit 603, configured to send a shutdown instruction to the device to be tested, so that the device to be tested executes the shutdown instruction and completes shutdown;
and the repeated testing unit 604 is used for repeatedly testing the time length of the equipment to be tested entering the specified information source after being started and the starting state of the equipment to be tested entering the specified information source until reaching the preset times, completing the test and outputting a test report.
The device compiles the test script through Python, realize the automatic test of whiteboard OPS information source start response time and OPS start state, realize whiteboard switch on and off through the serial ports, automatic send instruction and read whiteboard information source information, judge whiteboard OPS information source start response time, and do image processing in order to judge whether the starting of OPS information source is normal to the start state screenshot of OPS information source, finally write into the test report with measured data automation, whole test procedure only uses a serial ports line can accomplish, resources such as manpower and materials are practiced thrift greatly.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described power-on test apparatus may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 700 is a server, which may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 7, the computer device 700 includes a processor 702, memory, and a network interface 705 coupled via a system bus 701, where the memory may include a non-volatile storage medium 703 and an internal memory 704.
The non-volatile storage medium 703 may store an operating system 7031 and a computer program 7032. The computer program 7032, when executed, causes the processor 702 to perform a power-on test method.
The processor 702 is configured to provide computing and control capabilities to support the operation of the overall computing device 700.
The internal memory 704 provides an environment for running a computer program 7032 in the non-volatile storage medium 703, and the computer program 7032, when executed by the processor 702, causes the processor 702 to perform a power-on test method.
The network interface 705 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 700 to which aspects of the present invention may be applied, and that a particular computing device 700 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 7 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 7, and are not described herein again.
It should be appreciated that, in embodiments of the present invention, the Processor 702 may be a Central Processing Unit (CPU), and the Processor 702 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the power-on test method of an embodiment of the invention.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A boot test method, comprising:
testing the time length of entering a specified information source after the equipment to be tested is started, and storing corresponding test data;
testing the starting state of the equipment to be tested after entering the appointed information source, and storing the corresponding test data;
sending a shutdown instruction to the equipment to be tested, so that the equipment to be tested executes the shutdown instruction and completes shutdown;
and repeatedly testing the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started and the starting state of the equipment to be tested entering the appointed information source until the preset times are reached, completing the test, and outputting a test report.
2. The power-on test method according to claim 1, wherein the testing a duration for the device under test to enter the specified information source after being powered on comprises:
controlling a PC (personal computer) end to send a starting-up instruction to the equipment to be tested, recording the current system time and taking the current system time as the starting-up time of the equipment to be tested;
the PC end is controlled to send an information source reading instruction to the equipment to be tested, the system time when the equipment to be tested enters the appointed information source is recorded and is used as the response time when the equipment to be tested enters the appointed information source;
and obtaining the time length of the equipment to be tested entering the appointed information source after the equipment to be tested is started according to the starting time of the equipment to be tested and the response time of the equipment to enter the appointed information source.
3. The boot test method of claim 2, wherein the controlling the PC terminal to send a signal source reading instruction to the device under test, record a system time when the device under test enters a specified signal source, and use the system time as a response time when the device under test enters the specified signal source, comprises:
controlling a PC (personal computer) end to send an information source reading instruction to the equipment to be tested and judging whether a current information source of the equipment to be tested is an appointed information source or not;
if the current information source of the equipment to be tested is a specified information source, recording the current system time and using the current system time as the response time when the equipment to be tested enters the specified information source;
and if the current information source of the equipment to be tested is not the specified information source, sending an information source reading instruction to the equipment to be tested again after waiting for a first preset time period until the current information source of the equipment to be tested is confirmed to be the specified information source.
4. The boot test method of claim 3, wherein the controlling the PC to send a signal source reading instruction to the device under test, and determining whether the current signal source of the device under test is a designated signal source comprises:
controlling the PC end to send an information source reading instruction to the equipment to be tested, enabling the equipment to be tested to receive the information source reading instruction and execute corresponding actions, and returning current information source information;
receiving returned current information source information and decoding to obtain a character string of the current information source;
and judging whether the character string of the obtained current information source contains an identifier of a specified information source, if so, indicating that the current information source of the equipment to be tested is the specified information source, and otherwise, indicating that the current information source of the equipment to be tested is not the specified information source.
5. The boot test method of claim 1, wherein the testing the device under test to enter a boot state after entering the designated information source comprises:
controlling a PC (personal computer) end to send a state acquisition instruction to the equipment to be tested to acquire a state diagram of a specified information source in the equipment to be tested;
comparing the state diagram with a pre-prepared standard diagram to obtain a similarity value;
if the similarity value is larger than or equal to a preset similarity value, judging that the starting state of the equipment to be tested after entering the specified information source is normal;
and if the similarity value is smaller than a preset similarity value, judging that the starting state of the equipment to be tested after entering the specified information source is abnormal.
6. The boot test method according to claim 5, wherein the controlling the PC terminal to send a state obtaining instruction to the device under test to obtain the state diagram of the specified information source in the device under test, comprises:
setting overtime processing for an adb tool used for executing a state acquisition instruction in a PC (personal computer) end;
and when the adb tool is in an off-line state, performing reconnection every second preset time length until the reconnection is successful.
7. The boot test method according to claim 2, wherein the step of sending a boot instruction to the device under test by the control PC, recording a current system time and using the current system time as a time before the boot time of the device under test comprises:
and the PC end and the equipment to be tested are in communication connection through an RS232 serial port communication protocol.
8. A power-on test device, comprising:
the time length testing unit is used for testing the time length of the equipment to be tested entering the specified information source after the equipment to be tested is started and storing the corresponding test data;
the state testing unit is used for testing the starting state of the equipment to be tested after the equipment to be tested enters the appointed information source and storing the corresponding testing data;
the shutdown unit is used for sending a shutdown instruction to the equipment to be tested, so that the equipment to be tested executes the shutdown instruction and completes shutdown;
and the repeated testing unit is used for repeatedly testing the time length of the equipment to be tested entering the specified information source after being started and the starting state of the equipment to be tested after entering the specified information source until reaching the preset times, completing the test and outputting a test report.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the power-on test method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, causes the processor to carry out the power-on test method according to any one of claims 1 to 7.
CN202111392039.9A 2021-11-23 Startup test method and device, computer equipment and storage medium Active CN113900875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111392039.9A CN113900875B (en) 2021-11-23 Startup test method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111392039.9A CN113900875B (en) 2021-11-23 Startup test method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113900875A true CN113900875A (en) 2022-01-07
CN113900875B CN113900875B (en) 2024-07-09

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174430A (en) * 2022-06-30 2022-10-11 中车青岛四方车辆研究所有限公司 Method and device for testing starting time of rail transit vehicle-mounted equipment

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901178A (en) * 2009-05-31 2010-12-01 鸿富锦精密工业(深圳)有限公司 Computer system on-off test device and method
CN102801923A (en) * 2012-08-30 2012-11-28 广东威创视讯科技股份有限公司 Video matrix switching delayed time determining method, device and system
CN103347194A (en) * 2013-01-22 2013-10-09 深圳创维数字技术股份有限公司 Method, apparatus and system for starting-up and shut-down testing
CN103491326A (en) * 2013-09-24 2014-01-01 青岛海信电器股份有限公司 All-in-one computer television and control method of all-in-one computer television
KR101387369B1 (en) * 2013-12-20 2014-04-21 (주)그린콤 External type the standby power off and power activate system of set-top box
US20140195870A1 (en) * 2010-04-25 2014-07-10 Ssu-Pin Ma Methods and systems for testing electronic circuits
CN104202645A (en) * 2014-08-27 2014-12-10 海信集团有限公司 Method for controlling playing of startup screen and user device
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automatic power-on and power-off test method
CN104537496A (en) * 2014-12-30 2015-04-22 广州视睿电子科技有限公司 Intelligent terminal device use state statistics and analysis method and device
CN105578238A (en) * 2015-12-11 2016-05-11 康佳集团股份有限公司 Automatic test method and system of turn-on and turn-off of electrical appliance device
CN106371858A (en) * 2015-07-22 2017-02-01 鸿合科技有限公司 Method and apparatus for starting windows program by android
CN106792195A (en) * 2016-12-26 2017-05-31 深圳Tcl数字技术有限公司 Intelligent television start information source intelligent selecting method and system
CN109104608A (en) * 2018-10-26 2018-12-28 深圳Tcl新技术有限公司 TV performance test methods, equipment and computer readable storage medium
CN109522147A (en) * 2018-11-15 2019-03-26 Oppo广东移动通信有限公司 A kind of method, apparatus, storage medium and the terminal of record booting exception information
CN109901955A (en) * 2017-12-07 2019-06-18 上海擎感智能科技有限公司 A kind of method and system for testing power-on screen state
CN110300299A (en) * 2019-06-27 2019-10-01 深圳创维-Rgb电子有限公司 Show facility switching machine method for testing pressure, device, equipment and storage medium
CN112333541A (en) * 2020-05-25 2021-02-05 深圳Tcl新技术有限公司 Method, device and equipment for controlling startup and shutdown of display terminal and readable storage medium
CN112905373A (en) * 2021-02-04 2021-06-04 苏州源控电子科技有限公司 Method, device and system for detecting abnormal starting-up of OPS (optical fiber switch) equipment and interactive panel
WO2021196433A1 (en) * 2020-03-31 2021-10-07 聚好看科技股份有限公司 Interface display method and display device

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901178A (en) * 2009-05-31 2010-12-01 鸿富锦精密工业(深圳)有限公司 Computer system on-off test device and method
US20140195870A1 (en) * 2010-04-25 2014-07-10 Ssu-Pin Ma Methods and systems for testing electronic circuits
CN102801923A (en) * 2012-08-30 2012-11-28 广东威创视讯科技股份有限公司 Video matrix switching delayed time determining method, device and system
CN103347194A (en) * 2013-01-22 2013-10-09 深圳创维数字技术股份有限公司 Method, apparatus and system for starting-up and shut-down testing
CN103491326A (en) * 2013-09-24 2014-01-01 青岛海信电器股份有限公司 All-in-one computer television and control method of all-in-one computer television
KR101387369B1 (en) * 2013-12-20 2014-04-21 (주)그린콤 External type the standby power off and power activate system of set-top box
CN104202645A (en) * 2014-08-27 2014-12-10 海信集团有限公司 Method for controlling playing of startup screen and user device
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automatic power-on and power-off test method
CN104537496A (en) * 2014-12-30 2015-04-22 广州视睿电子科技有限公司 Intelligent terminal device use state statistics and analysis method and device
CN106371858A (en) * 2015-07-22 2017-02-01 鸿合科技有限公司 Method and apparatus for starting windows program by android
CN105578238A (en) * 2015-12-11 2016-05-11 康佳集团股份有限公司 Automatic test method and system of turn-on and turn-off of electrical appliance device
CN106792195A (en) * 2016-12-26 2017-05-31 深圳Tcl数字技术有限公司 Intelligent television start information source intelligent selecting method and system
CN109901955A (en) * 2017-12-07 2019-06-18 上海擎感智能科技有限公司 A kind of method and system for testing power-on screen state
CN109104608A (en) * 2018-10-26 2018-12-28 深圳Tcl新技术有限公司 TV performance test methods, equipment and computer readable storage medium
CN109522147A (en) * 2018-11-15 2019-03-26 Oppo广东移动通信有限公司 A kind of method, apparatus, storage medium and the terminal of record booting exception information
CN110300299A (en) * 2019-06-27 2019-10-01 深圳创维-Rgb电子有限公司 Show facility switching machine method for testing pressure, device, equipment and storage medium
WO2021196433A1 (en) * 2020-03-31 2021-10-07 聚好看科技股份有限公司 Interface display method and display device
CN112333541A (en) * 2020-05-25 2021-02-05 深圳Tcl新技术有限公司 Method, device and equipment for controlling startup and shutdown of display terminal and readable storage medium
CN112905373A (en) * 2021-02-04 2021-06-04 苏州源控电子科技有限公司 Method, device and system for detecting abnormal starting-up of OPS (optical fiber switch) equipment and interactive panel

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高方亮;: "多信道传输设备自动检测系统的设计", 电子质量, no. 04, 20 April 2016 (2016-04-20) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174430A (en) * 2022-06-30 2022-10-11 中车青岛四方车辆研究所有限公司 Method and device for testing starting time of rail transit vehicle-mounted equipment
CN115174430B (en) * 2022-06-30 2024-01-26 中车青岛四方车辆研究所有限公司 Method and device for testing starting time of track traffic vehicle-mounted equipment

Similar Documents

Publication Publication Date Title
WO2022222293A1 (en) Storage device test method and apparatus, television, and storage medium
CN113157508B (en) Test method, system, device, equipment and storage medium of embedded system
CN112506745B (en) Memory temperature reading method and device and computer readable storage medium
CN114138644A (en) BMC (baseboard management controller) debugging method, monitoring method, system, device, equipment and medium
CN114594984A (en) Inspection method, inspection device, computer equipment and storage medium
CN108364670B (en) Read-write pressure testing method, device, equipment and storage medium
CN113434467B (en) Network file transmission method, device and computer readable storage medium
CN114281624A (en) Method, system, device and equipment for testing I2C signal integrity
CN111128139B (en) Non-invasive voice test method and device
CN115599617B (en) Bus detection method and device, server and electronic equipment
CN113900875A (en) Startup test method and device, computer equipment and storage medium
CN114253781B (en) Test method, device, equipment and storage medium
CN109582571B (en) Online debugging method and device, debugging slave computer, debugging host computer and system
CN113900875B (en) Startup test method and device, computer equipment and storage medium
CN114461142B (en) Method, system, device and medium for reading and writing Flash data
CN115766429A (en) Matching method and device of system and edge computing gateway
CN111651308B (en) Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
CN113190386A (en) Chip and using method thereof
CN111949510A (en) Test processing method and device, electronic equipment and readable storage medium
CN115328712B (en) Detection method of KVM switch and related equipment
CN115033466B (en) Batch flashing pressure testing method and device, storage medium and computer equipment
CN113611352B (en) Solid state disk testing method, device and system and readable storage medium
CN115858433A (en) Method, system, device, equipment and storage medium for controlling retimer mode
CN117215951A (en) Application difference detection method, device, equipment and storage medium
CN116483751A (en) Method, device and medium for identifying serial numbers

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