Automatic testing method, equipment and medium

Through automated test platform and preset execution scripts, the problem of inefficiency of software testing is solved, the automation and standardization of tests is realized, the accuracy and efficiency of tests are improved, and the cost is reduced.

CN120276973APending Publication Date: 2025-07-08AULTON NEW ENERGY AUTOMOBILE TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411905907.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-12-23
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing software testing methods are inefficient, have serious resource waste, and are difficult to manage, which affects the accuracy of testing and product quality.

Method used

Provides an automated testing method, integrating timing tasks, test projects and function files through an automated test platform, writing automated test interfaces, using preset execution scripts and information management buttons, generating test reports, and realizing the automation and standardization of tests.

Benefits of technology

It improves the efficiency and accuracy of the test, reduces manual intervention and resource waste, ensures the objectivity and consistency of the test results, reduces the cost and time of testing, and improves project management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276973A_ABST
    Figure CN120276973A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic testing method, equipment and a medium, which are used for solving the problems of low testing efficiency, resource waste and management difficulty in the existing testing method. The method comprises the following steps: determining a corresponding item to be tested and a function to be referenced according to an actual test demand of a user; based on the function file of the to-be-referenced function, performing service configuration on the to-be-tested item, and adding corresponding configuration information into a test case of the to-be-tested item; and running the test case through a preset execution script, and generating a corresponding test report to complete the automatic test. According to the method, the tedious process of manual operation is avoided, the testing efficiency is improved, and the maintenance and repair cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority based on the invention patent application filed with the China National Patent Office on December 29, 2023, with the application number 202311867863.4 and the invention title "An Automated Testing Method, Device, and Medium". This application incorporates the entire text of the above-mentioned Chinese patent application by reference. Technical Field

[0002] This application relates to the field of software testing technology, and in particular, to an automated testing method, device, and medium. Background Art

[0003] Currently, with the development of software technology, software testing has become an indispensable part of the software development process. In the traditional testing process, testers need to manually write test cases and perform regression testing. This method is not only inefficient but also error-prone. In addition, due to the different interface test environments and data between projects, testers need to repeatedly configure different test environments, resulting in a large amount of time and resource waste. These problems not only affect the accuracy of testing but also the quality and delivery time of the product. Summary of the Invention

[0004] Embodiments of this application provide an automated testing method, device, and medium to solve the technical problems of low testing efficiency, resource waste, and difficult management existing in the existing testing methods.

[0005] On the one hand, embodiments of this application provide an automated testing method, including:

[0006] Determine the corresponding item to be tested and the function to be referenced according to the actual testing requirements of the user;

[0007] Based on the function file of the function to be referenced, perform business configuration on the item to be tested, and add the corresponding configuration information to the test cases of the item to be tested;

[0008] Run the test cases through a preset execution script and generate the corresponding test report to complete the automated testing.

[0009] The embodiment of the present application accurately determines the items to be tested and the functions to be referenced according to the actual testing needs of the user, making the testing work more focused and effectively avoiding the waste of resources caused by irrelevant testing, thereby improving the pertinence and efficiency of the test; by performing business configuration of the items to be tested based on the function files of the functions to be referenced, it can flexibly adapt to changes in different testing scenarios and needs, which not only simplifies the test preparation process, but also makes the test cases closer to the actual business logic, and improves the accuracy and practicality of the test; the configuration information is added to the test cases of the items to be tested, and the test cases are automatically run through preset execution scripts, which significantly improves the degree of automation of the test, reduces manual intervention, reduces the risk of human error, and speeds up the testing cycle, so that the testing work can respond to project iterations and changes more quickly; the corresponding test reports are automatically generated, which not only saves the time of testers in collating and analyzing test data, but also ensures the objectivity and consistency of the test results.

[0010] In one implementation of the present application, the test case is run by a preset execution script, and a corresponding test report is generated to complete the automated test, specifically including:

[0011] Use the preset scheduled task tool to set the corresponding execution time and frequency for the preset execution script;

