Test method and system

By introducing a conversion unit into the test system, the problem of the inability to realize automated testing of the tested equipment in the prior art is solved, and data interoperability between instruction issuance and status data acquisition is realized, which improves the testing efficiency and accuracy.

CN120215306APending Publication Date: 2025-06-27NINGBO TECHMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510134347.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The prior art cannot realize automated testing of the equipment being tested, mainly because the instruction issuance and status data collection are not on the same platform, resulting in data interoperability.

Method used

By introducing a conversion unit into the test system, the control instructions sent by the upper computer are received and sent to the tested device for execution. At the same time, the status data of the tested device is obtained and sent to the upper computer to generate the test result.

Benefits of technology

It realizes data interoperability between instruction issuance and state data collection on a platform, and can automatically test the tested equipment, improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215306A_ABST
    Figure CN120215306A_ABST
Patent Text Reader

Abstract

The invention discloses a testing method and system, and relates to the technical field of automatic testing. The method is applied to a conversion unit and comprises the steps that a control instruction sent by an upper computer is received, and the control instruction is generated according to an engineering test process generated by the upper computer according to a test process in at least one function module in at least one test unit in a test project selected by a user; sending the control instruction to a tested device, so that the tested device executes the control instruction; acquiring state data after the tested equipment executes the control instruction; and sending the state data to the upper computer, so that the upper computer generates a test result according to the state data sent by the conversion unit and / or the state data sent by the tested equipment and a corresponding state data allowable range in the engineering test process. According to the invention, automatic testing of the tested equipment can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automatic testing technology, and particularly to a testing method and system. Background Art

[0002] The device under test generally includes a servo driver, a servo motor, an oil pump, an oil circuit, an oil circuit feedback module arranged on the oil circuit, etc. To ensure the performance of the device under test, a series of tests are usually required for the device under test, such as the performance, noise, safety, etc. of the servo motor, the open-loop or closed-loop voltage fluctuation and stability of the oil pump, and the basic functions of the servo driver.

[0003] In the related art, as shown in the testing system Figure 1 , instructions are sent to the device under test 3 through an injection molding machine control system 1 (including a human-machine interface and a main controller), and the state data of the device under test 3 is collected through a testing tool installed on a computer (Personal Computer, abbreviated as PC) 2. However, since the instruction sending and state data collection are not on the same platform, the data between the instruction sending and state data collection cannot be interconnected, so the automatic testing of the device under test cannot be realized. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a testing method and system to solve the problem that the automatic testing of the device under test cannot be realized in the related art.

[0005] To achieve the above purpose, the embodiments of this application adopt the following technical solutions: In a first aspect, the embodiments of this application provide a testing method applied to a conversion unit. The testing method includes: receiving a control instruction sent by a host computer, where the control instruction is generated by the host computer according to a testing process in at least one functional module of at least one testing unit in a selected testing project by a user and according to the engineering testing process; sending the control instruction to the device under test for the device under test to execute the control instruction; obtaining the state data of the device under test after executing the control instruction; and sending the state data to the host computer for the host computer to generate a test result according to the state data sent by the conversion unit and / or the state data sent by the device under test, and the corresponding state data allowable range in the engineering testing process.

[0006] Second aspect, an embodiment of the present application provides a testing method, which is applied to a host computer. The testing method includes: generating an engineering test process according to a test process in at least one functional module of at least one test unit in a test project selected by a user; generating a control instruction according to the engineering test process; sending the control instruction to a device under test through a conversion unit for the device under test to execute the control instruction; obtaining status data of the device under test after executing the control instruction through the conversion unit, and / or obtaining status data sent by the device under test after executing the control instruction; generating a test result according to the status data and a corresponding allowable range of status data in the engineering test process.

[0007] Third aspect, an embodiment of the present application provides a testing system, including: a device under test and a testing device. The testing device includes a host computer and a conversion unit. The conversion unit is used to execute the testing method described in the first aspect, and the host computer is used to execute the testing method described in the second aspect.

