CN114441208A - Test assembly, test system, test method, and storage medium - Google Patents

Test assembly, test system, test method, and storage medium Download PDF

Info

Publication number
CN114441208A
CN114441208A CN202210095834.XA CN202210095834A CN114441208A CN 114441208 A CN114441208 A CN 114441208A CN 202210095834 A CN202210095834 A CN 202210095834A CN 114441208 A CN114441208 A CN 114441208A
Authority
CN
China
Prior art keywords
switch
target
equipment
relay
state
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.)
Pending
Application number
CN202210095834.XA
Other languages
Chinese (zh)
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.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing 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 Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202210095834.XA priority Critical patent/CN114441208A/en
Publication of CN114441208A publication Critical patent/CN114441208A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Emergency Protection Circuit Devices (AREA)

Abstract

The embodiment of the application provides a test component, a test system, a test method and a storage medium. The testing assembly comprises control equipment and relay equipment, wherein a control end of the relay equipment is electrically connected with the control equipment, a switch port of the relay equipment is configured to be correspondingly and electrically connected with a switch circuit of a switch of equipment to be tested, the relay equipment receives a control signal output by the control equipment through the control end and controls the switch state of a target switch port according to the control signal, so that the state of the switch circuit of a target switch electrically connected with the target switch port is changed along with the change of the target switch circuit, the change of the target switch circuit simulates the switch information of the target switch, and the equipment to be tested sets a corresponding working state according to the switch information. The embodiment of the application realizes that the test component simulates the manual operation of an operator on the device to be tested.

Description