[0012] The test case is run through the preset execution script and according to the execution time and execution frequency to obtain a corresponding test report and complete the automated test.

[0013] The embodiment of the present application sets a specific execution time and execution frequency for a preset execution script through a preset scheduled task tool, which can ensure that the test case runs automatically at a predetermined time point without manual triggering. This not only improves the efficiency of the test, but also ensures the timeliness of the test, so that the test work can keep up with the pace of project development and promptly discover and feedback problems; the setting of scheduled tasks enables the test work to be carried out in an orderly manner according to the established plan, avoids the arbitrariness and instability of the test work, helps to form a stable test cycle, enables the project team to better predict and arrange the test work, and improves the overall project management efficiency; automated testing combined with scheduled task tools can greatly reduce the workload of manual testing, thereby reducing testing costs; automatically running test cases through preset execution scripts and generating test reports reduces the manual operations of testers, making testing work more efficient and economical.

[0014] In one implementation of the present application, before determining the corresponding items to be tested and functions to be referenced according to the actual test requirements of the user, the method further includes:

[0015] Create an automated testing platform; the automated testing platform includes scheduled tasks, test projects, and function files.

[0016] In the embodiment of the present application, by creating an automated testing platform, testers can conveniently manage scheduled tasks, test projects, and function files without switching between different tools or systems, greatly improving the convenience and efficiency of test management; the automated testing platform integrates test elements such as scheduled tasks, test projects, and function files to form a complete test system, making the test work more systematic and organized, helping testers clearly understand the overall framework and process of the test, and thus better planning and executing test tasks; on the automated testing platform, test projects and function files can be shared as reusable resources by multiple test tasks, not only reducing the repetitive labor of test preparation work, but also improving the utilization rate of test resources and reducing test costs.

[0017] In one implementation manner of the present application, after creating the corresponding project to be tested and the function file corresponding to the function to be referenced on the testing platform, the method further includes:

[0018] Based on the interface module on the automated testing platform, write an automated test interface corresponding to the project to be tested and determine the interface information corresponding to the written automated test interface;

[0019] Add the automated test interface and the interface information corresponding to the automated test interface to the interface information list of the interface module; the interface information at least includes: interface number, interface name, and interface address;

[0020] Based on the information management buttons preset in the interface information list, obtain the corresponding trigger requests, and based on the trigger requests, manage the interface information of the corresponding automated test interface; the information management buttons include an edit button, a copy button, and a delete button.

[0021] Embodiments of the present application can quickly and accurately write automated test interfaces for projects to be tested based on the interface module on the automated test platform, and determine the interface information corresponding to the written automated test interfaces, simplifying the generation process of automated test interfaces and improving the test efficiency; in the interface information list of the interface module, it is convenient to add automated test interfaces and the corresponding interface information, including interface numbers, interface names, interface addresses, etc., which helps to uniformly manage automated test interfaces and facilitates subsequent testing and maintenance work; through preset information management buttons, such as edit buttons, copy buttons, and delete buttons, various operations can be performed on the interface information of automated test interfaces according to actual needs, such as modification, copying, or deletion, improving the flexibility and convenience of automated test interface information management; through the generation and maintenance of automated test interfaces, as well as the unified management and flexible operation of interface information, the test efficiency and accuracy can be significantly improved, helping enterprises quickly discover problems and repair them, and further improving product quality and user experience.

[0022] In an implementation manner of the present application, after adding the automated test interface and the interface information corresponding to the automated test interface in the interface information list of the interface module, the method further includes:

[0023] Based on the preset operation buttons in the interface module, obtain an operation request for the corresponding automated test interface; the operation request includes information testing, result viewing, and information import.

[0024] When the operation request is information testing, determine the interface information corresponding to at least one selected interface to be tested, and test the interface to be tested according to the interface information.

[0025] When the operation request is result viewing, determine the current time, and obtain the test record with the shortest time interval from the current time and the corresponding test result.

[0026] When the operation request is information import, display the corresponding information import interface, and receive the interface information to be imported based on the information import interface.

