CAE software overtime prevention automatic test method

By implementing timeout and accuracy detection mechanisms in the CAE software testing framework, the resource waste and accuracy problems caused by CAE software timeouts are solved, and development and testing efficiency is improved.

CN120872807APending Publication Date: 2025-10-31KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510801317.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

CAE software is prone to resource waste, data loss and system crashes due to timeouts in highly complex and time-consuming engineering simulation tasks. Existing timeout prevention methods have problems such as high monitoring overhead, incomplete self-check point coverage and long development cycle.

Method used

Implement timeout and accuracy detection mechanisms in the testing framework. Compare the solution time and accuracy with the database, automatically restart the solver to prevent timeout, and generate a solution report.

Benefits of technology

This effectively avoids resource waste, ensures solution accuracy, improves the efficiency of CAE software development and testing, and shortens the development cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120872807A_ABST
    Figure CN120872807A_ABST
Patent Text Reader

Abstract

The invention provides a CAE (Computer Aided Engineering) software anti-timeout automatic test method, which belongs to the technical field of computer software anti-timeout detection and comprises the following steps: S1, establishing a database of a CAE software solution model; s2, running CAE software under the test framework, and starting to solve the model; s3, triggering a timeout detection mechanism in the test framework at the end of each solving stage; s4, after the solution is completely finished, triggering a test framework timeout detection mechanism; s5, triggering a test frame precision detection mechanism; s6, automatically generating a solution report; and S7, solving is finished. The overtime detection mechanism and the precision detection mechanism are realized in the test framework, so that the problem of resource waste caused by overtime operation of the CAE software is avoided, the solving precision is ensured, and the development efficiency of the CAE software is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a software anti-timeout testing method, and more particularly to an automated CAE software anti-timeout testing method, belonging to the field of computer software anti-timeout detection technology. Background Technology

[0002] CAE (Computer-Aided Engineering) software is a core tool for modern industrial R&D and innovation. Its core value lies in virtual verification to replace physical experiments, multidisciplinary collaborative design, and experiments that overcome physical limitations. CAE software testing is a crucial link in ensuring the reliability of simulation results, product safety, and R&D efficiency. Its importance is reflected in several key areas, including: ensuring the accuracy of simulation results, reducing product development risks, ensuring engineering safety and compliance, improving computational efficiency and resource utilization, and supporting software iteration and long-term maintenance.

[0003] CAE software is typically used for highly complex and time-consuming engineering simulation tasks (such as structural mechanics analysis and fluid dynamics simulation). Its long runtime and susceptibility to various factors make it highly susceptible to timeouts due to internal and external factors, leading to resource waste, data loss, and even system crashes. Timeout issues pose a significant challenge to automated testing.

[0004] Existing technologies for preventing timeouts mainly include the following methods, each with its own drawbacks: 1. Resource Pre-check and Dynamic Monitoring: Hardware resources are monitored using third-party monitoring tools. If resources do not meet the operating conditions, the CAE software is temporarily not run. This method requires real-time monitoring, incurring additional overhead on the system, and is only suitable for pre-run monitoring of the software.

[0005] 2. Timeout prevention design at the algorithm level: Implement a convergence self-checking mechanism through the coding stage. The drawback of this method is that the self-checking points are not easy to set and the coverage of self-checking points is incomplete, which leads to difficulty in algorithm implementation and a high failure rate.

[0006] 3. Task Scheduling and Containerization: This involves cluster management and setting the maximum runtime using a cluster scheduler. This method requires cluster adaptation, which lengthens the CAE software development cycle. Summary of the Invention

[0007] To address the aforementioned problems, this invention provides an automated testing method for CAE software to prevent timeouts, thus avoiding resource waste, data loss, or even system crashes caused by task timeouts.