[0008] The above at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects: When automatically testing the device under test in the embodiment of the present application, the conversion unit receives a control instruction sent by the host computer. The control instruction is generated by the host computer according to an engineering test process generated from a test process in at least one functional module of at least one test unit in a test project selected by a user, and is sent to the device under test for the device under test to execute the control instruction. The status data of the device under test after executing the control instruction is obtained and sent to the host computer for the host computer to generate a test result according to the status data sent by the conversion unit and / or the status data sent by the device under test, and the corresponding allowable range of status data in the engineering test process. In the embodiment of the present application, the instruction issuance and status data collection are on one platform, and the data intercommunication between the instruction issuance and status data collection can realize the automatic testing of the device under test. Description of the Drawings

[0009] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings: Figure 1 It is a schematic structural diagram of a testing system in the related art; Figure 2 It is a schematic flowchart of a testing method provided by an embodiment of the present application; Figure 3 It is a schematic structural diagram of a testing system provided by an embodiment of the present application; Figure 4Schematic diagram of communication protocol analysis provided by an embodiment of the present application; Figure 5 Schematic diagram of test project construction provided by an embodiment of the present application; Figure 6 Schematic diagram of the test process corresponding to the temperature rise detection unit provided by an embodiment of the present application; Figure 7 Schematic diagram of the test process corresponding to the limit detection unit provided by an embodiment of the present application; Figure 8 Schematic diagram of median filtering processing of status data provided by an embodiment of the present application; Figure 9 Schematic diagram of the structure of a test system provided by another embodiment of the present application; Figure 10 Schematic diagram of the process of a test method provided by another embodiment of the present application. Detailed implementation manners

[0010] To make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0011] The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein. In addition, the "and / or" in the present application means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after. It should be noted that the data involved in the present application are all obtained under the premise of obtaining user authorization.

[0012] The following will describe in detail the technical solutions provided by each embodiment of the present application in conjunction with the drawings.

[0013] Figure 2 Schematic diagram of the process of a test method provided by an embodiment of the present application. As Figure 2 shown, the test method of the embodiment of the present application is applied to a conversion unit, and specifically may include the following steps: S201, receive the control instruction sent by the host computer. The control instruction is generated by the host computer according to the test process in at least one functional module of at least one test unit in the selected test project, and is generated according to the project test process.

[0014] In the embodiment of the present application, the execution subject of the test method of the embodiment of the present application is the conversion unit in the test device.

[0015] Figure 3 It is a schematic structural diagram of the test system of the embodiment of the present application, as Figure 3 shown. The test system of the embodiment of the present application includes: the device under test 3 and a test device connected to the device under test 3. The test device includes a host computer 4 and a conversion unit 5. The host computer 4 is connected to the device under test 3. The host computer 4 includes a test tool 41. The test tool 41 includes at least one pre-constructed test project. The test project includes at least one test unit. The test unit includes at least one functional module. The functional module is deployed with a test process corresponding to the function. The conversion unit 5 is respectively connected to the host computer 4 and the device under test 3. The host computer 4 may specifically include, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a portable notebook, etc.

[0016] In the embodiment of the present application, the conversion unit 5 replaces the injection molding machine control system 1 in the related art Figure 1 and is communicatively connected to the test tool 41 in the independently developed host computer 4 and communicatively connected to the device under test 3. The conversion unit 5 communicates with the test tool 41 in the host computer 4 through a communication protocol (for example: Ethernet, ModebusTCP). The test tool 41 in the host computer 4 is communicatively connected to the servo driver in the device under test 3. The communication protocol used can be obtained by intercepting the data packets between the servo driver and the supporting test tool 41 with a packet interception tool, so as to solve the difficulty that data acquisition and control cannot be performed by simulating packet sending under the private protocol of the servo driver. The communication protocol analysis is as Figure 4 shown.

