Automated testing method and system for communication module supporting custom script

By building custom and basic script libraries, using standardized interfaces to connect hardware and software, and setting up a test environment, we solved the problem that existing communication module testing methods cannot meet the needs of different modules, and achieved flexible, accurate and efficient automated testing.

CN120803822APending Publication Date: 2025-10-17SHENZHEN FRIENDCOM TECH DEV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510825276.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

The existing communication module testing method cannot meet the testing requirements of different communication modules. There are problems such as complex test items being difficult to complete, low efficiency, and unintuitive results.

Method used

Provided is a communication module automated testing method and system that supports custom scripts. By building a test script framework, including a custom script library and a basic script library, and using a standardized script interface to connect test hardware and software, a test environment is established for automated testing.

Benefits of technology

It realizes flexible test script combination, adapts to different test scenarios, improves the accuracy and comprehensiveness of the test, simplifies the operation process, and improves the test efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803822A_ABST
    Figure CN120803822A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for automatically testing a communication module supporting a custom script. The method comprises the following steps: constructing a test script framework; combining the custom scripts and / or the basic scripts in the test script framework according to a test condition to obtain a test script group; each script in the test script group is connected with test hardware and test software through the standardized script interface, and a test environment is built and formed; and testing the communication module in the test environment to obtain a test result. According to the method, the scripts can be self-defined according to actual test conditions, high flexibility is achieved, and meanwhile, the scripts can be flexibly selected and combined according to actual test requirements so as to adapt to different test scenes. Due to the fact that the method supports the user-defined scripts, a tester can compile the user-defined scripts and combine the test script groups by himself according to the characteristics and requirements of different communication modules, and therefore the accuracy and comprehensiveness of testing are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication module testing, and in particular to a communication module automatic testing method and system supporting custom scripts. BACKGROUND

[0002] A communication module is a core hardware component or integrated circuit integrating communication functions, used to realize data transmission and communication connection between devices. Common communication modules include Bluetooth modules, Wi-Fi modules, 4G / 5G communication modules, etc. In order to ensure that the communication module can work normally, a series of testing work needs to be carried out on the communication module.

[0003] At present, the testing content of the communication module usually includes functional testing, performance testing, compatibility testing and reliability testing. Through the above testing, the quality and performance of the communication module can be ensured to meet the standard and meet the needs of actual application.

[0004] The existing testing process for the communication module is preset, and manual operation is required for multiple testing items in the testing process. The above testing method has the following problems: first, some complex testing items are difficult to complete effectively through manual intervention; second, the manual testing process is tedious and inefficient; third, the results of manual testing are not intuitive and are difficult to quickly and accurately evaluate, which affects the testing efficiency and testing accuracy. In addition, since the testing process of the communication module is preset and does not support user-defined testing items, this further affects the testing efficiency. In summary, the existing communication module testing method cannot meet the actual testing needs of the communication module.

[0005] In the process of implementing the present application, the inventors have found that the existing technology at least has the following problems:

[0006] The testing method used when testing the communication module cannot meet the testing needs of different communication modules. SUMMARY

[0007] The present application aims to provide a communication module automatic testing method and system supporting custom scripts, to solve the technical problem that the testing method used when testing the communication module in the prior art cannot meet the testing needs of different communication modules.

[0008] The preferred technical solutions in the many technical solutions provided by the present application can produce the many technical effects described below.

[0009] To achieve the above-mentioned purpose, the present application provides the following technical solutions:

[0010] The present application provides a communication module automatic testing method supporting custom scripts, which comprises:

[0011] Constructing a test script framework; wherein the test script framework includes custom scripts in a custom script library and basic scripts in a basic script library, and both the custom scripts and the basic scripts provide a standardized script interface;

[0012] Combining the custom scripts and / or basic scripts in the test script framework according to the test situation to obtain a test script group;

[0013] Connecting each script in the test script group with test hardware and test software through the standardized script interface to build a test environment;

[0014] The communication module is tested in the test environment to obtain a test result.

[0015] Optionally, the building of a test script framework includes:

[0016] Writing a custom script in the script editor according to the test scenario requirements to obtain the custom script library;

