Automatic testing method, system and equipment based on visual flow chart and medium

By using an automated testing method based on visual flowcharts to generate and configure test case lists, the problems of high workload, high cost, and inaccurate results in RF module testing are solved. This also improves the readability and maintainability of test cases and reduces reliance on technical personnel.

CN121833532APending Publication Date: 2026-04-10DFINE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610015833.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-07
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Testing RF modules is labor-intensive, costly, and lacks quality control. Reliance on manual testing leads to significant time consumption and inaccurate results. Test cases require frequent modification and lack readability and maintainability.

Method used

An automated testing method based on visual flowcharts is adopted to generate test cases. Standard test cases are configured through a component library of process start, processing, decision and end nodes to form a test case list and perform automated testing.

Benefits of technology

This improves the readability and maintainability of test cases, reduces reliance on technical professionals, and allows ordinary testers to maintain test cases according to actual needs, thus enhancing the versatility and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121833532A_ABST
    Figure CN121833532A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic testing method, system and device based on a visual flow chart and a medium, and relates to the technical field of automatic testing, and the technical scheme is characterized in that a corresponding test case is generated according to a test task needing to be executed by a tested product; analyzing a test task process node according to the test case, and selecting a target node component from a pre-created basic node component library according to the test task process node; wherein the target node comprises a flow starting node, one or more flow processing nodes and / or flow judgment nodes and a flow ending node; configuring a standard test case required by the test case according to the target node component and preset configuration information to obtain a test case list matched with the test task; and integrating the test case lists matched with the test tasks to obtain a test task list, and executing the test tasks according to the test task list to complete the automatic test of the test tasks of the tested product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated testing technology, and more specifically, to an automated testing method, system, device, and medium based on a visual flowchart. Background Technology

[0002] The research and development and production of radio frequency modules require testing of multiple radio frequency indicators, and the large number of product channels leads to a huge workload for testing, resulting in problems such as excessive testing costs and uncontrollable testing quality.

[0003] Currently, manual intervention is unavoidable in RF module testing. Firstly, the sheer number of products being tested and the complexity of the testing process inevitably lead to significant time consumption, straining project deadlines. Secondly, the heavy workload and substantial human and material resources required for manual testing are considerable; its slowness and inherent error-prone nature result in inaccurate results. Finally, the current testing practices, characterized by frequent batches and small quantities, necessitate modifications to test cases for different products, over-reliance on technical personnel and code, and resulting in test cases lacking readability and maintainability. Summary of the Invention

[0004] The purpose of this invention is to provide an automated testing method, system, device, and medium based on a visual flowchart. This invention improves the readability and maintainability of test cases, reduces reliance on professional technicians, and enables ordinary testers to maintain test cases according to the actual testing situation, thereby improving the versatility of testing.