[0027] In the embodiments of the present application, through preset operation buttons such as information testing, result viewing, and information import, users can quickly obtain operation requests for corresponding automated test interfaces, simplifying the operation process and improving the test efficiency. Under the operation request of information testing, it can automatically determine the interface information corresponding to the selected interface to be tested and test the interface according to the interface information, avoiding the cumbersome processes of manual configuration and testing and improving the automation degree of testing. Under the operation request of result viewing, it can automatically determine the current time and obtain the test record with the shortest time interval from the current time and the corresponding test result, which helps users understand the test results in real time so as to discover and fix problems in a timely manner. Under the operation request of information import, it can display the corresponding information import interface and receive the interface information to be imported, simplifying the import process of interface information and improving the efficiency and accuracy of batch import. Through functions such as preset operation buttons, automated test processes, real-time viewing of test results, and batch import of interface information, it can significantly improve the test efficiency and accuracy, help enterprises quickly discover and fix problems, and further improve the product quality and user experience.

[0028] In one implementation manner of the present application, after determining the corresponding item to be tested and the function to be referenced according to the actual test requirements of the user, the method further includes:

[0029] In the use case set of the item to be tested, determine the test cases to be executed and determine the test interfaces corresponding to the test cases to be executed;

[0030] Modify the test interface information corresponding to the test interface according to the basic information in the interface information, and obtain the automated test interface corresponding to the test case to be executed.

[0031] In the embodiments of the present application, in the use case set of the item to be tested, it can automatically determine the test cases to be executed and determine the corresponding test interfaces, simplifying the execution process of test cases and improving the test efficiency. According to the basic information in the interface information, it can modify the test interface information corresponding to the test interface, so as to obtain the automated test interface corresponding to the test case to be executed, enabling the test interface information to be dynamically adjusted according to actual needs and improving the flexibility and adaptability of testing. Through the execution of automated test cases and the dynamic modification of test interface information, it can ensure the accuracy and consistency of test cases, help enterprises quickly discover and fix problems, and further improve the product quality and user experience. The execution of automated test cases and the dynamic modification of test interface information can significantly reduce the degree of manual participation, thereby reducing the labor cost of testing. In addition, automated testing can quickly and accurately generate test reports, providing timely and accurate test results for enterprises and further reducing the maintenance and repair costs.

[0032] In one implementation of the present application, after performing business configuration on the item to be tested based on the function file of the function to be referenced, the method further includes:

[0033] Determine the configuration information corresponding to the business configuration and call the configuration information;

[0034] Determine the interface information corresponding to the automated test interface in the interface module, and based on the interface information and the configuration information, perform interface debugging on the automated test interface in the interface module;

[0035] Integrate the debugged automated test interface onto the automated test platform to manage the debugged automated test interface through the automated test platform.

[0036] After the interface debugging is completed in the embodiments of the present application, the debugged automated test interface is integrated onto the automated test platform, and the debugged automated test interface is uniformly managed through the automated test platform, which simplifies the management process of the test interface and improves the test efficiency; based on the interface information and the configuration information, interface debugging is performed on the automated test interface in the interface module, avoiding the cumbersome process of manual debugging and improving the automation degree and accuracy of interface debugging; through functions such as the integration and management of the automated test interface, automated and accurate interface debugging, the test efficiency and accuracy can be significantly improved; the integration and management of the automated test interface, automated and accurate interface debugging can significantly reduce the degree of manual participation, thereby reducing the labor cost of testing.

[0037] In one implementation of the present application, after running the test case through the preset execution script and according to the execution time and execution frequency to obtain the corresponding test report and complete the automated test, the method further includes:

[0038] Obtain the test result corresponding to the test case according to the test report and determine whether the test result matches the preset target test result;

[0039] If not, analyze the test result to determine the test problem corresponding to the test case, and optimize the test case according to the test problem.