[0017] Adding the basic script to the basic script library to obtain a basic script library; wherein the basic script library includes an atomic script module composed of a single basic script and a compound script module composed of multiple basic scripts;

[0018] The custom script library and the basic script library are combined to obtain a test script framework.

[0019] Optionally, the basic script includes a signal attenuation test script, a throughput test script, and a log parsing script.

[0020] Optionally, when combining the custom scripts and / or basic scripts in the test script framework according to the test situation, the custom scripts and / or basic scripts are combined using a graphical script combination interface to obtain a test script group.

[0021] Optionally, the testing the communication module in the test environment to obtain a test result includes:

[0022] Utilizing the test software to parse each of the scripts in the test script group, and converting the code in the script into hardware control instructions and data acquisition instructions;

[0023] The communication module is tested and data collected using the test hardware and the test software according to the hardware control instructions and the data collection instructions to obtain a test result.

[0024] Optionally, the test hardware and the test software perform testing and data collection on the communication module according to the hardware control instruction and the data collection instruction, and obtain a test result, comprising:

[0025] The script execution engine module calls the test hardware and the test software to perform a test operation on the communication module in the test environment according to the hardware control instruction and the data collection instruction;

[0026] The test hardware performs testing on the communication module according to the hardware control instruction;

[0027] The data monitoring module in the test software collects and monitors data tested in the test environment, and obtains test data;

[0028] The data analysis module in the test software analyzes and judges the test data, and obtains a test result.

[0029] Optionally, the test software comprises a script parser, and the test software parses each script in the test script group, comprising:

[0030] The script parser parses each script in the test script group.

[0031] Optionally, after testing the communication module in the test environment and obtaining a test result, the method further comprises:

[0032] The test result is integrated to generate a visual report.

[0033] In a second aspect, the application further provides a communication module automatic testing system supporting a custom script, which is used to execute the communication module automatic testing method supporting the custom script, and comprises a host computer, test hardware and test software.

[0034] The host computer is used to build a test script framework, wherein the test script framework comprises a custom script in a custom script library and a basic script in a basic script library, and the custom script and the basic script both provide a standardized script interface.

[0035] The test software is connected with the host computer and the test hardware, respectively, and the test software is connected with the scripts in the test script group through the standardized script interface, and is used to parse the scripts in the test script group to obtain hardware control instructions and data collection instructions.

[0036] The test hardware is connected with scripts in a script group through the standardized script interface; and the test hardware is configured to receive the hardware control instruction and test the communication module.

[0037] The test software comprises a data monitoring module and a data analysis module, which are configured to monitor and analyze data obtained by the test hardware during testing, and obtain a test result.

[0038] Optionally, the test hardware comprises a shielding box, a remotely controllable attenuator and a test fixture.

[0039] The shielding box is configured to provide an electromagnetic shielding environment for the communication module.

[0040] The remotely controllable attenuator is configured to receive the hardware control instruction, and adjust the signal strength during testing of the communication module according to the hardware control instruction, so as to simulate different communication environments.

[0041] The test fixture is located in the shielding box and is configured to fix the communication module.

[0042] The above technical solutions of the present application have the following advantages or beneficial effects:

[0043] The method disclosed in the present application can customize scripts according to actual testing conditions, has strong flexibility, and can also flexibly select and combine scripts according to actual testing requirements, so as to adapt to different testing scenarios. Since the present application supports customizing scripts, testers can write custom scripts and combine test script groups according to the characteristics and requirements of different communication modules, so as to ensure the accuracy and comprehensiveness of testing. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings. The drawings are as follows:

[0045] Figure 1 is a flow diagram of a communication module automatic testing method supporting customizing scripts according to an embodiment of the present application;

[0046] Figure 2 is a structural diagram of a communication module automatic testing system supporting customizing scripts according to an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the objects, technical solutions and advantages of the present application clearer, the various exemplary embodiments to be described below will be described with reference to the corresponding drawings, which form part of the exemplary embodiments, and in which various exemplary embodiments that can be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. It should be understood that they are only examples of processes, methods and apparatuses, etc. consistent with some aspects of the present disclosure as detailed in the appended claims, and other embodiments can be used or modifications can be made to the embodiments listed herein without departing from the scope and spirit of the present application.