[0017] Each test project can be constructed through the following steps: as Figure 5 shown, each function of the device under test is independently encapsulated into a functional module (such as a motor enabling module, a valve control module, a driver write module, etc.). The functional module is deployed with a test process corresponding to the function. The tester selects each corresponding functional module according to the actual test requirements. The selected functional modules are freely combined to form different test units (such as no-load test unit, load test unit, limit test unit, temperature rise test unit, etc.). Different test units are automatically sorted according to the test process to form a final test project for subsequent automatic testing.

[0018] Taking the temperature rise test unit and the limit test unit as examples, the test processes corresponding to the test units are described in detail below.

[0019] Figure 6 is a schematic diagram of the test process corresponding to the temperature rise test unit, as Figure 6 shown, including: S601, Set the rated speed of the servo motor.

[0020] S602, Monitor the temperature of the servo motor and record the current value.

[0021] S603, Collect the temperature data of the servo motor every 3 minutes and judge the trend of this set of data.

[0022] S604, Compare the current temperature of the servo motor with the reference temperature. Is the difference within ±1°C? If so, execute step S605. If not, execute step S606.

[0023] S605, Increase the stabilization time. Execute step S609.

[0024] S606, Compare the current temperature of the servo motor with the reference temperature. Is the difference <3°C? If so, execute step S607. If not, execute step S608.

[0025] S607, Clear the stabilization time. When the trend is downward or rising slowly, increase the pressure. Execute step S609 S608, When the downward trend is obvious, increase the pressure and clear the stabilization time; when the upward trend is obvious, decrease the pressure and clear the stabilization time. Execute step S609 S609, Is the stabilization time > 30 minutes? If so, execute step S610. If not, return to step S603.

[0026] S610, Read the actual current and pressure of the servo driver and calculate the torque. End the process.

[0027] Figure 7 is a schematic diagram of the test process corresponding to the limit test unit, as Figure 7 shown, including: S701, Set the set speed of the servo motor.

[0028] S702, Read the actual speed and the set speed, increase / decrease the pressure numerical variable iRegPress, default value 10.

[0029] S703, Is it the first detection? If so, execute step S704. If not, execute step S707.

[0030] S704, whether the actual rotational speed can be maintained. If so, execute step S705. If not, execute step S706.

[0031] S705, increase the pressure (10), record sRegulat as pressure increase. Return to step S703.

[0032] S706, decrease the pressure (10), record sRegulat as pressure decrease. Return to step S703.

[0033] S707, whether the actual rotational speed can be maintained. If so, execute step S708. If not, execute step S713.

[0034] S708, whether the previous process sRegulat was pressure increase or pressure decrease. If it was pressure increase, execute step S709. If it was pressure decrease, execute step S710.

[0035] S709, increase the pressure numerical variable iRegPress. Return to step S707.

[0036] S710, halve the pressure numerical variable iRegPress.

[0037] S711, whether the pressure numerical variable iRegPress is less than 1. If so, execute step S712. If not, return to step S709.

[0038] S712, find the limit value. End the process.

[0039] S713, whether the previous process sRegulat was pressure increase or pressure decrease. If it was pressure increase, execute step S715. If it was pressure decrease, execute step S714.

[0040] S714, decrease the pressure numerical variable iRegPress. Return to step S707.

[0041] S715, halve the pressure numerical variable iRegPress. Return to step S714.

[0042] After the test starts, the user selects a test project from multiple test projects according to the test requirements. After selecting the test project, the user can further select at least one test unit to be tested in the test project, and at least one functional module to be tested in the test unit. The test tool in the host computer automatically generates the test process corresponding to the selected test project, that is, the project test process, according to the test process in the test project, and automatically executes the test based on the project test process. Specifically, the host computer generates at least one corresponding control instruction according to the generated project test process, and sends the control instruction to the conversion unit. The conversion unit receives the control instruction sent by the host computer. The control instruction may specifically include, but is not limited to, the enable control instruction of the motor, the speed control instruction of the motor, etc.