[0008] To achieve the above objectives, the technical solution of the present invention is: an automated testing method for preventing timeouts in CAE software, characterized by comprising the following steps: S1. Establish a database for solving CAE software models. This database includes basic model information, the running time of each stage of the solver, the total solution time, and the model solution accuracy. S2, Run the CAE software within the test framework and begin solving the model; S3, at the end of each solution phase, triggers the timeout detection mechanism in the test framework to determine the timeout; S4. After the solution is completely completed, the test framework timeout detection mechanism is triggered to determine the total timeout. S5 triggers the test framework's precision detection mechanism to determine precision. S6 automatically generates a solution report; S7, Solution complete.

[0009] Furthermore, in step S3, the timeout judgment specifically involves comparing the running time of each stage of the corresponding model with the actual solution time by searching the database. If a timeout occurs, the timeout status is recorded and the solver is restarted; otherwise, the solution continues.

[0010] Furthermore, in step S4, the total timeout is calculated by comparing the total solution time of the corresponding model with the actual total solution time in the database. If a timeout occurs, the timeout is recorded and the solver is restarted. If no timeout occurs, the process proceeds to the next step.

[0011] Furthermore, step S5 involves determining the accuracy by comparing the solution accuracy of the corresponding model with the actual solution accuracy found in the database. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the process proceeds to the next step.

[0012] Furthermore, the solution report in step S6 includes solution model information, solution time for each stage, total solution time, and solution accuracy.

[0013] Furthermore, the following steps are added after step S3 and before step S4: During the solution process, a timeout detection mechanism in the test framework is triggered at a fixed frequency to prevent the software program from getting stuck between two solution stages. The runtime of each stage of the corresponding model is compared with the actual solution time by searching the database. If a timeout occurs, the timeout is recorded and the solver is restarted; otherwise, the solution continues.

[0014] Furthermore, it also includes the following steps: At the end of each solution phase, a test framework accuracy detection mechanism is triggered to search the database for the corresponding model solution accuracy and compare it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the solution continues.

[0015] Furthermore, it also includes the following steps: During the solution process, the test framework accuracy detection mechanism is triggered at a fixed frequency to search the database for the corresponding model solution accuracy and compare it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the solution continues.

[0016] The beneficial effects of the CAE software timeout prevention automated testing method of the present invention are as follows: This invention implements a timeout detection mechanism and an accuracy detection mechanism in the testing framework, thereby avoiding the resource waste caused by CAE software timeout and ensuring solution accuracy, thus improving the efficiency of CAE software development.

[0017] The automated testing method for preventing timeouts provided by this invention can significantly improve the efficiency of CAE software debugging and development, accelerate software iteration, and save development costs for CAE software vendors; at the same time, it improves the testing efficiency of testers and saves testing costs. Attached Figure Description

[0018] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0019] Figure 1 This is a flowchart of the CAE software anti-timeout automated testing method of the present invention. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Many specific details are set forth in the following description to provide a thorough understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the spirit of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0021] CAE (Computer-Aided Engineering) software is a core tool for modern industrial R&D and innovation. Its core value lies in virtual verification replacing physical experiments, multidisciplinary collaborative design, and experiments that overcome physical limitations. CAE software testing is a crucial step in ensuring the reliability of simulation results, product safety, and R&D efficiency. This invention provides an automated testing method for preventing CAE software timeouts. This method implements timeout detection and accuracy detection mechanisms within the testing framework, thereby avoiding resource waste caused by CAE software timeouts, ensuring solution accuracy, and improving CAE software development efficiency. The specific testing method is detailed below. Example 1

[0022] An automated testing method for preventing timeouts in CAE software, combined with Figure 1 As shown, it includes the following steps: S1. Establish a database for solving the CAE software model. This database includes basic model information, the running time of each stage of the solver, the total solution time, and the model's solution accuracy.

[0023] S2, run the CAE software under the test framework and start solving the model.

[0024] S3 triggers the timeout detection mechanism in the test framework at the end of each solution phase. It searches the database for the running time of each stage of the corresponding model and compares it with the actual solution time. If a timeout occurs, it records the timeout and restarts the solver. If no timeout occurs, it continues to solve the problem.

[0025] S4. After the solution is completely completed, the test framework timeout detection mechanism is triggered. The total solution time of the corresponding model is retrieved from the database and compared with the actual total solution time. If a timeout occurs, the timeout situation is recorded and the solver is restarted. If no timeout occurs, proceed to the next step.