[0040] Through the test report, the embodiments of the present application can obtain the test results corresponding to the test cases and match them with the preset target test results; if the test results do not match the target results, the test results will be analyzed to determine the problems corresponding to the test cases, which helps to quickly locate and solve the problems; according to the test problems, the test cases can be optimized and improved to improve the accuracy and effectiveness of the test cases, which helps to improve the efficiency and accuracy of the test and further ensure the product quality and user experience; through the continuous optimization and improvement of the test cases, the test process can be continuously improved, the overall quality and effect of the test can be improved, which helps the enterprise to continuously improve the products and services and enhance its competitiveness and market position.

[0041] On the other hand, the embodiments of the present application also provide an automated test device, and the device includes:

[0042] At least one processor;

[0043] And a memory communicatively connected to the at least one processor;

[0044] Wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute an automated test method as described above.

[0045] On the other hand, the embodiments of the present application also provide a non-volatile computer storage medium storing computer-executable instructions, and when the computer executes the executable instructions, the above-described automated test method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:

[0047] Figure 1 is a schematic flowchart of an automated test method provided by an embodiment of the present application;

[0048] Figure 2 is an internal structure schematic diagram of an automated test device provided by an embodiment of the present application;

[0049] Figure 3 is an internal structure schematic diagram of an automated test device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0050] To make the objectives, technical solutions, and advantages of this application more clear, the following will clearly and completely describe the technical solutions of this application in conjunction with specific embodiments of this application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0051] This application discloses an automated testing method, device, and medium, aiming to solve the problems of low testing efficiency, resource waste, and difficult management existing in the existing testing methods.

[0052] The following will, in conjunction with the drawings, elaborate on the technical solutions provided by each embodiment of this application.

[0053] Figure 1 It is a schematic flowchart of an automated testing method provided by an embodiment of this application.

[0054] The implementation of the analysis method involved in the embodiments of this application can be a terminal device or a server, and this application does not impose special restrictions on this. For the convenience of understanding and description, the following embodiments will be described in detail using a server as an example.

[0055] It should be noted that this server can be a single device or a system composed of multiple devices, that is, a distributed server, and this application does not make specific limitations on this.

[0056] As Figure 1 shown, an automated testing method provided by an embodiment of this application includes:

[0057] 101. Determine the corresponding items to be tested and functions to be referenced according to the actual testing requirements of the user.

[0058] To improve the quality of software products and the user experience, the server determines multiple items to be tested according to the actual testing requirements of the user. Each item to be tested corresponds to a set of functions to be referenced, and these functions are used to implement specific testing functions. On the automated testing platform, a corresponding project folder is created for each item to be tested. At the same time, function files corresponding to the functions to be referenced are also created, and these files store the source code and related configuration information of the functions.

[0059] In an embodiment of this application, in order to improve the efficiency and quality of software development, it is decided to build a comprehensive automated testing platform. This platform integrates three core functions: timed task scheduling, test project management, and function library management, aiming to achieve the automation, standardization, and high efficiency of the testing process.

[0060] The scheduled task module allows users to create, edit, delete, and manage scheduled tasks, specifying the execution time and frequency of test projects. The test project management module is used to manage the entire life cycle of test projects, including project creation, configuration, execution, and report generation. The function file module centrally manages various functions and tools required during the test process, including test assertions, data generation, auxiliary functions, etc. Test cases are written on the automated test platform, and functions such as product search and result verification in the function library are called. A scheduled task is created to set the automatic execution of test projects at midnight every day.

[0061] Through the above embodiments, an automated test platform with comprehensive functions and convenient operation is successfully constructed. This platform not only improves the test efficiency and accuracy but also promotes the standardization and regularization of the test process, providing strong quality assurance support for software development teams.

[0062] In an embodiment of the present application, after the server determines the corresponding project to be tested and the functions to be referenced according to the actual test requirements of the user, based on the interface module on the automated test platform, corresponding automated test interfaces are written for the project to be tested. These interfaces are designed to be able to automatically interact with the project to be tested to complete specific test tasks. After writing the automated test interfaces, the interface information corresponding to each interface can be determined. It should be noted that the interface information in the embodiments of the present application at least includes: interface number, interface name, and interface address. The interface number is used to uniquely identify each interface, the interface name is used to briefly describe the interface function, and the interface address is used to specify the network location of the interface.

