Equipment testing method, device and system, electronic equipment and storage medium
Through the method of recording and generating test cases, the problem of high professionalism requirements for testers in the prior art is solved, and the equipment testing process of the central control panel is simplified and popularized.
Patent Information
- Application Number
- CN202411718315.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-21
AI Technical Summary
In the prior art, during the production testing process of the central control panel with display function, testers need to write test scripts through professional programming languages, resulting in high professional requirements and cannot be applied to ordinary testers.
By recording the test operations of the device to be tested, a test case is generated, and the use case is executed to test the same type of second device to be tested. The method includes mirroring the display interface of the device to be tested to a display screen of the control unit, recording the test operations, and generating a test case according to these operations.
It reduces the professional requirements of testers, avoids the need to write test scripts in professional programming languages, and simplifies the device testing process.
Smart Images

Figure CN119669058A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a device testing method, apparatus, system, electronic device and storage medium. Background Art
[0002] During the production process, the products need to be tested to determine whether the functions of the products are normal. The central control panel with display function can display various information in the central control through the display function, and the central control function can be realized by touching the display screen of the central control panel or triggering the physical buttons on the central control panel.
[0003] Currently, during the production test process of central control panels with display functions, testers write test scripts using professional programming languages to test the various functions of the central control panels.
[0004] However, professional programming languages are relatively complex, requiring testers to have higher professional skills, and are not suitable for ordinary testers. Summary of the invention
[0005] In view of this, the equipment testing method, apparatus, system, electronic device and storage medium provided in this application have lower professional requirements for testers.
[0006] According to a first aspect of an embodiment of the present application, a device testing method is provided, comprising: recording test operations during testing of a first device to be tested; generating test cases based on the test operations; and executing the test cases to test a second device to be tested that is of the same type as the first device to be tested.
[0007] In one possible implementation, the recording of the test operation includes: mirroring the first display interface of the first device under test to a display screen of a control unit, wherein the control unit is used to test the device under test; and recording the test operation performed on the first control included in the mirror of the first display interface on the display screen.
[0008] In one possible implementation, the recording of the test operation includes: recording, through the display screen, a test operation performed on a second control displayed on the display screen, wherein the second control is used to control a simulation unit to send communication data to a device under test, and the simulation unit is used to simulate at least one physical device that sends communication data to the device under test.
[0009] In one possible implementation, executing the test case includes: mirroring the second display interface of the second device under test to the display screen of the control unit; performing a test operation on a first control included in the mirror of the second display interface on the display screen according to the test case; and synchronizing the test operation performed on the first control to the second device under test to test the second device under test.
[0010] In a possible implementation, executing the test case includes: performing a test operation on the second control on the display screen according to the test case, so that the simulation unit sends communication data to the second device under test, and tests the second device under test.
[0011] In a possible implementation, the method further includes: acquiring, by a measuring unit, a response signal output by the second device under test during the test; and generating a test report of the second device under test according to the test case and the response signal.
[0012] According to the second aspect of an embodiment of the present application, a device testing apparatus is provided, comprising: a recording unit for recording test operations during testing of a first device to be tested; a generating unit for generating test cases based on the test operations; and a testing unit for executing the test cases to test a second device to be tested that is of the same type as the first device to be tested.
[0013] According to a third aspect of an embodiment of the present application, a device testing system is provided, comprising: a control unit, a simulation unit and a measuring unit; the control unit is used to perform operations corresponding to the device testing method provided in the first aspect above; the simulation unit is used to simulate at least one physical device that sends communication data to the device under test; the measuring unit is used to obtain a response signal output by the device under test during the test process.
[0014] According to the fourth aspect of the embodiments of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the device testing method provided in the first aspect above.
[0015] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor performs operations corresponding to the device testing method provided in the first aspect above.
[0016] According to a sixth aspect of an embodiment of the present application, a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, enable at least one processor to perform operations corresponding to the device testing method provided in the first aspect above.
[0017] According to the above technical scheme, the test operations for testing the first device under test are recorded, and then test cases are generated according to the test operations, thereby executing the test cases to test the second device under test of the same type as the first device under test. Since the test operations during the test are directly recorded and the test cases are generated according to the test operations, compared with the process of generating test cases in the prior art, there is no need for testers to write test scripts in professional programming languages, which can reduce the professional requirements of testers. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a flow chart of a device testing method provided in an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of a display screen provided in an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of another display screen provided in an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of a device testing apparatus provided in an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a device testing system provided in an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of an electronic device provided in an embodiment of the present application.
[0024] List of reference numerals:
[0025] 101: During the process of testing the first device under test, record the test operation
[0026] 102: Generate test cases based on test operations
[0027] 103: Execute the test case to test a second device under test of the same type as the first device under test
[0028] 100: Equipment testing method 201: Display screen 400: Equipment testing device
[0029] 202: Mirror image of the first device under test 203: Second control 2021: First control
[0030] 401: Recording unit 402: Generating unit 403: Testing unit
[0031] 500: Equipment test system 501: Control unit 502: Simulation unit
[0032] 600: electronic device 602: processor 604: communication interface
[0033] 606: Memory 608: Communication bus 610: Program
[0034] 503: Measurement unit DETAILED DESCRIPTION
[0035] As mentioned above, during the production process, the products produced need to be tested to determine whether the various functions of the products are normal. The central control panel with display function can display various information in the central control through the display function, and the central control function can be realized by touching the display screen of the central control panel or triggering the physical buttons on the central control panel. At present, in the production test process of the central control panel with display function, testers write test scripts in professional programming languages to test the various functions of the central control panel. However, professional programming languages are relatively complex, which requires high professionalism of testers and is not suitable for ordinary testers.
[0036] In an embodiment of the present application, the test operations performed on the first device under test are recorded, and then test cases are generated based on the test operations, thereby enabling the test cases to be executed to test the second device under test of the same type as the first device under test. Since the test operations performed during the test are directly recorded and the test cases are generated based on the test operations, compared with the process of generating test cases in the prior art, there is no need for testers to write test scripts in professional programming languages, thereby reducing the professional requirements for testers.
[0037] The device testing method, apparatus, system and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0038] Figure 1 is a flow chart of a device testing method 100 provided in an embodiment of the present application, such as Figure 1 As shown, the device testing method 100 includes the following steps 101 to 103:
[0039] Step 101: During the process of testing a first device under test, record the test operation.
[0040] During the test of the first device under test, the test operations of the tester on the first device under test are recorded. The first device under test may be a central control panel with a screen display, for example, a central control panel with a liquid crystal display (LCD).
[0041] Step 102: Generate test cases according to the test operations.
[0042] Save the recorded test operations as test cases for subsequent testing.
[0043] Step 103: Execute the test case to test a second device under test of the same type as the first device under test.
[0044] The second device under test and the first device under test are devices of the same model, that is, they can be the same devices produced on the production line, for example: the second device under test and the first device under test are central control panels with LCD screens of the same model. The test case is executed to test the second device under test. The number of second devices under test can be multiple, and the test case can be executed in a loop. Each time a test case is executed, one second device under test can be tested. It should be understood that since the test case is a recorded manual test operation on the first device under test, the repeated execution of the test case can simulate the manual test operation on the first device under test to test the second device under test.
[0045] In an embodiment of the present application, the test operations performed on the first device under test are recorded, and then test cases are generated based on the test operations, thereby enabling the test cases to be executed to test the second device under test of the same type as the first device under test. Since the test operations performed during the test are directly recorded and the test cases are generated based on the test operations, compared with the process of generating test cases in the prior art, there is no need for testers to write test scripts in professional programming languages, thereby reducing the professional requirements for testers.
[0046] In one possible implementation, when recording the test operation, the first display interface of the first device to be tested can be mirrored to the display screen of the control unit, wherein the control unit is used to test the device to be tested and record the test operation performed on the first control included in the mirror of the first display interface on the display screen.
[0047] The first display interface of the first device under test is mirrored onto the display screen. In one example, the first device under test and the control terminal may be connected via a serial bus, for example: communication may be performed via the serial bus on an RS232 communication interface, and the first display interface of the first device under test may be mirrored onto the display screen of the control unit.
[0048] Figure 2is a schematic diagram of a display screen 201 provided in an embodiment of the present application, such as Figure 2 As shown, after the first display interface is mirrored onto the display screen 201, the mirror image 202 of the first display interface is displayed on the display screen 201, and the first control 2021 displayed in the first display interface is also synchronously mirrored to the display screen 201. When recording test operations, operations on the first control 2021 in the display screen 201 can be recorded, for example: clicking, dragging, sliding, etc. on the first control 2021. In one example, when recording test operations, the test operations on the display screen 201 can be recorded by screen recording and other methods.
[0049] In an embodiment of the present application, when recording the test operation, the first display interface of the first device to be tested can be mirrored to the display screen of the control unit, thereby recording the test operation of the mirrored first display interface displayed on the display screen. Since the first display interface is directly mirrored to the display screen, the first device to be tested can be synchronously operated by operating the display screen, thereby achieving the first device to be tested, and recording the test operation by performing operations such as screen recording on the display screen, thereby reducing the professional requirements of the tester.
[0050] In one possible implementation, when recording a test operation, the test operation performed on a second control displayed on the display screen can be recorded through the display screen, wherein the second control is used to control a simulation unit to send communication data to a device under test, and the simulation unit is used to simulate at least one physical device that sends communication data to the device under test.
[0051] After the first display interface of the first device under test is mirrored to the display screen, the display screen may display a second control in addition to the mirror image of the first display interface. An example is used below to illustrate this. Figure 3 is a schematic diagram of another display screen 201 provided in an embodiment of the present application, such as Figure 3 As shown, in addition to displaying the mirror image 202 of the first device under test, the display screen 201 can also display the second control 203. When recording the test operation, in addition to recording the operation of the first control 2021 by the mirror image 202 of the first display interface, the operation of the second control 203 displayed on the display screen 201 can also be recorded, for example: clicking the second control 203, dragging the second control 203, etc. In one example, the operation of the second control 203 can be recorded by screen recording or the like.
[0052] The second control can control the simulation unit to send communication data to the first device under test. It should be understood that when the second device under test is tested, the second control can control the simulation unit to send communication data to the second device under test. The simulation unit can simulate at least one entity device that communicates with the device under test when the device under test is used. For example, when the device under test is used as a building central control, the entity device that communicates with the building central control can be a fire alarm device. When the fire alarm device is triggered, for example, when the fire alarm button is manually pressed, the fire alarm device can send a fire alarm signal to the building central control. The building central control can perform related operations after receiving the fire alarm signal, such as generating a fire alarm, etc. During the test, the simulation unit can simulate the fire alarm device. When the simulation unit is triggered by the second control, the simulation unit can send a simulated fire alarm signal to the device under test, thereby detecting whether the device under test performs the corresponding operation after receiving the signal, generating a corresponding signal, and realizing the test of the device under test. In one example, after triggering the second control, the control unit can send a signal to the simulation unit through a universal serial bus (USB) to trigger the simulation unit.
[0053] In an embodiment of the present application, when recording the test operation, the test operation performed on the second control displayed on the display screen can be recorded through the display screen, thereby sending communication data to the device under test through the simulation unit to test the relevant operations performed by the device under test after receiving the communication data, so as to determine whether the function of the device under test is normal, and the test case generated in this way can be used to perform a comprehensive test on the device under test.
[0054] In one possible implementation, when executing a test case, the second display interface of the second device under test can be mirrored to the display screen of the control unit. According to the test case, a test operation is performed on the first control included in the mirror of the second display interface on the display screen, and the test operation performed on the first control is synchronized to the second device under test to test the second device under test.
[0055] After generating the test case, the second device under test can be tested by executing the test case. Before executing the test case, the second display interface of the second device under test can be mirrored to the display screen. It should be understood that since the test case is a test operation recorded on the first control of the first device under test on the display screen, and since the second device under test and the first device under test are of the same type of device, executing the test case can perform a test operation on the first control in the mirror of the second display interface on the display screen. While the first control is being tested, the test operation can be synchronized to the second device under test through communication, that is, the second device under test can be operated on the display screen, thereby testing the second device under test to determine whether the function of the second device under test is normal.
[0056] In an embodiment of the present application, the second display interface of the second device under test is mirrored to the display screen of the control unit. According to the test case, the first control included in the mirror of the second display interface on the display screen is tested, and the test operation on the first control is synchronized to the second device under test. Thus, the second device under test can be tested automatically, and the operation on the display screen can be synchronized to the second device under test by executing the test case. There is no need to implement automated test operations by writing scripts, and the professional requirements for testers are relatively low.
[0057] In a possible implementation, when executing a test case, a test operation may be performed on the second control on the display screen according to the test case, so that the simulation unit sends communication data to the second device under test to test the second device under test.
[0058] If the recorded test operation includes the operation on the second control, the second control will be operated when the test case is executed. When the second control is operated, the control end sends a test signal to the simulation unit. After receiving the test signal, the simulation unit sends communication data to the second device under test, thereby simulating the physical device sending communication data to the second device under test, and testing whether the second device under test performs the corresponding operation after receiving the communication data. In one example, after the second control is triggered, a test signal can be sent to the simulation unit via USB.
[0059] In an embodiment of the present application, when executing a test case, a test operation can be performed on the second control on the display screen according to the test case, so that the simulation unit sends communication data to the second device under test to test the second device under test. This can test whether the second device under test performs a corresponding operation after receiving the communication data. The reaction of the second device under test after the test entity sends communication data to the second device under test can be simulated, and the second device under test can be tested more comprehensively.
[0060] In a possible implementation manner, a response signal output by the second device under test during the test process may also be acquired by the measuring unit, and a test report of the second device under test may be generated according to the test case and the response signal.
[0061] During the test process, the response signal output by the second device under test during the test process can also be measured by the measuring unit to determine whether the second device under test performs a corresponding operation. For example, the response signal can be measured by the measuring unit to determine whether it is a high-level signal. The measuring unit can be electrically connected to the device under test. In one example, the measuring unit can be a multimeter that can measure the signal amplitude of the response signal, that is, the voltage value of the response signal can be measured. According to the response signal and the test case, it is determined whether the functions of the second device under test are normal, and a test report for the second device under test is generated.
[0062] In an embodiment of the present application, a response signal output by the second device under test during the test process is obtained through a measuring unit, thereby determining whether the second device under test performs corresponding operations during the test process and whether a correct signal is generated, and based on the response signal and the test case, determining whether each function of the second device under test is normal, and generating a test report for the second device under test, thereby enabling the tester to determine the test result of the second device under test based on the test report, thereby achieving functional testing of the second device under test.
[0063] Figure 4 is a schematic diagram of a device testing apparatus provided in an embodiment of the present application, such as Figure 4 As shown, the device testing apparatus 400 includes: a recording unit 401, used to record test operations during the process of testing a first device under test, a generating unit 402, used to generate test cases according to the test operations, and a testing unit 403, used to execute the test cases to test a second device under test of the same type as the first device under test.
[0064] In an embodiment of the present application, the recording unit 401 may be used to execute step 101 in the above method embodiment, the generating unit 402 may be used to execute step 102 in the above method embodiment, and the testing unit 403 may be used to execute step 103 in the above method embodiment.
[0065] In a possible implementation, the recording unit 401 can also be used to mirror the first display interface of the first device under test to the display screen of the control unit, wherein the control unit is used to test the device under test; and record the test operation performed on the first control included in the mirror of the first display interface on the display screen.
[0066] In one possible implementation, the recording unit 401 can also be used to record, through the display screen, a test operation performed on a second control displayed on the display screen, wherein the second control is used to control a simulation unit to send communication data to a device under test, and the simulation unit is used to simulate at least one physical device that sends communication data to the device under test.
[0067] In one possible implementation, the test unit 403 can also be used to mirror the second display interface of the second device under test to the display screen of the control unit; according to the test case, perform a test operation on the first control included in the mirror of the second display interface on the display screen; and synchronize the test operation performed on the first control to the second device under test to test the second device under test.
[0068] In a possible implementation, the test unit 403 may also be used to perform a test operation on a second control on the display screen according to a test case, so that the simulation unit sends communication data to the second device under test to test the second device under test.
[0069] In a possible implementation, the device testing apparatus 400 may also obtain, through the measuring unit, a response signal output by the second device under test during the test process; and generate a test report of the second device under test according to the test case and the response signal.
[0070] Figure 5 is a schematic diagram of a device testing system 500 provided in an embodiment of the present application, such as Figure 5 As shown, the device testing system 500 includes: a control unit 501, a simulation unit 502 and a measurement unit 503. The control unit 501 can execute the device testing method 100 in any of the above embodiments, the simulation unit 502 can simulate at least one physical device that sends communication data to the device under test, in one example, when the second control in the control unit is operated, the control unit can send a signal to the simulation unit to make the simulation unit send communication data to the device under test, and the measurement unit 503 can obtain a response signal output by the device under test during the test process.
[0071] Figure 6 is a schematic diagram of an electronic device provided in an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device. Figure 6 The electronic device 600 provided in the embodiment of the present application includes: a processor 602, a communication interface 604, a memory 606, and a communication bus 608. Among them:
[0072] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0073] The communication interface 604 is used to communicate with other electronic devices or servers.
[0074] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in any of the aforementioned device testing method embodiments.
[0075] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0076] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0077] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0078] The program 610 may be specifically used to enable the processor 602 to execute the device testing method in any of the aforementioned embodiments.
[0079] The specific implementation of each step in program 610 can refer to the corresponding description of the corresponding steps and units in any of the above-mentioned device testing method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.
[0080] Through the electronic device of the embodiment of the present application, the test operations for testing the first device to be tested are recorded, and then a test case is generated according to the test operations, thereby the test case can be executed to test the second device to be tested which is of the same type as the first device to be tested. Since the test operations during the test are directly recorded and the test case is generated according to the test operations, compared with the process of generating test cases in the prior art, there is no need for testers to write test scripts in a professional programming language, thereby reducing the professional requirements for testers.
[0081] The present application also provides a computer-readable storage medium that stores instructions for a machine to execute the device testing method described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0082] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.
[0083] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0084] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0085] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0086] The embodiment of the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer executable instructions, which, when executed, cause at least one processor to perform the device testing methods provided in the above embodiments. It should be understood that each solution in this embodiment has the corresponding technical effects in the above method embodiments, which will not be repeated here.
[0087] It should be noted that not all steps and modules in the above-mentioned processes and system structure diagrams are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0088] Nouns and pronouns relating to persons in this patent application are not limited to a specific gender.
[0089] In the above embodiments, the hardware module can be implemented mechanically or electrically. For example, a hardware module can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation. The hardware module can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation. The specific implementation method (mechanical method, or dedicated permanent circuit, or temporarily set circuit) can be determined based on cost and time considerations.
[0090] The present application is presented and described in detail above through the accompanying drawings and preferred embodiments; however, the present application is not limited to these disclosed embodiments, and those skilled in the art may know based on the above-mentioned multiple embodiments that the code review methods in the above-mentioned different embodiments may be combined to obtain more embodiments of the present application, and these embodiments are also within the protection scope of the present application.
Claims
1. A device testing method (100), characterized in that: include: During the process of testing the first device under test, recording the test operation; Generate a test case according to the test operation; The test case is executed to test a second device under test of the same type as the first device under test.
2. The method according to claim 1, characterized in that The recording test operation includes: Mirroring the first display interface of the first device under test to a display screen of a control unit, wherein the control unit is used to test the device under test; A test operation performed on a first control included in the mirror image of the first display interface on the display screen is recorded.
3. The method according to claim 2, characterized in that The recording test operation includes: The display screen records a test operation performed on a second control displayed on the display screen, wherein the second control is used to control a simulation unit to send communication data to a device under test, and the simulation unit is used to simulate at least one physical device that sends communication data to the device under test.
4. The method according to claim 3, characterized in that The executing of the test case comprises: Mirroring the second display interface of the second device under test to the display screen of the control unit; According to the test case, a test operation is performed on a first control included in the mirror image of the second display interface on the display screen; The test operation performed on the first control is synchronized to the second device under test to test the second device under test.
5. The method according to claim 3, characterized in that: The executing of the test case comprises: According to the test case, a test operation is performed on the second control on the display screen, so that the simulation unit sends communication data to the second device under test, and the second device under test is tested.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire, by a measuring unit, a response signal output by the second device under test during the test process; Generate a test report for the second device under test according to the test case and the response signal.
7. A device testing apparatus (400), characterized in that: include: A recording unit (401), used for recording a test operation during the process of testing the first device under test; A generating unit (402), configured to generate a test case according to the test operation; The testing unit (403) is used to execute the test case to test a second device under test of the same type as the first device under test.
8. A device testing system (500), characterized in that: include: A control unit (501), a simulation unit (502) and a measurement unit (503); The control unit (501) is used to execute the device testing method (100) as claimed in any one of claims 1 to 6; The simulation unit (502) is used to simulate at least one physical device that sends communication data to the device under test; The measuring unit (503) is used to obtain a response signal output by the device under test during the test process.
9. An electronic device (600), characterized in that: include: A processor (602), a communication interface (604), a memory (606) and a communication bus (608), wherein the processor (602), the memory (606) and the communication interface (604) communicate with each other via the communication bus (608); The memory (606) is used to store at least one executable instruction, and the executable instruction enables the processor (602) to execute the device testing method (100) according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a processor, cause the processor to execute the device testing method (100) according to any one of claims 1 to 6.
11. A computer program product, characterized in that The computer program product is tangibly stored on a computer readable medium and includes computer executable instructions which, when executed, cause at least one processor to perform the device testing method (100) of any one of claims 1-6.