[0026] S5 triggers the test framework accuracy detection mechanism, searches the database for the corresponding model solution accuracy and compares it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, proceed to the next step.

[0027] S6 automatically generates a solution report, including solution model information, solution time for each stage, total solution time, and solution accuracy.

[0028] S7, Solution complete. Example 2

[0029] Based on Example 1, combined with Figure 1 As shown, the following steps are added after step S3 and before step S4: During the solution process, a timeout detection mechanism in the test framework is triggered at a fixed frequency to prevent the software program from getting stuck between two solution stages. The runtime of each stage of the corresponding model is compared with the actual solution time by searching the database. If a timeout occurs, the timeout is recorded and the solver is restarted; otherwise, the solution continues. Example 3

[0030] Based on Example 1 or Example 2, the following steps are further added: At the end of each solution phase, a test framework accuracy detection mechanism is triggered to search the database for the corresponding model solution accuracy and compare it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the solution continues. Example 4

[0031] Based on Example 3, the following steps are further added: During the solution process, the test framework accuracy detection mechanism is triggered at a fixed frequency to search the database for the corresponding model solution accuracy and compare it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the solution continues.

[0032] Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

Claims

1. An automated testing method for preventing timeouts in CAE software, characterized in that, Includes the following steps: S1. Establish a database for solving CAE software models. This database includes basic model information, the running time of each stage of the solver, the total solution time, and the model solution accuracy. S2, Run the CAE software within the test framework and begin solving the model; S3, at the end of each solution phase, triggers the timeout detection mechanism in the test framework to determine the timeout; S4. After the solution is completely completed, the test framework timeout detection mechanism is triggered to determine the total timeout. S5 triggers the test framework's precision detection mechanism to determine precision. S6 automatically generates a solution report; S7, Solution complete.

2. The automated testing method for preventing timeouts in CAE software according to claim 1, characterized in that, In step S3, the timeout judgment is performed by comparing the running time of each stage of the corresponding model with the actual solution time in the database. If a timeout occurs, the timeout situation is recorded and the solver is restarted. If no timeout occurs, the solution continues.

3. The automated testing method for preventing timeouts in CAE software according to claim 1, characterized in that, In step S4, the total timeout is calculated by comparing the total solution time of the corresponding model with the actual total solution time in the database. If a timeout occurs, the timeout is recorded and the solver is restarted. If no timeout occurs, proceed to the next step.

4. The automated testing method for preventing timeouts in CAE software according to claim 1, characterized in that, Step S5 involves determining the accuracy by comparing the solution accuracy of the corresponding model with the actual solution accuracy in the database. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the process proceeds to the next step.

5. The automated testing method for preventing timeouts in CAE software according to claim 1, characterized in that, The solution report mentioned in step S6 includes solution model information, solution time for each stage, total solution time, and solution accuracy.

6. A CAE software timeout prevention automated testing method according to any one of claims 1-5, characterized in that, Add the following steps after step S3 and before step S4: During the solution process, a timeout detection mechanism in the test framework is triggered at a fixed frequency to prevent the software program from getting stuck between two solution stages. The runtime of each stage of the corresponding model is compared with the actual solution time by searching the database. If a timeout occurs, the timeout is recorded and the solver is restarted; otherwise, the solution continues.

7. A CAE software timeout prevention automated testing method according to any one of claims 1-5, characterized in that, It also includes the following steps: At the end of each solution phase, a test framework accuracy detection mechanism is triggered to search the database for the corresponding model solution accuracy and compare it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the solution continues.

8. A CAE software timeout prevention automated testing method according to any one of claims 1-5, characterized in that, It also includes the following steps: During the solution process, the test framework accuracy detection mechanism is triggered at a fixed frequency to search the database for the corresponding model solution accuracy and compare it with the actual solution accuracy. If the solution accuracy is low, the solution accuracy is recorded and the solver is restarted. If the solution accuracy meets the requirements, the solution continues.