[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution:

[0006] A first aspect of the present invention provides an automated testing method based on a visual flowchart, the method comprising:

[0007] Generate corresponding test cases based on the test tasks required for the product under test;

[0008] Based on the test cases, the test task flow nodes are analyzed, and target node components are selected from the pre-created basic node component library according to the test task flow nodes; wherein, the target node includes a flow start node, one or more flow processing nodes and / or flow decision nodes and a flow end node;

[0009] Configure the standard test cases required for the test cases based on the target node components and the preset configuration information to obtain a list of test cases that match the test tasks;

[0010] The test case list matching the test tasks is integrated to obtain the test task list. The test tasks are then executed according to the test task list to complete the automated testing of the product under test.

[0011] In one implementation scheme, corresponding test cases are generated according to the test tasks required by the product under test. Specifically, the test tasks are matched with a pre-configured test case database to generate corresponding test cases; wherein, the test case database includes test cases for various test indicators.

[0012] In one implementation, the test cases include test instrument control cases, product communication control cases, logic processing cases, and data analysis and calculation cases.

[0013] In one implementation, the basic node component library is a flowchart editor with a process start node, a process processing node, a process decision node, and a process end node; wherein the process start node and the process end node are used to control the start and end of the test process, the process processing node is used to associate the test operations required by the test case, and the process decision node is used to control the direction of the test process execution.

[0014] In one implementation, standard test cases required for the test cases are configured based on the target node components and preset configuration information to obtain a test case list, specifically:

[0015] Extract at least one standard test case from the standard test case library based on the target node component;

[0016] Based on the configuration information, the parameters of each standard test case are configured to obtain at least one test case that matches the parameter information of the test task; wherein, the configuration information refers to the parameter information of the test task;

[0017] Combine at least one test case to obtain a test case list.

[0018] In one implementation, each test case in the test case list is named to be associated with a test result name.

[0019] In one implementation, the method further includes:

[0020] Debug the test cases in the test case list that require adjustment of process nodes to obtain the target test case list;

[0021] The target test case list is integrated to obtain the target test task list. Test tasks are executed according to the target test task list to complete the automated testing of the product under test.

[0022] A second aspect of the present invention provides an automated testing system based on a visual flowchart, the system comprising:

[0023] The test case generation unit is used to generate corresponding test cases based on the test tasks required for the product under test.

[0024] The target node component selection unit is used to analyze the test task flow nodes based on the test cases, and select target node components from a pre-created basic node component library based on the test task flow nodes; wherein, the target node includes a flow start node, one or more flow processing nodes and / or flow decision nodes and a flow end node.

[0025] The test case configuration unit is used to configure the standard test cases required for the test cases according to the target node components and the preset configuration information, so as to obtain a list of test cases that match the test tasks;

[0026] The test execution unit is used to integrate the test case list that matches the test tasks to obtain the test task list, and execute the test tasks according to the test task list to complete the automated testing of the product under test.

[0027] A third aspect of the present invention provides an electronic device, including a memory and a processor;

[0028] A memory for storing computer programs, the computer programs including program instructions;

[0029] A processor is configured to execute the program instructions to cause the electronic device to perform the steps of an automated testing method based on a visual flowchart as provided in the first aspect of the invention.

[0030] A fourth aspect of the present invention provides a computer-readable storage medium comprising a computer program that, when executed by one or more processors, implements an automated testing method based on a visual flowchart as provided in the first aspect of the present invention.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] This invention improves the readability and maintainability of test cases, reduces reliance on technical professionals, and enables ordinary testers to maintain test cases according to the actual testing situation, thereby improving the versatility of the tests. Attached Figure Description

[0033] The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and form part of this application, do not constitute a limitation thereof. In the drawings:

[0034] Figure 1 This is a flowchart illustrating the automated testing method based on a visual flowchart provided in an embodiment of the present invention.

[0035] Figure 2 A schematic diagram of a flowchart editor provided in an embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of the test indicators provided in an embodiment of the present invention;

[0037] Figure 4 This is a principle block diagram of an automated testing system based on a visual flowchart provided in an embodiment of the present invention. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.

[0039] It should be noted that the terms "comprising" or "may include" used in the various embodiments of this application indicate the presence of the claimed function, operation, or element, and do not limit the addition of one or more functions, operations, or elements. Furthermore, as used in the various embodiments of this application, the terms "comprising," "having," and their cognates are intended only to indicate a specific feature, number, step, operation, element, component, or combination of the foregoing, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing, or adding one or more combinations of the foregoing.

[0040] It should be understood that terms such as "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0041] The research and development and production of radio frequency modules require testing of multiple radio frequency indicators, and the large number of product channels leads to a huge workload for testing, resulting in problems such as excessive testing costs and uncontrollable testing quality.

[0042] Currently, manual intervention is unavoidable in RF module testing. Firstly, the sheer number of products being tested and the complexity of the testing process inevitably lead to significant time consumption, straining project deadlines. Secondly, the heavy workload and substantial human and material resources required for manual testing are considerable; its slowness and inherent error-prone nature result in inaccurate results. Finally, the current testing practices, characterized by frequent batches and small quantities, necessitate modifications to test cases for different products, over-reliance on technical personnel and code, and resulting in test cases lacking readability and maintainability.