[0048] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse" and the like indicate the orientation or positional relationship based on the drawings shown, only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second" and the like are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "a plurality of" means two or more. The terms "connected", "connected" should be broadly understood, for example, it can be fixedly connected, detachably connected, integrally connected, mechanically connected, electrically connected, communicatively connected, directly connected, indirectly connected through an intermediate medium, it can be the internal communication of two elements or the interaction relationship of two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0049] In order to illustrate the technical solutions described in the present application, the following will be described by specific embodiments, only showing the parts related to the embodiments of the present application.

[0050] Embodiment one:

[0051] As Figure 1 shown, the present application provides a communication module automatic test method supporting custom script, the method comprises:

[0052] S10, constructing a test script framework; wherein the test script framework comprises custom scripts in a custom script library and basic scripts in a basic script library, and the custom scripts and the basic scripts both provide standardized script interfaces;

[0053] S20, combining the custom scripts and / or the basic scripts in the test script framework according to the test situation to obtain a test script group;

[0054] S30, connect each script in the test script group with the test hardware and the test software through the standardized script interface, and build a test environment;

[0055] S40, test the communication module in the test environment to obtain a test result.

[0056] Specifically, the method disclosed in the embodiment comprises: constructing a test script framework, wherein the test script framework comprises a custom script in a custom script library and a basic script in a basic script library. The custom script is a script written according to specific test requirements and can be customized according to actual test conditions to meet special and personalized test scenarios. Then, the custom script and / or the basic script in the test script framework are combined according to the test conditions to obtain a test script group. Subsequently, only the scripts in the test script group are used to test the communication module, which has strong flexibility.

[0057] Subsequently, each script in the test script group is connected with the test hardware and the test software through the standardized script interface to build a test environment. The scripts in the test script group are connected with the test hardware and the test software to build a test environment, which provides a stable and controllable test environment for the test of the communication module. Finally, the communication module is placed in the built test environment, and the communication module is tested in the test environment to obtain a test result.

[0058] The method disclosed in the embodiment can customize scripts according to actual test conditions, has strong flexibility, and can also flexibly select and combine scripts according to actual test requirements to adapt to different test scenarios. Since the present application supports custom scripts, test personnel can write custom scripts and combine test script groups according to the characteristics and requirements of different communication modules, thereby ensuring the accuracy and comprehensiveness of the test.

[0059] In the following, the method for automatically testing the communication module supporting the custom script disclosed in the embodiment will be described in detail. Figure 1 The method for automatically testing the communication module supporting the custom script disclosed in the embodiment will be described in detail.

[0060] Firstly, step S10 is executed to construct a test script framework; wherein the test script framework comprises a custom script in a custom script library and a basic script in a basic script library, and the custom script and the basic script both provide a standardized script interface.

[0061] Specifically, the step of constructing the test script framework comprises: writing a custom script in the script editor according to the test scenario requirements to obtain a custom script library; adding a basic script to the basic script library to obtain a basic script library; wherein the basic script library comprises an atomic script module composed of a single basic script and a composite script module composed of multiple basic scripts; combining the custom script library and the basic script library to obtain the test script framework.

[0062] As described above, the test script framework includes two parts, the first part is the custom script in the custom script library, and the second part is the basic script in the basic script library.

[0063] For the custom script in the custom script library, the custom script is a script written according to specific test requirements, which can be customized in the script editor according to the actual test situation, and the script can be flexibly modified and expanded to meet special and personalized test scenarios. The introduction of custom test scripts enhances the flexibility and scalability of testing.

[0064] It should be noted that the custom custom script has the following characteristics.

[0065] The custom script in the custom script library supports general programming languages such as Python and C# to implement complex test logic (such as protocol stack layering test, traffic spike injection, etc.). In this embodiment, the tester can choose the appropriate language to write the script according to the test requirements and personal preferences, so as to more flexibly cope with various test scenarios.

[0066] The custom script is not limited to implementing basic test logic such as loop test, exception condition test, etc., but can also deeply customize each detail in the test process. The tester can design targeted test cases according to the specific characteristics of the communication module being tested, such as simulating data transmission in a specific network environment, verifying the performance of the module under different loads, etc., from the custom script. With the ability of deep customization, the test is more close to the actual application scenario, improving the pertinence and effectiveness of the test.