[0063] Subsequently, the server adds all the written automated test interfaces and their corresponding interface information to the interface information list in the interface module, so that all interfaces can be managed in a unified list, greatly improving the management efficiency.

[0064] To facilitate the management of automated test interfaces, the test platform presets multiple information management buttons in the interface information list. These buttons include an edit button, a copy button, and a delete button. The edit button is used to modify the interface information, the copy button is used to quickly create similar interfaces, and the delete button is used to remove interfaces that are no longer needed. When testers need to manage a certain interface, they only need to click the corresponding button to trigger the corresponding operation.

[0065] When the information management button is clicked, the server will obtain the corresponding trigger request and manage the interface information of the corresponding automated test interface according to this request. For example, if the edit button is clicked, the server will open an edit window, allowing testers to modify information such as the interface number, name, or address of the interface. After the modification is completed, the new interface information will be saved and updated to the interface information list. It should be noted that the information management buttons in the embodiments of this application include an edit button, a copy button, and a delete button.

[0066] In an embodiment of this application, after the server adds an automated test interface and the corresponding interface information to the interface information list of the interface module, multiple operation buttons are preset in the interface module. These buttons are used to trigger different operation requests to meet the different needs of testers for the automated test interface. When a tester clicks a certain operation button, the server will obtain the operation request for the corresponding automated test interface. It should be noted that the operation requests in the embodiments of this application include information testing, result viewing, information import, etc.

[0067] If the operation request is information testing, the server first needs to determine the interface information corresponding to at least one selected interface to be tested. It should be noted that the interface information in the embodiments of this application includes interface number, name, address, etc. Then, the server will test the selected interface to be tested according to this interface information. During the testing process, the server will verify whether the function of the interface is normal and whether the response time meets the expectations, etc.

[0068] If the operation request is result viewing, the system will first determine the current time. Then, it will obtain the test record with the shortest time interval from the current time and the corresponding test result from the test records. In this way, testers can quickly understand the latest test results in order to discover and solve problems in a timely manner.

[0069] If the operation request is information import, the system will display a corresponding information import interface. This interface allows testers to input or upload the interface information to be imported. This information can be new interface information, update existing interface information, or import interface information from other sources, etc. The system will automatically update the interface information list according to the imported information to ensure the accuracy and integrity of the information.

[0070] In an embodiment, in order to meet the continuously changing test requirements, the test platform will continuously optimize and improve the functions of the interface module. For example, more operation buttons can be added, the operation process can be adjusted, or the data processing method can be improved, etc. Through continuous iteration and update, ensure that the test platform always maintains an efficient, accurate, and stable state.

[0071] In one embodiment of the present application, after the server determines the corresponding items to be tested and functions to be referenced according to the actual test requirements of the user, it determines the test cases to be executed in the test case set of the item to be tested. These test cases cover various functions and scenarios of the project to ensure the overall quality and stability of the software. For each test case to be executed, its corresponding test interface is further determined. Each test interface is a bridge for interaction between the test case to be executed and the software, and is used to verify the correctness and reliability of the software function.

[0072] Based on the basic information in the interface information, the test interface information corresponding to each test interface is modified. This information may include interface parameters, request formats, response formats, etc., so as to ensure matching with the test cases to be executed. After modification, each test case to be executed corresponds to an automated test interface. These interfaces are customized and optimized, and can automatically execute the corresponding test tasks and generate accurate test results.

[0073] 102. Based on the function file of the function to be referenced, perform business configuration on the item to be tested, and add the corresponding configuration information to the test cases of the item to be tested.

[0074] Based on the function file, perform business configuration on each item to be tested. It should be noted that the configuration information in the embodiments of the present application includes interface parameters, data input / output formats, etc. After the configuration is completed, the server adds these corresponding configuration information to the corresponding test cases for use during the execution of the test.