[0043] To address the shortcomings of current automated testing methods, this invention provides an automated testing method based on a visual flowchart, applicable to multi-indicator testing scenarios for RF module products. This method can improve the readability and maintainability of test cases, reduce reliance on technical personnel, and lower the maintenance costs of the testing system.

[0044] The following description, in conjunction with specific accompanying drawings and implementation schemes, illustrates an automated testing method based on a visual flowchart provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0045] S101 generates corresponding test cases based on the test tasks required for the product under test.

[0046] In this embodiment, the test case database for the current specifications of the product under test (e.g., RF module) is first integrated, including test cases for various test indicators. By analyzing the test task, the test case database is automatically matched with the corresponding test case.

[0047] The test cases include test instrument control cases, product communication control cases, and logic processing and data analysis and calculation cases. By calling the corresponding test cases, the standardized test case configuration can be completed. For example, it integrates control method interfaces for matrix switches and test instruments (such as spectrum analyzers, signal generators, vector network analyzers, peak power meters, etc.), and also integrates communication interfaces such as Ethernet communication and serial communication. It mainly functions at the processing nodes in the flowchart, allowing configuration of test instrument operations (such as setting the transmission frequency and power of a signal generator), matrix switch control operations (such as switching test channels), and software communication operations (such as sending commands via Ethernet or serial port).

[0048] S102, based on the test cases, analyze the test task process nodes, and select target node components from the pre-created basic node component library according to the test task process nodes; wherein, the target node includes a process start node, one or more process processing nodes and / or process decision nodes and a process end node.

[0049] Specifically, the basic node component library is a flowchart editor with process start nodes, process processing nodes, process decision nodes, and process end nodes. Among them, process start nodes and process end nodes are used to control the start and end of the test process, process processing nodes are used to associate the test operations required by the test cases, and process decision nodes are used to control the direction of the test process execution.

[0050] The target node may include a process start node, a process processing node and a process end node, or it may include a process start node, multiple process processing nodes and a process end node, or it may include a process start node, a process decision node and a process end node, or it may include a process start node, multiple process decision nodes and a process end node, or it may include a process start node, one or more process processing nodes, one or more process decision nodes and a process end node.

[0051] like Figure 2 As shown, for the flowchart editor, users can view the flowchart... Figure 1 This allows users to intuitively understand the testing process for the test metrics on the interface.

[0052] The flowchart editor has processing nodes such as "start node, processing node, decision node, and end node". The start node and end node are the beginning and end of the process execution. The processing node is mainly associated with the test operations in the test case, as well as the processing and storage of test data. The decision node is mainly used to control the direction of the process execution, that is, logical processing, such as using it to perform loop operations.

[0053] During the execution of the flowchart editor, execution data will be generated. For example, in the process processing node, the instrument operation obtains the test result data of the instrument, which needs to be used in other nodes. At this time, it is necessary to store it in a public variable for other nodes to use. Similarly, if it is necessary to use the process decision node to perform loop operations, it can also be implemented using a public variable (e.g., if the public variable X is 1, the decision node considers X<10, re-executes the previous operation, and increments X by 1).

[0054] S103: Configure the standard test cases required for the test cases according to the target node components and the preset configuration information to obtain a list of test cases that match the test tasks.

[0055] In this embodiment, the process of configuring the test case list is as follows: First, at least one standard test case is extracted from the standard test case library based on the target node component; second, the parameters of each standard test case are configured according to the configuration information to obtain at least one test case that matches the test task parameter information; wherein, the configuration information refers to the parameter information of the test task; finally, the at least one test case is combined to obtain the test case list.

[0056] Specifically, a test case library created by the specification can be pre-packaged. Then, based on the parameter information of the test task, the parameters of the test cases in the specification can be configured to obtain at least one test case that matches the parameter information of the test task, which can be called by the user. This avoids the user creating test cases from scratch. The user can make minor modifications based on the characteristics of the product being tested, thus improving the maintenance efficiency of test cases.

[0057] Since different RF module products use different names for test metrics, users can also name each test case in the test case list to associate it with the test result name.