[0067] Furthermore, in order to further improve the test efficiency, the custom test script supports reusability and modular design. The tester can encapsulate common test logic into functions or modules for repeated use in multiple test scripts, avoiding the work of repeatedly writing the same code. At the same time, modular design also makes the test script more easily maintained and updated, when the function of the communication module being tested changes, only the corresponding module needs to be modified, without the need to make large-scale adjustments to the entire test script.

[0068] The basic script library includes a plurality of basic scripts. The basic scripts are added to the basic script library to obtain the basic script library. According to the basic scripts in the basic script library, the individual basic scripts form atomic script modules. The plurality of basic scripts are combined to obtain a composite script module. The basic scripts in the basic script library are universal and have basic functions, and can be reused in a plurality of different test scenarios. The basic scripts include a signal attenuation test script, a throughput test script, and a log analysis script. Therefore, the atomic script modules can be divided into a signal attenuation test module, a throughput test module, and a log analysis module according to the different basic scripts. The composite script module can arrange and combine the basic scripts according to common test conditions, which is convenient for operation and improves test efficiency.

[0069] However, whether the custom scripts in the custom script library or the basic scripts in the basic script library provide a standardized script interface (API) with a unified calling manner and parameter setting, which can call test hardware (such as an attenuator, a test fixture) and test software to perform corresponding work, facilitating subsequent combination and use.

[0070] It should be noted that in the process of constructing the test script framework, the key is to ensure the compatibility and scalability of the custom scripts and the basic scripts. The custom script library allows test personnel to write scripts with specific functions according to specific test requirements. The scripts can cover various test scenarios such as simple signal transmission and complex communication protocol (such as TSN time-sensitive network and satellite communication protocol) simulation. The basic script library provides a series of predefined and universal test scripts, such as initialization scripts, environment configuration scripts, and result analysis scripts, which provide a solid foundation for the test process.

[0071] Through the provided standardized script interface, whether the custom scripts or the basic scripts can interact with the test hardware and the test software in a unified manner, which not only simplifies the test process, but also greatly improves the test efficiency and accuracy. In addition, the design of the test script framework also considers the reusability and modularity of the scripts, so that test personnel can easily combine and adjust the test scripts to adapt to different test requirements.

[0072] In addition, the scripts in the test script framework also support version management. The script version management system manages the versions of the scripts written and combined by the user, which facilitates the iteration and optimization of the scripts by the test personnel, facilitates subsequent maintenance and updates, and ensures the continuity and efficiency of the test work.

[0073] Then, step S20 is performed to combine the custom scripts and / or the basic scripts in the test script framework according to the test conditions to obtain a test script group.

[0074] Specifically, the custom script is a targeted and self-defined script, and the basic script is a general and reusable script. In the actual test process, the custom script and / or the basic script in the test script framework are combined according to the actual situation of the communication module to be tested, and finally a test script set is obtained. The scripts in the test script set are used to comprehensively and accurately test the communication module to be tested to meet the needs of different test scenarios.

[0075] It should be noted that when the custom script and / or the basic script in the test script framework are combined according to the test situation, the custom script and / or the basic script are combined using the graphical script combination interface to obtain the test script set. Specifically, the tester can drag the corresponding script in the graphical script combination interface, and drag and combine multiple scripts to form a test script set. Using the graphical script combination interface to combine scripts simplifies the test operation, improves the automation of the test, and reduces the possibility of human error.

[0076] Subsequently, step S30 is performed, and each script in the test script set is connected with the test hardware and the test software through the standardized script interface to build a test environment.

[0077] Specifically, each script in the test script set is connected with the actual test hardware (such as attenuator adjustment and fixture reset) and the test software by using the standardized script interface provided in each script. Through the above connection, the script, the test hardware and the test software are integrated together to build a complete test environment, which prepares for the subsequent test of the communication module.

[0078] In this embodiment, the test environment is a stable and controllable test scenario. The test environment simulates various situations that the communication module may encounter in actual application, ensuring the comprehensiveness and accuracy of the test. In the test environment, the test script set automatically executes according to the preset test process, and cooperates with the test hardware and the test software to verify each function of the communication module one by one. During the test, the test hardware is used to provide various test data for the communication module, and the test software collects the performance data of the communication module tested by the test hardware in real time. The construction of the test environment improves the efficiency and accuracy of the communication module test, and ensures the stability and reliability of the communication module in the test process.

