Automatic test platform and test method thereof
Through the automated test platform, the traditional manual testing methods are solved, and the problems of time-consuming and labor-intensive and prone to human errors are achieved, efficient and accurate test results are achieved, and the modern industry needs for high-quality testing are met.
Patent Information
- Application Number
- CN202411827751.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-02-07
AI Technical Summary
Traditional manual testing methods are time-consuming and labor-intensive, prone to human errors, and cannot effectively respond to complex and diverse testing needs.
It provides an automated test platform, including parameter adjustment module, test module and data processing module, through which test parameters are adjusted and executed, and test results are processed and displayed to improve testing efficiency and accuracy.
Through the automated test platform, the testing efficiency is improved, the accuracy of test results is enhanced, manual intervention is reduced, and complex and large-scale testing tasks can be completed in a shorter time.
Smart Images

Figure CN119396684A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to an automated testing platform and a testing method thereof. Background Art
[0002] With the rapid development of modern science and technology and industry, the importance of product testing in manufacturing and R&D has become increasingly prominent; whether in electronic products, mechanical equipment, or software systems, testing is a crucial link to ensure that the quality, stability, and performance of the product meet the expected requirements.
[0003] However, traditional manual testing methods are often time-consuming and labor-intensive, prone to human errors, and unable to efficiently cope with complex and diverse testing requirements. Summary of the invention
[0004] To solve the above problems, the present application provides an automated testing platform in the first aspect, including:
[0005] A parameter adjustment module, based on which the test parameters are adjusted;
[0006] A testing module, the testing module is connected to the parameter adjustment module to receive a testing parameter, and the testing module performs a test based on the testing parameter;
[0007] A data processing module is connected to the test module to receive the test results, and the data processing module processes the test results, and the processing results are displayed in the form of charts.
[0008] Wherein, it also includes a user login module, and the user login module is connected to the parameter adjustment module to control the working state of the parameter adjustment module.
[0009] Among them, the test module includes three test modes: single-step test, full-automatic test and code scanning test.
[0010] The parameter adjustment module includes a program editing unit and a use case editing unit; a test mode and a test item are selected based on the program editing unit; and a test case is modified based on the use case editing unit.
[0011] The automated testing platform further comprises a system unit, which is connected to the use case editing unit and is used for importing, exporting and deleting test cases in the use case editing unit.
[0012] The automated testing platform further comprises an instrument configuration module, which is used to create, edit and save communication port sets of testing equipment to achieve integration and management of multiple devices.
[0013] Among them, when the user login module is logged in normally, the parameter adjustment module, the test module, the data processing module, the system unit and the instrument configuration module can all work normally; when the user login module is not logged in normally, only the test module and the data processing module work normally.
[0014] The data processing module processes the test results in the following steps:
[0015] Get the test program path used when executing the test and all the record files generated during the test execution;
[0016] Filter or select specific steps for testing; parse the data in the test record file and automatically extract key data related to the test steps;
[0017] After data extraction and analysis are completed, the parsed data are exported into a chart format.
[0018] The second aspect of the present application further provides a testing method, which can be applied to the automated testing platform as described in any one of the above items, comprising the following steps:
[0019] S11: Determine whether the account is logged in, if the determination result is yes, execute S12;
[0020] S12: Set communication parameters and configure interfaces for initialization;
[0021] S13: Create test cases, set test item parameters and upper and lower limits;
[0022] S14: Execute the test and perform data analysis on the test results, and generate a report in a chart format.
[0023] If the result of determining whether the account is logged in is no, then S14 is directly executed.
[0024] Beneficial effects of the present invention: Different from the prior art, the automated testing platform of the present invention includes: a parameter adjustment module, based on which the test parameters are adjusted; a test module, the test module is connected to the parameter adjustment module to receive the test parameters, and the test module performs a test based on the test parameters; a data processing module, the data processing module is connected to the test module to receive the test results, the data processing module processes the test results, and the processing results are displayed in the form of charts. Through the above method, the test efficiency is improved and the accuracy of the test results is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of the structure of the first embodiment of the automated testing platform provided by this application;
[0026] Figure 2 A schematic diagram of the structure of the second embodiment of the automated testing platform provided by this application;
[0027] Figure 3 A schematic diagram of the structure of the third embodiment of the automated testing platform provided by this application;
[0028] Figure 4 A schematic diagram of the structure of the fourth embodiment of the automated testing platform provided by the present application;
[0029] Figure 5 This is a flow chart of an embodiment of a data processing module of the present application;
[0030] Figure 6 A schematic diagram of a flow chart of an embodiment of a testing method provided in the present application. DETAILED DESCRIPTION
[0031] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.
[0032] In order to improve test efficiency, reduce labor costs, and ensure the accuracy and traceability of test data, automated testing technology has emerged. The automated testing platform is a comprehensive solution that can significantly improve test efficiency and accuracy. By introducing automated means, testers can use the platform to simplify tedious test processes and execute multiple test cases in a programmable manner; the system can not only reduce manual intervention, but also complete complex and large-scale test tasks in a shorter time, thus meeting the needs of modern industry for high-quality testing. Please refer to Figure 1 As shown, Figure 1 The schematic diagram of the structure of the first embodiment of the automated testing platform provided in the present application includes a parameter adjustment module 11 , a testing module 12 and a data processing module 13 .
[0033] The test parameters are adjusted based on the parameter adjustment module 11; the test parameters include but are not limited to test conditions, test upper and lower limits, communication parameters and device configuration files; the test conditions may be temperature, humidity and voltage, etc.; the communication parameters include the model of the communication device, channel number, device number, communication frequency and IP address, etc.; after setting the parameters, the user can save the current test program or use case; in the debugging mode, the user can select a test item for manual testing to verify the correctness and effectiveness of the parameter settings; after the parameters are verified, the parameter adjustment module 11 sends the test parameters to the test module 12.
[0034] The parameter adjustment module 11 can ensure that the parameter settings of each test item are consistent and standardized, reducing test errors caused by improper parameter settings. In the debugging mode, the user can verify the correctness of the parameter settings to ensure the accuracy of the test process; the parameter adjustment module 11 records the parameter settings of each test to ensure the traceability of the test conditions, which is convenient for subsequent problem troubleshooting and test reproduction.
[0035] The test module 12 is connected to the parameter adjustment module 11 to receive the test parameters. The test module 12 performs the test based on the test parameters, that is, after receiving the test parameters, the test module 12 automatically performs the test task according to the parameter settings; during the test process, the user can monitor the test status in real time through the interface of the test module 12, and view the test results and progress of each step; through the interface of the test module 12, the test status is monitored in real time, and problems are discovered and solved in time to ensure the accuracy of the test process. After the test is completed, the test module 12 records the test results and sends the test results to the data processing module 13 for further processing and analysis.
[0036] The data processing module 13 is connected to the test module 12 to receive the test results. The data processing module 13 processes the test results and displays the processed results in the form of charts. The data processing module 13 displays the processed data in the form of charts, including line charts, bar charts, pie charts, etc. The user can choose to export the processed data into a file format that can be shared or archived, such as Excel, PDF, etc. The generated charts can be viewed through the interface of the data processing module 13, the test results can be analyzed, potential problems can be found, and the test process can be optimized.
[0037] Through the connection between the data processing module 13 and the test module 12, the automated test platform realizes the automatic reception and processing of the test results and generates a display in the form of a chart. This collaborative work not only improves the efficiency and accuracy of data processing, but also enhances the traceability and transparency of the data, optimizes the test process management, and improves the user experience.
[0038] In summary, the automated testing platform of this embodiment includes: a parameter adjustment module 11, which adjusts the test parameters based on the parameter adjustment module 11; a test module 12, which is connected to the parameter adjustment module 11 to receive the test parameters, and the test module 12 performs the test based on the test parameters; a data processing module 13, which is connected to the test module 12 to receive the test results, and the data processing module 13 processes the test results, and the processing results are displayed in the form of charts. Through the above method, the test efficiency is improved and the accuracy of the test results is enhanced.
[0039] In one embodiment, if Figure 2 As shown, Figure 2This is a schematic diagram of the structure of the second embodiment of the automated testing platform provided by the present application. The automated testing platform further includes a user login module 14;
[0040] The user login module 14 is connected to the parameter adjustment module 11 to control the working state of the parameter adjustment module 11; the user login state is verified by the user login module 14 to determine whether the user has the right to access the parameter adjustment module 11. If the user successfully logs in, the user is allowed to set and adjust parameters through the parameter adjustment module 11; if the user fails to log in, the parameter adjustment module 11 does not work.
[0041] The user login module 14 verifies the user's login information to ensure that only authorized users can access and operate the parameter adjustment module 11; it prevents unauthorized users from tampering with the test parameters, thereby improving the security of the system; testers do not need to enter complex login information, but can directly select the "Execute Test" button to quickly start the test task, thereby improving operational efficiency.
[0042] In one embodiment, the test module 12 includes three test modes: single-step test, fully automatic test and code scanning test; the single-step test is suitable for situations where each test step needs to be verified step by step, and the user can view the test status and results of each step in real time to ensure the correctness of each step; the fully automatic test is suitable for situations where multiple test items need to be executed continuously, and the system automatically runs all test items, reducing manual intervention and improving the test speed; the code scanning test automatically identifies and executes the test program by scanning the product barcode, which simplifies the operation steps and improves the test efficiency; no matter which test mode is selected, the user needs to select the item to be tested and set the corresponding test parameters.
[0043] Single-step testing: Users can verify each test step one by one to ensure the correctness and completeness of each step, reducing test errors caused by step errors.
[0044] Fully automatic testing: The system automatically runs all test items in strict accordance with the predetermined sequence, ensuring the consistency and standardization of each test step and improving the accuracy of the test results.
[0045] Scan code test: Through barcode recognition technology, the test procedure is ensured to correspond one-to-one with the product, reducing the test errors caused by human errors.
[0046] In one embodiment, if Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of the third embodiment of the automated testing platform provided by the present application. The parameter adjustment module 11 includes a program editing unit 111 and a use case editing unit 112;
[0047] Selecting a test mode and a test item based on the program editing unit 111; the user selects a test mode in the program editing unit 111, and the test modes include single-step test, full-automatic test, and code scanning test;
[0048] The test case is modified based on the use case editing unit 112; the user can create a new test case in the use case editing unit 112, choose to add a new test case instruction, copy, cut or delete an existing test case instruction, and rename an existing test case so that the test case can more clearly reflect its content or function.
[0049] The program editing unit 111 allows the user to flexibly select test modes and test items to meet different test requirements, thereby improving the flexibility and efficiency of the test; through the program editing unit 111 and the use case editing unit 112, the user can centrally manage the parameter settings and test cases of all test items, thereby improving the organization and management efficiency of the test process.
[0050] In one embodiment, if Figure 4 As shown, Figure 4 This is a structural diagram of the fourth embodiment of the automated testing platform provided in the present application; the automated testing platform also includes a system unit 15.
[0051] The system unit 15 is connected to the use case editing unit 112 , and the system unit 15 is used for importing, exporting and deleting test cases in the use case editing unit 112 .
[0052] In the system unit 15, the user can select the "Import" function to load a new test case file into the system. The user can select the file path and the file to be imported, and the case editing unit 112 will automatically load and apply these test cases.
[0053] In the system unit 15, the user can select the "Export" function to export the current test case as a file for backup or sharing. The user can select the exported file path and file name, and the system unit 15 will generate a file containing the current test case.
[0054] In the system unit 15, the user can select the "delete" function to remove the test cases that are no longer needed from the system. The user can select the test cases to be deleted, and the system will confirm the deletion operation and remove the selected test cases.
[0055] System Unit 15 provides a centralized management interface where users can easily import, export and delete test cases, improving the efficiency of case management. Through the import function, users can quickly apply existing test case files to facilitate sharing and collaboration among team members; through the export function, users can back up or share test cases with other team members to ensure the traceability and consistency of test cases; through the deletion function, users can regularly clean up test cases that are no longer needed to keep the case library tidy and efficiently managed.
[0056] In one embodiment, the automated test platform also includes an instrument configuration module (not shown), which is used to create, edit and save the communication port set of the test equipment to achieve the integration and management of multiple devices; the instrument configuration module provides a centralized management interface, and the user can easily create, edit and save the communication port set, thereby improving the efficiency of equipment management; the instrument configuration module supports batch management and configuration of the communication interfaces of multiple devices, and the user can handle multiple devices at one time, reducing the time of repeated operations; supports multiple communication interfaces (such as RS232 / 485, USB, TCP / IP), enhances the compatibility of the equipment, and supports multiple types of test equipment. The test module 12 automatically calls the corresponding test equipment according to the selected communication port set, ensures the correct connection and call of the test equipment, and improves the automation level of the test process.
[0057] In one embodiment, when the user login module 14 logs in normally, the parameter adjustment module 11, the test module 12, the data processing module 13, the system unit 15 and the instrument configuration module can all work normally; when the user login module 14 does not log in normally, only the test module 12 and the data processing module 13 work normally;
[0058] The user first needs to log in to the automated testing platform. The login interface is divided into the administrator interface and the tester interface.
[0059] Administrator login: Enter the administrator account and password, and the system will perform background verification on the input information. If the verification is successful, the administrator will gain access to all functional modules of the system.
[0060] Tester login: Testers do not need to enter their account and password, they can directly select the test module to quickly start the test task.
[0061] Administrators and testers have different login methods and permissions. Administrators can access all functional modules, while testers are limited to executing test tasks and viewing test results. This role distinction further enhances the security of the system. Through the user login module, the system can flexibly assign permissions to different users to ensure that each user can only access and operate functional modules within the scope of their permissions.
[0062] In one embodiment, if Figure 5 As shown, Figure 5 This is a flow chart of an embodiment of the data processing module of the present application. The data processing module processes the test results including the following steps:
[0063] S1: Obtain the test program path used when executing the test and all record files generated during the test execution;
[0064] S2: Filter or select specific steps for testing; for example, users can select one or more key test steps for detailed analysis; parse the data in the test record file and automatically extract key data related to the test steps; users can filter out the test steps that need to be analyzed based on specific conditions such as time and test results.
[0065] S3: After the data extraction and analysis are completed, the data may include test conditions, test results, timestamps, etc.; the parsed data is exported into a chart format; the data processing module 13 analyzes the extracted data and generates key indicators and statistical information, such as average, maximum, minimum, etc.
[0066] The data processing module automatically parses the data in the test record file, reducing errors caused by human operations and ensuring the accuracy and reliability of the data; by performing detailed analysis on the extracted data, key indicators and statistical information are generated to help users understand the test results more comprehensively.
[0067] like Figure 6 As shown, Figure 6 The flowchart of an embodiment of the test method provided in this application includes the following steps:
[0068] S11: Determine whether the account is logged in, if the determination result is yes, execute S12;
[0069] S12: Set communication parameters and configure interfaces for initialization;
[0070] S13: Create test cases, set test item parameters and upper and lower limits;
[0071] S14: Execute the test and perform data analysis on the test results, and generate a report in a chart format.
[0072] If the result of determining whether the account is logged in is no, directly execute S14.
[0073] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An automated testing platform, characterized in that: include: A parameter adjustment module, based on which the test parameters are adjusted; A testing module, the testing module is connected to the parameter adjustment module to receive a testing parameter, and the testing module performs a test based on the testing parameter; A data processing module is connected to the test module to receive the test results, and the data processing module processes the test results, and the processing results are displayed in the form of charts.
2. The automated testing platform according to claim 1, characterized in that: It also includes a user login module, which is connected to the parameter adjustment module to control the working state of the parameter adjustment module.
3. The automated testing platform according to claim 2, characterized in that: The test module includes three test modes: single-step test, fully automatic test and code scanning test.
4. The automated testing platform according to claim 3, characterized in that: The parameter adjustment module includes a program editing unit and a case editing unit; a test mode and a test item are selected based on the program editing unit; and a test case is modified based on the case editing unit.
5. The automated testing platform according to claim 4, characterized in that: The automated testing platform also includes a system unit, which is connected to the use case editing unit and is used for importing, exporting and deleting test cases in the use case editing unit.
6. The automated testing platform according to claim 5, characterized in that: The automated testing platform also includes an instrument configuration module, which is used to create, edit and save a communication port set of a testing device to achieve integration and management of multiple devices.
7. The automated testing platform according to claim 6, characterized in that: When the user login module logs in normally, the parameter adjustment module, the test module, the data processing module, the system unit and the instrument configuration module can all work normally; when the user login module does not log in normally, only the test module and the data processing module work normally.
8. The automated testing platform according to any one of claims 1 to 7, characterized in that: The data processing module processes the test results and includes the following steps: Get the test program path used when executing the test and all the record files generated during the test execution; Filter or select specific steps for testing; parse the data in the test record file and automatically extract key data related to the test steps; After data extraction and analysis are completed, the parsed data are exported into a chart format.
9. A testing method, applicable to the automated testing platform according to any one of claims 1 to 8, characterized in that: The steps include: S11: Determine whether the account is logged in, if the determination result is yes, execute S12; S12: Set communication parameters and configure interfaces for initialization; S13: Create test cases, set test item parameters and upper and lower limits; S14: Execute the test and perform data analysis on the test results, and generate a report in a chart format.
10. The testing method according to claim 9, characterized in that: If the result of determining whether the account is logged in is no, directly execute S14.