[0058] S104 integrates the test case list matching the test tasks to obtain the test task list, executes the test tasks according to the test task list, and completes the automated testing of the test tasks of the product under test.

[0059] like Figure 3 As shown, integrating the test case list of matching test tasks and uniformly scheduling and configuring it to complete the automated testing of test tasks means that after configuring and debugging the test cases for the test tasks, a complete test task for the product under test will be formed. The task will contain multiple test cases (such as output power, gain, S-parameters, etc.). These test cases are integrated to form a test task list. Users can issue and execute the tasks according to the production task progress. Finally, unified scheduling and configuration are performed to complete the automated testing of the product under test.

[0060] In some embodiments, the current standard testing method is formulated according to industry standards, and the process nodes also conform to the standard method. However, in actual testing, the standard testing process may be adjusted according to the actual situation. Therefore, after step S103 described above, the method of this embodiment further includes: first, debugging the test cases in the test case list that require adjustment of process nodes to obtain a target test case list; then, integrating the target test case list to obtain a target test task list, and executing the test tasks according to the target test task list to complete the automated testing of the product under test.

[0061] Therefore, users can adjust the test process nodes based on the actual test results to obtain test cases that match the actual test outcomes. For example, they can perform checks on the validity of test cases, such as whether the process connections are complete, whether process decision nodes are executed effectively, and whether start and end nodes are present. They can also perform checks on the process... Figure 1 The key execution allows for quick verification of whether the flowchart is executed correctly. It can also be executed step by step, executing node by node, which is beneficial for users to debug test cases and check whether the results of each step meet expectations.

[0062] like Figure 4 As shown, this embodiment of the invention also provides an automated testing system based on a visual flowchart, the system comprising:

[0063] The test case generation unit 410 is used to generate corresponding test cases based on the test tasks required to be performed by the product under test.

[0064] The target node component selection unit 420 is used to analyze the test task flow nodes based on the test cases, and select target node components from the pre-created basic node component library based on the test task flow nodes; wherein, the target node includes a flow start node, one or more flow processing nodes and / or flow decision nodes and a flow end node.

[0065] Test case configuration unit 430 is used to configure the standard test cases required for the test cases according to the target node components and preset configuration information, and obtain a list of test cases that match the test tasks;

[0066] The test execution unit 440 is used to integrate the test case list that matches the test tasks to obtain the test task list, and execute the test tasks according to the test task list to complete the automated testing of the test tasks of the product under test.

[0067] In an automated testing system based on a visual flowchart in an embodiment of the present invention, it is similar to the above-mentioned... Figure 1 The automated testing method based on a visual flowchart shown is a technical solution under the same inventive concept. Through the detailed description of the automated testing method based on a visual flowchart provided in the above embodiments, those skilled in the art can clearly understand the implementation process of each unit of the automated testing system based on a visual flowchart in this embodiment. Therefore, for the sake of brevity, it will not be described again here.

[0068] The testing system provided by this invention improves the readability and maintainability of test cases, reduces reliance on technical personnel, and enables ordinary testers to maintain test cases according to actual testing conditions, thereby improving the versatility of the test.

[0069] This invention also provides an electronic device. The electronic device includes a processor, a memory, a communication interface, and at least one communication bus for connecting the processor, the memory, and the communication interface. The memory includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (PROM), or portable read-only memory (CD-ROM), and is used for related instructions and data.

[0070] The communication interface is used to receive and send data. The processor can be one or more CPUs; if the processor is a single CPU, it can be a single-core CPU or a multi-core CPU. The processor in the electronic device reads one or more programs stored in the memory and performs the following operations: generates corresponding test cases based on the test tasks required by the product under test; analyzes the test task flow nodes based on the test cases, and selects target node components from a pre-created basic node component library based on the test task flow nodes; wherein, the target node includes a flow start node, one or more flow processing nodes and / or flow decision nodes, and a flow end node; configures the standard test cases required by the test cases according to the target node components and preset configuration information to obtain a list of test cases matching the test tasks; integrates the list of test cases matching the test tasks to obtain a test task list, and executes the test tasks according to the test task list to complete the automated testing of the product under test.