[0043] S202, send the control instruction to the device under test for the device under test to execute the control instruction.

[0044] In the embodiment of the present application, after receiving the control instruction sent by the host computer, the conversion unit sends the control instruction to the device under test. The device under test receives the control instruction sent by the conversion unit and executes the control instruction.

[0045] S203, obtain the status data of the device under test after executing the control instruction.

[0046] In the embodiment of the present application, the conversion unit obtains the status data of the device under test after executing the control instruction. Among them, the status data may specifically include, but is not limited to, the oil temperature data, pressure data, etc. in the oil circuit.

[0047] S204, send the status data to the host computer for the host computer to generate a test result according to the status data sent by the conversion unit and / or the status data sent by the device under test, and the allowable range of the corresponding status data in the project test process.

[0048] In the embodiment of the present application, the conversion unit sends the obtained status data of the device under test after executing the control instruction to the host computer. The device under test can also directly send the status data after executing the control instruction to the host computer. The host computer generates a corresponding test result according to the status data sent by the conversion unit and / or the status data sent by the device under test, and the allowable range of the corresponding status data in the project test process. If the status data is within the allowable range of the corresponding status data, the test result is that the test passes. If the status data is not within the allowable range of the corresponding status data, the test result is that the test fails.

[0049] Before judging whether the status data is within the allowable range of the corresponding status data, the received status data can also be filtered, such as median filtering. The specific process of median filtering can be as follows: Such asFigure 8 As shown in the figure, the host computer stores the received status data curve into the curve database, and can intercept a section of stable status data in the status data curve. For this section of status data, the median filtering method is used: sample N times (for example, N = 5), sort the N data in ascending order through the bubble algorithm, then judge the parity of N, and finally take the median of the N data. For example, sample the first to fifth data, sort them in ascending order, and take the data ranked third. Among them, it is very important to intercept the appropriate data segment for analysis, and the data at the start and end of the servo motor should be excluded. Therefore, the database statement "ORDER BY (graph_x+0) DESC LIMIT 1" can be used to determine the time at the end of the curve at this time, and take the data of the previous few seconds before this time.

[0050] Furthermore, the test method of the embodiment of the present application may further include: automatically generating a corresponding test report including multiple test results according to multiple test results, which is convenient for problem tracing.

[0051] The embodiment of the present application can also automatically establish a test resume based on multiple test reports. It can also automatically upload the test report to the company database system in the cloud for easy remote viewing.

[0052] Furthermore, as Figure 9 shown, on the basis of the structure shown in Figure 3 , the host computer 4 further includes a first communication module NET1 and a second communication module NET2. Figure 3 The conversion unit 5 in

[0053] includes a third communication module NET, and the device under test 3 includes a fourth communication module NET.

[0054] The host computer 4 is communicatively connected to the fourth communication module NET of the device under test 3 through the second communication module NET2, that is, the device under test 3 sends the status data after executing the control instruction to the second communication module NET2 of the host computer 4 through the fourth communication module NET.

[0055] Furthermore, as Figure 9 shown, Figure 3The conversion unit 5 in it may further include: an analog input / output module 51, and the analog input / output module 51 is respectively connected to the host computer 4 and the device under test 3. The analog input / output module 51 includes an analog output (AO for short) port and an analog input (AI for short) port. The AO port is used to output analog signals, and the AI port is used to input analog signals.

[0056] Correspondingly, "sending the control instruction to the device under test" in the above step S202 may specifically include the following steps: generating an analog control signal according to the control instruction; sending the analog control signal to the device under test.

[0057] In the embodiment of the present application, the analog input / output module generates a corresponding analog control signal according to the received control instruction, and sends the analog control signal to the device under test for the device under test to execute the control instruction.

[0058] Further, as Figure 9 shown, Figure 3 the conversion unit 5 in it may further include: a temperature acquisition module 52, and the temperature acquisition module 52 is respectively connected to the host computer 4 and the device under test 3.