Test assembly, test system, test method, and storage medium
Technical Field
The present application relates to the field of testing technologies, and in particular, to a test component, a test system, a test method, and a storage medium.
Background
During testing, related testing can be performed on a product (to-be-tested device) through a control device, for example, products such as an edge computing box and the like, in the testing process, operations such as starting up, system burning, system resetting or system restoring and the like need to be manually performed on the to-be-tested device, a corresponding switch device such as a power key, a reset key, a jumper cap or a system restoring key and the like is arranged on the to-be-tested device, a tester manually operates the corresponding switch device to trigger switch information such as pressing the power key, plugging and unplugging the jumper cap and the like, so that the to-be-tested device sets working states such as a starting-up state, a resetting state or a restoring state and the like according to the switch information.
Therefore, manual operation must be performed on the product during the test process, and related operations cannot be performed when an operator has a rest or is not at the position of the device to be tested.
Disclosure of Invention
The application provides a test component, a test system, a test method and a storage medium aiming at the defects of the prior art, and aims to solve the technical problem that manual operation must be performed on equipment to be tested during testing in the prior art.
In a first aspect, an embodiment of the present application provides a test assembly, including:
a control device configured to be electrically connected with a communication port of a device under test;
a relay device comprising at least one switch port; the control end of the relay equipment is electrically connected with the control equipment, and the switch port of the relay equipment is configured to be correspondingly and electrically connected with a switch circuit of a switch of the equipment to be tested;
the control equipment is used for outputting a control signal of a target switch circuit of a corresponding target switch to target relay equipment under an automatic test environment, and the relay equipment comprises the target relay equipment;
the target relay equipment is used for controlling the on-off state of the target switch port when receiving the control signal, so that the corresponding target switch circuit changes the state along with the control signal, the switch information of the target switch is simulated, the target equipment to be tested sets the working state according to the switch information, and the equipment to be tested comprises the target equipment to be tested.
Optionally, the relay devices include at least two relay devices, and the devices to be tested include at least two relay devices, and each relay device is configured to correspond to each device to be tested one to one.
Optionally, the number of the devices to be tested is at least two, and each relay device is configured to correspond to the designed number of the devices to be tested.
Optionally, the number of the relay devices is at least two, and each designed number of the relay devices is configured to correspond to one device to be tested.
Optionally, the relay device includes at least two switch ports, and the device under test includes a switch circuit including at least two switches; the at least two switch ports are configured to be electrically connected in one-to-one correspondence with the switching circuits of the at least two switches.
Optionally, the switch of the device under test includes at least one of a reset key, a system restore key, a jumper cap, and a power key;
the relay device comprises at least one of the following switching ports: the first switch port is electrically connected with the switch circuit of the reset key correspondingly, the second switch port is electrically connected with the switch circuit of the system reset key correspondingly, the third switch port is electrically connected with the switch circuit of the jumper cap correspondingly, and the fourth switch port is electrically connected with the switch circuit of the power key correspondingly;
the working state comprises at least one of a reset state, a system restoring state, a starting state and a shutdown state.
In a second aspect, an embodiment of the present application provides a test system, including at least one device under test and the test component provided in the first aspect of the present application;
the test assembly comprises relay equipment and control equipment which are electrically connected, the control equipment is electrically connected with a communication port of the equipment to be tested, and a switch port of the relay is electrically connected with a switch circuit of a switch of the equipment to be tested correspondingly.
In a third aspect, an embodiment of the present application provides a testing method, which is applied to the testing system provided in the second aspect of the present application, and the testing method includes:
the control equipment outputs a control signal of a target switch circuit of a corresponding target switch to the target relay equipment in an automatic test environment;
when the target relay equipment receives the control signal, controlling the switching state of a target switch port to enable a target switch circuit corresponding to the target equipment to be tested to change the state along with the control signal so as to simulate the switching information of a target switch;
and the target equipment to be tested sets a working state according to the switch information.
Optionally, when the target relay device receives the control signal, controlling a switch state of the target switch port, so that a target switch circuit corresponding to the target device to be tested changes state along with the control signal, including:
when the control signal represents that the switch is conducted, controlling the switch state of the target switch port to be a conducting state, and enabling the corresponding target switch circuit to be conducted along with the target switch circuit;
when the control signal representation switch is disconnected, controlling the switch state of the target switch port to be an off state, so that the corresponding target switch circuit is disconnected;
and when the control signal represents that the switch is switched on and is switched off after keeping the design time period, controlling the switching state of the target switch port to be firstly switched on and switched off after keeping the design time period, so that the corresponding target switch circuit is switched on and switched off after keeping the design time period.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a test system to implement the test method provided in the third aspect of the present application.
The beneficial technical effects brought by the technical scheme provided by the embodiment of the application comprise:
the test assembly that this application embodiment provided, including relay equipment, relay equipment is connected with controlgear and equipment to be tested electricity respectively, can be according to the control signal of controlgear output, and the control equipment to be tested simulates out the switch information of switch, makes the equipment to be tested set up the operating condition who corresponds according to switch information. The technical problem that manual operation must be performed on the equipment to be tested during testing is solved. Specifically, the method comprises the following steps:
the test assembly provided by the embodiment of the application comprises a control device and a relay device, wherein the control device is configured to be electrically connected with a communication port of a device to be tested, a control port of the relay device is electrically connected with the control device, when an automatic test is carried out, a target relay device can receive a control signal output by the control device and control the state of a target switch port according to the control signal, meanwhile, a switch port of the relay device is configured to be electrically connected with a switch circuit of a switch of the device to be tested, the target switch circuit of a target switch of the target device to be tested carries out state change along with the state of the target switch port of the target relay device, the state change can simulate manual operation on the switch of the device to be tested and simulate switch information, the switch information comprises a press key, a plug jumper cap and the like which are simulated manually carried out, and the device to be tested is according to the switch information, and correspondingly setting the working state corresponding to the switch information, and carrying out various required tests under the corresponding working state, so that the automation of the whole test process is realized, and manual operation is not needed.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic structural diagram of a test system according to an embodiment of the present disclosure;
fig. 2 is a schematic connection diagram of a first test relay device and a device to be tested according to an embodiment of the present disclosure;
fig. 3 is a schematic connection diagram of a second test relay device and a device to be tested according to an embodiment of the present application;
fig. 4 is a schematic connection diagram of a third test relay device and a device to be tested according to an embodiment of the present application;
fig. 5 is a schematic connection diagram of a switch port of a relay device and a switch circuit of a switch of a device under test according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a testing method according to an embodiment of the present application.
The reference numerals of the drawings are explained below:
1-testing the system;
100-a test assembly; 200-equipment to be tested;
101-a control device; 102-a relay device;
1021-switch port; 201-a switch; 1022 — a control port; 202-a communication port;
1023-switch port unit; 203-a switching unit;
1021 a-a first switch port; 1021 b-a second switch port; 1021 c-third switch port; 1021 d-fourth switch port;
201 a-reset key; 201 b-System restore bond; 201 c-jumper cap; 201 d-Power Key.
Detailed Description
Reference will now be made in detail to the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar parts or parts having the same or similar functions throughout. In addition, if a detailed description of the known art is not necessary for illustrating the features of the present application, it is omitted. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, 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 will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the present application provides a test assembly 100, as shown in fig. 1, including:
the control device 101 is configured to be electrically connected with the communication port 202 of the device under test 200.
A relay device 102 comprising at least one switch port 1021; the control terminal 1022 of the relay device 102 is electrically connected to the control device 101, and the switch port 1021 of the relay device 102 is configured to be electrically connected to the switch circuit of the switch 201 of the device under test 200.
The control device 101 is configured to output a control signal of a target switch circuit of the corresponding target switch 201 to the target relay device 102 in an automated test environment, where the relay device 102 includes the target relay device 102.
The target relay device 102 is configured to control a switching state of the target switch port 1021 when receiving the control signal, so that the corresponding target switch circuit changes the state along with the control signal, so as to simulate switching information of the target switch 201, so that the target device to be tested 200 sets a working state according to the switching information, and the device to be tested 200 includes the target device to be tested 200.
The test assembly 100 provided by the embodiment of the application comprises a relay device 102, wherein the relay device 102 is electrically connected with a control device 101 and a device to be tested 200 respectively, and can control the device to be tested 200 to simulate the switch information of a switch 201 according to a control signal output by the control device 101, so that the device to be tested 200 is set to be in a working state corresponding to the switch information. The technical problem that manual operation must be performed on the device to be tested 200 in the test is solved. Specifically, the method comprises the following steps:
the test assembly 100 provided by the embodiment of the application comprises a control device 101 and a relay device 102, the control device 101 is configured to be electrically connected with a communication port 202 of a device under test 200, a control port 1022 of the relay device 102 is electrically connected with the control device 101, when an automatic test is performed, a target relay device 102 can receive a control signal output by the control device 101 and control the state of a target switch port 1021 according to the control signal, meanwhile, a switch port 1021 of the relay device 102 is configured to be electrically connected with a switch circuit of a switch 201 of the device under test 200, the target switch circuit of the target switch 201 of the target device under test 200 performs state change along with the state of the target switch port 1021 of the target relay device 102, the state change can simulate manual operation on the switch 201 of the device under test 200 and simulate switch information, and the switch information includes a button pressed and the button are simulated manually, And plugging and unplugging a jumper cap and the like, correspondingly setting the working state corresponding to the switch information according to the switch information, and carrying out various required tests under the corresponding working state, thereby realizing the automation of the whole test process without manual operation.
Optionally, the electrical connection between the control port 1022 of the relay device 102 and the control device 101 includes serial communication interface connection, such as RS232 serial communication connection and RS485 serial communication connection; the electrical connection means also includes ethernet connection and the like.
Optionally, the relay device 102 includes at least one switch port 1021, the switch port 1021 is connected with two pins of a switch circuit of the switch 201 of the device under test 200, and the on or off of the switch circuit of the switch 201 of the device under test 200 can be controlled by a switch state of the switch port 1021 of the relay.
Optionally, the relay device 102 is packaged by using a package including Python3, and the Modbus protocol is not concerned when in use; the Modbus protocol is a general communication protocol widely used in the present industrial control field, and is used for serial communication interface connection (including RS232 and RS485) and ethernet port connection.
Optionally, the control device 101 is connected to the target relay devices 102, and the number of the target relay devices 102 is not greater than the number of the relay devices 102.
Alternatively, the target relay apparatus 102 may be used by specifying the states of the target switch port 1021 and the target switch port 1021 when used.
Optionally, the target switch ports 1021 of the target relay devices 102 are electrically connected with the target switch circuits of the target switches 201 of the target devices 200, and the number of the target devices 200 is not greater than the number of the devices 200.
Optionally, the relay device 102 includes at least one switch port 1021, and in an automated testing environment, the control device 101 outputs a control signal to the target switch port 1021 of the target relay device 102, where the control signal corresponds to a target switch circuit of the target switch 201.
Optionally, the change of the target switch circuit state may simulate switch information, and replace an operator to manually operate the target switch 201 of the device under test 200 to trigger the switch information, so that the device under test 200 sets a working state according to the switch information.
In some embodiments, as shown in fig. 2, the relay devices 102 include at least two, and the devices under test 200 include at least two, and each relay device 102 is configured to correspond to each device under test 200 one to one.
Alternatively, the control device 101 may automatically control a plurality of devices under test 200 by controlling a plurality of relay devices 102.
Optionally, each relay device 102 is configured to correspond to each device under test 200 one to one, one relay device 102 can only control one device under test 200, each relay device 102 includes at least one switch port 1021, each switch port 1021 on each relay device 102 is electrically connected to a corresponding switch circuit of a switch 201 on one device under test 200, and a switch circuit of a switch 201 on one device under test 200 includes at least one switch circuit.
In some embodiments, as shown in fig. 3, the device under test 200 includes at least two, and each relay device 102 is configured to correspond to a designed number of the devices under test 200.
Alternatively, the control device 101 may automatically control the designed number of devices under test 200 by controlling one relay device 102.
Optionally, each relay device 102 includes a plurality of switch ports 1021, all the switch ports 1021 on each relay device 102 may be divided into a designed number of parts, each part serves as a switch port unit 1023, the switch port units 1023 are electrically connected to the switch circuits of the switches 201 of one device under test 200, and the switch circuits of the switches 201 on one device under test 200 include at least one.
Each relay device 102 includes a designed number of switch port units 1023, and each relay device 102 is configured corresponding to the designed number of devices 200 to be tested.
In some embodiments, as shown in fig. 4, the relay devices 102 include at least two relay devices 102, and each designed number of the relay devices 102 is configured to correspond to one device under test 200.
Optionally, the control device 101 may automatically control one device under test 200 by controlling the designed number of relay devices 102.
Optionally, each device under test 200 includes a plurality of switch circuits of the switches 201, the switch circuits of all the switches 201 on each device under test 200 may be divided into a plurality of design parts, the switch circuit of each part of the switches 201 serves as one switch unit 203, the switch units 203 are correspondingly electrically connected to the switch ports 1021 of one relay device 102, and at least one switch port 1021 on one relay device 102 is included.
Each device under test 200 includes a designed number of switch units 203, and each device under test 200 is configured corresponding to a designed number of relay devices 102.
In some embodiments, as shown in fig. 5, the relay device 102 includes at least two switch ports 1021, and the device under test 200 includes a switching circuit of at least two switches 201; the at least two switch ports 1021 are configured to be electrically connected in a one-to-one correspondence with the switching circuits of the at least two switches 201.
Optionally, one switch port 1021 of the relay device 102 can be electrically connected with only one switch circuit of one switch 201 of the device under test 200, specifically, each switch port 1021 is electrically connected with two pins of a switch circuit to be controlled.
Optionally, when the relay device 102 is provided with N switch ports 1021, the relay device 102 may be electrically connected to the switch circuits of the N switches 201 on the device under test 200 correspondingly, and the switch ports 1021 and the switch circuits of the switches 201 are electrically connected in a one-to-one correspondence.
In some embodiments, as shown in fig. 5, the switch of the device under test 200 includes at least one of a reset key 201a, a system restore key 201b, a jumper cap 201c, and a power key 201 d.
The relay device 102 includes at least one of the following switching ports 1021: the first switch port 1021a is electrically connected with the switch circuit of the reset key 201a correspondingly, the second switch port 1021b is electrically connected with the switch circuit of the system restoring key 201b correspondingly, the third switch port 1021c is electrically connected with the switch circuit of the jumper cap 201c correspondingly, and the fourth switch port 1021d is electrically connected with the switch circuit of the power key 201d correspondingly.
The working state comprises at least one of a reset state, a system restoring state, a starting state and a shutdown state.
Optionally, in the prior art, when the device to be tested 200 is tested, it is necessary that the working state of the device to be tested 200 is a reset state, an operator needs to press the reset key 201a on the device to be tested 200, so that the state of the switch circuit of the reset key 201a changes, switch information representing that the reset key 201a is pressed is triggered, and the device to be tested 200 is set to the reset state according to the switch information.
Optionally, the first switch port 1021a of the relay device 102 is electrically connected to a switch circuit of the reset key 201a of the device 200 to be tested, when the device 200 to be tested is tested, the working state of the device 200 to be tested needs to be a reset state, the relay device 102 controls the switch state of the first switch port 1021a according to a control signal output by the control device 101, the switch circuit of the reset key 201a electrically connected to the first switch port 1021a changes state along with the change of the state, the change of the state of the switch circuit simulates switch information representing pressing of the reset key 201a, and the device 200 to be tested is set to be the reset state according to the switch information.
Optionally, the relay apparatus 102 may further include a second switch port 1021b for electrically connecting with a switch circuit of the system restoring key 201b, a third switch port 1021c for electrically connecting with a switch circuit of the jumper cap 201c, and a fourth switch port 1021d for electrically connecting with a switch circuit of the power key 201 d.
According to a control signal of the control device 101, a switching state including the second switch port 1021b, the third switch port 1021c, or the fourth switch port 1021d may be controlled; the switching circuit of the system restore key 201b, the switching circuit of the jumper cap 201c, or the switching circuit of the power key 201d, which is electrically connected thereto, is caused to follow the changing state.
The switching information representing pressing the system restoring key 201b, plugging and unplugging the jumper cap 201c or pressing the power key 201d is simulated according to the state of each switching circuit, and the device to be tested 200 is set to comprise a system restoring state, a power-on state or a power-off state according to the switching information.
Optionally, the switching circuit of the switch 201 of the device under test 200, and the corresponding switching information and operating state may be set according to the actual test requirement and the actual device under test 200, and those skilled in the art can understand that details are not described here.
Based on the same inventive concept, the embodiment of the present application provides a test system 1, which includes at least one device under test 200 and the test component 100 provided by the present application;
the test assembly 100 comprises a relay device 102 and a control device 101 which are electrically connected, wherein the control device 101 is electrically connected with a communication port 202 of the device 200 to be tested, and a switch port 1021 of the relay is correspondingly electrically connected with a switch circuit of a switch 201 of the device 200 to be tested.
Optionally, in the test system 1, there may be a plurality of devices under test 200, switch circuits of a plurality of switches 201 on the plurality of devices under test 200 are respectively electrically connected to a plurality of switch ports 1021 of the relay device 102 in the test assembly 100, and a plurality of relay devices 102 may also be disposed in the test assembly 100.
Optionally, the electrical connection manner between the switch port 1021 of the relay device 102 and the switch circuit of the switch 201 of the device under test 200 has been described in the foregoing embodiment, and is not described herein again.
Based on the same inventive concept, the embodiment of the present application provides a testing method, which is matched with the testing system 1 provided by the present application, and the flow diagram of the method is shown in fig. 6, and the method includes the following steps S601-S603:
s601: the control device 101 outputs a control signal of the target switch circuit of the corresponding target switch 201 to the target relay device 102 in the automated test environment.
Optionally, the target relay device 102 is determined by connecting the control port 1022 of the relay through the control device 101, the connected relay device 102 may serve as the target relay device 102, and the manner of connecting the relay device 102 includes serial port connection, for example, connection through a USB (universal serial bus);
optionally, the control device 101 is electrically connected to the control ports 1022 of the plurality of relay devices 102, and the connection ports 1022 include a first port, a second port, and the like.
Optionally, the suitable program is set by python3 language to connect different relay devices 102, which is easily understood by those skilled in the art and will not be described herein.
Alternatively, the control signal of the target switch circuit corresponding to the target switch 201 output by the control device 101 includes the target switch circuit that determines the target switch 201.
The target switch circuit of the target switch 201 is determined, that is, the target switch port 1021 of the target relay apparatus 102 electrically connected to the target switch circuit of the target switch 201 is determined.
If the target switch 201 is a power button switch of the device under test 200, the switch circuit of the power button 201d is electrically connected to the fourth switch port 1021d of the relay device 102, and the control signal to the switch circuit of the power button 201d determines to control the fourth switch port 1021d of the relay device 102.
For another example, when the target switch 201 is a system restoring key 201b of the device under test 200, the switch circuit of the system restoring key 201b is electrically connected to the second switch port 1021b of the relay device 102, and the control signal to the switch circuit of the system restoring key 201b is to determine to control the second switch port 1021b of the relay device 102.
S602: when the target relay device 102 receives the control signal, the target relay device controls the switching state of the target switch port 1021, so that the target switch circuit corresponding to the target device 200 to be tested changes the state along with the control signal, so as to simulate the switching information of the target switch 201.
Optionally, the control signal further includes a signal for controlling the switch state of the target switch port 1021 after the target switch port 1021 corresponding to the target switch circuit is determined.
Alternatively, the switch information of the target switch 201 can be simulated by changing the state of the target switch circuit, which is changed along with the switch state of the target switch port 1021.
Optionally, the simulated switch information may replace manual operation of an operator on the device under test 200, where the manual operation includes pressing a key, plugging and unplugging a jumper cap, and specifically, for example, pressing the key includes pressing the key to turn on the switch circuit, keeping the key in a pressed state for a period of time, keeping the switch circuit on during the period of time, and then releasing the key to turn off the switch circuit.
Optionally, the state change of the target switch circuit to simulate the switch information is also realized by controlling the target switch circuit to conduct circuit on and off, and the state change of the target switch circuit comprises conducting and breaking, and keeping the change state for a period of time.
In some embodiments, when the control signal indicates that the switch is turned on and kept for the design period and then turned off, the switch state of the target switch port is controlled to be turned on first and kept for the design period and then turned off, so that the corresponding target switch circuit is turned off after being turned on and kept for the design period.
Optionally, the control signal simulates a manually operated pressed key, so that the switch information simulating the manual operation trigger includes a related signal indicating that the switch is turned on and a related signal indicating that the switch is turned off.
Optionally, when setting, different switches on the device to be tested 200 need to be kept for different times when the setting key is pressed, for example, the power key 201d may set switch information that is pressed for a short time to trigger the device to be tested 200 to set a power-on/power-off working state, and the system restoring key 201b may set switch information that is pressed for 7 seconds to trigger the device to be tested 200 to set a system restoring working state.
Alternatively, the control signal of the control device 101, the fact that the trigger switch information is changed according to the switching circuit state of the target switch 201 is: and controlling the switching circuit to be switched on for a designed time period, and then switching off, for example, the switching circuit of the system restoring key 201b is electrically connected with the second switching port 1021b of the relay device 102, the switching information of the system restoring key 201b is kept pressed for 7s, and the control device 101 outputs a corresponding control signal to the relay device 102 to represent that the switch is switched on and is switched off after being kept for 7 s.
In some embodiments, when the control signal indicates that the switch is turned on, the switch state of the control target switch port 1021 is turned on, so that the corresponding target switch circuit follows the turn on.
In some embodiments, when the control signal characterizes the switch opening, the switch state of the control target switch port 1021 is an off state, such that the corresponding target switch circuit follows the opening.
Alternatively, the switch port and the switch circuit electrically connected to the switch port 1021 can be controlled to be on or off more precisely by the control signal.
Alternatively, when the trigger condition of the switch information of the switch 201 of the device under test 200 is uncertain, the control signal for controlling the on and off of the switch circuit may be separately set.
Optionally, in an actual use process, the method for controlling the switch information triggering the switch 201 of the device under test 200 further includes that, in the above two embodiments, the state of the switch circuit electrically connected to the port 1021 is controlled to be on or off, the control information for controlling a specific time is added between the two control signals, and the simulation of the switch information is completed by combining a plurality of control signals.
S603: the target device under test 200 sets the operating state according to the switch information.
Optionally, the target device under test 200 changes the simulated switching information according to the state of the target switching circuit, and sets a corresponding working state.
Optionally, the switch information includes pressing the power key 201d, pressing the system restore key 201b, pressing the reset key 201a, or plugging the jumper cap 201 c.
Optionally, the working states set by the target device under test 200 include a power-on state, a power-off state, a system restoration state, a reset state, and the like.
Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the test system 1, implements the test method provided by the present application.
By applying the embodiment of the application, at least the following beneficial effects can be realized:
the test assembly 100 provided by the embodiment of the application includes the relay device 102, the relay device 102 is electrically connected with the control device 101 and the device to be tested 200 respectively, and can control the device to be tested 200 to simulate the switch information of the switch 201 according to the control signal output by the control device 101, so that the device to be tested 200 is set to be in the working state corresponding to the switch information. The technical problem that manual operation must be performed on the device to be tested 200 in the test is solved. Specifically, the method comprises the following steps:
the test assembly 100 provided by the embodiment of the application comprises a control device 101 and a relay device 102, the control device 101 is configured to be electrically connected with a communication port 202 of a device under test 200, a control port 1022 of the relay device 102 is electrically connected with the control device 101, when an automatic test is performed, a target relay device 102 can receive a control signal output by the control device 101 and control the state of a target switch port 1021 according to the control signal, meanwhile, a switch port 1021 of the relay device 102 is configured to be electrically connected with a switch circuit of a switch 201 of the device under test 200, the target switch circuit of the target switch 201 of the target device under test 200 performs state change along with the state of the target switch port 1021 of the target relay device 102, the state change can simulate manual operation on the switch 201 of the device under test 200 and simulate switch information, and the switch information includes a button pressed and the button are simulated manually, And plugging and unplugging a jumper cap and the like, correspondingly setting the working state corresponding to the switch information according to the switch information, and carrying out various required tests under the corresponding working state, thereby realizing the automation of the whole test process without manual operation.
And in the automatic test, the control system can control a plurality of devices to be tested 200 through the relay devices 102, the number of the relay devices 102 can be increased, and the working efficiency of operators is improved.
The program setting of the control signal can not only control the existing switch circuit with known switch information triggering conditions, but also flexibly process the switch circuit with uncertain switch information triggering, and is more generally applicable.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, steps, measures, schemes in the prior art having various operations, methods, procedures disclosed in the present application may also be alternated, modified, rearranged, decomposed, combined, or deleted.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A test assembly, comprising:
a control device configured to be electrically connected with a communication port of a device under test;
a relay device comprising at least one switch port; the control end of the relay equipment is electrically connected with the control equipment, and the switch port of the relay equipment is configured to be correspondingly and electrically connected with a switch circuit of a switch of the equipment to be tested;
the control equipment is used for outputting a control signal of a target switch circuit of a corresponding target switch to target relay equipment under an automatic test environment, and the relay equipment comprises the target relay equipment;
the target relay equipment is used for controlling the on-off state of the target switch port when receiving the control signal, so that the corresponding target switch circuit changes the state along with the control signal, the switch information of the target switch is simulated, the target equipment to be tested sets the working state according to the switch information, and the equipment to be tested comprises the target equipment to be tested.
2. The test assembly of claim 1, wherein the number of relay devices is at least two, and the number of devices under test is at least two, each of the relay devices being configured to correspond one-to-one with each of the devices under test.
3. The test assembly of claim 1, wherein the devices under test include at least two, each of the relay devices configured to correspond to a designed number of the devices under test.
4. The test assembly of claim 1, wherein the relay devices comprise at least two, and each designed number of the relay devices is configured to correspond to one of the devices under test.
5. The test assembly of any one of claims 1-4, wherein the relay device includes at least two switch ports, the device under test including a switching circuit of at least two switches; the at least two switch ports are configured to be electrically connected in one-to-one correspondence with the switching circuits of the at least two switches.
6. The test assembly of any of claims 1-4,
the switch of the equipment to be tested comprises at least one of a reset key, a system restoring key, a jumper cap and a power key;
the relay device comprises at least one of the following switching ports: the first switch port is electrically connected with the switch circuit of the reset key correspondingly, the second switch port is electrically connected with the switch circuit of the system reset key correspondingly, the third switch port is electrically connected with the switch circuit of the jumper cap correspondingly, and the fourth switch port is electrically connected with the switch circuit of the power key correspondingly;
the working state comprises at least one of a reset state, a system restoring state, a starting state and a shutdown state.
7. A test system comprising at least one device under test and a test assembly according to any one of claims 1-6;
the test assembly comprises relay equipment and control equipment which are electrically connected, the control equipment is electrically connected with a communication port of the equipment to be tested, and a switch port of the relay is electrically connected with a switch circuit of a switch of the equipment to be tested correspondingly.
8. A test method applied to the test system according to claim 7, wherein the test method comprises:
the control equipment outputs a control signal of a target switch circuit of a corresponding target switch to the target relay equipment in an automatic test environment;
when the target relay equipment receives the control signal, controlling the switching state of a target switch port to enable a target switch circuit corresponding to the target equipment to be tested to change the state along with the control signal so as to simulate the switching information of a target switch;
and the target equipment to be tested sets a working state according to the switch information.
9. The method for testing according to claim 8, wherein the step of controlling the switching state of the target switch port by the target relay device when receiving the control signal so that the target switch circuit corresponding to the target device under test changes state along with the control signal comprises:
when the control signal represents that the switch is conducted, controlling the switch state of the target switch port to be a conducting state, and enabling the corresponding target switch circuit to be conducted along with the target switch circuit;
when the control signal represents that the switch is disconnected, controlling the switch state of the target switch port to be an off state, so that the corresponding target switch circuit is disconnected;
and when the control signal represents that the switch is switched on and is switched off after keeping the design time period, controlling the switching state of the target switch port to be firstly switched on and switched off after keeping the design time period, so that the corresponding target switch circuit is switched on and switched off after keeping the design time period.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a test system, carries out the test method according to any one of claims 8-9.
CN202210095834.XA 2022-01-26 2022-01-26 Test assembly, test system, test method, and storage medium Pending CN114441208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210095834.XA CN114441208A (en) 2022-01-26 2022-01-26 Test assembly, test system, test method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210095834.XA CN114441208A (en) 2022-01-26 2022-01-26 Test assembly, test system, test method, and storage medium