[0071] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiment described in the above embodiments. The electronic device can be used to execute an automatic testing method based on a visual flowchart of the above method embodiment of this application, which will not be described in detail here.

[0072] This invention also provides a computer-readable storage medium, which is a memory device in a computer device for storing programs and data. It is understood that the computer-readable storage medium here can include both built-in storage media in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the operating system of the terminal. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the automated testing method based on a visual flowchart in the above embodiments. Those skilled in the art should understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0073] This invention also provides a computer program product containing program instructions. The computer program product may be software or program products containing program instructions, capable of running on a computing device or stored on any usable medium. When the computer program product is run on at least one electronic device, it causes the at least one electronic device to execute an automated testing method based on a visual flowchart.

[0074] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. An automated testing method based on a visual flowchart, characterized in that, The methods include: Generate corresponding test cases based on the test tasks required for the product under test; Based on the test cases, the test task flow nodes are analyzed, and target node components are selected from the pre-created basic node component library according to the test task flow nodes; wherein, the target node includes a flow start node, one or more flow processing nodes and / or flow decision nodes and a flow end node; Configure the standard test cases required for the test cases based on the target node components and the preset configuration information to obtain a list of test cases that match the test tasks; The test case list matching the test tasks is integrated to obtain the test task list. The test tasks are then executed according to the test task list to complete the automated testing of the product under test.

2. The method according to claim 1, characterized in that, The test cases are generated according to the test tasks required for the product under test. Specifically, the test tasks are matched with a pre-configured test case database to generate corresponding test cases. The test case database includes test cases for various test indicators.

3. The method according to claim 2, characterized in that, The test cases include test instrument control cases, product communication control cases, logic processing cases, and data analysis and calculation cases.

4. The method according to claim 1, characterized in that, The basic node component library is a flowchart editor with a process start node, a process processing node, a process decision node, and a process end node; wherein, the process start node and the process end node are used to control the start and end of the test process, the process processing node is used to associate the test operations required by the test case, and the process decision node is used to control the direction of the test process execution.

5. The method according to claim 1, characterized in that, Based on the target node components and preset configuration information, the standard test cases required for the test cases are configured to obtain a list of test cases, specifically: Extract at least one standard test case from the standard test case library based on the target node component; Based on the configuration information, the parameters of each standard test case are configured to obtain at least one test case that matches the parameter information of the test task; wherein, the configuration information refers to the parameter information of the test task; Combine at least one test case to obtain a test case list.

6. The method according to claim 1, characterized in that, Name each test case in the test case list to associate it with a test result name.

7. The method according to claim 1, characterized in that, The method further includes: Debug the test cases in the test case list that require adjustment of process nodes to obtain the target test case list; The target test case list is integrated to obtain the target test task list. Test tasks are executed according to the target test task list to complete the automated testing of the product under test.

8. An automated testing system based on a visual flowchart, characterized in that, The system includes: The test case generation unit is used to generate corresponding test cases based on the test tasks required for the product under test. The target node component selection unit is used to analyze the test task flow nodes based on the test cases, and select target node components from a pre-created basic node component library based on the test task flow nodes; wherein, the target node includes a flow start node, one or more flow processing nodes and / or flow decision nodes and a flow end node. The test case configuration unit is used to configure the standard test cases required for the test cases according to the target node components and the preset configuration information, so as to obtain a list of test cases that match the test tasks; The test execution unit is used to integrate the test case list that matches the test tasks to obtain the test task list, and execute the test tasks according to the test task list to complete the automated testing of the product under test.

9. An electronic device, characterized in that, Including memory and processor; A memory for storing computer programs, the computer programs including program instructions; A processor is configured to execute the program instructions to cause the electronic device to perform the steps of an automated testing method based on a visual flowchart as provided in the first aspect of the invention.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when executed by one or more processors, implements an automated testing method based on a visual flowchart as described in any one of claims 1 to 7.