[0075] In one embodiment of the present application, after the server performs business configuration on the item to be tested, it determines the item to be tested and determines the configuration information corresponding to the business configuration related to the item to be tested to ensure that the test can accurately simulate the actual business scenario. It should be noted that the configuration information in the embodiments of the present application usually includes test environment settings, data input formats, parameter settings, etc.

[0076] After determining the configuration information, it is necessary to call the configuration information according to the actual requirements to ensure that the configuration information can be correctly applied to the subsequent test process. It should be noted that the call process in the embodiments of the present application can be completed through script programming or a preset configuration management tool.

[0077] Then, determine the interface information corresponding to the automated test interface in the interface module, so as to provide basic data for subsequent interface debugging. It should be noted that the interface information corresponding to the automated test interface in the embodiments of the present application includes interface numbers, names, addresses, and related parameters and request formats, etc.

[0078] Based on the obtained interface information and configuration information, the server conducts interface debugging on the automated test interfaces. During the debugging process, it is necessary to verify the correctness of the interfaces, response time, and consistency with business configurations, etc. Through this step, it can be ensured that the automated test interfaces can work properly and accurately reflect the functional performance of the software. After debugging, the automated test interfaces are integrated into the automated test platform. Through the unified management interface of the automated test platform, these interfaces can be easily operated and monitored. It should be noted that the test platform in the embodiments of this application provides rich management functions, such as starting, stopping, and result viewing of interfaces, which facilitates the test team to conduct efficient management and operation.

[0079] In one embodiment, to meet the ever-changing test requirements, the automated test platform continuously optimizes and improves the management functions of the automated test interfaces. For example, new interface management tools can be added, existing debugging processes can be improved, or interface parameters can be adjusted, etc. Through continuous iteration and update, it can be ensured that the automated test interfaces always maintain an efficient and accurate state.

[0080] 103. Run the test cases through a preset execution script and generate corresponding test reports to complete the automated test.

[0081] In one embodiment of this application, to ensure that the software can be fully tested at different time periods, a preset timing task tool is used to set specific execution times and frequencies for each preset execution script. For example, the test cases for some key functions may be set to execute once at midnight every day, while the test cases for other non-key functions may be executed once a week. When the set execution time arrives, the system will automatically run the corresponding test cases and generate corresponding test reports.

[0082] The server executes the preset execution script according to the execution time and frequency corresponding to the preset execution script, and runs the corresponding test cases. During the execution process, the script records the execution results of each step in real time, captures necessary screenshots, and generates a detailed test report containing all test details after the test is completed. The test report includes information such as passed / failed test cases, error screenshots, and execution time. The test report is saved as a file in HTML or XML format for subsequent analysis and viewing, and is automatically saved to a specified folder. The file name contains date information to facilitate the distinction of test reports on different dates.

[0083] Team members can quickly understand the status of new functions the next morning by viewing the latest test reports, including which tests passed, which failed, and the specific reasons and evidence for failure (such as error screenshots). Based on the feedback of the test report, the team can quickly locate and fix problems to ensure continuous improvement of software quality.

[0084] In one embodiment of the present application, the server runs test cases by means of a preset execution script and according to the execution time and execution frequency to obtain corresponding test reports. After completing the automated testing, the server obtains the test results corresponding to each test case based on the test reports, providing basic data for subsequent analysis. It should be noted that the test results in the embodiments of the present application include passing the test, failing the test, exceptions, etc. Then, the obtained test results are matched with the preset target test results. If it is found that the test results do not match the target test results, that is, there are test failures or exceptions, it is necessary to enter the next analysis process. It should be noted that the target test results in the embodiments of the present application are set in the test plan stage and represent the quality standards that the software should meet.

[0085] For the unmatched test results, the server will conduct a detailed analysis to determine the specific reasons for the test failures or exceptions. Specifically, it can view test logs, screenshots, exception information, etc. After analysis, the test team determines the test problems corresponding to the test cases. These problems may be software defects, incorrect test environment configurations, unreasonable test case designs, etc.