Publications (1)

Publication Number Publication Date
CN114441208A true CN114441208A (en) 2022-05-06

Family

ID=81369348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210095834.XA Pending CN114441208A (en) 2022-01-26 2022-01-26 Test assembly, test system, test method, and storage medium

Country Status (1)

Country Link
CN (1) CN114441208A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203117722U (en) * 2013-03-22 2013-08-07 北京经纬恒润科技有限公司 Line switching device and system
CN105375980A (en) * 2015-11-27 2016-03-02 上海斐讯数据通信技术有限公司 Device and method for detecting continuous light emission of multi-channel optical network unit
CN107180574A (en) * 2017-06-22 2017-09-19 上海景格科技股份有限公司 Vehicle component monomer detects circuit
CN107450522A (en) * 2017-08-29 2017-12-08 芜湖莫森泰克汽车科技股份有限公司 ECU ageing testing equipments
CN207636679U (en) * 2017-11-30 2018-07-20 深圳市天工机械制造技术开发有限公司 Test equipment controller
CN109507571A (en) * 2018-12-25 2019-03-22 京信通信系统(中国)有限公司 A kind of test device and test macro
CN110927489A (en) * 2019-11-27 2020-03-27 广州思泰信息技术有限公司 Distribution automation feeder terminal test system and method
CN211206724U (en) * 2019-12-14 2020-08-07 王浩名 Relay tester

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203117722U (en) * 2013-03-22 2013-08-07 北京经纬恒润科技有限公司 Line switching device and system
CN105375980A (en) * 2015-11-27 2016-03-02 上海斐讯数据通信技术有限公司 Device and method for detecting continuous light emission of multi-channel optical network unit
CN107180574A (en) * 2017-06-22 2017-09-19 上海景格科技股份有限公司 Vehicle component monomer detects circuit
CN107450522A (en) * 2017-08-29 2017-12-08 芜湖莫森泰克汽车科技股份有限公司 ECU ageing testing equipments
CN207636679U (en) * 2017-11-30 2018-07-20 深圳市天工机械制造技术开发有限公司 Test equipment controller
CN109507571A (en) * 2018-12-25 2019-03-22 京信通信系统(中国)有限公司 A kind of test device and test macro
CN110927489A (en) * 2019-11-27 2020-03-27 广州思泰信息技术有限公司 Distribution automation feeder terminal test system and method
CN211206724U (en) * 2019-12-14 2020-08-07 王浩名 Relay tester

