Automatic test system and method for power failure of optical modem
By designing an automated light cat power-down test system, using test devices, power-down devices, controllable temperature and humidity boxes and servers, the existing light cat testing methods are solved, and efficient and accurate light cat testing is achieved, meeting the needs of different models of light cats and multiple test conditions.
Patent Information
- Application Number
- CN202411715234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-14
AI Technical Summary
The existing optical cat testing methods are inefficient, have poor accuracy and insufficient repeatability, making it difficult to fully cover a variety of test conditions, especially in power failure and environmental adaptability testing.
Design a Lightmax power-down automated testing system, including testing devices, power-down devices, controllable temperature and humidity boxes, equipment under test and server. Through automated test case configuration and execution, precise environmental control and real-time equipment interaction and status monitoring, comprehensive and accurate testing of Lightmax is achieved.
It improves testing efficiency, reduces manual intervention, ensures consistency and repeatability of the test process, comprehensively evaluates the performance stability and reliability of the light cat, and enhances the accuracy and comprehensiveness of the test.
Smart Images

Figure CN119629519A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to an automated testing system and method for power failure of an optical modem. Background Art
[0002] Optical fiber communication has rapidly developed into the main form of information transmission today due to its advantages such as wide bandwidth and large capacity. To realize optical communication, optical modulation and demodulation must be performed. Therefore, as a key component of the optical fiber communication system, the optical modem (optical modem) is receiving more and more attention. With the popularization of optical fiber communication, this will inevitably lead to an increase in the task of testing optical modems for terminal equipment manufacturers. At present, the power-off test of terminal equipment manufacturers only tests the process of equipment switching on and off, and does not cover various complex operating environments, including different temperature and humidity conditions and power failures caused by unstable power supply. Therefore, power-off testing and environmental adaptability testing of optical modems are important links to ensure that their performance meets the standards.
[0003] Traditional optical modem testing methods mainly rely on manual operations. Testers need to manually set up the test environment, control power-off operations, and record test results by observing device responses. This method is not only inefficient, but also easily affected by human factors, resulting in poor accuracy and repeatability of test results. In addition, for large-scale optical modem production testing, traditional methods are difficult to meet the needs of efficient and accurate testing. Existing automated testing systems are often designed for specific test items, lack flexibility and scalability, and are difficult to adapt to the needs of different models of optical modems and multiple test conditions. At the same time, there is less comprehensive consideration of power-off testing and environmental adaptability testing, resulting in insufficient comprehensiveness of test results.
[0004] Therefore, there is an urgent need for an automated power-off testing system and method for optical modems to automatically and comprehensively test the performance of optical modems under power-off and different temperature and humidity conditions, thereby improving test efficiency, enhancing test accuracy, and improving test comprehensiveness. Summary of the invention
[0005] The purpose of the present invention is to provide an optical modem power-off automatic testing system and method, which are used to solve the problems of low testing efficiency, low accuracy of test results and insufficient comprehensiveness of testing in the prior art.
[0006] The present invention solves the above problems through the following technical solutions:
[0007] An optical modem power-off automatic test system comprises: a test device, a power-off device, a controllable temperature and humidity chamber, a device under test and a server, wherein the test device is communicatively connected with the power-off device, the controllable temperature and humidity chamber, the device under test and the server, the power-off device and the device under test are electrically connected, and the device under test runs in the controllable temperature and humidity chamber;
[0008] The test device is used to configure a variety of test cases, and control the power-off device, the controllable temperature and humidity chamber and the server to work respectively according to the test cases, so as to control the device under test to perform the test;
[0009] The controllable temperature and humidity box is used to control the temperature and humidity in the box according to the first control instruction sent by the testing device;
[0010] The power-off device is used to control the switch of the power supply of the device under test according to the second control instruction sent by the test device;
[0011] The server is used to interact with the device under test according to the third control instruction sent by the test apparatus, so as to realize the PON port online of the device under test, service interaction and PON flow.
[0012] Further, the test device includes a test case input module, a control module and a state output module;
[0013] During the test process, the test case input module configures the test case based on a plurality of preset test conditions, and the control module sends the first control instruction, the second control instruction and the third control instruction according to the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to perform the test, and judges whether the state of the device under test meets the expected state of the test case according to the test result, and then outputs the test result through the state output module;
[0014] Among them, the test case consists of the case number and the device under test scheme, specifically including: the temperature and humidity required for the startup process of the device under test, the temperature and humidity during the operation process, the temperature and humidity during power failure, the normal startup time, the operation time and the carried services.
[0015] Further, the control module sends the first control instruction, the second control instruction and the third control instruction according to the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations to control the device under test to perform the test, including:
[0016] The controllable temperature and humidity box controls the temperature and humidity in the box based on the first control instruction;
[0017] The power-off device performs a power-off operation based on the second control instruction to control the switch of the power supply of the device under test;
[0018] The server interacts with the device under test based on the third control instruction, thereby controlling the device under test to sequentially perform PON port online, service interaction and PON flow testing under multiple preset test conditions.
[0019] Further, judging whether the state of the device under test meets the expected state of the test case according to the test result includes: during the startup of the device under test, the test device judges whether the device under test is started normally by pinging the gateway address of the device under test;
[0020] In the PON port online test, the server obtains logs through the OLT to determine whether the terminal device is online;
[0021] In the service interaction test, the server connects to the device under test via a network cable and pings each service gateway address to determine whether the service interaction is normal;
[0022] In the PON flow test, the server performs bidirectional packet transmission according to a preset number of packets to determine whether a packet loss rate is less than a preset threshold.
[0023] Furthermore, when at least one of the multiple test results fails, that is, the state of the tested device does not meet the expected state of the test case, the test device automatically protects the fault site, stores relevant work logs, and outputs the test results at the same time.
[0024] Furthermore, when the state of the device under test meets the expected state of the test case, it is further determined whether the preset test case has been executed. If not, the remaining test cases are continued to be executed. If all preset test cases are executed, the test results are output and the test is ended.
[0025] Furthermore, the test case input module also supports simultaneous presetting of multiple combination schemes for serial testing.
[0026] An optical modem power-off automatic test method, characterized in that the method is applied to an optical modem power-off automatic test system, comprising:
[0027] Configure test cases based on multiple preset test conditions;
[0028] Sending the first control instruction, the second control instruction and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to perform the test;
[0029] Determine whether the state of the device under test meets the expected state of the test case according to the test result;
[0030] When the state of the device under test does not meet the expected state of the test case, the test result is output.
[0031] Furthermore, it also includes:
[0032] When the state of the device under test meets the expected state of the test case, if the test case has not been executed, it returns to the sending of the first control instruction, the second control instruction and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to iteratively execute the test steps until all test cases are executed, output the test results and end the test.
[0033] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0034] The present invention solves the technical problems of low efficiency, poor accuracy, insufficient repeatability and difficulty in comprehensively covering a variety of test conditions in traditional optical modem testing by integrating a test device, a power-off device, a controllable temperature and humidity chamber, a device under test and a server, and by means of automated test case configuration and execution, precise environmental control and real-time device interaction and status monitoring techniques.
[0035] Specifically, the present invention greatly improves the test efficiency, reduces manual intervention, and ensures the consistency and repeatability of the test process through an automated test case configuration and execution mechanism; utilizes a controllable temperature and humidity chamber and a power-off device to accurately simulate various complex environments and power-off conditions that the optical modem may encounter in actual use, thereby comprehensively evaluating the performance stability and reliability of the optical modem; the real-time device interaction and status monitoring functions enable the test system to accurately determine whether the status of the device under test meets expectations, and promptly discover and record fault information, providing strong support for subsequent fault analysis and product optimization; in addition, the technical solution also supports the combination and serial testing of multiple test cases, further improving the flexibility and comprehensiveness of the test, meeting the needs of different models of optical modems and multiple test conditions, and providing strong technical guarantees for the production testing and quality control of optical modems. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the structure of the test system of the present invention;
[0037] Figure 2 It is a schematic diagram of the test process of the present invention;
[0038] Figure 3 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0039] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0040] In the following description, the terms "first\second\third" and the like are only used to distinguish similar objects and do not represent a specific order for the objects. It is understandable that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application. The present invention is further described in detail below in conjunction with the examples, but the embodiments of the present invention are not limited thereto.
[0041] Example:
[0042] Combined with Figure 1 and attached Figure 2 As shown, an optical modem power-off automatic test system includes: a test device, a power-off device, a controllable temperature and humidity chamber, a device under test, and a server, wherein the test device is communicatively connected with the power-off device, the controllable temperature and humidity chamber, the device under test, and the server, the power-off device and the device under test are electrically connected, and the device under test runs in the controllable temperature and humidity chamber;
[0043] The test device is used to configure a variety of test cases, and control the power-off device, the controllable temperature and humidity chamber and the server to work respectively according to the test cases, so as to control the device under test to perform the test;
[0044] The controllable temperature and humidity box is used to control the temperature and humidity in the box according to the first control instruction sent by the testing device;
[0045] The power-off device is used to control the switch of the power supply of the device under test according to the second control instruction sent by the test device;
[0046] The server is used to interact with the device under test according to the third control instruction sent by the test apparatus, so as to realize the PON port online of the device under test, service interaction and PON flow.
[0047] Specifically, the test device is responsible for configuring and managing a variety of test cases, which are designed according to various situations that the optical modem may encounter in actual use, such as different temperature and humidity conditions during startup, operation and power failure, as well as the types and quantities of services that the optical modem needs to carry. The test device can intelligently send control instructions to other components based on these test cases, thereby accurately controlling the entire test process; the power failure device is connected to the device under test (optical modem) through an electrical connection, and can control the switch of the optical modem power supply according to the first control instruction sent by the test device, so as to simulate the recovery process of the optical modem after a sudden power failure and evaluate its stability and reliability. The controllable temperature and humidity chamber can adjust the temperature and humidity in the chamber according to the second control instruction sent by the test device to simulate the working conditions of the optical modem under different environmental conditions. For example, the tester can set extreme environments such as high temperature, low temperature, high humidity or low humidity to observe the performance changes of the optical modem under these conditions; the server can communicate with the optical modem according to the third control instruction sent by the test device to implement test items such as PON port online, service interaction and PON flow. The PON port online test can verify whether the optical modem can successfully connect to the network; the service interaction test can check the performance and stability of the optical modem when handling different services; and the PON traffic test evaluates the data transmission capability and quality of the optical modem by sending and receiving data packets.
[0048] Principle of the invention: The tester configures the test case through the test device according to the test requirements. The test device sends control instructions to the controllable temperature and humidity box based on the configured test case to adjust the temperature and humidity in the box to the set value; then sends control instructions to the power-off device to simulate the power-off of the optical modem; after the optical modem is powered on again, the server starts to interact with the optical modem, including PON port online, service interaction and PON flow. During the entire test process, the test device will monitor the status and test results of the optical modem in real time, and output a detailed test report after the test.
[0049] Through such an automated testing system, testers can efficiently evaluate the performance of optical modems under different conditions, providing strong support for product optimization and improvement. At the same time, this testing method also greatly improves the accuracy and repeatability of the test and reduces the errors caused by human factors.
[0050] As an implementation mode, the test device includes a test case input module, a control module and a state output module;
[0051] During the test process, the test case input module configures the test case based on a plurality of preset test conditions, and the control module sends the first control instruction, the second control instruction and the third control instruction according to the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to perform the test, and judges whether the state of the device under test meets the expected state of the test case according to the test result, and then outputs the test result through the state output module;
[0052] Among them, the test case consists of the case number and the device under test scheme, specifically including: the temperature and humidity required for the startup process of the device under test, the temperature and humidity during the operation process, the temperature and humidity during power failure, the normal startup time, the operation time and the carried services.
[0053] Specifically, the test case input module is responsible for presetting a variety of test conditions, which cover various environments and operating scenarios that the device under test may encounter. The test conditions include the device's startup and operation requirements under different temperatures and humidities, as well as its recovery capabilities after power failure. Based on these conditions, the test case input module will configure specific test cases. Each test case consists of a case number and a device under test solution, which describes in detail all the parameters and steps required for the test. For example, a test case may specify that the device under test needs to be started up under specific temperature and humidity conditions and maintain stability when running specific services (such as Internet access). At the same time, the test case will also specify the normal startup time, running time, and specific requirements for the service carried by the device; next, the control module sends control instructions to each test device according to the test case provided by the test case input module. These instructions include a first control instruction to a controllable temperature and humidity chamber to adjust the temperature and humidity of the test environment; a second control instruction to a power failure device to simulate a power failure or power failure; and a third control instruction to a server to perform service interaction and performance testing with the device under test. For example, if the test case requires the startup performance of the test equipment under high temperature and high humidity environment (such as 55℃, 95%RH), the control module will send corresponding instructions to the controllable temperature and humidity chamber to adjust it to the specified temperature and humidity conditions. Then, it communicates with the device under test through the server, triggers its startup process, and monitors the startup time and stability; the control module is also responsible for real-time analysis and judgment of the test results according to the expected state in the test case, monitoring the actual test results, and comparing them with the expected state; the status output module is responsible for presenting the test results in an intuitive way, including test reports, charts or simple pass / fail indications. For example, when it is found that the device under test does not meet the standard in a certain test, the status output module will generate a detailed test report, point out the specific problem, and provide possible improvement suggestions. In this way, the tester can optimize and improve the device under test in a targeted manner based on the output results.
[0054] In summary, the test device achieves comprehensive and accurate testing of the device under test through the close cooperation of the test case input module, control module and status output module. This process not only ensures the accuracy and reliability of the test results, but also provides strong support for subsequent product optimization and improvement.
[0055] As an implementation mode, the control module sends the first control instruction, the second control instruction and the third control instruction according to the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations to control the device under test to perform the test, including:
[0056] The controllable temperature and humidity box controls the temperature and humidity in the box based on the first control instruction;
[0057] The power-off device performs a power-off operation based on the second control instruction to control the switch of the power supply of the device under test;
[0058] The server interacts with the device under test based on the third control instruction, thereby controlling the device under test to sequentially perform PON port online, service interaction and PON flow testing under multiple preset test conditions.
[0059] Specifically, the control module will generate a series of control instructions for the controllable temperature and humidity chamber, the power-off device and the server according to the pre-designed test cases to ensure the stability of the test environment and the smooth progress of the test process. For the controllable temperature and humidity chamber, the first control instruction sent by the control module contains specific temperature and humidity setting values. For example, if the test case requires simulating a high temperature and high humidity environment to test the tolerance of the device under test, the control module will send corresponding instructions to let the controllable temperature and humidity chamber adjust the temperature in the chamber to 40 degrees Celsius and the humidity to 80% RH to evaluate its stability and reliability under high temperature and high humidity conditions; after receiving the second control instruction sent by the control module, the power-off device will perform the power-off operation according to the instruction. This operation is usually used to test the performance of the device under test in the event of a sudden power outage, such as data protection, recovery capability, etc. For example, the control module may instruct the power-off device to cut off the power supply of the device under test at a specific time point to simulate a power grid failure or an accidental power outage by the user. By observing the reaction and recovery process of the device under test after power failure, the performance and stability of its power management system can be evaluated; after receiving the third control instruction sent by the control module, the server will interact with the device under test and control it to perform PON port online, service interaction and PON flow test in sequence under multiple preset test conditions. The PON (Passive Optical Network) port online test is mainly to check whether the device under test can be successfully connected to the optical fiber network; the service interaction test simulates the actual business scenario to verify the performance of the device under test in processing data, transmitting information, etc.; and the PON flow test sends a large amount of data streams to test the key indicators of the device under test, such as bandwidth, delay and throughput. .
[0060] In summary, the control module sends precise control instructions to coordinate components such as the controllable temperature and humidity chamber, the power-off device, and the server to complete the comprehensive test of the device under test.
[0061] As an implementation mode, judging whether the state of the device under test meets the expected state of the test case according to the test result includes: during the startup of the device under test, the test device judges whether the device under test is started normally by pinging the gateway address of the device under test;
[0062] In the PON port online test, the server obtains logs through the OLT to determine whether the terminal device is online;
[0063] In the service interaction test, the server connects to the device under test via a network cable and pings each service gateway address to determine whether the service interaction is normal;
[0064] In the PON flow test, the server performs bidirectional packet transmission according to a preset number of packets to determine whether a packet loss rate is less than a preset threshold.
[0065] Specifically, during the startup process of the optical modem, the test device determines whether the optical modem is started normally by pinging the gateway address of the device under test. Ping is a network test command used to test the connectivity of the network between hosts. If the test device can successfully ping the gateway address of the optical modem and receive a response, it means that the optical modem has been successfully started and its network function has initially returned to normal; in the PON port online test, the server will obtain log files through the OLT (Optical Line Terminal). These log files record the relevant information of the optical modem going online. If a record is found indicating that the optical modem has been successfully online, then it can be confirmed that the PON port of the optical modem has been successfully online and can communicate normally with the network; in the service interaction test, the server will directly connect to the optical modem through a network cable and try to ping each service gateway address. These service gateway addresses represent different business services that the optical modem needs to connect and interact with. If the server can successfully ping these addresses, and the optical modem can respond to the server's request, it means that the optical modem is normal in terms of business interaction and can handle various business requests; in the PON streaming test, the server will send a series of data packets to the optical modem according to the preset number of packets, and receive the data packets returned by the optical modem at the same time. The system will calculate the packet loss rate of these data packets, that is, the proportion of the sent data packets that failed to successfully arrive or be correctly received by the optical modem. If the packet loss rate is less than the preset threshold (such as 1%), it means that the optical modem has good data transmission capabilities and can meet the needs of actual applications.
[0066] Through such a testing process, the performance of the optical modem in different testing links can be comprehensively and accurately evaluated, providing strong data support for product optimization and improvement.
[0067] As an implementation method, when at least one of multiple test results fails, that is, the state of the tested device does not meet the expected state of the test case, the test device automatically protects the fault site, stores relevant work logs, and outputs the test results at the same time.
[0068] Specifically, when the test device detects that a test item has failed, it will automatically protect the fault site and immediately stop all operations that may change the current device status to ensure that the fault site will not be further damaged or interfered with, thereby retaining the most original fault information for subsequent detailed troubleshooting and analysis.
[0069] At the same time, the system will store relevant work logs. These logs record all key information during the test process, including the configuration of test items, the execution of test steps, real-time monitoring data of equipment status, etc. By consulting these logs, testers can quickly locate the specific link where the fault occurs, understand the changes in equipment status before and after the fault, and provide strong data support for fault analysis. In addition, the test device will promptly feedback the test results to the status output module for display and recording. The status output module is an important interface for interaction between the system and the user. It can display the test results in an intuitive way, such as through screen display, printing reports or sending emails. Testers can quickly understand which test items have failed and the specific reasons for failure through the status output module. This not only helps testers to find problems in a timely manner, but also provides clear guidance for subsequent product improvements.
[0070] Suppose that in the PON traffic test, the test device detects that the packet loss rate of the optical modem exceeds the preset threshold, that is, the state of the device under test does not meet the expected state of the test case. At this time, the traffic test will be automatically stopped to protect the fault site and ensure that the state of the optical modem will not be further changed. At the same time, the system will store relevant test logs, including the configuration information of the traffic test, the real-time data packet sending and receiving status, the specific value of the packet loss rate, etc. Finally, the test device will feed back the test results to the status output module and generate a detailed test report. Testers can quickly locate the problem by consulting the reports and logs, and then make targeted improvements and optimizations to the optical modem.
[0071] As an implementation method, when the state of the device under test meets the expected state of the test case, it is further determined whether the preset test case has been executed. If not, the remaining test cases are continued to be executed. If all preset test cases are executed, the test results are output and the test is ended.
[0072] Specifically, the control module will check the executed test items one by one according to the preset test case list. If it is found that there are test cases that have not been executed, the system will continue to execute the remaining test cases in sequence according to the established test process. When the control module confirms that all test cases have been executed, it will summarize the final test results and send them to the status output module, which is responsible for displaying the test results in an intuitive and easy-to-understand way.
[0073] Suppose there is an optical modem test plan that contains multiple test cases, including startup test, PON port online test, service interaction test and PON flow test. During the test, the control module will monitor the execution of each test case in real time. When a test case (such as the PON port online test) passes, the test device will check whether there are other test cases that have not been executed. If there are (for example, the service interaction test has not yet been carried out), the system will continue to execute the remaining test cases. When all test cases have been executed and passed the verification of the control module, the system will generate a detailed test report and display it to the tester through the status output module. Based on this report, the tester can conduct a comprehensive evaluation of the performance of the optical modem to ensure that the product meets the design requirements.
[0074] As an implementation mode, the test case input module also supports simultaneous presetting of multiple combination schemes for serial testing.
[0075] Specifically, the test case input module can not only preset a single test case, but also preset multiple different test combinations at the same time. These combinations can be permutations and combinations of different test items, or multiple executions of the same test item under different conditions. Through such settings, testers can simulate actual usage scenarios more flexibly and conduct comprehensive tests on optical modems.
[0076] In serial testing, these preset combinations are executed in a predetermined order. The system automatically calls the corresponding test case according to the settings in the test case input module and performs the test according to the preset steps. After each test combination is executed, the system records the test results and continues to execute the next solution until all preset combinations are executed.
[0077] Assuming that the tester wants to test the performance of the optical modem under different network environments, he can preset a combination of multiple network environments in the test case input module, such as Solution 1: the optical modem is connected to a high-speed network; Solution 2: the optical modem is connected to a low-speed network; Solution 3: the optical modem works under an unstable network. Then, you can select the serial test mode to let the system execute these solutions in sequence according to the preset order. During the test, the system will automatically adjust the network environment, perform performance tests on the optical modem, and record the test results under each solution. In this way, the tester can comprehensively evaluate the performance of the optical modem in different network environments by comparing the test results under different solutions.
[0078] The test case input module supports the feature of simultaneously presetting multiple combination schemes for serial testing, providing testers with a more flexible and comprehensive testing method, which helps to more accurately evaluate the performance and stability of the optical modem.
[0079] As another embodiment of the present application, Figure 3 As shown, an optical modem power failure automatic test method is characterized in that the method is applied to an optical modem power failure automatic test system, comprising:
[0080] Configure test cases based on multiple preset test conditions;
[0081] Sending the first control instruction, the second control instruction and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to perform the test;
[0082] Determine whether the state of the device under test meets the expected state of the test case according to the test result;
[0083] When the state of the device under test does not meet the expected state of the test case, the test result is output.
[0084] As an implementation method, it also includes:
[0085] When the state of the device under test meets the expected state of the test case, if the test case has not been executed, it returns to the sending of the first control instruction, the second control instruction and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to iteratively execute the test steps until all test cases are executed, output the test results and end the test.
[0086] Specifically, in the optical modem power-off automated test process, when the state of the device under test (i.e., the optical modem) meets the expected state of the current test case, the system will check whether there are any unexecuted test cases. If the system finds that there are any unexecuted test cases, it will automatically return to the previous step, i.e., "sending the first control instruction, the second control instruction, and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device, and the server to perform corresponding operations to control the device under test to perform the test." By iteratively executing this step, the system can ensure that all test cases are executed. In each iteration, the system will adjust the test environment (such as the conditions of the temperature and humidity chamber), simulate power failures (through the power-off device), and interact with the optical modem (through the server) according to the current test case. Then, the system will check the state of the optical modem again to verify whether it meets the expectations of the test case. This process will continue until all test cases are executed. The execution of each test case and the verification of the results constitute an iterative cycle in the test process. The system will end the test only when all test cases are successfully executed and the state of the optical modem meets expectations in each test case.
[0087] Suppose the test plan contains three test cases, namely testing the startup performance of the optical modem at high temperature, testing the recovery ability of the optical modem after a power failure, and testing the data transmission stability of the optical modem under specific network conditions. After the first test case is executed, if the status of the optical modem is as expected (that is, it starts successfully), the system will check whether there are any unexecuted test cases. If it is found that the second and third test cases are not executed, the system will return to the step of sending control instructions and execute these two test cases in sequence. After each test case is executed, the system will check the status of the optical modem again and record the test results. The test will only end when all three test cases are executed and the performance of the optical modem in each test case is as expected.
[0088] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, the above embodiments are only preferred embodiments of the present invention, and the embodiments of the present invention are not limited to the above embodiments. It should be understood that those skilled in the art can design many other modifications and embodiments, which will fall within the scope and spirit of the principles disclosed in this application.
Claims
1. An optical modem power failure automatic test system, characterized in that: include: A testing device, a power-off device, a controllable temperature and humidity chamber, a device under test, and a server, wherein the testing device is communicatively connected with the power-off device, the controllable temperature and humidity chamber, the device under test, and the server, the power-off device and the device under test are electrically connected, and the device under test runs in the controllable temperature and humidity chamber; The test device is used to configure a variety of test cases, and control the power-off device, the controllable temperature and humidity chamber and the server to work respectively according to the test cases, so as to control the device under test to perform the test; The controllable temperature and humidity box is used to control the temperature and humidity in the box according to the first control instruction sent by the testing device; The power-off device is used to control the switch of the power supply of the device under test according to the second control instruction sent by the test device; The server is used to interact with the device under test according to the third control instruction sent by the test apparatus, so as to realize the PON port online of the device under test, service interaction and PON flow.
2. The optical modem power failure automatic test system according to claim 1 is characterized in that: The test device comprises a test case input module, a control module and a state output module; During the test process, the test case input module configures the test case based on a plurality of preset test conditions, and the control module sends the first control instruction, the second control instruction and the third control instruction according to the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to perform the test, and judges whether the state of the device under test meets the expected state of the test case according to the test result, and then outputs the test result through the state output module; Among them, the test case consists of the case number and the device under test scheme, specifically including: the temperature and humidity required for the startup process of the device under test, the temperature and humidity during the operation process, the temperature and humidity during power failure, the normal startup time, the operation time and the carried services.
3. The optical modem power failure automatic test system according to claim 2 is characterized in that: The control module sends the first control instruction, the second control instruction and the third control instruction according to the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations to control the device under test to perform the test, including: The controllable temperature and humidity box controls the temperature and humidity in the box based on the first control instruction; The power-off device performs a power-off operation based on the second control instruction to control the switch of the power supply of the device under test; The server interacts with the device under test based on the third control instruction, thereby controlling the device under test to sequentially perform PON port online, service interaction and PON flow testing under multiple preset test conditions.
4. The optical modem power failure automatic test system according to claim 2 is characterized in that: The determining, according to the test result, whether the state of the device under test meets the expected state of the test case comprises: during the startup of the device under test, the testing device determines whether the device under test is started normally by pinging the gateway address of the device under test; In the PON port online test, the server obtains logs through the OLT to determine whether the terminal device is online; In the service interaction test, the server connects to the device under test via a network cable and pings each service gateway address to determine whether the service interaction is normal; In the PON flow test, the server performs bidirectional packet transmission according to a preset number of packets to determine whether a packet loss rate is less than a preset threshold.
5. The optical modem power failure automatic test system according to claim 4 is characterized in that: When at least one of the multiple test results fails, that is, the state of the tested device does not meet the expected state of the test case, the test device automatically protects the fault site, stores relevant work logs, and outputs the test results at the same time.
6. The optical modem power failure automatic test system according to claim 5, characterized in that: When the state of the device under test meets the expected state of the test case, it is further determined whether the preset test case has been executed. If not, the remaining test cases are continued to be executed. If all preset test cases are executed, the test results are output and the test is ended.
7. The optical modem power failure automatic test system according to claim 2, characterized in that: The test case input module also supports simultaneous presetting of multiple combination schemes for serial testing.
8. An optical modem power-off automatic testing method, characterized in that: The method is applied to the optical modem power-off automatic test system according to any one of claims 1 to 7, comprising: Configure test cases based on multiple preset test conditions; Sending the first control instruction, the second control instruction and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to perform the test; Determine whether the state of the device under test meets the expected state of the test case according to the test result; When the state of the device under test does not meet the expected state of the test case, the test result is output.
9. The optical modem power failure automatic testing method according to claim 8 is characterized in that: Also includes: When the state of the device under test meets the expected state of the test case, if the test case has not been executed, it returns to the sending of the first control instruction, the second control instruction and the third control instruction based on the test case to control the controllable temperature and humidity chamber, the power-off device and the server to perform corresponding operations, so as to control the device under test to iteratively execute the test steps until all test cases are executed, output the test results and end the test.
Citation Information
Cited By
Fusion terminal test system and test method thereof
CN120811932A
Optical modem authentication method and system based on OLT equipment
CN121013015A
An optical modem authentication method and system based on OLT devices
CN121013015B