[0079] Finally, step S40 is performed, and the communication module is tested in the test environment to obtain the test result.

[0080] Specifically, the step S40 comprises the following steps: using the test software to analyze each script in the test script group, and converting the code in the script into hardware control instructions and data acquisition instructions; using the test hardware and the test software to test and collect data of the communication module according to the hardware control instructions and the data acquisition instructions, and obtaining the test result.

[0081] Firstly, the test software is used to analyze each script in the test script group, and convert the code in the script into hardware control instructions and data acquisition instructions. Specifically, a script parser is set in the test software, which is used to analyze the script code in the script in the test script group in real time, and convert the script code into hardware control instructions and data acquisition instructions, so as to facilitate the components in the test hardware and the test software to execute corresponding instructions.

[0082] Then, the test hardware and the test software are used to test and collect data of the communication module according to the hardware control instructions and the data acquisition instructions, and obtain the test result. Specifically, it comprises the following steps: using the script execution engine module to call the test hardware and the test software to execute test operations on the communication module in the test environment according to the hardware control instructions and the data acquisition instructions; using the test hardware to test the communication module according to the hardware control instructions; using the data monitoring module in the test software to collect and monitor the data tested in the test environment, and obtain the test data; using the data analysis module in the test software to analyze and judge the test data, and obtain the test result.

[0083] Among them, the script execution engine module is a part of the test software, which has a driving effect and can call corresponding modules in the test hardware and the test software to execute test operations according to the hardware control instructions and the data acquisition instructions analyzed by the script parser.

[0084] Specifically, the script execution engine module can call the test hardware to test the communication module according to the hardware control instructions. The following will be described in detail and exemplified.

[0085] According to the hardware control instructions, the test fixture is connected with the communication module, which is convenient for subsequent testing. According to the hardware control instructions, the remote controllable attenuator in the test hardware is called to adjust the signal strength, and the communication module is tested. For example: 100,000 UDP data packets are sent cyclically under the signal strength of-80dBm to verify the packet loss rate.

[0086] More specifically, the script execution engine module can call corresponding modules in the test software to collect data according to the data acquisition instructions. The following will be described in detail and exemplified.

[0087] The data monitoring module in the test software collects and monitors the data tested in the test environment to obtain test data. The data analysis module in the test software analyzes and judges the test data to obtain test results.

[0088] The data monitoring module in the test software is responsible for collecting and monitoring the data generated in the test process in the test environment, and can record various data of the communication module in the test process in real time, such as signal strength, transmission rate, error rate, etc. The data analysis module in the test software can analyze and judge the test data collected by the data monitoring module, can evaluate the test data according to the preset standard and algorithm, judge whether the performance of the communication module meets the requirements, and thus obtain the final test results. For example, whether the communication module works normally, whether there is a fault, whether the performance meets the standard, etc., to improve the test efficiency and accuracy.

[0089] As an optional implementation, after the communication module is tested in the test environment and the test results are obtained, the method further includes: integrating the test results to generate a visual report.

[0090] Specifically, after the test work on the communication module is carried out in the test environment built, the test results are integrated after the test is completed and the test results are obtained. Finally, the test data and conditions obtained in different aspects and different stages can be summarized, sorted out and analyzed. Finally, a visual report (including a packet loss rate curve and a throughput column chart) is generated based on the integrated test results, so that the test results are displayed in the form of intuitive charts, graphs, images, etc. The test personnel can more clearly and quickly understand the test situation of the communication module. The performance of the communication module under different test conditions can be quickly grasped by viewing the visual icons, potential problems or bottlenecks can be identified, and the test efficiency can be improved.

[0091] The embodiment is only a specific example, and does not mean that the present application is only one implementation.

[0092] Embodiment two:

