CN112015607A - Startup and shutdown testing method, tested equipment and tool equipment - Google Patents
Startup and shutdown testing method, tested equipment and tool equipment Download PDFInfo
- Publication number
- CN112015607A CN112015607A CN202010782970.7A CN202010782970A CN112015607A CN 112015607 A CN112015607 A CN 112015607A CN 202010782970 A CN202010782970 A CN 202010782970A CN 112015607 A CN112015607 A CN 112015607A
- Authority
- CN
- China
- Prior art keywords
- power
- test
- instruction
- tested
- shutdown
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 229
- 238000000034 method Methods 0.000 claims abstract description 37
- 238000004590 computer program Methods 0.000 claims description 33
- 238000010998 test method Methods 0.000 claims description 21
- 238000004806 packaging method and process Methods 0.000 claims description 15
- 230000000977 initiatory effect Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 12
- 238000012546 transfer Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000009471 action Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
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 application is applicable to the technical field of computers, and provides a startup and shutdown testing method, which comprises the following steps: the method comprises the steps that a device to be tested obtains test parameters; generating a power-on and power-off instruction according to the test parameters, and sending the power-on and power-off instruction to the tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment; and when the preset termination condition is met, stopping the test. According to the scheme, the test efficiency of the startup and shutdown test items and the fault location is improved by independently initiating the startup and shutdown command and independently controlling the startup and shutdown time sequence of the tested equipment. The tested equipment masters the initiative right of startup and shutdown, and when the tested equipment has faults such as dead halt and the like, the startup and shutdown command cannot be sent to the tool equipment, so that the fault site cannot be cleaned, but can be reserved, and the analysis and the positioning of the faults are greatly facilitated.
Description
Technical Field
The application belongs to the technical field of computers, and particularly relates to a startup and shutdown testing method, a device to be tested and tool equipment.
Background
The on-off test is a commonly used test method for computer equipment, and is used for performing reliability pressure test of various indexes or reproducing and positioning software faults.
The common startup and shutdown test method comprises the following steps: the method comprises the following steps that a tool device is adopted to control a power supply or a power-on and power-off button of a tested device, the tested device is started through the tool device, a specific test program runs after the tested device is started, and specific test data flow is output; after a certain or random period of time, the tool device turns off the power supply or power on/off button of the device under test. The pressure test of starting up and shutting down is carried out repeatedly, and the test running water output by the tested equipment is recorded. And when the specified duration or the specified on-off times are reached, judging the test result according to the output condition in the test.
However, during the testing process, when the device under test has a fault, the tool device will be routinely turned off and turned back on, so the fault site is cleared and not reserved, thereby being not beneficial to the analysis and location of the fault.
Disclosure of Invention
The embodiment of the application provides a startup and shutdown testing method, a device to be tested and tool equipment, and can solve the problem that when a fault occurs repeatedly in the device to be tested, the tool equipment can be routinely closed and re-opened, so that a fault site is cleared and cannot be reserved, and therefore the analysis and the positioning of the fault are not facilitated.
In a first aspect, an embodiment of the present application provides a method for testing power on and power off, which is applied to a device to be tested, and the method includes:
obtaining a test parameter;
generating a power-on and power-off instruction according to the test parameters, and sending the power-on and power-off instruction to tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment;
and when the preset termination condition is met, stopping the test.
Further, the test parameters include one or more of the tested module identifier, the current power on/off times, the target power on/off times, the power on/off mode, the power off delay mode, the fixed power off delay, the random power off time limit, the power on delay mode, the fixed power on delay, and the random power on time limit.
Further, the test parameters include an identity of the module under test;
after the power on/off instruction is generated according to the test parameters and sent to the tool equipment, the method further includes:
determining a tested module according to the tested module identifier;
executing test operation on the tested module to obtain operation prompt information;
and sending the operation prompt information to the tool equipment.
Further, the operation prompt information includes the tested module identifier, the test information, the test time, and the test phase.
Further, the sending the operation prompt information to the tool device includes:
packaging the operation prompt information into an operation prompt information data packet according to a preset packaging format;
and sending the operation prompt information data packet to the tool equipment.
Further, the test parameters include a shutdown delay;
the generating a power-on and power-off instruction according to the test parameters and sending the power-on and power-off instruction to tool equipment comprises the following steps:
and generating a power-on and power-off instruction according to the test parameters, delaying the power-off delay, and sending the power-on and power-off instruction to tool equipment.
In a second aspect, an embodiment of the present application provides a method for testing power on and power off, where the method is applied to a tool device, and the method includes:
receiving a startup and shutdown instruction sent by a tested device;
and executing the on-off operation corresponding to the on-off instruction on the tested equipment.
Further, the method further comprises:
and receiving operation prompt information sent by the tested equipment, and storing data in the operation prompt information to a test flow file.
Further, the operation prompt information includes the tested module identifier, the test information, the test time, and the test phase.
Further, the receiving a power on/off instruction sent by the device under test includes:
acquiring a data packet sent by the tested device, and extracting a check code in the data packet;
verifying the check code, and detecting the type of the data packet when the check code is correct; the data packet type can be a power-on/off instruction type or an operation prompt information type;
and when the type of the data packet is a power-on/off instruction, acquiring the power-on/off instruction.
Further, after verifying the check code and detecting the type of the data packet when the check code is correct, the method further includes:
and when the check code is wrong, discarding the data packet.
Further, the power on/off instruction includes a power on/off mode, and the executing the power on/off operation corresponding to the power on/off instruction on the device under test includes:
and executing the startup and shutdown actions of the tested equipment according to the startup and shutdown mode, and storing a startup and shutdown log record.
In a third aspect, an embodiment of the present application provides a device under test, including:
an acquisition unit for acquiring test parameters;
the first processing unit is used for generating a power-on and power-off instruction according to the test parameters and sending the power-on and power-off instruction to the tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment;
and the second processing unit is used for stopping the test when a preset termination condition is met.
Further, the test parameters include one or more of the tested module identifier, the current power on/off times, the target power on/off times, the power on/off mode, the power off delay mode, the fixed power off delay, the random power off time limit, the power on delay mode, the fixed power on delay, and the random power on time limit.
Further, the test parameters include an identity of the module under test;
the device under test further comprises:
the determining unit is used for determining the tested module according to the tested module identifier;
the execution unit is used for executing the test operation on the tested module to obtain the operation prompt information;
and the sending unit is used for sending the operation prompt information to the tool equipment.
Further, the operation prompt information includes the tested module identifier, the test information, the test time, and the test phase.
Further, the sending unit is specifically configured to:
packaging the operation prompt information into an operation prompt information data packet according to a preset packaging format;
and sending the operation prompt information data packet to the tool equipment.
Further, the test parameters include a shutdown delay;
the first processing unit is specifically configured to:
and generating a power-on and power-off instruction according to the test parameters, delaying the power-off delay, and sending the power-on and power-off instruction to tool equipment.
In a fourth aspect, an embodiment of the present application provides a tool apparatus, including:
the first receiving unit is used for receiving a startup and shutdown instruction sent by the tested equipment;
and the execution unit is used for executing the startup and shutdown operation corresponding to the startup and shutdown instruction on the tested equipment.
Further, the tool apparatus further includes:
and the second receiving unit is used for receiving the operation prompt information sent by the tested equipment and storing the data in the operation prompt information to a test flow file.
Further, the operation prompt information includes the tested module identifier, the test information, the test time, and the test phase.
Further, the first receiving unit is specifically configured to:
acquiring a data packet sent by the tested device, and extracting a check code in the data packet;
verifying the check code, and detecting the type of the data packet when the check code is correct; the data packet type can be a power-on/off instruction type or an operation prompt information type;
and when the type of the data packet is a power-on/off instruction, acquiring the power-on/off instruction.
Further, the first receiving unit is specifically further configured to:
and when the check code is wrong, discarding the data packet.
Further, the execution unit is specifically configured to:
and executing the startup and shutdown actions of the tested equipment according to the startup and shutdown mode, and storing a startup and shutdown log record.
In a fifth aspect, an embodiment of the present application provides a device under test, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the power on/off test method according to the first aspect when executing the computer program.
In a sixth aspect, the present application provides a tool device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the power on/off test method according to the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when being executed by a processor, the computer program implements the startup and shutdown testing method according to the first aspect.
In an eighth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the power on/off test method according to the second aspect.
On one hand, in the embodiment of the application, the tested equipment obtains the test parameters; generating a power-on and power-off instruction according to the test parameters, and sending the power-on and power-off instruction to the tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment; and when the preset termination condition is met, stopping the test. According to the scheme, the test efficiency of the startup and shutdown test items and the fault location is improved by independently initiating the startup and shutdown command and independently controlling the startup and shutdown time sequence of the tested equipment. The tested equipment masters the initiative right of startup and shutdown, and when the tested equipment has faults such as dead halt and the like, the startup and shutdown command cannot be sent to the tool equipment, so that the fault site cannot be cleaned, but can be reserved, and the analysis and the positioning of the faults are greatly facilitated.
On the other hand, in the embodiment of the application, the tool device receives a power-on/off instruction sent by the device to be tested; and executing the on-off operation corresponding to the on-off instruction on the tested equipment. According to the scheme, the tool equipment receives a startup and shutdown instruction sent by the tested equipment; the on-off operation corresponding to the on-off instruction is executed on the tested equipment, and when faults such as dead halt and the like occur repeatedly on the tested equipment, the tool equipment cannot receive the on-off command, so that the fault site cannot be cleaned, but can be reserved, and the analysis and the positioning of the faults are greatly facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a startup and shutdown testing method according to a first embodiment of the present application;
fig. 2 is a schematic diagram illustrating interaction between a device under test and a tool device in a power on/off test method according to a first embodiment of the present application;
fig. 3 is a schematic flowchart of details of S104 to S106 in a power on/off test method provided in the first embodiment of the present application;
fig. 4 is a schematic flowchart of a detailed S106 in a power on/off test method according to a first embodiment of the present application;
FIG. 5 is a schematic flow chart diagram of another startup and shutdown testing method provided in the second embodiment of the present application;
FIG. 6 is a schematic diagram of a device under test provided by a third embodiment of the present application;
FIG. 7 is a schematic view of a tooling apparatus provided in accordance with a fourth embodiment of the present application;
FIG. 8 is a schematic diagram of a device under test provided in a fifth embodiment of the present application;
fig. 9 is a schematic view of a tool apparatus provided in a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
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 should also be 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.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The on-off test is a common test method for computer equipment, and is used for performing reliability pressure test of various indexes or reproducing and positioning software faults. The common startup and shutdown test method comprises the following steps: the method comprises the following steps that a tool device is adopted to control a power supply or a power-on and power-off button of a tested device, the tested device is started through the tool device, a specific test program runs after the tested device is started, and specific test data flow is output; after a certain or random period of time, the tool device turns off the power supply or power on/off button of the device under test. The pressure test of starting up and shutting down is carried out repeatedly, and the test running water output by the tested equipment is recorded. And when the specified duration or the specified on-off times are reached, judging the test result according to the output condition in the test. However, this method tends to have the following problems: the tool equipment does not know the test items and the running states related to the test programs run by the tested equipment, so that the operation of closing the tested equipment is always blind, the key links are difficult to focus on, and the sufficiency of the test or the repeated faults can be ensured only by depending on massive tests, thereby causing the lower test efficiency. Since the initiative of the device under test to close and open is mastered by the tool device, when the device under test has a fault, the tool device is difficult to identify the fault on the device under test, and the device under test can be closed and opened again routinely, so that the fault site is cleared and not reserved, thereby being unfavorable for analyzing and positioning the fault. When the power supply of the tested device is turned off by the tool device, incomplete missing of process prompt information output by the tested device is easily caused, so that the judgment of a test result or fault location analysis is not facilitated.
In view of the above, it is desirable to design a more efficient on/off test method, which can ensure the integrity of the output test pipeline of the device under test, and can complete the reliability pressure test more quickly, or is beneficial to locate the software fault more quickly.
Referring to fig. 1, fig. 1 is a schematic flow chart of a startup and shutdown testing method according to a first embodiment of the present application. In this embodiment, an execution main body of the startup and shutdown testing method is a device to be tested. The tested equipment and the tool equipment are connected and communicated through a conventional communication link, and the startup and shutdown test items are executed together. The tested equipment and the tool equipment are connected by an appointed communication channel, and the connection can be any one or combination of a plurality of communication modes such as a serial port, a USB (universal serial bus), an Ethernet, WiFi (wireless fidelity), Bluetooth and the like. The startup and shutdown test method shown in fig. 1 may include:
s101: and acquiring test parameters.
The scheme of the embodiment is implemented on a software and hardware platform of a computer, is an improvement of the current startup and shutdown testing scheme, and is used for performing reliability pressure testing on various indexes related to startup and shutdown on various computer equipment or reproducing and positioning software faults related to startup and shutdown. The method can be implemented in an application layer or a system layer. For example, the method is used for testing the reliability of a power-on reset process when a wireless communication module is rapidly switched on and switched off, testing the anti-crash capability under the condition of sudden power failure during the writing operation of a file system, testing the reliability of a soft-off program, and testing the system reliability under the condition of sudden soft-off when a printer module is suddenly started for printing and outputting.
The starting-up means that the tool equipment controls the power supply or the on-off button of the tested equipment to convert the power supply state into the power-on state; the power-off means that the tool equipment controls the power supply or the power-on and power-off button of the tested equipment to enable the power-on state to be converted into the power-off state. The two are called as on/off, or further simply called as on/off.
In this embodiment, the device under test obtains the test parameters, and the test parameters are the relevant parameters of the startup and shutdown test items. The test parameters can be set when setting the startup and shutdown test task, for example, within a certain time limit in the startup stage of the device to be tested, if it is detected that a certain special key is pressed, the device enters a startup and shutdown test task setting interface, and the test parameters can be set on the interface; and if no key is pressed, skipping a startup and shutdown task setting interface and entering a subsequent process. When setting test parameters, values of fields included in the power-on/off task need to be set and stored in a memory which is not lost due to power failure, for example: and a FLASH memory. When the test parameters are set, the test parameters can be manually input through a dialog box menu, imported through a parameter file and also imported through a communication port. The set startup and shutdown test task is applied to subsequent startup and shutdown operations and does not need to be set after each startup; and after the test of the corresponding test item is finished, the setting of the test item is revised again.
The test parameters may include one or more of a tested module identifier, a current power on/off number, a target power on/off number, a power on/off mode, a power off delay mode, a fixed power off delay, a random power off time limit, a power on delay mode, a fixed power on delay, and a random power on time limit.
The current power on/off times refer to the current sequence number in the whole power on/off test item, and may start from 1 or 0.
The target startup and shutdown times refer to the total startup and shutdown times required to be completed and agreed in the whole startup and shutdown test items. And when the current times are equal to the appointed total times, the test task is finished, and the test is finished.
The power on/off mode refers to a mode of powering off and powering on the device to be tested, and includes a hard power on/off mode and a soft power on/off mode. The hard power on/off mode is a mode of performing power on/off by directly switching off or on the main power supply of the equipment; the soft-off mode is a mode of turning off a system program through a specific key mode or a software interface and enabling other circuits except the switch circuit to be powered off, and the soft-on mode is a mode of triggering the switch circuit through specific keys and the like after the soft-off mode is finished so as to enable a main power supply of the system to be switched on and the system to start to run.
The shutdown delay mode refers to a time delay method from receiving a shutdown task to executing a shutdown action, and includes a fixed delay mode and a random delay mode. The fixed delay mode refers to that the time length from the time when the shutdown task is received to the time when the shutdown action is executed is a fixed time value, and the random delay mode refers to that the time length from the time when the shutdown task is received to the time when the shutdown action is executed is a randomly changed time value.
The fixed shutdown delay refers to a specific shutdown delay duration after the shutdown delay mode selects the fixed delay mode, for example: for 30 seconds. If the setting is 0, the power-off is immediately indicated.
The random shutdown time limit refers to an upper limit value of a random number of the shutdown delay time duration after the shutdown delay mode selects the random delay mode, for example: for 60 seconds.
The start-up delay mode refers to a time delay mode from the time when the tool device executes the power-off action to the time when the tested device is powered on again, and is similar to the power-off delay mode, and also includes a fixed delay mode and a random delay mode, and the specific meaning of the mode is similar to that of the power-off delay mode.
The fixed boot delay refers to a specific boot delay duration after the boot delay mode selects the fixed delay mode, for example: for 30 seconds. If the setting is 0, the starting is immediately indicated.
The random boot time limit refers to an upper limit value of a random number of the boot delay duration after the random delay mode is selected in the boot delay mode, for example: for 60 seconds.
For example, the settings in one test case are listed below:
the current number of times of power on and off is 1
Target number of times of power on and off is 1000
Soft switching on and off mode
Random delay mode
Time limit of random turn-off is 25 seconds
Fixed delay mode for starting up
The fixed turn-on delay is 10 seconds.
S102: generating a power-on and power-off instruction according to the test parameters, and sending the power-on and power-off instruction to tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment.
And the tested equipment generates a startup and shutdown instruction according to the test parameters and sends the startup and shutdown instruction to the tool equipment. The power-on and power-off instruction is used for triggering the tool equipment to execute the power-on and power-off operation corresponding to the power-on and power-off instruction on the tested equipment.
In an embodiment, the modified test program and the newly added transfer service program may be preset in the device under test, as shown in fig. 2, and fig. 2 is an interaction diagram between the test program in the device under test and the transfer service program and the tool device. And after the computer is started, the modified test program and the newly-added transfer service program automatically start to run, and the two programs run in parallel. The test program sends the startup and shutdown tasks to a transfer service program; the transfer service program sends the startup and shutdown task to the tool equipment; the tool equipment executes the shutdown according to the startup and shutdown task after receiving the startup and shutdown task, and then executes the restart operation according to the time sequence specified by the startup and shutdown task.
Further, the test parameter includes a shutdown delay, and S102 may include: and generating a power-on and power-off instruction according to the test parameters, delaying the power-off delay, and sending the power-on and power-off instruction to tool equipment.
In this embodiment, the relay service module runs the relay service program, and the program runs in parallel with the test program, so that the fixity or randomness of the shutdown time sequence can be ensured. The tested program obtains the shutdown time delay in the test parameters, and the shutdown time delay mode can include fixed time delay or random time delay. When the shutdown time delay mode is set as 'fixed delay', the fixity of the shutdown time sequence can be ensured; when the shutdown delay mode is set to be random delay, the randomness of the shutdown time sequence can be ensured.
If the shutdown delay mode is the fixed delay mode, the shutdown delay is equal to the duration indicated by the fixed shutdown delay field. If the shutdown delay mode is a random delay mode, a random number R is generated in the time length range indicated by the random shutdown time limit field, and the shutdown delay is equal to the random number R. For example: if the random shutdown time limit is 25 seconds, a random number R in the range of [0,25] is generated, and if R is 16, the shutdown time delay is 16.
The tested device generates a power on/off instruction according to the test parameters, and the power on/off instruction may include field information such as current power on/off times, an immediate power off instruction, a power on/off mode, and a power off delay. The current power on/off times have the same meaning as the field of the current power on/off times in the power on/off task, and the value of the current power on/off times can be copied. The immediate power-off command means that the tool device is caused to immediately perform a power-off action in a manner indicated by "power-on/off mode", and the value thereof may be specified as any letter, character string or number. The "on/off mode" field in the on/off task has the same meaning, and its value can be copied. The reboot delay refers to the delay time between the tool device performing a shutdown action and the next time the device under test is powered back on. The reboot delay needs to determine its value according to the manner indicated by the "boot delay manner" in the power on/off task. If the delay mode is 'fixed delay mode', the restart time delay is equal to 'fixed start time delay' in the startup and shutdown task; if the random delay mode is adopted, a random number is generated in the range determined by the random startup time limit, and the random number is assigned to the restart time delay. For example: if the "random power on time limit" is equal to 60 seconds, the generated random number is between 0 and 60, and may be equal to 0 or 60.
And the tested equipment generates a power-on and power-off instruction, delays the power-off delay and then sends the power-on and power-off instruction to the tool equipment. The tested equipment can encapsulate the startup and shutdown instruction into a data packet and send the data packet to the tool equipment. In addition, in order to record the power on/off of the device at this time, the device under test needs to add 1 to the value of the current power on/off frequency, and write back to the memory which is not lost due to power failure.
Further, in the delay period, the device under test continuously detects whether the running prompt message sent by the test program is received. And if the operation prompt information is received, packaging and encapsulating the operation prompt information one by one, and sending the packaged operation prompt information data packet to tool equipment. The operation prompt information data packet and the startup and shutdown instruction are sequentially sent by the transfer service program in series, and the startup and shutdown instruction is the last data packet sent in the startup and shutdown test, namely, the operation prompt information data packet is arranged in front of the startup and shutdown instruction, so that the operation prompt information can be completely recorded by the tool equipment, and the completeness and the incompleteness of the prompt information are guaranteed.
S103: and when the preset termination condition is met, stopping the test.
And storing a preset termination condition in the tested equipment, wherein the preset termination condition is used for judging whether to stop testing. For example, the field value of the current power on/off times is checked, and if the current power on/off times is greater than the target power on/off times, the completion of the test is prompted, and the test is stopped; and if the current startup and shutdown times are less than or equal to the target startup and shutdown times, continuing the test.
Furthermore, in the test program, at the flow node where the running information prompt is required, the running prompt information is submitted to the transfer service module, and after receiving the running prompt information, the transfer service module outputs the information to the tool equipment through the communication port connected with the tool equipment. Therefore, the tool equipment can store the operation prompt information, and is favorable for tracing the flow and analyzing and positioning the fault after the problem is repeated. If the operation prompt information is obtained during the process of starting execution of the test program, the operation prompt information needs to be sent to the tool equipment. After S102, S104 to S106 may be further included, as shown in fig. 3, S104 to S106 are specifically as follows:
s104: and determining the tested module according to the tested module identification.
In this embodiment, the test parameters include the identity of the module to be tested. And the tested equipment determines the tested module according to the tested module identification.
S105: and executing test operation on the tested module to obtain operation prompt information.
And the equipment executes the test operation on the tested module to obtain the operation prompt information. The operation prompt information comprises the identification of the tested module, test information, test time and a test stage. For example, the tested module is a printing flow module of the printer, the printing flow of the printer is a flow that needs to receive the on/off detection, and an operation of submitting the on/off task to the transfer service module is added at the beginning of the printing flow of the printer. When the device under test executes the printer printing process, the device under test generates operation prompt information, where the operation prompt information may include "printer printing module", "test status is successful at this time", and test time. In addition, after the startup and shutdown tasks are submitted to the transfer service module, the test program continues to run the original test flow. For example: and running a printer text and graphic printing test flow. The transit service program and the test program are executed simultaneously.
S106: and sending the operation prompt information to the tool equipment.
The tested equipment can send the operation prompt information to the tool equipment through the transfer service module.
Further, in order to facilitate the tool device to receive the operation prompt information, S106 may include S1061 to S1062, and as shown in fig. 4, S1061 to S1062 are specifically as follows:
s1061: and packaging the operation prompt information into an operation prompt information data packet according to a preset packaging format.
The tested equipment can package and encapsulate the operation prompt information through the transfer service module, and after receiving the operation prompt information, the tested equipment packages and encapsulates the operation prompt information to obtain an operation prompt information data packet. And outputting the packaged operation prompt information data packet to the tool equipment through a communication port connected with the tool equipment. The tool equipment can acquire the operation prompt information, and the process tracing and the fault analysis and positioning after the problem reappearance are facilitated.
The packaging format of the operation prompt information data packet can be appointed to be any feasible packaging format, but at least comprises fields such as a packet type, packaged original data, a check code and the like; and the prompt information and the subsequent startup and shutdown commands adopt a uniform packaging format so as to facilitate the receiving and processing of tool equipment. For example, the following packaging format may be used to package the hint information and the power on/off command: the packet header identification + the packet type + the net data length + the net data + the check code. Here, the packet type indicates the type of the encapsulated data, and may be encoded as: 1 represents a prompt information packet, and 1 represents a power on/off command packet; the net data is the raw data that is encapsulated, such as: prompting information or a power on/off command; the net data length is the number of bytes of net data; the check code is a cyclic redundancy check code for a sequence of data starting from the packet type and ending with the net data.
S1062: and sending the operation prompt information data packet to the tool equipment.
In the embodiment of the application, the tested equipment obtains the test parameters; generating a power-on and power-off instruction according to the test parameters, and sending the power-on and power-off instruction to the tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment; and when the preset termination condition is met, stopping the test. According to the scheme, the test efficiency of the startup and shutdown test items and the fault location is improved by independently initiating the startup and shutdown command and independently controlling the startup and shutdown time sequence of the tested equipment. The tested equipment masters the initiative right of startup and shutdown, and when the tested equipment has faults such as dead halt and the like, the startup and shutdown command cannot be sent to the tool equipment, so that the fault site cannot be cleaned, but can be reserved, and the analysis and the positioning of the faults are greatly facilitated.
Referring to fig. 5, fig. 5 is a schematic flowchart of another startup and shutdown testing method according to a second embodiment of the present application. In this embodiment, an execution main body of the startup and shutdown testing method is tool equipment. The tool equipment and the tested equipment are connected and communicated through a conventional communication link, and the on-off test items are executed together. The tool equipment and the tested equipment are connected by an appointed communication channel, and can be in any common communication mode such as a serial port, a USB (universal serial bus), an Ethernet, WiFi (wireless fidelity), Bluetooth and the like. The power on/off test method shown in fig. 5 may include:
s201: and receiving a startup and shutdown instruction sent by the tested equipment.
In this embodiment, the tool device and the device under test are connected through a communication port, and the communication port is used for receiving a power on/off command from the device under test. And the tested equipment generates a startup and shutdown instruction according to the test parameters, sends the startup and shutdown instruction to the tool equipment, and receives the startup and shutdown instruction sent by the tested equipment. The power-on and power-off instruction is used for triggering the tool equipment to execute the power-on and power-off operation corresponding to the power-on and power-off instruction on the tested equipment.
Further, S201 may include: and acquiring a data packet sent by the tested equipment, and extracting the check code in the data packet. And verifying the check code, and detecting the type of the data packet when the check code is correct. In this embodiment, the data packet may be a power on/off command or an operation prompt message. And when the type of the data packet is a power-on/off instruction, acquiring the power-on/off instruction.
S202: and executing the on-off operation corresponding to the on-off instruction on the tested equipment.
And the tool equipment executes the on-off operation corresponding to the on-off instruction on the tested equipment. The tool equipment acquires test parameters in the startup and shutdown instruction, wherein the test parameters comprise a startup and shutdown mode, executes the shutdown action of the tested equipment according to the value of the field of the startup and shutdown mode, and stores a shutdown log record.
For example, if the "power on/off mode" is a hard power on/off mode, the control unit controls a hard power off circuit configured on the tool device to immediately perform a hard power off of the device under test, and adds and writes a log record in the latest test pipeline file, where the log record includes the following field information: current power on and off times, current time, hard power off indicator, reboot latency, and the like. The hard-off indicator indicates that a hard-off operation is currently performed, and may be represented in the form of a code or a character string, for example: the character string "HARD POWER OFF" is used to represent. The value of the current times is equal to the value of the field of the current times in the power-on and power-off command; if the "power on/off mode" is soft power on/off, controlling a soft power off circuit configured on the tool device, immediately executing soft power off of the device to be tested, and adding and writing a log record in the latest test flow file, wherein the log record contains the following field information: current power on and off times, current time, soft-off indicator, reboot delay, and the like. The soft-off indicator indicates that a soft-off operation is currently performed, and may be represented in the form of a code or a character string, for example: the character string "SOFT POWER OFF" is used to indicate.
Further, the power on/off instruction comprises a power on/off mode, the tool equipment receives the reboot delay, executes reboot operation on the tested equipment according to the power on/off mode, and stores reboot log records. For example, if the "power on/off mode" is a hard power on/off mode, the hard power on circuit configured on the control tool device is delayed for a duration specified by the "reboot delay", the hard power on of the device under test is immediately executed, and a log record is additionally written in the latest test pipeline file, where the log record includes the following field information: current power on and power off times, current time, hard power on indicator, reboot latency, and the like. The hard-on indicator indicates that a hard-on operation is currently performed, and may be represented in the form of a code or a character string, for example: represented by the string "HARD POWER ON"; if the "power on/off mode" is soft power on/off, after delaying the specified time duration of the "reboot delay", controlling a soft power on circuit configured on the tool equipment, immediately executing soft power on of the tested equipment, and adding and writing a log record in the latest test running file, wherein the log record comprises the following field information: current power on and power off times, current time, soft power on indicator, reboot latency, and the like. The soft-on indicator indicates that a soft-on operation is currently performed, and may be represented in the form of a code or a character string, for example: the string "SOFT POWER ON" is used to indicate.
Further, in this embodiment, the method may further include: and receiving operation prompt information sent by the tested equipment, and storing data in the operation prompt information to a test flow file. The tool equipment acquires a data packet sent by the tested equipment and extracts the check code in the data packet. And verifying the check code, and detecting the type of the data packet when the check code is correct. In this embodiment, the data packet may be a power on/off command or an operation prompt message. And when the type of the data packet is the operation prompt information, operating the prompt information, and storing the data in the operation prompt information to the test flow file.
In the embodiment of the application, tool equipment receives a startup and shutdown instruction sent by tested equipment; and executing the on-off operation corresponding to the on-off instruction on the tested equipment. According to the scheme, the tool equipment receives a startup and shutdown instruction sent by the tested equipment; the on-off operation corresponding to the on-off instruction is executed on the tested equipment, and when faults such as dead halt and the like occur repeatedly on the tested equipment, the tool equipment cannot receive the on-off command, so that the fault site cannot be cleaned, but can be reserved, and the analysis and the positioning of the faults are greatly facilitated.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 6, fig. 6 is a schematic diagram of a device under test according to a third embodiment of the present application. The included units are used for executing steps in the embodiments corresponding to fig. 1 and fig. 3 to fig. 4, and refer to the related descriptions in the embodiments corresponding to fig. 1 and fig. 3 to fig. 4. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 6, the device under test 6 includes:
an obtaining unit 610, configured to obtain a test parameter;
the first processing unit 620 is configured to generate a power on/off instruction according to the test parameter, and send the power on/off instruction to tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment;
a second processing unit 630, configured to stop the test when a preset termination condition is met.
Further, the test parameters include one or more of the tested module identifier, the current power on/off times, the target power on/off times, the power on/off mode, the power off delay mode, the fixed power off delay, the random power off time limit, the power on delay mode, the fixed power on delay, and the random power on time limit.
Further, the test parameters include an identity of the module under test;
the device under test 6 further includes:
the determining unit is used for determining the tested module according to the tested module identifier;
the execution unit is used for executing the test operation on the tested module to obtain the operation prompt information;
and the sending unit is used for sending the operation prompt information to the tool equipment.
Further, the operation prompt information includes the tested module identifier, the test information, the test time, and the test phase.
Further, the sending unit is specifically configured to:
packaging the operation prompt information into an operation prompt information data packet according to a preset packaging format;
and sending the operation prompt information data packet to the tool equipment.
Further, the test parameters include a shutdown delay;
the first processing unit 620 is specifically configured to:
and generating a power-on and power-off instruction according to the test parameters, delaying the power-off delay, and sending the power-on and power-off instruction to tool equipment.
Referring to fig. 7, fig. 7 is a schematic view of a tool apparatus according to a fourth embodiment of the present application. The included units are used for executing steps in the embodiment corresponding to fig. 5, and refer to the related description in the embodiment corresponding to fig. 5 specifically. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 7, the tool apparatus 7 includes:
a first receiving unit 710, configured to receive a power on/off instruction sent by a device under test;
and the execution unit 720 is configured to execute a power on/off operation corresponding to the power on/off instruction on the device under test.
Further, the tool apparatus further includes:
and the second receiving unit is used for receiving the operation prompt information sent by the tested equipment and storing the data in the operation prompt information to a test flow file.
Further, the operation prompt information includes the tested module identifier, the test information, the test time, and the test phase.
Further, the first receiving unit is specifically configured to:
acquiring a data packet sent by the tested device, and extracting a check code in the data packet;
verifying the check code, and detecting the type of the data packet when the check code is correct; the data packet type can be a power-on/off instruction type or an operation prompt information type;
and when the type of the data packet is a power-on/off instruction, acquiring the power-on/off instruction.
Further, the first receiving unit is specifically further configured to:
and when the check code is wrong, discarding the data packet.
Further, the execution unit is specifically configured to:
and executing the startup and shutdown actions of the tested equipment according to the startup and shutdown mode, and storing a startup and shutdown log record.
Fig. 8 is a schematic diagram of a device under test provided in a fifth embodiment of the present application. As shown in fig. 8, the device under test 8 of this embodiment includes: a processor 80, a memory 81 and a computer program 82, such as a power on/off test program, stored in said memory 81 and executable on said processor 80. The processor 80 executes the computer program 82 to perform steps in an embodiment of a power on/off test method, such as steps 101 to 103 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 610 to 630 shown in fig. 6.
Illustratively, the computer program 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 82 in the device under test 8. For example, the computer program 82 may be divided into an acquisition unit, a first processing unit, and a second processing unit, and each unit specifically functions as follows:
an acquisition unit for acquiring test parameters;
the first processing unit is used for generating a power-on and power-off instruction according to the test parameters and sending the power-on and power-off instruction to the tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment;
and the second processing unit is used for stopping the test when a preset termination condition is met.
The device under test may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a device under test 8 and is not intended to limit the device under test 8 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the device under test may also include input output devices, network access devices, buses, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may be an internal storage unit of the device under test 8, such as a hard disk or a memory of the device under test 8. The memory 81 may also be an external storage device of the device under test 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the device under test 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the device under test 8. The memory 81 is used for storing the computer program and other programs and data required by the device under test. The memory 81 may also be used to temporarily store data that has been output or is to be output.
Fig. 9 is a schematic view of a tool apparatus provided in a sixth embodiment of the present application. As shown in fig. 9, the tool apparatus 9 of this embodiment includes: a processor 90, a memory 91 and a computer program 92, such as a power on/off test program, stored in said memory 91 and executable on said processor 90. The processor 90 executes the computer program 92 and performs steps in an embodiment of a power on/off test method, such as steps 201 to 202 shown in fig. 5. Alternatively, the processor 90, when executing the computer program 92, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 710 to 720 shown in fig. 7.
Illustratively, the computer program 92 may be partitioned into one or more modules/units that are stored in the memory 91 and executed by the processor 90 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 92 in the tool apparatus 9. For example, the computer program 92 may be divided into a first receiving unit and an executing unit, and the specific functions of each unit are as follows:
the first receiving unit is used for receiving a startup and shutdown instruction sent by the tested equipment;
and the execution unit is used for executing the startup and shutdown operation corresponding to the startup and shutdown instruction on the tested equipment.
The tool device may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is merely an example of a tool device 9, and does not constitute a limitation of the tool device 9, and may include more or less components than those shown, or combine certain components, or different components, for example, the tool device may also include input-output devices, network access devices, buses, etc.
The Processor 90 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may be an internal storage unit of the tool apparatus 9, such as a hard disk or a memory of the tool apparatus 9. The memory 91 may also be an external storage device of the tool device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the tool device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the tool device 9. The memory 91 is used for storing the computer program and other programs and data required by the tool device. The memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A startup and shutdown testing method is applied to a device to be tested, and comprises the following steps:
obtaining a test parameter;
generating a power-on and power-off instruction according to the test parameters, and sending the power-on and power-off instruction to tool equipment; the power on/off instruction is used for triggering the tool equipment to execute the power on/off operation corresponding to the power on/off instruction on the tested equipment;
and when the preset termination condition is met, stopping the test.
2. The power on/off test method of claim 1, wherein the test parameters include one or more of a tested module identifier, a current power on/off count, a target power on/off count, a power on/off mode, a power off delay mode, a fixed power off delay, a random power off time limit, a power on delay mode, a fixed power on delay, and a random power on time limit.
3. The power on/off test method of claim 1, wherein the test parameters include a tested module identification;
after the power on/off instruction is generated according to the test parameters and sent to the tool equipment, the method further includes:
determining a tested module according to the tested module identifier;
executing test operation on the tested module to obtain operation prompt information;
and sending the operation prompt information to the tool equipment.
4. The power on/off test method according to claim 3, wherein the operation prompt message includes the module under test identification, test information, test time, and test phase.
5. The power on/off test method according to claim 3, wherein the sending the operation prompt message to the tool device includes:
packaging the operation prompt information into an operation prompt information data packet according to a preset packaging format;
and sending the operation prompt information data packet to the tool equipment.
6. The power on/off test method of claim 1, wherein the test parameters include a power off delay;
the generating a power-on and power-off instruction according to the test parameters and sending the power-on and power-off instruction to tool equipment comprises the following steps:
and generating a power-on and power-off instruction according to the test parameters, delaying the power-off delay, and sending the power-on and power-off instruction to tool equipment.
7. A startup and shutdown testing method is applied to tool equipment and comprises the following steps:
receiving a startup and shutdown instruction sent by a tested device;
and executing the on-off operation corresponding to the on-off instruction on the tested equipment.
8. The power on/off test method of claim 7, further comprising:
and receiving operation prompt information sent by the tested equipment, and storing data in the operation prompt information to a test flow file.
9. A device under test comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 6 when executing the computer program.
10. A tool apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 7 to 8 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782970.7A CN112015607B (en) | 2020-08-06 | 2020-08-06 | On-off test method, tested equipment and tool equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782970.7A CN112015607B (en) | 2020-08-06 | 2020-08-06 | On-off test method, tested equipment and tool equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112015607A true CN112015607A (en) | 2020-12-01 |
CN112015607B CN112015607B (en) | 2024-03-19 |
Family
ID=73499360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010782970.7A Active CN112015607B (en) | 2020-08-06 | 2020-08-06 | On-off test method, tested equipment and tool equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112015607B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006064607A (en) * | 2004-08-30 | 2006-03-09 | Yokogawa Electric Corp | Ic tester |
CN101154126A (en) * | 2006-09-25 | 2008-04-02 | 佛山市顺德区顺达电脑厂有限公司 | Periodic switch control device of electric power supply |
CA2693243A1 (en) * | 2009-02-17 | 2010-08-17 | Manta Test Systems Inc. | System and method for performing automated testing of protective relay equipment |
US20100211824A1 (en) * | 2009-02-13 | 2010-08-19 | Sun Microsystems, Inc. | Systems and methods for memory retention across resets |
CN102012855A (en) * | 2010-12-08 | 2011-04-13 | 广东威创视讯科技股份有限公司 | Method and device for implementing on off test by data acquisition |
US20120047400A1 (en) * | 2010-08-23 | 2012-02-23 | Hon Hai Precision Industry Co., Ltd. | Computer startup test apparatus |
US20120266021A1 (en) * | 2011-04-15 | 2012-10-18 | Wistron Corporation | Automatic testing apparatus |
CN103676919A (en) * | 2012-08-30 | 2014-03-26 | 研祥智能科技股份有限公司 | Test system of industrial control equipment |
CN105893196A (en) * | 2016-04-05 | 2016-08-24 | 浪潮电子信息产业股份有限公司 | Server debugging auxiliary tool and system |
CN107317638A (en) * | 2017-06-07 | 2017-11-03 | 百富计算机技术(深圳)有限公司 | Method, terminal device and the computer-readable recording medium of bluetooth test |
CN107329866A (en) * | 2017-06-29 | 2017-11-07 | 长沙理工大学 | A kind of SOC switching on and shutting down experimental rig and method |
CN108306778A (en) * | 2016-09-01 | 2018-07-20 | 深圳市中兴微电子技术有限公司 | A kind of mobile terminal test method, device and system |
-
2020
- 2020-08-06 CN CN202010782970.7A patent/CN112015607B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006064607A (en) * | 2004-08-30 | 2006-03-09 | Yokogawa Electric Corp | Ic tester |
CN101154126A (en) * | 2006-09-25 | 2008-04-02 | 佛山市顺德区顺达电脑厂有限公司 | Periodic switch control device of electric power supply |
US20100211824A1 (en) * | 2009-02-13 | 2010-08-19 | Sun Microsystems, Inc. | Systems and methods for memory retention across resets |
CA2693243A1 (en) * | 2009-02-17 | 2010-08-17 | Manta Test Systems Inc. | System and method for performing automated testing of protective relay equipment |
US20120047400A1 (en) * | 2010-08-23 | 2012-02-23 | Hon Hai Precision Industry Co., Ltd. | Computer startup test apparatus |
CN102012855A (en) * | 2010-12-08 | 2011-04-13 | 广东威创视讯科技股份有限公司 | Method and device for implementing on off test by data acquisition |
US20120266021A1 (en) * | 2011-04-15 | 2012-10-18 | Wistron Corporation | Automatic testing apparatus |
CN103676919A (en) * | 2012-08-30 | 2014-03-26 | 研祥智能科技股份有限公司 | Test system of industrial control equipment |
CN105893196A (en) * | 2016-04-05 | 2016-08-24 | 浪潮电子信息产业股份有限公司 | Server debugging auxiliary tool and system |
CN108306778A (en) * | 2016-09-01 | 2018-07-20 | 深圳市中兴微电子技术有限公司 | A kind of mobile terminal test method, device and system |
CN107317638A (en) * | 2017-06-07 | 2017-11-03 | 百富计算机技术(深圳)有限公司 | Method, terminal device and the computer-readable recording medium of bluetooth test |
CN107329866A (en) * | 2017-06-29 | 2017-11-07 | 长沙理工大学 | A kind of SOC switching on and shutting down experimental rig and method |
Also Published As
Publication number | Publication date |
---|---|
CN112015607B (en) | 2024-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112965908B (en) | Communication test method, device, communication equipment and storage medium | |
CN102622234A (en) | Development system and method for automatic test case | |
EP1920379A2 (en) | Controlling embedded memory access | |
JP2002024201A (en) | Semiconductor integrated circuit | |
CN112100081B (en) | Upgrade test method and device based on double-core intelligent electric meter and computer equipment | |
CN112231228A (en) | Firmware upgrade test method, device, platform, equipment and storage medium | |
CN109582518A (en) | It is a kind of for the control method of BIOS debugging mode, device and equipment | |
CN108897695A (en) | A kind of the interconnection test method and system of demand side apparatus | |
CN103376777B (en) | Testing method of Modbus communication interface of controller and upper computer | |
CN107273756B (en) | Safety information protection device in F2F decoding chip | |
US9535816B2 (en) | Remote diagnostics for a computing device | |
US20240303382A1 (en) | Method, apparatus and system for monitoring i2c, and storage medium | |
US11954951B2 (en) | Component of electric vehicle, data collecting system for electric vehicle, and data collecting method for electric vehicle | |
CN103890713B (en) | Device and method for managing the register information in processing system | |
CN113704126A (en) | Verification method and device, computer storage medium and processor | |
CN114020682A (en) | Chip working mode control method and device, chip and storage medium | |
CN112015607A (en) | Startup and shutdown testing method, tested equipment and tool equipment | |
CN112860587A (en) | UI automatic test method and device | |
CN109243650B (en) | Nuclear power station safety level instrument control system and method with configuration function based on FPGA | |
US20110022373A1 (en) | Model checking of liveness property in a phase abstracted model | |
CN111061621B (en) | Method, device and equipment for verifying program performance and storage medium | |
JP2005309543A (en) | Test board, test system and test method for semiconductor integrated circuit with built-in cpu, self-test program, and readable recording medium | |
CN117709076A (en) | Multi-mode simulation and simulation data generation method, terminal equipment and storage medium | |
CN109783417A (en) | A kind of serial communication device and method | |
CN117131821B (en) | Chip verification method, device, electronic equipment and storage medium |
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 |