[0086] Based on the determined test problems, the server optimizes the corresponding test cases to ensure that the actual performance of the software can be accurately reflected in the next test. It should be noted that the optimization measures in the embodiments of the present application may include fixing software defects, adjusting test environment configurations, improving test case designs, etc.

[0087] After running the automated testing for a period of time, the server will generate a detailed test report. It should be noted that the test reports in the embodiments of the present application include information such as the execution results, problem discoveries, and performance data of each test case. The server will regularly analyze these test reports, identify potential problems and improvement points in the test reports, and optimize and adjust the test cases according to the results. Moreover, as the project progresses and requirements change, the server will continuously optimize and improve the automated test interfaces, adjust the interface design, parameter configurations, or call logics, etc. according to the actual test results and feedback to ensure the accuracy and effectiveness of the testing.

[0088] Through continuous automated testing and report analysis, the server can continuously optimize the project to be tested and related functions, and update and adjust business configurations, scheduled task settings, and test case contents according to actual requirements. At the same time, it will also cooperate closely with the development team to repair and improve the discovered defects and problems, further improving the quality and stability of the software.

[0089] The above is the method embodiment proposed by the present application. Based on the same inventive concept, the embodiments of the present application also provide an automated testing device, the structure of which is asFigure 2 as shown

[0090] Figure 2 The figure is a schematic internal structure diagram of an automated test device provided by an embodiment of the present application. As Figure 2 shown, the device includes:

[0091] A determination module 201, configured to determine corresponding items to be tested and functions to be referenced according to the actual test requirements of the user;

[0092] A configuration module 202, configured to perform service configuration on the items to be tested based on the function files of the functions to be referenced, and add the corresponding configuration information to the test cases of the items to be tested;

[0093] An operation module 203, configured to run the test cases through a preset execution script and generate corresponding test reports to complete the automated test.

[0094] Figure 3 The figure is a schematic internal structure diagram of an electronic device provided by an embodiment of the present application. As Figure 3 shown, the device includes:

[0095] At least one processor;

[0096] And a memory communicatively connected to the at least one processor;

[0097] Wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automated test method described in any of the above embodiments.

[0098] In an embodiment of the present application, the above processor can execute: determining corresponding items to be tested and functions to be referenced according to the actual test requirements of the user;

[0099] Performing service configuration on the items to be tested based on the function files of the functions to be referenced, and adding the corresponding configuration information to the test cases of the items to be tested;

[0100] Running the test cases through a preset execution script and generating corresponding test reports to complete the automated test.

[0101] An embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, and when the computer executes the executable instructions, it can execute the automated test method described in any of the above embodiments.

[0102] In an embodiment of the present application, the above processor can execute: determining corresponding items to be tested and functions to be referenced according to the actual test requirements of the user;

[0103] Based on the function file of the function to be referenced, perform business configuration on the project to be tested, and add the corresponding configuration information to the test cases of the project to be tested;

[0104] Run the test cases through a preset execution script and generate the corresponding test report to complete the automated test.

[0105] Each embodiment in this application is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. The key point of each embodiment is to illustrate the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant parts, reference can be made to the partial description of the method embodiments.

[0106] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0107] The devices and media provided in the embodiments of the present application correspond one-to-one with the methods. Therefore, the devices and media also have beneficial technical effects similar to those of their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be elaborated here.

[0108] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.

[0109] This application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices generate for implementation in the processFigure 1 means for the functions specified in one or more processes and / or blocks Figure 1 or in a block or blocks.

[0110] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction means that implements the functions specified in one Figure 1 or more processes and / or blocks Figure 1 or in a block or blocks.

[0111] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one Figure 1 or more processes and / or blocks Figure 1 or in a block or blocks.

[0112] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0113] Memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.

[0114] Computer-readable media includes both permanent and non-permanent, removable and non-removable media implemented by any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0115] It should also be noted that the term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising said element.

[0116] The above are only examples of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. An automated testing method, characterized in that, The method includes: Determine the corresponding item to be tested and the function to be referenced according to the actual test requirements of the user; Based on the function file of the function to be referenced, perform business configuration on the item to be tested, and add the corresponding configuration information to the test case of the item to be tested; Run the test case through a preset execution script, and generate a corresponding test report to complete the automated test.