[0059] Further, as Figure 9 shown, Figure 3 the conversion unit 5 in it may further include: a protocol conversion module 53, and the analog input / output module 51 or the temperature acquisition module 52 is connected to the host computer 4 through the protocol conversion module 53. The protocol conversion module 53 includes a third communication module NET.

[0060] It should be noted here that, as Figure 9 shown, Figure 3 the conversion unit 5 in it may further include a power supply module for supplying power to each module in the conversion unit 5. For example, a power supply module with an output voltage of 24 volts (V), and each module is connected to the power supply module through a power supply port (+24V). Figure 3 The conversion unit 5 in it may further include an emergency stop switch 54, and the emergency stop switch 54 is connected to the protocol conversion module 53 for connecting or disconnecting the connection between the protocol conversion module 53 and the host computer 4.

[0061] Correspondingly, the above step "generating an analog control signal according to the control instruction" may specifically include the following steps: converting the control instruction in the first protocol format sent by the host computer into a control instruction in the second protocol format, and the second protocol format is the protocol format supported by the analog input / output module in the conversion unit; controlling the analog input / output module to generate an analog control signal according to the control instruction in the second protocol format.

[0062] In an embodiment of the present application, the protocol conversion module converts the control instruction in the first protocol format sent by the host computer into a control instruction in the second protocol format supported by the analog input / output module, and sends it to the analog input / output module. The analog input / output module generates an analog control signal according to the received control instruction in the second protocol format.

[0063] Further, as Figure 9 shown, the device under test 3 includes: a servo driver 31 and / or an amplification module 32. The servo driver 31 is respectively connected to the analog input / output module 51 and the host computer 4; the amplification module 32 is connected to the analog input / output module 51.

[0064] Correspondingly, the above step of "sending the analog control signal to the device under test" may specifically include the following steps: sending the analog control signal to the servo driver and / or the amplification module in the device under test.

[0065] In an embodiment of the present application, the analog input / output module sends the generated analog control signal to the corresponding module in the device under test, such as a servo driver, an amplification module, etc.

[0066] Further, the above step S204 of "sending the status data to the host computer" may specifically include the following steps: converting the status data obtained from the device under test into status data in the first protocol format; sending the status data in the first protocol format to the host computer.

[0067] In an embodiment of the present application, the conversion unit converts the status data obtained from the device under test into status data in the first protocol format through the protocol conversion module, and sends the status data in the first protocol format to the host computer.

[0068] Further, as Figure 9 shown, the device under test 3 may further include: a sound acquisition module 33. The sound acquisition module 33 is connected to the analog input / output module 51. The sound acquisition module 33 may specifically include, but is not limited to, a sound detector, etc., and is used to acquire sound signals.

[0069] Further, as Figure 9 shown, the device under test 3 may further include: an oil circuit feedback module provided on the oil circuit 34. The oil circuit feedback module is respectively connected to the temperature acquisition module 52 and the analog input / output module 51.

[0070] Among them, the oil circuit feedback module may specifically include: an oil temperature feedback module T and / or a pressure feedback module P. The oil temperature feedback module T is connected to the temperature acquisition module 52, and the pressure feedback module P is connected to the analog input / output module 51.

[0071] Correspondingly, the above step of "converting the status data obtained from the device under test into the status data in the first protocol format" may specifically include the following steps: Through the analog input / output module, convert the analog status data obtained from the sound acquisition module and / or the pressure feedback module in the device under test into the digital status data in the second protocol format; convert the digital status data in the second protocol format into the status data in the first protocol format.

[0072] In the embodiment of the present application, the analog input / output module obtains the analog status data from the sound acquisition module and the pressure feedback module, converts the analog status data into the digital status data in the second protocol format supported by the analog input / output module, and sends the digital status data in the second protocol format to the protocol conversion module. The protocol conversion module converts the digital status data in the second protocol format into the status data in the first protocol format.