[0093] As Figure 2As shown, the second embodiment of the present invention provides a communication module automation testing system that supports custom scripts, which is used to execute the communication module automation testing method that supports custom scripts described in Example 1. The system includes a host computer, test hardware and test software. The host computer, test hardware and test software are connected to build a test environment to test the communication module; the host computer is used to build a test script framework; wherein the test script framework includes custom scripts in the custom script library and basic scripts in the basic script library, and both the custom scripts and the basic scripts provide a standardized script interface; the test software is connected to the host computer and the test hardware respectively, and the test software is connected to the scripts in the test script group through the standardized script interface, and is used to parse the scripts in the test script group to obtain hardware control instructions and data acquisition instructions; the test hardware is connected to the scripts in the test script group through the standardized script interface; the test hardware is used to receive hardware control instructions to test the communication module; the test software includes a data monitoring module and a data analysis module, and the data monitoring module and the data analysis module are used to monitor and analyze the data obtained by the test hardware during the test to obtain test results.

[0094] Specifically, the system includes a host computer, test hardware and test software. The host computer, test hardware and test software are interconnected to jointly build a test environment to test the communication module.

[0095] The host computer is primarily responsible for building the test script framework. This framework integrates custom scripts from the custom script library and basic scripts from the basic script library. Both scripts provide standardized script interfaces for easy system integration and invocation.

[0096] The custom scripts in the custom script library are user-written scripts based on specific test requirements and can be customized according to specific test scenarios to meet personalized test needs. The basic scripts in the basic script library contain general and basic scripts.

[0097] In this embodiment, whether it is a custom script in the custom script library or a basic script in the basic script library, a standardized script interface is provided to facilitate system integration and calling, so that the test script framework can be easily integrated with the test hardware and test software, and it is convenient to call the test hardware and test software, thereby improving the flexibility and scalability of the entire test system.

[0098] The test software also establishes connections with both the host computer and the test hardware. It connects to the scripts in the test script group through a standardized script interface. The script parser in the test software can parse these scripts to generate hardware control instructions and data acquisition instructions.

[0099] The test hardware is also connected to the scripts in the test script group through a standardized script interface. The test hardware should receive hardware control instructions from the test software and test the communication module according to the hardware control instructions.

[0100] The test software also has a data monitoring module and a data analysis module. The data monitoring module and the data analysis module can monitor and analyze the data obtained by the test hardware in real time during the test process, and finally obtain the test results.

[0101] The host computer in the system described in this embodiment is used to build a test script framework. The test hardware and the test software can be connected to the host computer to build a test environment. The test hardware and the test software will also test the communication module according to the scripts in the test script framework, which can ensure the accuracy and comprehensiveness of the test.

[0102] As an optional implementation, the test hardware includes a shielding box, a remotely controllable attenuator, and a test fixture. The shielding box is used to provide an electromagnetic shielding environment for the communication module. The remotely controllable attenuator is used to receive hardware control instructions and adjust the signal strength during the test of the communication module according to the hardware control instructions to simulate different communication environments. The test fixture is located inside the shielding box and is used to fix the communication module.

[0103] Specifically, when testing the performance of the communication module, the configuration of the test hardware is crucial. The test hardware includes a shielding box, a remotely controllable attenuator, and a test fixture.

[0104] The shielding box is used to place the communication module. The shielding box can effectively isolate external electromagnetic interference and provide a pure test environment for the communication module. The shielding box can be made of high-permeability material to ensure that it can shield electromagnetic waves of various frequencies, thereby ensuring the accuracy and reliability of the test data.

[0105] The remotely controllable attenuator is used to receive hardware control instructions parsed by the script parser and change the signal strength by accurately adjusting the attenuation. This adjustment can simulate various communication conditions from close range to long range, so that the performance of the communication module in different environments can be fully tested and evaluated.

[0106] The test fixture is located inside the shielding box. It not only fixes the communication module, but also ensures that the module maintains a stable and accurate position during the test process. The test fixture can ensure that the module is tightly fixed while not hindering the transmission of signals and the access of test equipment, to ensure the stability during the test process.

[0107] The above description is merely that of the preferred embodiments of the present application, and various changes or modifications can be made to these embodiments without departing from the spirit and scope of the present application. In addition, the features and embodiments described can be modified to adapt them to specific situations and materials without departing from the spirit and scope of the present application. Therefore, the present application is not limited to the specific embodiments disclosed herein, but rather covers all embodiments falling within the scope of the claims of the present application.