2. The automated testing method according to claim 1, characterized in that, The step of running the test case through a preset execution script and generating a corresponding test report to complete the automated test specifically includes: Use a preset scheduled task tool to set the execution time and execution frequency of the scheduled test script for the preset execution script; Run the test case through the preset execution script according to the execution time and execution frequency to obtain a corresponding test report and complete the automated test.

3. The automated testing method according to claim 1, characterized in that, Before determining the corresponding item to be tested and the function to be referenced according to the actual test requirements of the user, the method further includes: Create an automated test platform; the automated test platform includes a scheduled task, a test item, and a function file.

4. An automated testing method according to claim 1, characterized in that, After determining the corresponding item to be tested and the function to be referenced according to the actual test requirements of the user, the method further includes: Based on the interface module on the automated test platform, write an automated test interface corresponding to the item to be tested, and determine the interface information corresponding to the written automated test interface; Add the automated test interface and the interface information corresponding to the automated test interface to the interface information list of the interface module; the interface information includes at least: interface number, interface name, and interface address; Based on the information management button preset in the interface information list, obtain the corresponding trigger request, and manage the interface information of the corresponding automated test interface based on the trigger request; the information management button includes an edit button, a copy button, and a delete button.

5. An automated testing method according to claim 4, characterized in that, After adding the automated test interface and the interface information corresponding to the automated test interface to the interface information list of the interface module, the method further includes: Based on the preset operation button in the interface module, obtain the operation request for the corresponding automated test interface; the operation request includes information testing, result viewing, and information importing; In the case where the operation request is information testing, determine the interface information corresponding to at least one selected interface to be tested, and test the interface to be tested according to the interface information; In the case where the operation request is result viewing, determine the current time, and obtain the test record with the shortest time interval from the current time and the corresponding test result; In the case where the operation request is information importing, display the corresponding information import interface, and receive the interface information to be imported based on the information import interface.

6. An automated testing method according to claim 1, wherein After determining the corresponding item to be tested and the function to be referenced according to the actual test requirements of the user, the method further includes: In the use case set of the item to be tested, determine the test case to be executed, and determine the test interface corresponding to the test case to be executed; Modify the test interface information corresponding to the test interface according to the basic information in the interface information, and obtain the automated test interface corresponding to the test case to be executed.

7. An automated testing method according to claim 1, characterized in that, After performing business configuration on the project to be tested based on the function file of the function to be referenced, the method further includes: Determine the configuration information corresponding to the business configuration and call the configuration information; Determine the interface information corresponding to the automated test interface in the interface module, and based on the interface information and the configuration information, perform interface debugging on the automated test interface in the interface module; Integrate the debugged automated test interface onto the automated test platform to manage the debugged automated test interface through the automated test platform.

8. An automated testing method according to claim 2, wherein After running the test case through the preset execution script according to the execution time and execution frequency to obtain the corresponding test report and complete the automated test, the method further includes: Obtain the test result corresponding to the test case according to the test report, and determine whether the test result matches the preset target test result; If not, analyze the test result to determine the test problem corresponding to the test case, and optimize the test case according to the test problem.

9. An automated test device, characterized in that, The device includes: A determination module for determining the corresponding project to be tested and the function to be referenced according to the actual test requirements of the user; A configuration module for performing business configuration on the project to be tested based on the function file of the function to be referenced and adding the corresponding configuration information to the test case of the project to be tested; A running module for running the test case through a preset execution script and generating the corresponding test report to complete the automated test.

10. An electronic device, characterized in that, The device includes: At least one processor; And a memory communicatively connected to the at least one processor; Wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute an automated test method according to any one of claims 1-8.

11. A non-volatile computer storage medium storing computer-executable instructions, characterized in that, The computer implements an automated test method according to any one of claims 1-8 when executing the executable instructions.

Citation Information

Cited By

  • Method and system for testing reliability of photoelectric pod, and computer

    CN120881269A