[0073] Correspondingly, the above step of "converting the status data obtained from the device under test into the status data in the first protocol format" may specifically include the following steps: Through the temperature acquisition module in the conversion unit, convert the analog status data obtained from the oil temperature feedback module in the device under test into the digital status data in the third protocol format, where the third protocol format is the protocol format supported by the temperature acquisition module; convert the digital status data in the third protocol format into the status data in the first protocol format.

[0074] In the embodiment of the present application, the temperature acquisition module obtains the analog status data from the oil temperature feedback module, converts the analog status data into the digital status data in the third protocol format supported by the temperature acquisition module, and sends the digital status data in the third protocol format to the protocol conversion module. The protocol conversion module converts the digital status data in the third protocol format into the status data in the first protocol format.

[0075] In summary, in the test method of the embodiment of the present application, when automatically testing the device under test, the conversion unit receives the control instruction sent by the host computer. The control instruction is generated by the host computer according to the test process in at least one functional module in at least one test unit in the selected test project, and is sent to the device under test for the device under test to execute the control instruction, obtain the status data after the device under test executes the control instruction, and send the status data to the host computer for the host computer to generate a test result according to the status data sent by the conversion unit and / or the status data sent by the device under test, and the corresponding status data allowable range in the engineering test process. In the embodiment of the present application, the instruction issuance and status data acquisition are on one platform, and the data intercommunication between the instruction issuance and status data acquisition can realize the automatic test of the device under test, improving the test efficiency and accuracy.

[0076] Figure 10 The flowchart of a test method provided for another embodiment of this application. As Figure 10 shown, the test method of the embodiment of this application is applied to the host computer, and specifically may include the following steps: S1001, generate an engineering test process according to the test process in at least one functional module of at least one test unit in the test project selected by the user.

[0077] S1002, generate a control instruction according to the engineering test process.

[0078] S1003, send the control instruction to the device under test through the conversion unit for the device under test to execute the control instruction.

[0079] S1004, obtain the status data of the device under test after executing the control instruction through the conversion unit, and / or obtain the status data of the device under test after sending the executed control instruction.

[0080] S1005, generate a test result according to the status data and the allowable range of the corresponding status data in the engineering test process.

[0081] In the embodiment of this application, the execution subject of the test method of the embodiment of this application is the host computer in the test device.

[0082] For the specific process of the test method of the embodiment of this application, reference may be made to the relevant descriptions in the above-mentioned test method embodiments, and details are not described herein again.

[0083] In summary, for the test method of the embodiment of this application, the instruction issuance and the status data collection are on one platform, and the data intercommunication between the instruction issuance and the status data collection can realize the automated test of the device under test.

[0084] The embodiment of this application also provides a test system. As Figure 3 shown, the test system includes: the device under test 3 and the test device. The test device includes a host computer 4 and a conversion unit 5. The conversion unit 5 is used to execute the test method of any of the above embodiments with the conversion unit 5 as the execution subject, and the host computer 4 is used to execute the test method of any of the above embodiments with the host computer 4 as the execution subject.

[0085] In the embodiment of this application, for the specific process of the test system of the embodiment of this application to implement its functions, reference may be made to the relevant descriptions in the above-mentioned test method embodiments, and details are not described herein again.

[0086] For the test system of the embodiment of this application, the instruction issuance and the status data collection are on one platform, and the data intercommunication between the instruction issuance and the status data collection can realize the automated test of the device under test.

[0087] The embodiments of the present application also propose a readable storage medium, on which one or more computer programs are stored. The one or more computer programs include instructions. When the program or instructions are executed by a host computer or a conversion unit, the host computer or the conversion unit can be enabled to execute each process of any of the above-mentioned test method embodiments.

[0088] In the readable storage medium of the embodiments of the present application, instruction issuance and status data collection are on one platform, and data intercommunication between instruction issuance and status data collection can achieve automated testing of the device under test.

[0089] The systems, devices, modules or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0090] For the convenience of description, when describing the above devices, they are divided into various units according to functions and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0091] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0092] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, so that the instructions executed by the processors of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0093] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction means that implements the functions specified in one or more of the processes and / or blocks Figure 1 in the process or processes and / or blocks Figure 1 specified in the block or blocks.

