Automatic test system
The automated testing system solves the problem of lengthy testing processes for low-voltage electrical products, and realizes an efficient, flexible and universal testing method that is suitable for automated testing of low-voltage electrical products.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- DELIXI ELECTRIC
- Filing Date
- 2025-04-15
- Publication Date
- 2026-05-05
AI Technical Summary
The testing process for low-voltage electrical products is lengthy and cumbersome, resulting in long testing cycles and a lack of flexibility and versatility. In particular, the debugging of software code for microprocessor controllers requires multiple adjustments, making the testing process rigid and mechanical.
Design an automated testing system, including a host computer, an oscilloscope, and a programmable AC voltage source, to automatically execute test instructions through automated test scripts, thereby achieving automated testing of low-voltage electrical products. Utilize signal confirmation and feedback mechanisms to ensure the flexibility and versatility of the testing process.
It improves testing efficiency, reduces manual intervention, ensures the consistency and accuracy of test results, generates rapid feedback for early problem fixing, is suitable for application scenarios that are long-term or difficult to reproduce manually, and improves the flexibility and versatility of testing.
Smart Images

Figure CN224203322U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of testing technology, and in particular to an automated testing system. Background Technology
[0002] Low-voltage electrical products refer to all electrical equipment and components that operate in low-voltage environments. They include not only low-voltage power distribution products, but also low-voltage control electrical appliances, low-voltage protection electrical appliances, and low-voltage switchgear.
[0003] The testing process for low-voltage electrical products typically involves a series of standardized tests based on product standards. This testing process is usually conducted by specialized testing institutions. Because the testing process is lengthy and cumbersome, the testing cycle for low-voltage electrical products is relatively long. For low-voltage electrical products containing microprocessor controllers, the debugging requirements for the internal software code of the microprocessor controller are quite flexible. Therefore, it may be necessary to repeatedly adjust the microprocessor controller to achieve the ideal function and performance of the low-voltage electrical product. If the low-voltage electrical product is found to be non-compliant during the long testing cycle, the software code needs to be readjusted, and the above testing process needs to be repeated, resulting in a rigid and mechanized testing process that lacks versatility. Utility Model Content
[0004] This application provides an automated testing system capable of automating the testing of low-voltage electrical products, which is highly flexible and versatile.
[0005] In a first aspect, this application provides an automated testing system, which includes: a host computer, an oscilloscope, a programmable AC voltage source, and a product under test;
[0006] The host computer is electrically connected to the programmable AC voltage source, and the host computer is also connected to the oscilloscope. Both the programmable AC voltage source and the oscilloscope are also electrically connected to the input terminal of the product under test, and the oscilloscope is also electrically connected to the output terminal of the product under test.
[0007] The host computer is used to determine whether it has received the first confirmation signal sent by the oscilloscope and the second confirmation signal sent by the programmable AC voltage source. If it receives the first confirmation signal and the second confirmation signal, it sends a first instruction to the oscilloscope according to the current test instruction in the automated test script. The first confirmation signal is used to indicate that the oscilloscope is successfully configured, the second confirmation signal is used to indicate that the programmable AC voltage source is successfully configured, and the first instruction is used to instruct the oscilloscope to start the current test corresponding to the current test instruction.
[0008] The oscilloscope is used to enter capture mode according to the first instruction in order to monitor the product under test;
[0009] The host computer is also used to determine whether it receives the first feedback signal sent by the oscilloscope. If the first feedback signal is received, a second instruction is sent to the programmable AC voltage source. The first feedback signal is used to indicate that the oscilloscope has started the current test, and the second instruction is used to instruct the programmable AC voltage source to start the current test.
[0010] The programmable AC voltage source is used to provide the product under test with an AC voltage signal corresponding to the current test instruction according to the second instruction, so that the product under test can complete the current test.
[0011] The host computer is further configured to determine whether it receives a second feedback signal from the programmable AC voltage source. If the second feedback signal is received, it determines whether a third feedback signal from the programmable AC voltage source is received within a preset time period. If the third feedback signal is received within the preset time period, it acquires the test data corresponding to the current test from the oscilloscope via a network, and judges and records the test results corresponding to the current test command. The second feedback signal is used to indicate that the programmable AC voltage source has started the current test, and the third feedback signal is used to indicate that the programmable AC voltage source has completed the current test.
[0012] Through the automated testing system provided in the first aspect, the host computer can determine whether it has received a first confirmation signal from the oscilloscope indicating successful oscilloscope configuration and a second confirmation signal from the programmable AC voltage source indicating successful programmable AC voltage source configuration. If both confirmation signals are received, the host computer sends a first instruction to the oscilloscope, instructing it to begin the current test corresponding to the current test instruction, according to the current test instruction in the automated test script. Thus, the oscilloscope can enter capture mode to monitor the product under test based on the first instruction. The host computer can then determine whether it has received a first feedback signal from the oscilloscope indicating that the current test has started. If the first feedback signal is received, the host computer sends a second instruction to the programmable AC voltage source, instructing it to begin the current test. Based on this, the programmable AC voltage source can provide the AC voltage signal corresponding to the current test instruction to the product under test according to the second instruction, enabling the product under test to complete the current test. Furthermore, the host computer can determine whether it has received a second feedback signal from the programmable AC voltage source, indicating that the programmable AC voltage source has started the current test. If the second feedback signal is received, it determines whether a third feedback signal from the programmable AC voltage source, indicating that the current test has been completed, has been received within a preset time period. If the third feedback signal is received within the preset time period, the host computer acquires the test data corresponding to the current test from the oscilloscope via the network, and judges and records the test results corresponding to the current test command. Thus, the automated testing system can automatically execute the current test on the product under test according to the current test command in the automated test script, acquire the test data corresponding to the current test, and judge and record the test results corresponding to the current test command for user query. This enables the automated testing system to perform automated testing on the product under test, exhibiting strong flexibility and versatility.
[0013] In one possible design, the host computer is further configured to, after judging and recording the test result corresponding to the current test instruction, send a third instruction to the oscilloscope according to the next test instruction in the automated test script to obtain the test data corresponding to the next test instruction, until all test instructions in the automated test script have been executed and the test result corresponding to this round of testing is obtained and stored. The third instruction is used to instruct the oscilloscope to start the next test corresponding to the next test instruction.
[0014] In one possible design, the host computer is further configured to repeatedly send the first instruction to the oscilloscope multiple times if the first feedback signal is not received, and determine whether the corresponding first feedback signal is received; if the corresponding first feedback signal is still not received after sending the first instruction multiple times, the current test is determined to have failed.
[0015] In one possible design, the host computer is further configured to repeatedly send the second instruction to the programmable AC voltage source multiple times if the second feedback signal is not received, and determine whether the corresponding second feedback signal is received; if the corresponding second feedback signal is still not received after sending the second instruction multiple times, the current test is determined to have failed.
[0016] In one possible design, the host computer is further configured to repeatedly send the first instruction to the oscilloscope multiple times if the third feedback signal is not received within the preset time period, in order to determine whether the corresponding third feedback signal is received within the preset time period; if the corresponding third feedback signal is still not received within the preset time period after sending the first instruction multiple times, the current test is terminated.
[0017] In one possible design, the host computer is further configured to send a first communication signal to the oscilloscope and a second communication signal to the programmable AC voltage source before determining whether the first confirmation signal and the second confirmation signal have been received. The first communication signal is used to establish communication with the oscilloscope, and the second communication signal is used to establish communication with the programmable AC voltage source.
[0018] The host computer is also used to determine whether it has received the third confirmation signal sent by the oscilloscope and the fourth confirmation signal sent by the programmable AC voltage source; if it receives the third confirmation signal and the fourth confirmation signal, it sends a first configuration command to the oscilloscope and a second configuration command to the programmable AC voltage source, respectively. The third confirmation signal is used to indicate that communication with the oscilloscope has been established, and the fourth confirmation signal is used to indicate that communication with the programmable AC voltage source has been established.
[0019] The oscilloscope is further configured to configure the first configuration parameter of the oscilloscope according to the first configuration instruction, so as to monitor the product under test and determine whether the first configuration parameter is configured successfully. If the first configuration parameter is configured successfully, the first confirmation signal is sent to the host computer.
[0020] The programmable AC voltage source is further configured to configure the second configuration parameters of the programmable AC voltage source according to the second configuration instruction to generate the AC voltage signal, and to determine whether the second configuration parameters are configured successfully. If the second configuration parameters are configured successfully, the second confirmation signal is sent to the host computer.
[0021] In one possible design, the host computer is further configured to, if it does not receive the third confirmation signal, repeatedly send the first communication signal to the oscilloscope and determine whether the corresponding third confirmation signal is received; if, after sending the first communication signal multiple times, the corresponding third confirmation signal is still not received, then the current test round is determined to have failed; and / or, if it does not receive the fourth confirmation signal, repeatedly send the second communication signal to the programmable AC voltage source and determine whether the corresponding fourth confirmation signal is received; if, after sending the second communication signal multiple times, the corresponding fourth confirmation signal is still not received, then the current test round is determined to have failed.
[0022] In one possible design, the host computer is further configured to, if it does not receive the first confirmation signal, repeatedly send a first configuration command to the oscilloscope and determine whether the corresponding first confirmation signal is received; if, after sending the first configuration command multiple times, the corresponding first confirmation signal is still not received, then the current test round is determined to have failed; and / or, if it does not receive the second confirmation signal, repeatedly send the second configuration command to the programmable AC voltage source and determine whether the corresponding second confirmation signal is received; if, after sending the second configuration command multiple times, the corresponding second confirmation signal is still not received, then the current test round is determined to have failed.
[0023] In one possible design, the host computer includes: a first host computer, a second host computer, and a third host computer;
[0024] The first host computer is connected to the second host computer and the third host computer respectively. The second host computer is also electrically connected to the programmable AC voltage source, and the third host computer is also connected to the oscilloscope.
[0025] In one possible design, the first configuration parameters include: sampling accuracy, sampling channel, sampling start time, and sampling end time; the second configuration parameters include: voltage amplitude, voltage frequency, voltage waveform, and voltage time.
[0026] The above description is merely an overview of the technical solutions of the embodiments of this application. In order to better understand the technical means of the embodiments of this application and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of this application more obvious and understandable, specific implementation methods of this application are described below. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a schematic diagram of the structure of an automated testing system provided in an embodiment of this application;
[0029] Figure 2 This is a schematic diagram of the workflow of an automated testing system provided in an embodiment of this application.
[0030] Explanation of reference numerals in the attached figures:
[0031] 100. Automated testing system; 110. Host computer; 111. First host computer; 112. Second host computer; 113. Third host computer; 120. Oscilloscope; 130. Programmable AC voltage source; 140. Product under test. Detailed Implementation
[0032] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c alone can mean: a alone, b alone, c alone, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0033] The terms “center,” “longitudinal,” “lateral,” “up,” “down,” “left,” “right,” “front,” and “rear,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0034] The terms "connected" and "connected" should be interpreted broadly. For example, in circuit structures, "connected" or "connected" can refer not only to physical connections but also to electrical or signal connections. This could be a direct connection (physical connection) or an indirect connection via at least one intermediate component, as long as the circuit is connected. It could also refer to the internal connection between two components. Similarly, a signal connection can refer to a connection via a circuit or a medium, such as radio waves. Those skilled in the art will understand the specific meaning of these terms in this application based on the specific circumstances.
[0035] Automated product testing refers to the process of using scripts or tools to automate product function or performance tests that were originally performed manually by computer systems. This automated testing primarily aims to improve testing efficiency, reduce errors, and accelerate product delivery cycles. Automated testing offers many advantages, typically involving the following aspects:
[0036] 1. High testing efficiency: It can quickly execute a large number of tests, reducing the time and errors of manual intervention.
[0037] 2. Repeatability: The results are consistent each time the execution is performed, avoiding the influence of human factors.
[0038] 3. Cost savings: As the number of test executions increases, the overall cost of testing decreases.
[0039] 4. High accuracy: Suitable for applications that run for a long time or are difficult to reproduce manually.
[0040] 5. Rapid feedback: Defects can be reported immediately upon discovery, facilitating early repair.
[0041] For low-voltage power distribution products containing electronic components, when using an integrated microcontroller unit (MCU) to assist in realizing the product's functions, engineers edit and compile the embedded software code locally and synchronize it to the MCU using tools such as a programmer for joint debugging on the prototype. This local debugging process allows engineers to rectify any vulnerabilities discovered in the MCU's internal software code, thereby obtaining a relatively stable version of the software code. Typically, verifying the functionality and performance of low-voltage power distribution products requires a systematic testing process. Therefore, engineers formulate testing requirements for the product based on standards, internal specifications, or relevant experience. Consequently, when problems arise during testing, the MCU outputs a corresponding test report.
[0042] The testing process for low-voltage electrical products typically involves a series of standardized tests based on product standards, usually conducted by specialized testing organizations. Due to the lengthy and complex nature of this process, the verification cycle for low-voltage electrical products is relatively long. For low-voltage electrical products containing microprocessor controllers, the debugging requirements for the microprocessor's internal software code are quite flexible. Therefore, it may be necessary to repeatedly adjust the microprocessor controller to achieve the desired functionality and performance. If the low-voltage electrical product fails to meet the requirements during this long testing period, the software code needs to be readjusted, and the entire testing process needs to be repeated. This results in a rigid and mechanical testing process that lacks versatility.
[0043] Therefore, by combining standards with laboratory testing conditions through automated testing, potential problems with low-voltage electrical products can be identified and corrected before they reach testing institutions. If the testing process for low-voltage electrical products can be effectively simulated and recorded during the R&D phase, it will benefit the product development process. Automated testing not only improves testing efficiency, but the generated test reports can also provide more guidance for the subsequent development of low-voltage electrical products.
[0044] Meanwhile, automated testing offers strong versatility for testing specific functions of low-voltage electrical products. Since low-voltage electrical products across different product lines often share similar or identical functions requiring testing, and these tests are typically conducted according to a standardized process, this approach aligns with the standardization and versatility of automated testing. Thus, the standard testing process for a specific function of a low-voltage electrical product can be abstracted into specific inputs and outputs. Furthermore, by providing the required inputs and collecting and judging whether the corresponding outputs meet the testing requirements, a complete automated testing process can be completed. Because the testing standards for single functional modules differ across various types of low-voltage electrical products, creating a test script based on this standard testing process offers significant flexibility. By configuring different parameters in the test script via a host computer, the automated testing needs of various low-voltage electrical products can be met.
[0045] Because embedded software code testing verifies reliability based on product-specific and standard testing procedures, test reports generated during the software code debugging process are often easily overlooked, making comparison and analysis difficult after later modifications. Repeated testing increases the workload. Therefore, outputting test reports within the testing process is a highly effective tracking method, enabling testers to provide standardized feedback on test results and allowing engineers to quickly pinpoint problems.
[0046] In summary, this application provides an automated testing system that automatically executes the tests corresponding to the test instructions in an automated test script, enabling the product under test to automatically complete the corresponding tests. Therefore, it can perform automated testing of low-voltage electrical products, exhibiting strong flexibility and versatility.
[0047] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of an automated testing system provided in an embodiment of this application. Figure 1 As shown, the automated test system 100 may include: a host computer 110, an oscilloscope 130, a programmable AC voltage source 120, and a product under test 140.
[0048] The host computer 110 is electrically connected to the programmable AC voltage source 120. The host computer 110 is also connected to the oscilloscope 130. Both the programmable AC voltage source 120 and the oscilloscope 130 are electrically connected to the input terminal of the product under test 140. The oscilloscope 130 is also electrically connected to the output terminal of the product under test 140.
[0049] The product under test 140 typically refers to a product that activates its protection function due to voltage changes. For example, it could be a low-voltage electrical product. Exemplarily, the product under test 140 could be a circuit breaker under test or a relay under test; this embodiment does not specifically limit the type of product.
[0050] The host computer 110 is connected to the oscilloscope 130 via a network. For example, a network connection refers to a wireless connection. The wireless signal could be, for example, a WiFi signal, a cellular network signal, or a Bluetooth signal; this embodiment does not specifically limit the type of connection.
[0051] For example, the host computer 110 is implemented based on a computer. Users can monitor the process of automated testing through the host computer 110. Users can set configuration information for generating automated test scripts, control the process of automated testing, and obtain the corresponding test results through the computer.
[0052] The host computer 110 can determine whether it has received the first confirmation signal sent by the oscilloscope 130 and the second confirmation signal sent by the programmable AC voltage source 120. If the first confirmation signal and the second confirmation signal are received, the host computer 110 sends the first instruction to the oscilloscope 130 according to the current test instruction in the automated test script, so that the oscilloscope 130 can acquire the first instruction.
[0053] The first confirmation signal indicates that the oscilloscope 130 has been successfully configured, the second confirmation signal indicates that the programmable AC voltage source 120 has been successfully configured, and the first instruction indicates that the oscilloscope 130 should start the current test corresponding to the current test instruction.
[0054] When the host computer 110 sends the first instruction, it means that the automated testing system 100 officially begins to execute the current test instruction.
[0055] The automated test script is generated by the host computer 110 based on the configuration information input by the user, and it forms the basis for automated testing of the product under test 140. If testing the same function or performance of the product under test 140, the same automated test script can be used without needing to be regenerated based on the configuration information. The configuration information may include: the product to be tested, the type of test item, the test voltage, the test time, and the number of tests.
[0056] In this way, the oscilloscope 130 can enter the capture mode according to the first instruction, so that the oscilloscope 130 can monitor the data at the input and output terminals of the product under test 140, thereby monitoring the product under test 140.
[0057] The data at the input terminal of the product under test 140 is usually the grid voltage information, and the data at the output terminal of the product under test 140 is the time information of the protection action triggered by the product under test 140.
[0058] Specifically, when the output level of the product under test (DUT) 140 changes—that is, when the DUT 140 activates its protection function—the oscilloscope 130 exits capture mode, ending the current test. This allows the oscilloscope 130 to acquire the timing information of the DUT 140's protection activation. For example, when the DUT 140 is powered on, the output and input levels are both high. When the DUT 140 activates its protection function (i.e., is powered off), the output level is low. Based on this, the oscilloscope 130 can acquire the timing information of the DUT 140's protection activation.
[0059] Thus, the host computer 110 can determine whether it has received the first feedback signal sent by the oscilloscope 130. If it has received the first feedback signal, it sends a second instruction to the programmable AC voltage source 120 so that the programmable AC voltage source 120 can acquire the second instruction.
[0060] The first feedback signal is used to indicate that the oscilloscope 130 has started the current test, and the second instruction is used to instruct the programmable AC voltage source 120 to start the current test.
[0061] Based on this, the programmable AC voltage source 120 can provide the AC voltage signal corresponding to the current test command to the product under test 140 according to the second command, so that the product under test 140 can trigger a protection action when it detects the AC voltage signal, and thus the product under test 140 can complete the current test.
[0062] Furthermore, the host computer 110 can determine whether it has received the second feedback signal sent by the programmable AC voltage source 120. If the second feedback signal is received, it determines whether the third feedback signal sent by the programmable AC voltage source 120 is received within a preset time period. If the third feedback signal is received within the preset time period, it obtains the test data corresponding to the current test from the oscilloscope 130 via the network, and judges and records the test results corresponding to the current test command. Thus, the automated test system 100 can automatically perform the current test on the product under test 140 according to the current test command in the automated test script, obtain the test data corresponding to the current test, and judge and record the test results corresponding to the current test command for user query. This enables the automated test system 100 to perform automated testing on the product under test 140, exhibiting strong flexibility and versatility.
[0063] The second feedback signal indicates that the programmable AC voltage source 120 has started the current test, and the third feedback signal indicates that the programmable AC voltage source 120 has completed the current test.
[0064] The automated testing system provided in this application allows the host computer to determine whether it has received a first confirmation signal from the oscilloscope indicating successful oscilloscope configuration and a second confirmation signal from the programmable AC voltage source indicating successful programmable AC voltage source configuration. If both confirmation signals are received, the host computer sends a first instruction to the oscilloscope, instructing it to begin the current test corresponding to the current test instruction, according to the current test instruction in the automated test script. This allows the oscilloscope to enter capture mode to monitor the product under test. The host computer can then determine whether it has received a first feedback signal from the oscilloscope indicating that the current test has started. If so, it sends a second instruction to the programmable AC voltage source, instructing it to begin the current test. Based on this, the programmable AC voltage source can provide the AC voltage signal corresponding to the current test instruction to the product under test according to the second instruction, enabling the product under test to complete the current test. Furthermore, the host computer can determine whether it has received a second feedback signal from the programmable AC voltage source, indicating that the programmable AC voltage source has started the current test. If the second feedback signal is received, it determines whether a third feedback signal from the programmable AC voltage source, indicating that the current test has been completed, has been received within a preset time period. If the third feedback signal is received within the preset time period, the host computer acquires the test data corresponding to the current test from the oscilloscope via the network, and judges and records the test results corresponding to the current test command. Thus, the automated testing system can automatically execute the current test on the product under test according to the current test command in the automated test script, acquire the test data corresponding to the current test, and judge and record the test results corresponding to the current test command for user query. This enables the automated testing system to perform automated testing on the product under test, exhibiting strong flexibility and versatility.
[0065] In some examples, after judging and recording the test results corresponding to the current test instruction, the host computer 110 can send a third instruction to the oscilloscope 130 according to the next test instruction in the automated test script to obtain the test data corresponding to the next test instruction, until all test instructions in the automated test script have been executed, and obtain and store the test results corresponding to this round of testing for easy query by the user.
[0066] The third instruction is used to instruct the oscilloscope 130 to start the next test corresponding to the next test instruction.
[0067] In some examples, if the host computer 110 does not receive the first feedback signal, it will repeatedly send the first command to the oscilloscope 130 and determine whether the corresponding first feedback signal is received. If the corresponding first feedback signal is still not received after sending the first command multiple times, the current test is determined to be a failure.
[0068] For example, "multiple times" usually refers to a maximum of 3 times. That is, if the host computer 110 sends the first command to the oscilloscope 130 3 times and still does not receive the corresponding first feedback signal, then the current test is determined to have failed.
[0069] In some examples, if the host computer 110 does not receive the second feedback signal, it will repeatedly send the second instruction to the programmable AC voltage source 120 and determine whether the corresponding second feedback signal is received. If the corresponding second feedback signal is still not received after sending the second instruction multiple times, the current test is determined to have failed.
[0070] For example, "multiple times" usually means a maximum of 3 times.
[0071] In some examples, if the host computer 110 does not receive the third feedback signal within a preset time period, it will repeatedly send the first command to the oscilloscope 130 to determine whether the corresponding third feedback signal has been received within the preset time period. If the corresponding third feedback signal is still not received within the preset time period after sending the first command multiple times, the test will end.
[0072] If the host computer 110 fails to receive the third feedback signal within the preset time period, it means that the current test has timed out. Therefore, if the host computer 110 still fails to receive the corresponding third feedback signal within the preset time period after sending multiple first commands, it means that the current test has failed, causing the host computer 110 to terminate this round of testing and return the result and reason for the failure.
[0073] In some examples, the host computer 110 can send a first communication signal to the oscilloscope 130 and a second communication signal to the programmable AC voltage source 120 before determining whether the first confirmation signal and the second confirmation signal have been received, so that the oscilloscope 130 can acquire the first communication signal and the programmable AC voltage source 120 can acquire the second communication signal.
[0074] The first communication signal is used to establish communication with the oscilloscope 130, and the second communication signal is used to establish communication with the programmable AC voltage source 120.
[0075] In this way, the host computer 110 can determine whether it has received the third confirmation signal sent by the oscilloscope 130 and the fourth confirmation signal sent by the programmable AC voltage source 120. If it receives the third confirmation signal and the fourth confirmation signal, it will send the first configuration command to the oscilloscope 130 and the second configuration command to the programmable AC voltage source 120, respectively, so that the oscilloscope 130 can obtain the first configuration command and the programmable AC voltage source 120 can obtain the second configuration command.
[0076] The third confirmation signal is used to indicate that communication with the oscilloscope 130 has been established, and the fourth confirmation signal is used to indicate that communication with the programmable AC voltage source 120 has been established.
[0077] Furthermore, the oscilloscope 130 can configure its first configuration parameters according to the first configuration instruction to monitor the product under test 140 and determine whether the first configuration parameters are configured successfully. If the first configuration parameters are configured successfully, a first confirmation signal is sent to the host computer 110.
[0078] For example, the first configuration parameter may include: sampling precision, sampling channel, sampling start time, and sampling end time.
[0079] The programmable AC voltage source 120 can configure the second configuration parameters of the programmable AC voltage source 120 according to the second configuration instruction to generate an AC voltage signal, and determine whether the second configuration parameters are configured successfully. If the second configuration parameters are configured successfully, a second confirmation signal is sent to the host computer 110.
[0080] For example, the second configuration parameter may include: voltage amplitude, voltage frequency, voltage waveform, and voltage time.
[0081] In some examples, if the host computer 110 does not receive the third confirmation signal, it repeatedly sends the first communication signal to the oscilloscope 130 and determines whether the corresponding third confirmation signal is received. If the corresponding third confirmation signal is still not received after sending the first communication signal multiple times, the test round is determined to have failed. And / or, if the fourth confirmation signal is not received, it repeatedly sends the second communication signal to the programmable AC voltage source 120 and determines whether the corresponding fourth confirmation signal is received. If the corresponding fourth confirmation signal is still not received after sending the second communication signal multiple times, the test round is determined to have failed.
[0082] In some examples, if the host computer 110 does not receive the first confirmation signal, it repeatedly sends the first configuration command to the oscilloscope 130 and determines whether the corresponding first confirmation signal is received. If the corresponding first confirmation signal is still not received after sending the first configuration command multiple times, the test is determined to have failed. And / or, if the second confirmation signal is not received, it repeatedly sends the second configuration command to the programmable AC voltage source 120 and determines whether the corresponding second confirmation signal is received. If the corresponding second confirmation signal is still not received after sending the second configuration command multiple times, the test is determined to have failed.
[0083] In some examples, the host computer 110 may include: a first host computer 111, a second host computer 112, and a third host computer 113.
[0084] The first host computer 111 is connected to the second host computer 112 and the third host computer 113 respectively. The second host computer 112 is also electrically connected to the programmable AC voltage source 120, and the third host computer 113 is also connected to the oscilloscope 130.
[0085] Among them, the first host computer 111 can be called the host computer for automated testing, the second host computer 112 can be called the host computer for programmable AC voltage source, and the third host computer 113 can be called the host computer for Web Server.
[0086] The following is combined Figure 2 , Figure 2 This is a schematic diagram illustrating the workflow of an automated testing system provided in one embodiment of this application. The working principle of the automated testing system 100 is explained in detail below:
[0087] 1. When the user starts the host computer 110, the first host computer 111 can generate an automated test script according to the user's customization, and start the automated test after receiving the instruction to start the automated test.
[0088] 2. After the automated test is started, the first host computer 111 can send a first communication signal to the third host computer 113 and a second communication signal to the second host computer 112 according to the current test instruction in the automated test script, so that the host computer 110 can send the first communication signal to the oscilloscope 130 and the second communication signal to the programmable AC voltage source 120 respectively.
[0089] If the first host computer 111 does not receive the third confirmation signal through the third host computer 113, it repeatedly sends the first communication signal to the oscilloscope 130 and determines whether the corresponding third confirmation signal is received. If the corresponding third confirmation signal is still not received after sending the first communication signal multiple times, the test round is determined to have failed. If the first host computer 111 does not receive the fourth confirmation signal through the second host computer 112, it repeatedly sends the second communication signal to the programmable AC voltage source 120 and determines whether the corresponding fourth confirmation signal is received. If the corresponding fourth confirmation signal is still not received after sending the second communication signal multiple times, the test round is determined to have failed.
[0090] 3. If the first host computer 111 receives the fourth confirmation signal through the second host computer 112 and the third confirmation signal through the third host computer 113, that is, if the host computer 110 receives the third confirmation signal and the fourth confirmation signal, then it sends the first configuration command to the oscilloscope 130 and the second configuration command to the programmable AC voltage source 120 respectively.
[0091] If the first host computer 111 does not receive the first confirmation signal through the third host computer 113, it repeatedly sends the first configuration command to the oscilloscope 130 and determines whether the corresponding first confirmation signal is received. If the corresponding first confirmation signal is still not received after sending the first configuration command multiple times, the test round is determined to have failed. If the first host computer 111 does not receive the second confirmation signal through the second host computer 112, it repeatedly sends the second configuration command to the programmable AC voltage source 120 and determines whether the corresponding second confirmation signal is received. If the corresponding second confirmation signal is still not received after sending the second configuration command multiple times, the test round is determined to have failed.
[0092] 4. If the first host computer 111 receives the second confirmation signal through the second host computer 112 and the first confirmation signal through the third host computer 113, that is, if the host computer 110 receives the first confirmation signal and the second confirmation signal, then all the test instructions set in the automated test script are executed one by one. For example, according to the current test instruction, the first instruction is sent to the oscilloscope 130 so that the oscilloscope 130 can enter the capture mode according to the first instruction to monitor the product 140 under test.
[0093] If the first host computer 111 does not receive the first feedback signal through the third host computer 113, it repeatedly sends the first command to the oscilloscope 130 and determines whether the corresponding first feedback signal is received. If the corresponding first feedback signal is still not received after sending the first command multiple times, the current test is determined to be a failure.
[0094] 5. After the first host computer 111 receives the first feedback signal through the third host computer 113, that is, after the host computer 110 receives the first feedback signal, it sends a second instruction to the programmable AC voltage source 120, so that the programmable AC voltage source 120 can provide the AC voltage signal corresponding to the current test instruction to the product under test 140 according to the second instruction, so that the product under test 140 can complete the current test.
[0095] If the first host computer 111 does not receive the second feedback signal through the second host computer 112, that is, if the host computer 110 does not receive the second feedback signal, it will repeatedly send the second instruction to the programmable AC voltage source 120 and determine whether the corresponding second feedback signal is received. If the corresponding second feedback signal is still not received after sending the second instruction multiple times, the current test is determined to be a failure.
[0096] 6. After the first host computer 111 receives the second feedback signal through the second host computer 112, that is, after the host computer 110 receives the second feedback signal, it determines whether the third feedback signal has been received within a preset time period. If the host computer 110 does not receive the third feedback signal within the preset time period, it repeatedly sends the first command to the oscilloscope 130 to determine whether the corresponding third feedback signal has been received within the preset time period. If the corresponding third feedback signal is still not received within the preset time period after sending the first command multiple times, the test ends and the result and reason for the failure of the test are returned.
[0097] 7. If the first host computer 111 receives the third feedback signal through the second host computer 112 within a preset time period, that is, if the host computer 110 receives the third feedback signal within a preset time period, then the first host computer 111 in the host computer 110 obtains the test data corresponding to the current test from the oscilloscope 130 via the third host computer 113 through the network, and judges and records the test result corresponding to the current test command. After judging and recording the test result corresponding to the current test command, the host computer 110 can send a third command to the oscilloscope 130 according to the next test command in the automated test script to obtain the test data corresponding to the next test command.
[0098] 8. Once all test instructions in the automated test script have been executed, the host computer 110 can obtain the test results for this round of testing based on the test data and test results corresponding to all test instructions, and store them for user query.
[0099] in, Figure 1 and Figure 2 In the diagram, the input terminal of the product under test 140 is represented by 1, and the output terminal of the product under test 140 is represented by 2.
[0100] Finally, it should be noted that the above embodiments are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An automated testing system, characterized in that, The automated testing system includes: a host computer, an oscilloscope, a programmable AC voltage source, and the product under test; The host computer is electrically connected to the programmable AC voltage source, and the host computer is also connected to the oscilloscope. Both the programmable AC voltage source and the oscilloscope are also electrically connected to the input terminal of the product under test, and the oscilloscope is also electrically connected to the output terminal of the product under test. The host computer is used to determine whether it has received the first confirmation signal sent by the oscilloscope and the second confirmation signal sent by the programmable AC voltage source. If it receives the first confirmation signal and the second confirmation signal, it sends a first instruction to the oscilloscope according to the current test instruction in the automated test script. The first confirmation signal is used to indicate that the oscilloscope is successfully configured, the second confirmation signal is used to indicate that the programmable AC voltage source is successfully configured, and the first instruction is used to instruct the oscilloscope to start the current test corresponding to the current test instruction. The oscilloscope is used to enter capture mode according to the first instruction in order to monitor the product under test; The host computer is also used to determine whether it receives the first feedback signal sent by the oscilloscope. If the first feedback signal is received, a second instruction is sent to the programmable AC voltage source. The first feedback signal is used to indicate that the oscilloscope has started the current test, and the second instruction is used to instruct the programmable AC voltage source to start the current test. The programmable AC voltage source is used to provide the product under test with an AC voltage signal corresponding to the current test instruction according to the second instruction, so that the product under test can complete the current test. The host computer is further configured to determine whether it receives a second feedback signal from the programmable AC voltage source. If the second feedback signal is received, it determines whether a third feedback signal from the programmable AC voltage source is received within a preset time period. If the third feedback signal is received within the preset time period, it acquires the test data corresponding to the current test from the oscilloscope via a network, and judges and records the test results corresponding to the current test command. The second feedback signal is used to indicate that the programmable AC voltage source has started the current test, and the third feedback signal is used to indicate that the programmable AC voltage source has completed the current test.
2. The automated testing system according to claim 1, characterized in that, The host computer is further configured to, after judging and recording the test result corresponding to the current test instruction, send a third instruction to the oscilloscope according to the next test instruction in the automated test script to obtain the test data corresponding to the next test instruction, until all test instructions in the automated test script have been executed, and obtain and store the test result corresponding to this round of testing. The third instruction is used to instruct the oscilloscope to start the next test corresponding to the next test instruction.
3. The automated testing system according to claim 2, characterized in that, The host computer is also configured to repeatedly send the first instruction to the oscilloscope multiple times if it does not receive the first feedback signal, and determine whether the corresponding first feedback signal has been received. If the corresponding first feedback signal is not received after sending the first instruction multiple times, the current test is determined to have failed.
4. The automated testing system according to claim 2, characterized in that, The host computer is also configured to repeatedly send the second instruction to the programmable AC voltage source multiple times if it does not receive the second feedback signal, and determine whether the corresponding second feedback signal is received. If the corresponding second feedback signal is not received after sending the second instruction multiple times, the current test is determined to have failed.
5. The automated testing system according to claim 2, characterized in that, The host computer is also configured to repeatedly send the first instruction to the oscilloscope multiple times if the third feedback signal is not received within the preset time period, in order to determine whether the corresponding third feedback signal is received within the preset time period. If the corresponding third feedback signal is not received within the preset time period after sending the first instruction multiple times, the current test round ends.
6. The automated testing system according to any one of claims 2-5, characterized in that, The host computer is further configured to send a first communication signal to the oscilloscope and a second communication signal to the programmable AC voltage source before determining whether the first confirmation signal and the second confirmation signal have been received. The first communication signal is used to establish communication with the oscilloscope, and the second communication signal is used to establish communication with the programmable AC voltage source. The host computer is also used to determine whether it has received the third confirmation signal sent by the oscilloscope and the fourth confirmation signal sent by the programmable AC voltage source; if it receives the third confirmation signal and the fourth confirmation signal, it sends a first configuration command to the oscilloscope and a second configuration command to the programmable AC voltage source, respectively. The third confirmation signal is used to indicate that communication with the oscilloscope has been established, and the fourth confirmation signal is used to indicate that communication with the programmable AC voltage source has been established. The oscilloscope is further configured to configure the first configuration parameter of the oscilloscope according to the first configuration instruction, so as to monitor the product under test and determine whether the first configuration parameter is configured successfully. If the first configuration parameter is configured successfully, the first confirmation signal is sent to the host computer. The programmable AC voltage source is further configured to configure the second configuration parameters of the programmable AC voltage source according to the second configuration instruction to generate the AC voltage signal, and to determine whether the second configuration parameters are configured successfully. If the second configuration parameters are configured successfully, the second confirmation signal is sent to the host computer.
7. The automated testing system according to claim 6, characterized in that, The host computer is also configured to repeatedly send the first communication signal to the oscilloscope multiple times if it does not receive the third confirmation signal, and determine whether the corresponding third confirmation signal has been received. If the corresponding third confirmation signal is not received after sending the first communication signal multiple times, the test is determined to have failed; and / or, if the fourth confirmation signal is not received, the second communication signal is sent to the programmable AC voltage source multiple times, and it is determined whether the corresponding fourth confirmation signal is received. If the corresponding fourth confirmation signal is not received after sending the second communication signal multiple times, then the current test is deemed to have failed.
8. The automated testing system according to claim 6, characterized in that, The host computer is also configured to repeatedly send the first configuration command to the oscilloscope multiple times if it does not receive the first confirmation signal, and determine whether the corresponding first confirmation signal has been received. If the first confirmation signal is not received after sending the first configuration command multiple times, the test is determined to have failed; and / or, if the second confirmation signal is not received, the second configuration command is sent to the programmable AC voltage source multiple times, and it is determined whether the corresponding second confirmation signal is received. If the corresponding second confirmation signal is not received after sending the second configuration command multiple times, then the current test is deemed to have failed.
9. The automated testing system according to claim 6, characterized in that, The host computer includes: a first host computer, a second host computer, and a third host computer; The first host computer is connected to the second host computer and the third host computer respectively. The second host computer is also electrically connected to the programmable AC voltage source, and the third host computer is also connected to the oscilloscope.
10. The automated testing system according to claim 6, characterized in that, The first configuration parameters include: sampling accuracy, sampling channel, sampling start time, and sampling end time; the second configuration parameters include: voltage amplitude, voltage frequency, voltage waveform, and voltage time.