Claims

1. A communication module automated testing method supporting custom scripts, characterized in that: The method comprises: Constructing a test script framework; wherein the test script framework includes custom scripts in a custom script library and basic scripts in a basic script library, and both the custom scripts and the basic scripts provide a standardized script interface; Combining the custom scripts and / or basic scripts in the test script framework according to the test situation to obtain a test script group; Connecting each script in the test script group with test hardware and test software through the standardized script interface to build a test environment; The communication module is tested in the test environment to obtain a test result.

2. The communication module automated testing method supporting custom scripts according to claim 1, characterized in that: The test script framework is constructed, including: Writing a custom script in the script editor according to the test scenario requirements to obtain the custom script library; Adding the basic script to the basic script library to obtain a basic script library; wherein the basic script library includes an atomic script module composed of a single basic script and a compound script module composed of multiple basic scripts; The custom script library and the basic script library are combined to obtain a test script framework.

3. The communication module automated testing method supporting custom scripts according to claim 2, characterized in that: The basic scripts include a signal attenuation test script, a throughput test script, and a log parsing script.

4. The communication module automated testing method supporting custom scripts according to claim 1, characterized in that: When combining the custom scripts and / or basic scripts in the test script framework according to the test situation, the custom scripts and / or basic scripts are combined using a graphical script combination interface to obtain a test script group.

5. The communication module automated testing method supporting custom scripts according to claim 1, characterized in that: The testing of the communication module in the test environment to obtain a test result includes: Utilizing the test software to parse each of the scripts in the test script group, and converting the code in the script into hardware control instructions and data acquisition instructions; The communication module is tested and data collected using the test hardware and the test software according to the hardware control instructions and the data collection instructions to obtain a test result.

6. The communication module automated testing method supporting custom scripts according to claim 5, characterized in that: The testing and data collection of the communication module using the testing hardware and the testing software according to the hardware control instructions and the data collection instructions to obtain the test results includes: Using a script execution engine module to call the test hardware and the test software to perform a test operation on the communication module in the test environment according to the hardware control instruction and the data acquisition instruction; Using the test hardware to test the communication module according to the hardware control instruction; Using the data monitoring module in the test software to collect and monitor the data tested in the test environment to obtain test data; The test data is analyzed and judged using the data analysis module in the test software to obtain the test results.

7. The communication module automated testing method supporting custom scripts according to claim 5, characterized in that: The test software includes a script parser, and the parsing process of each script in the test script group using the test software includes: The script parser is used to parse each of the scripts in the test script group.

8. The communication module automated testing method supporting custom scripts according to claim 1, characterized in that: After testing the communication module in the test environment and obtaining the test results, the method further includes: The test results are integrated to generate a visual report.

9. A communication module automated testing system supporting custom scripts, characterized in that: Used to execute the communication module automated testing method supporting custom scripts according to any one of claims 1 to 8, the system comprising a host computer, test hardware, and test software, the host computer, test hardware, and test software being connected to establish a test environment for testing the communication module; The host computer is used to build a test script framework; wherein the test script framework includes custom scripts in a custom script library and basic scripts in a basic script library, and both the custom scripts and the basic scripts provide a standardized script interface; The test software is connected to the host computer and the test hardware respectively, and the test software is connected to the scripts in the test script group through the standardized script interface, and is used to parse the scripts in the test script group to obtain hardware control instructions and data acquisition instructions; The test hardware is connected to the script in the test script group through the standardized script interface; the test hardware is used to receive the hardware control instruction and test the communication module; The test software includes a data monitoring module and a data analysis module, and the data monitoring module and the data analysis module are used to monitor and analyze the data obtained by the test hardware during the test to obtain the test results.

10. The communication module automated testing system supporting custom scripts according to claim 9, characterized in that: The test hardware includes a shielding box, a remote controllable attenuator and a test fixture; The shielding box is used to provide an electromagnetic shielding environment for the communication module; The remote controllable attenuator is used to receive the hardware control instruction and adjust the signal strength of the communication module during testing according to the hardware control instruction to simulate different communication environments; The test fixture is located in the shielding box and is used to fix the communication module.