Automatic testing method and system based on dynamic loading
Through the dynamic loading technology of the dynamic loading automatic test system, the problem of poor test compatibility of multiple batches and small quantities of products is solved, the universality and efficiency of the automated test system is improved, manual participation and error are reduced, and the accuracy of the test results is improved.
Patent Information
- Application Number
- CN202410990470.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
The existing automated testing systems have poor compatibility in multiple batches and small product tests, resulting in low testing efficiency, manual participation leads to large time consumption and many errors, affecting the accuracy of the test results.
Adopt automatic testing system based on dynamic loading, including permission control module, QR code identification module, test case management module, equipment management module, system calibration module and data processing module. Product information is obtained through QR code identification, and test cases are loaded dynamically. The dll library realizes automatic control of the test instrument and generates visual test results.
It improves the versatility of the automated test system, reduces test time, reduces manual errors, and improves test efficiency and effectiveness.
Smart Images

Figure CN118939547A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to an automated testing method and system based on dynamic loading. Background Art
[0002] In the current testing work, manual participation is inevitable. Due to the number of tested products and the cumbersome testing process, time consumption is inevitable, which leads to the tightness of the project time node. And due to the heavy testing work, the manpower and material resources consumed are quite serious. Since manual testing is slow, mistakes are inevitable, leading to inaccurate test results. Due to the reason of multiple batches and small quantities, the test system needs to be modified and debugged for different products, resulting in reduced efficiency. Summary of the invention
[0003] In order to solve the above problems, the present invention provides an automatic testing system based on dynamic loading, including: an authority control module, a two-dimensional code recognition module, a test case management module, a device management module, a system calibration module, and a data processing module; the authority control module is used to perform user authority control, and display different functional modules according to user level authority; the two-dimensional code recognition module is used to scan the two-dimensional code on the product to obtain product information; the test case management module is used to generate a corresponding test case dll library for each order number product; the device management module is used to manage test instruments and matrix switches; the system calibration module is used to compensate for instrument index data according to the collected loss data; the data processing module is used to analyze the test data and generate the analysis results.
[0004] Furthermore, the product information obtained in the two-dimensional code recognition module includes: the product order number and product number.
[0005] Furthermore, the information stored in the test case dll library in the test case management module includes: product channel connection relationship, instrument connection relationship, matrix switch connection relationship, indicator parameters, qualification criteria, product control logic, product test script program, and product control interface.
[0006] Furthermore, the test instruments managed in the equipment management module include: a signal source, a spectrum analyzer, a vector network analyzer, and a noise meter; and the matrix switch is a 32*32 control signal link.
[0007] Furthermore, the data processing module includes a test result display submodule, and the test result display submodule is used to visually display the processing results.
[0008] The automatic testing method based on dynamic loading includes the following steps: S1. Scan the QR code on the product to obtain product information; S2. Search the corresponding test case dll library based on the obtained product information; S3. Dynamically load the product control interface and product control interface in the dll library; S4. Perform control test on the corresponding product according to the obtained interface and interface; S5. Obtain product control information and produce test results.
[0009] The present invention provides an automatic testing method and system based on dynamic loading, which has the following beneficial effects: The present invention solves the compatibility of the automated testing system with multiple batches and small quantities by dynamically loading product control, thereby improving the versatility of the automated testing system; automated testing reduces the time consumption of testing work, releases manpower, and reduces the errors caused by manual testing, while improving the efficiency and effectiveness of product testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0011] Figure 1 A schematic diagram of the system structure provided by the present invention; Figure 2 The present invention provides a flow chart of the method. DETAILED DESCRIPTION
[0012] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0013] The following is a detailed description of the implementation method of the present invention in conjunction with the accompanying drawings. Only some embodiments are described, not all embodiments. For the purpose of clarity, representations and descriptions that are not related to the present invention are omitted in the drawings and descriptions.
[0014] In order to have a clearer understanding of the technical features, purposes and beneficial effects of the present invention, the technical solution of the present invention is now described in detail below. Obviously, the implementation cases described are part of the embodiments of the present invention, not all of the embodiments, and cannot be understood as limiting the scope of the implementation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0015] like Figure 1As shown, the present invention provides an automatic testing system based on dynamic loading, including: an authority control module, a two-dimensional code recognition module, a test case management module, a device management module, a system calibration module, and a data processing module.
[0016] The permission control module is used to control user permissions and display different functional modules according to user level permissions. The system has permission control, and different permissions (administrator, data administrator, tester) are assigned according to the user role. The permission level is button level, that is, the system displays different functional modules according to the logged-in role level. For example: the administrator has access to all modules of the system, the data administrator only has access to the data management module, and the tester only has access to the data viewing function of the automatic test module and the data management module.
[0017] The QR code recognition module is used to scan the QR code on the product to obtain product information. The product information obtained in the QR code recognition module includes: product order number and product number. This module is mainly for scanning the QR code on the product, and can directly obtain the product information of the product, including the product project order number and product number, which can form a unique coding identification for the product, so as to obtain the corresponding test case dll library in the system.
[0018] The test case management module is used to generate the corresponding test case dll library for each product. The information stored in the test case dll library in the test case management module includes: product channel connection relationship, instrument connection relationship, matrix switch connection relationship, indicator parameters, qualified judgment criteria, product control logic, product test script program, and product control interface.
[0019] This module mainly forms a dedicated test case dll library for each product with a specific number. The dll library contains the product's channel and matrix switch connection relationship, the instrument and matrix switch connection relationship, that is, the product test link relationship, and also contains the product's index test execution script program, as well as the product's control logic, and also contains product index test parameters and qualified criteria and other information. The system automatically matches the corresponding product dll in the dll library according to the QR code information, thereby building the entire test link for the product.
[0020] The equipment management module is used to manage the test instruments and matrix switches. The test instruments managed in the equipment management module include: signal source, spectrum analyzer, vector network analyzer, noise meter; the matrix switch is a 32*32 control signal link.
[0021] The instrument management module mainly manages the test instruments and matrix switches through GPIB or network ports. The test instruments are mainly measurement equipment such as signal sources, spectrum analyzers, vector network analyzers, noise meters, etc. The matrix switch is a 32*32 control signal link device. This module contains various controls for instruments and equipment, as well as interfaces for data acquisition. The system calls this module to realize automatic control of instruments and equipment according to the established test links during the automatic test process.
[0022] The system calibration module is used to compensate the instrument index data according to the collected loss data. This module is mainly aimed at the entire system during the index test process. Since the integrated matrix switch and cables will cause signal loss, the system calibration needs to compensate the index data collected from the instrument according to the collected loss data to make the test results true and reliable.
[0023] The data processing module is used to analyze the test data and generate the analysis results. The data processing module includes a test result display submodule, which is used to visualize the processing results. This module is a preliminary analysis function for the final test data. It performs preliminary analysis on the test results according to the qualified judgment information of the test case dll library indicator test, and marks the results as qualified, critical (approaching the qualified judgment value), and unqualified. The processing results can also be visualized, so that the test results can be intuitively displayed and the test problems can be quickly analyzed.
[0024] Automatic testing methods based on dynamic loading, such as Figure 2 As shown, the following steps are included: S1. Scan the QR code on the product to obtain product information; S2. Search the corresponding test case dll library based on the obtained product information; S3. Dynamically load the product control interface and product control interface in the dll library; S4. Perform control test on the corresponding product according to the obtained interface and interface; S5. Obtain product control information and produce test results.
[0025] Among them, dynamic loading means that the system matches the corresponding product test case dll file in the product dll library based on the unique product identifier scanned by the QR code. The system obtains the file path and loads it through the dynamic loading function in Windows. It can obtain the instance in the dll, thereby realizing the call to the dll library. It has high flexibility and is an indispensable technology for realizing the versatility of automated testing systems.
[0026] The automatic instrument control described in the present invention refers to the test link built by the system according to the product dll, which includes the index test script. The script has the control logic of the instrument. The system executes the test script, thereby calling the function of the instrument equipment management module according to the script to realize the automatic control of the instrument. For example, in the execution of the test script, the signal source needs to be parameterized (the transmission frequency, the transmission power), the power amplifier is turned on and off, and the program is controlled according to the script execution order.
[0027] Embodiment: An automatic testing method based on dynamic loading, characterized in that the method comprises: In step S10, the system scans the QR code on the product to obtain the product information stored in the database. In step S10, "the system scans the QR code on the product to obtain the product information stored in the database" means that in the entire automatic testing system, each product has its own QR code, which corresponds to the product information in the database. During the production process, this information will be entered into the database first for subsequent identification of product information. The system can obtain detailed information about the product by scanning the QR code on the product.
[0028] In step S20, the system scans the dll files in the product control library according to the product information obtained from the QR code, and finds the dll library files that match the product information. In step S20, "scanning the dll files in the product control library and finding the dll library files that match the product information" means that the entire automatic test system has different product control dll libraries for different products. This library is because the control protocol and control logic of each product may be different, so the system has a separate product dll library for each product.
[0029] In step S30, the system dynamically loads the product control interface and product control interface in the dll library according to the matched product dll library file, and the system can control the corresponding product according to the obtained interface and interface. The "product control interface in the dll library" in step S30 is because in the automatic test system, the control interface and control logic of each product may be different, and the system needs to load the control interface of different products to facilitate the user's control requirements for different products.
[0030] In step S30, the product control interface loaded by the automatic test system is to facilitate users to manually control the product, and the product control interface is a key part of the automated test, mainly to realize the automatic control of the product channel switching or working mode switching during the automated test process.
[0031] Step S40, finally, during the automatic test process, the system can realize automatic testing of different products according to the dynamic loading of different product dll files, and obtain product control information, which is reflected in the test results. "Realizing automatic testing of different products" in step S40 means that the system can automatically control the channel switching and working mode switching of the product according to the "product control interface" in S30 during the automatic test process, so as to complete the testing of the entire product at one time.
[0032] In step S40, "obtain product control information and reflect it in the test results" means that during the automatic testing process, the system completes the product testing work in one go by automatically controlling the product. However, the result output should correspond to which channel or which working mode of the product. Therefore, in product control, the product control information should be automatically obtained and reflected in the result, so that when the result is viewed, it can be known that the result corresponds to the product control information.
[0033] The present invention solves the compatibility problem of the automated testing system for multiple batches and small quantities by dynamically loading product control, improves the versatility of the automated testing system, reduces the time consumption of testing work, releases manpower, and reduces the errors caused by manual testing, while improving the efficiency and effectiveness of product testing.
[0034] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. The automatic test system based on dynamic loading is characterized by: include: Permission control module, QR code recognition module, test case management module, equipment management module, system calibration module, data processing module; The authority control module is used to perform user authority control and display different functional modules according to user level authority; The two-dimensional code recognition module is used to scan the two-dimensional code on the product to obtain product information; The test case management module is used to generate a corresponding test case dll library for each product number; The equipment management module is used to manage the test instruments and matrix switches; The system calibration module is used to compensate the instrument index data according to the collected loss data; The data processing module is used to analyze the test data and generate analysis results.
2. The automatic testing system based on dynamic loading according to claim 1, characterized in that: The product information obtained in the two-dimensional code recognition module includes: the product order number and product number.
3. The automatic testing system based on dynamic loading according to claim 1, characterized in that: The information stored in the test case dll library in the test case management module includes: product channel connection relationship, instrument connection relationship, matrix switch connection relationship, indicator parameters, qualification criteria, product control logic, product test script program, and product control interface.
4. The automatic testing system based on dynamic loading according to claim 1, characterized in that: The test instruments managed in the equipment management module include: a signal source, a spectrum analyzer, a vector network analyzer, and a noise meter; the matrix switch is a 32*32 control signal link.
5. The automatic testing system based on dynamic loading according to claim 1, characterized in that: The data processing module includes a test result display submodule, and the test result display submodule is used to visually display the processing results.
6. An automatic testing method based on dynamic loading, based on the automatic testing system based on dynamic loading according to any one of claims 1 to 5, characterized in that: The following steps are involved: S1. Scan the QR code on the product to obtain product information; S2. Find the corresponding test case dll library based on the obtained product information; S3. Dynamically load the product control interface and product control interface in the dll library; S4. Perform control tests on corresponding products based on the obtained interfaces and interfaces; S5. Obtain product control information and produce test results.