Similar Documents

Publication Publication Date Title
WO2018205500A1 (en) Board-level test system
CN110501998B (en) BMS hardware in-loop test system and test method
CN103323809B (en) A kind of electric energy meter test equipment
CN110412976B (en) Function test system and test method of PCBA (printed circuit board assembly) of motor controller
CN111984479A (en) Method and system for carrying out startup and shutdown and restart tests on Android mainboard based on single chip microcomputer
CN112067970A (en) Plate intelligent test system with checking function
CN110887518A (en) Test method of combination instrument
CN212909566U (en) CAN bus fault injection test system
CN205374637U (en) Startup and shutdown testing device
CN112948186B (en) Detection device and detection method of interface signal
CN114441208A (en) Test assembly, test system, test method, and storage medium
CN114594372B (en) Test tool
CN111025046A (en) Test system, method for controlling matrix switch and storage medium
CN106586028B (en) System for testing aviation component
CN202305726U (en) Ageing monitoring equipment for distributors
CN212305362U (en) Durable automatic test system of motormeter ethernet communication
CN212646860U (en) Relay protection open-in and open-out test device
CN106896320B (en) PLC board simulation detection jig
CN210466051U (en) Fault injection test system for redundant flight control computer
CN201449545U (en) Equipment for intelligently detecting electronic control system programs
CN110058142B (en) 1553B bus interface circuit automatic fuse burning and adjusting plate and burning and adjusting method
CN108803583B (en) Test equipment of group control system control cabinet
CN108152593B (en) Portable full-automatic electric interface direct current resistance test system and test method
CN106597915A (en) Programmable power supply series-parallel rapid configuration instrument
CN109406900B (en) Fault simulation device based on battery simulator

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100176 Room 101, 1f, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Beijing

Applicant after: Beijing ESWIN Computing Technology Co.,Ltd.

Address before: 100176 Room 101, 1f, building 3, yard 18, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Beijing

Applicant before: Beijing yisiwei Computing Technology Co.,Ltd.