[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing steps for implementing the functions specified in one or more of the processes and / or blocks Figure 1 in the process or processes and / or blocks Figure 1 specified in the block or blocks.

[0095] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0096] The memory may include non-permanent memory in the computer-readable medium, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

[0097] Computer-readable media includes both permanent and non-permanent, removable and non-removable media implemented by any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0098] It should also be noted that the term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.

[0099] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.

[0100] Each embodiment in this specification is described in a progressive manner, and the same or similar parts among the embodiments may be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, they are described relatively simply, and the relevant parts may be referred to the partial description of method embodiments.

[0101] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. A testing method, characterized in that: Applied to the conversion unit, the test method includes: Receive a control instruction sent by a host computer, wherein the control instruction is for the host computer to generate an engineering test flow according to a test flow in at least one functional module in at least one test unit in a test project selected by a user, and is generated according to the engineering test flow; Sending the control instruction to the device under test so that the device under test executes the control instruction; Acquire status data of the tested device after executing the control instruction; The status data is sent to the host computer, so that the host computer generates a test result according to the status data sent by the conversion unit and / or the status data sent by the tested device, and the corresponding status data allowable range in the engineering test process.

2. The method according to claim 1, characterized in that The step of sending the control instruction to the device under test includes: Generate an analog control signal according to the control instruction; The analog control signal is sent to the device under test.

3. The method according to claim 2, characterized in that The step of generating an analog control signal according to the control instruction comprises: Converting a control instruction in a first protocol format sent by the host computer into a control instruction in a second protocol format, wherein the second protocol format is a protocol format supported by the analog input and output module in the conversion unit; The analog input and output module is controlled to generate the analog control signal according to the control instruction in the second protocol format.

4. The method according to claim 2 or 3, characterized in that: The step of sending the analog control signal to the device under test comprises: The analog control signal is sent to a servo driver and / or an amplifying module in the device under test.

5. The method according to claim 3, characterized in that: The sending of the status data to the host computer comprises: Converting the status data acquired from the device under test into status data in the first protocol format; The status data in the first protocol format is sent to the host computer.

6. The method according to claim 5, characterized in that The converting the status data acquired from the device under test into status data in the first protocol format includes: Converting the state data of the analog quantity acquired from the sound collection module in the device under test and / or the pressure feedback module in the device under test into the state data of the digital quantity in the second protocol format through the analog quantity input and output module; The state data of the digital quantity in the second protocol format is converted into the state data in the first protocol format.

7. The method according to claim 5, characterized in that The converting the status data acquired from the device under test into status data in the first protocol format includes: The temperature acquisition module in the conversion unit converts the state data of the analog quantity obtained from the oil temperature feedback module in the tested device into the state data of the digital quantity in the third protocol format, wherein the third protocol format is a protocol format supported by the temperature acquisition module; The state data of the digital quantity in the third protocol format is converted into the state data in the first protocol format.

8. The method according to claim 1, characterized in that Also includes: Generate a corresponding test report based on multiple test results.

9. A testing method, characterized in that: Applied in the host computer, the test method includes: Generate an engineering test flow according to a test flow in at least one functional module in at least one test unit in a test project selected by a user; Generate control instructions according to the engineering test process; Sending the control instruction to the device under test through the conversion unit, so that the device under test executes the control instruction; Acquiring, by the conversion unit, state data of the device under test after executing the control instruction, and / or acquiring state data sent by the device under test after executing the control instruction; A test result is generated according to the status data and the corresponding allowable range of the status data in the engineering test process.

10. A testing system, characterized in that: include: A device under test and a testing apparatus, wherein the testing apparatus comprises a host computer and a conversion unit, wherein the conversion unit is used to execute the testing method according to any one of claims 1 to 8, and the host computer is used to execute the testing method according to claim 9.