A method, device and medium for automated testing of a three-dimensional CAD system

By recording the modeling operation process and executing test cases of the 3D CAD system, the problem of low efficiency in automated testing of the 3D CAD system is solved, and more efficient and accurate test results are achieved.

CN118503139BActive Publication Date: 2024-09-24SHANDONG HUAYUN 3D TECH CO LTD

Patent Information

Application Number
CN202410961360.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-24
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

The existing technology lacks an automated testing solution suitable for 3D CAD systems, resulting in low efficiency of testing work and affecting the testing effect and accuracy.

Method used

By recording the modeling operation process in the 3D CAD system as the historical operation data of the recorded test case, receive test case screening and environment configuration instructions, determine the target test case and execute it in the target test environment, and compare the execution results to determine whether the test passes or not. and generate test reports.

Benefits of technology

It reduces the workload of testers, improves the efficiency of automated testing, and enhances the accuracy and coverage of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503139B
    Figure CN118503139B
Patent Text Reader

Abstract

The present application relates to the field of automated testing, and specifically discloses an automated testing method, device and medium for a three-dimensional CAD system, wherein the method includes: recording the modeling operation process in the modeling workspace as the historical operation data of the recorded case; determining the target test case in the recorded case based on the test case screening instruction; receiving the environment configuration instruction from the user, and selecting the target test environment based on the environment configuration information in the environment configuration instruction; executing the target test case in the target test environment to obtain the execution result of the target test case in the target test environment; comparing the execution results of the target test case in the target test environment and the benchmark environment to determine whether the target test case has passed the test; the benchmark environment is the environment in which the case is recorded. The case recording is carried out based on the historical version of the document, which reduces the complex steps of the case recording process and increases the types of case recording.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated testing, and in particular to an automated testing method, equipment and medium for a three-dimensional CAD system. Background Art

[0002] Automated testing plays a pivotal role in the field of software development. It is a key link in ensuring software quality and improving R&D efficiency. The core of automated testing is to use professional automated tools to execute according to predetermined test cases to ensure that the software meets the expected requirements in all aspects. This method not only greatly improves the efficiency of testing and reduces tedious manual operations, but also reduces the risk of human errors through standardized processes, ensuring the consistency and accuracy of testing.

[0003] However, in the special field of 3D CAD systems, the implementation of automated testing faces many challenges. Currently, there is a lack of an automated testing solution that can be fully applied to 3D CAD systems on the market, which results in a large amount of manpower and time costs required for testing 3D CAD systems. Testers need to test various complex modeling scenarios one by one, which is not only labor-intensive but also inefficient. In addition, due to the complexity and diversity of 3D CAD systems, manual testing often cannot cover all modeling scenarios, which to some extent affects the effectiveness and accuracy of the test. Summary of the invention

[0004] In order to solve the above problems, the present application proposes an automated testing method, device and medium for a 3D CAD system, wherein the method comprises:

[0005] The modeling operation process in the modeling workspace is recorded as the historical operation data of the recorded case; the modeling operation in the modeling operation process is generated by manual modeling by the user or by importing model files; the modeling operation process includes version nodes and modeling operation records; a test case screening instruction from the user is received, and a target test case is determined in the recorded case based on the test case screening instruction; an environment configuration instruction from the user is received, and a target test environment is selected based on the environment configuration information in the environment configuration instruction, wherein the environment configuration information includes product version, kernel version, connection information and cloud CAD user information; the target test case is executed in the target test environment to obtain the execution result of the target test case in the target test environment; whether the target test case has passed the test is determined by comparing the execution results of the target test case in the target test environment and the benchmark environment; the benchmark environment is the environment in which the case was recorded.

[0006] In one example, executing the target test case in the target test environment specifically includes: determining a target pre-configuration file corresponding to a characteristic operation process of the target test case; the target pre-configuration file includes a target version node and a target modeling operation record corresponding to the target test case; based on the target version node and the target modeling operation record, constructing a target script for the target test case in the target test environment; and executing the target script to test the target test case in the target test environment.

[0007] In one example, the determination of whether the target test case has passed the test is made by comparing the execution results of the target test case in the target test environment and the benchmark environment, specifically including: obtaining a first execution result of the target test case in the target test environment and a second execution result in the benchmark environment; if the instance information, entity information, and element information in the first execution result are completely consistent with those in the second execution result, then the target test case has passed the test in the target test environment; if the instance information, entity information, and element information in the first execution result are not completely consistent with those in the second execution result, then the target test case has failed the test in the target test environment.

[0008] In one example, after comparing the execution results of the target test case in the target test environment and the benchmark environment to determine whether the target test case has passed the test, the method also includes: obtaining the case execution results of the target test case, the test views generated during the execution process, and the detection comparison images that appear when the execution fails; generating a test report for the target test case based on the case execution results, the test views generated during the execution process, and the detection comparison images that appear when the execution fails; the test report includes the case name, abnormal case, and test pass rate of the target test case.

[0009] In one example, recording the modeling operation process in the modeling workspace as historical operation data of the recorded use case specifically includes: receiving a use case recording instruction from the user, the use case recording instruction including basic information of the use case; the basic information of the use case includes the use case name, use case type, module to which the use case belongs, use case label and use case notes; based on the basic information of the use case, creating a use case entry in the use case database and returning the modeling workspace to the user; monitoring the modeling operation records of the user in the modeling workspace and saving the modeling operation records to the use case database; after the user completes the modeling, updating the recorded use case information in the use case database based on the modeling results.

[0010] In one example, returning the modeling workspace to the user specifically includes: receiving environment configuration information from the user; performing login verification on the user based on the environment configuration information; if the verification passes, returning the modeling workspace to the user, and allowing the user to perform modeling operations in the modeling workspace to record use cases; if the verification fails, not returning the modeling workspace to the user.

[0011] In one example, monitoring the modeling operation records of the user in the modeling workspace and saving the modeling operation records to the use case database specifically includes: receiving a node save request from the user; creating a version node for the model in the modeling workspace at the current moment based on the node save request; and generating a use case label for the version node based on the node save request.

[0012] In one example, the automated testing method of the three-dimensional CAD system is applied to an automated testing system, which includes a client, a server, and a cloud CAD system; the client is used to interact with a user and send operation requests to the server, and the user can publish recorded use cases, start test tasks, and view test results through the client; the server is used to provide a cloud CAD system interface to the client, and to store and manage use case data; the cloud CAD system includes an instance manager and a modeling core, and the cloud CAD system is used to provide a target environment for use case recording and use case execution.

[0013] The present application also provides an automated testing device for a three-dimensional CAD system, comprising: 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 so that the at least one processor can execute a method as described in any one of the above examples.

[0014] The present application also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to be able to execute a method as described in any of the above examples.

[0015] The method proposed in this application can bring the following beneficial effects: the modeling operation process of each modeling document is obtained through the modeling workspace, so that when recording a use case, the staff can start from the version node and modeling operation record corresponding to the modeling operation process, reduce the complex steps of the use case recording process, and increase the types of recorded use cases. At the same time, based on the version node and modeling operation record, reproducible modeling data can be generated, so as to reproduce the user's modeling operation in the target test environment, reduce the workload of testers in the operation reproduction process, and improve the efficiency of automated testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute 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 on the present application. In the drawings:

[0017] Figure 1 This is a module schematic diagram of an automated testing system in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a flow chart of an automated testing method for a three-dimensional CAD system in an embodiment of the present application;

[0019] Figure 3 This is a schematic diagram of an automated testing business process of a three-dimensional CAD system in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of a use case recording process in an automated test of a three-dimensional CAD system in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a timing diagram of a user recording use case in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of a version node and a modeling operation record of a modeling document in an embodiment of the present application;

[0023] Figure 7 This is a schematic diagram of the execution use case flow in an automated test of a three-dimensional CAD system in an embodiment of the present application;

[0024] Figure 8 This is a schematic diagram of the structure of an automated testing device for a three-dimensional CAD system in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0026] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0027] Figure 1 The automated testing system used in the embodiment of the present application includes a client, a server, and a cloud CAD system. The client is used to interact with the user and send operation requests to the server. The user can publish recorded use cases, start test tasks, and view test results through the client. The server is used to provide a cloud CAD system interface to the client and to store and manage use case data; the cloud CAD system includes an instance manager and a modeling core, and the cloud CAD system is used to provide a target environment for use case recording and use case execution.

[0028] Figure 2 A flowchart of an automated testing method for a 3D CAD system provided in one or more embodiments of this specification. The method can be applied to different types of 3D CAD systems for testing, and can also be used to test different system functional modules, such as part file modeling function, assembly file modeling function, and data conversion function.

[0029] The process can be executed by a computing device in the corresponding field, and certain input parameters or intermediate results in the process can be manually intervened and adjusted to help improve accuracy.

[0030] The analysis method involved in the embodiments of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.

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

[0032] like Figure 2 and Figure 3 As shown, the embodiment of the present application provides an automated testing method for a three-dimensional CAD system, comprising:

[0033] S201: Record the modeling operation process in the modeling workspace as historical operation data of the recording use case.

[0034] First, through the modeling workspace, the modeling operation process of the user during the modeling process is recorded as the historical operation data of the optional recording use case. It should be noted that the modeling operations in the modeling operation process are generated by manual modeling by the user or by importing model files, and the modeling operation process includes version nodes and modeling operation records.

[0035] In one embodiment, Figure 4 and Figure 5 As shown, when the user wants to record a use case, the user first sends a use case recording instruction to the client, where the use case recording instruction contains the basic information of the use case. The basic information of the use case here includes the use case name, use case type, module to which the use case belongs, use case label, and use case notes. Then the client creates a use case entry in the use case database based on the basic information of the use case, and returns the modeling workspace to the user. The client saves the modeling operation record to the use case database by listening to the modeling operation record of the user in the modeling workspace. After the user completes the modeling, the client updates the recorded use case information in the use case database based on the modeling result, thereby obtaining the recorded use case information corresponding to the test case.

[0036] The following is an explanation of the modeling document, its historical versions, version nodes, and modeling operation records:

[0037] In one embodiment, the recording and execution of automated test cases in the present application are based on the modeling operation process mechanism of the 3D CAD system. Among them, the cloud 3D CAD system defines each modeling feature as a step of "modeling operation process", and each step of the modeling operation process contains all the parameters of the modeling step. By connecting these "modeling operation processes", the model document can connect all the operation histories in the modeling process. Based on this modeling operation process mechanism, each modeling operation of the user can be recorded and traced back. The following is a further introduction to the version history mechanism and related functions in the modeling process of the cloud 3D CAD system:

[0038] The modeling operation process mechanism based on the modeling model can realize the version management of the modeling model. Users can create version nodes for the model at any time and tag them for archiving. At the same time, branches can be created from a version node to support different derivative designs based on the same model. In the process of multi-person collaboration, the modeling operation process mechanism can effectively ensure the reliability and traceability of the design and realize the design based on the same data source.

[0039] In one embodiment, the overall data organization hierarchy of the "modeling operation process" mode adopted in this application is: project->document->version, that is, each project contains multiple modeling documents, each document contains multiple historical versions, and each historical version corresponds to a modeling operation process. The advantages of this design are as follows: 1. The version operation is clearly defined, and only focuses on the modeling operations within the document, and no longer focuses on non-modeling operations such as creation, deletion, and renaming of the document itself. 2. It is more flexible for users, and the history between documents is independent of each other. For example: you can access version 1 of document 1, and you can also access version 2 of document 2. 3. The design idea is similar to the model version management of PDM, and there is a corresponding relationship, which is convenient for integration with the data management platform. The design idea of ​​document-level version history is explained in detail below: Figure 6 As shown, there are two important concepts in version history: version node Version and modeling operation record Micro version, which correspond to large logical nodes and small operation nodes respectively. Figure 6 The large dots in the middle are version nodes, and the small dots corresponding to the operations in the figure are operation nodes. The large version nodes are divided into hollow dots and solid dots. The hollow dots are branch head nodes, and the solid dots are immutable snapshot nodes. Each snapshot node. Figure 6 In the example, the user first made a model of the V1 node and manually created the V1 node; then continued to operate four steps on the main branch to generate a new model; then, based on the V1 node, the user created the B1 branch (the right line in the figure), and the model changed to the V1 state; based on the model in the V1 state, six steps were performed on the B1 branch to generate a new model. So far, the user has made a different model in the main branch and the B1 branch, and both models are generated based on the same model in the V1 state. Both models will be saved as recorded use cases. At the same time, when saving, not only the version node corresponding to the model result is saved, but also the modeling operation record corresponding to each operation is saved.

[0040] S202: Receive a test case screening instruction from a user, and determine a target test case in the recorded test cases based on the test case screening instruction.

[0041] When a test task is to be performed, the user interacts with the client and sends a test case filtering instruction. The client can use the test case filtering instruction to determine the target test case to be tested from all recorded test cases. It should be noted that the test case filtering instruction here contains optional information for filtering recorded test cases, such as case name, case type, module, label, remarks and other attributes.

[0042] S203: Receive an environment configuration instruction from a user, and select a target test environment based on the environment configuration information in the environment configuration instruction.

[0043] like Figure 7 As shown, after the user decides on the target test case to be tested, the test environment for the target test case needs to be configured. At this time, the user interacts with the user end to send an environment configuration command to the user end, and the user end configures the environment information based on the environment configuration command. The environment configuration information here includes product version, kernel version, connection information, and cloud CAD user information. Among them, the product version refers to the product version of the CAD system, the kernel version refers to the version of the modeling kernel on the cloud CAD system end in the automated testing system, the connection information refers to the connection information between the server end and the cloud CAD system end, and the cloud CAD user information refers to the user information of the user in the cloud CAD system, including the user name and login password login information.

[0044] S204: Execute the target test case in the target test environment to obtain an execution result of the target test case in the target test environment.

[0045] After determining the target test case and the target test environment, the target test case needs to be executed in the target test environment. After the execution is completed, the executed operation information and the model file are saved as the basis for case comparison.

[0046] In one embodiment, when executing the target test case, the client needs to use the account password in the cloud CAD user information in the environment configuration information to log in and verify. At the same time, the server generates an operation record, traverses the test cases in the operation pool, and drives the CAD system to create projects and documents in sequence according to the use case information, and imports the prerequisite files required for the use case. The script is built and executed according to the saved modeling operation record, thereby completing the reproduction of the test case in the target environment.

[0047] S205: Determine whether the target test case passes the test by comparing the execution results of the target test case in the target test environment and the benchmark environment; the benchmark environment is the environment in which the test case is recorded.

[0048] When each test case is executed, a test record will be generated, including the case execution results, the test views generated during the execution process, the detection comparison images that appear when the execution fails, etc. After the execution of all cases is completed, a test report will be generated to summarize the test situation, including report information, execution cases, abnormal cases, pass rate and other case execution or statistical data. It should be noted that the benchmark environment here refers to the environment information when the test case is recorded. When the test results of the target test case meet the tester's expectations, the target test case passes. The case execution results of the test case include the instances, entities, elements and other information contained in the model. By comparing the execution results in the target test environment and the benchmark environment, check whether there are inconsistencies in the data information such as instances, entities, elements, etc. to determine whether the test passes.

[0049] In one embodiment, the use case types of recorded use cases include part use cases, assembly use cases, engineering drawing use cases and data conversion use cases, among which the modeling document of the data conversion use case is the source file that needs to be converted; in the part use case, the user can only perform modeling in the modeling workspace corresponding to the part document, while in the assembly use case, the part document can be assembled and modeling can also be performed in the modeling workspace corresponding to the assembly document; the engineering drawing use case is a two-dimensional modeling use case.

[0050] like Figure 8 As shown, an embodiment of the present application further provides an automated testing device for a three-dimensional CAD system, comprising: at least one processor; and a memory in communication connection with 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 so that the at least one processor can:

[0051] Obtain the document history version of each modeling document through the modeling workspace as a recording case; the modeling document is generated by manual modeling by the user or by importing a model file for modeling; the document history version consists of the version node corresponding to each modeling document and the modeling operation record; receive a test case screening instruction from the user, and determine the target test case in the recording case based on the test case screening instruction; receive an environment configuration instruction from the user, and select a target test environment based on the environment configuration information in the environment configuration instruction, wherein the environment configuration information includes a product version, a kernel version, connection information and a cloud CAD user information; execute the target test case in the target test environment to obtain the execution result of the target test case in the target test environment; determine whether the target test case has passed the test by comparing the execution results of the target test case in the target test environment and the benchmark environment; the benchmark environment is the environment in which the case was recorded.

[0052] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0053] Obtain the document history version of each modeling document through the modeling workspace as a recording case; the modeling document is generated by manual modeling by the user or by importing a model file for modeling; the document history version consists of the version node corresponding to each modeling document and the modeling operation record; receive a test case screening instruction from the user, and determine the target test case in the recording case based on the test case screening instruction; receive an environment configuration instruction from the user, and select a target test environment based on the environment configuration information in the environment configuration instruction, wherein the environment configuration information includes a product version, a kernel version, connection information and a cloud CAD user information; execute the target test case in the target test environment to obtain the execution result of the target test case in the target test environment; determine whether the target test case has passed the test by comparing the execution results of the target test case in the target test environment and the benchmark environment; the benchmark environment is the environment in which the case was recorded.

[0054] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on 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 the relevant parts can be referred to the partial description of the method embodiments.

[0055] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the 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 repeated here.

[0056] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0057] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0058] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0059] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0060] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

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

[0062] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0063] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0064] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An automated testing method for a 3D CAD system, characterized in that: include: By recording the modeling operation process in the modeling workspace, it serves as the historical operation data of the recording use case; The modeling operation in the modeling operation process is generated by manual modeling by the user or by importing a model file for modeling; the modeling operation process includes a version node and a modeling operation record; Receiving a test case screening instruction from a user, and determining a target test case in the recorded test cases based on the test case screening instruction; Receive an environment configuration instruction from a user, and select a target test environment based on environment configuration information in the environment configuration instruction, wherein the environment configuration information includes a product version, a kernel version, connection information, and cloud CAD user information; Executing the target test case in the target test environment to obtain an execution result of the target test case in the target test environment; By comparing the execution results of the target test case in the target test environment and the benchmark environment, determining whether the target test case has passed the test; The reference environment is the environment in which the use case is recorded; The modeling operation process in the modeling workspace is recorded as the historical operation data of the recording use case, specifically including: Receive a use case recording instruction from a user, wherein the use case recording instruction includes basic information of the use case; the basic information of the use case includes a use case name, a use case type, a module to which the use case belongs, a use case label, and a use case note; Based on the basic information of the use case, create a use case entry in a use case database, and return a modeling workspace to the user; Monitoring the modeling operation records of the user in the modeling workspace, and saving the modeling operation records to the use case database; After the user completes the modeling, the recorded use case information in the use case database is updated based on the modeling result.

2. The method according to claim 1, characterized in that The executing the target test case in the target test environment specifically includes: Determine a target pre-configuration file corresponding to the characteristic operation process of the target test case; the target pre-configuration file includes a target version node and a target modeling operation record corresponding to the target test case; Based on the target version node and the target modeling operation record, construct a target script for the target test case in the target test environment; The target script is executed to test the target test case in the target test environment.

3. The method according to claim 1, characterized in that The step of comparing the execution results of the target test case in the target test environment and the benchmark environment to determine whether the target test case has passed the test specifically includes: Obtaining a first execution result of the target test case in the target test environment and a second execution result in the reference environment; If the instance information, entity information, and element information in the first execution result are completely consistent with those in the second execution result, the target test case passes the test in the target test environment; If the instance information, entity information, and element information in the first execution result are not completely consistent with those in the second execution result, the target test case fails the test in the target test environment.

4. The method according to claim 1, characterized in that After comparing the execution results of the target test case in the target test environment and the benchmark environment to determine whether the target test case has passed the test, the method further includes: Obtain the test case execution result of the target test case, the test view generated during the execution process, and the detection comparison image that appears when the execution fails; Generate a test report for the target test case based on the execution result of the test case, the test view generated during the execution, and the detection comparison image that appears when the execution fails; The test report includes the test case name, abnormal test case and test pass rate of the target test case.

5. The method according to claim 1, characterized in that The returning the modeling workspace to the user specifically includes: Receive environment configuration information from the user; Based on the environment configuration information, performing login verification on the user; If the verification is successful, the modeling workspace is returned to the user, and the user is allowed to perform modeling operations in the modeling workspace to record a use case; If the verification fails, the modeling workspace is not returned to the user.

6. The method according to claim 1, characterized in that The monitoring of the modeling operation record of the user in the modeling workspace and saving the modeling operation record to the use case database specifically includes: Receive node saving request from user; Based on the node save request, create a version node for the model in the modeling workspace at the current moment; Based on the node save request, a use case label of the version node is generated.

7. The method according to claim 1, characterized in that The automated testing method of the three-dimensional CAD system is applied to an automated testing system, wherein the automated testing system includes a client, a server, and a cloud CAD system. The client is used to interact with the user and send operation requests to the server. The user can publish recording cases, start test tasks and view test results through the client; The server is used to provide a cloud CAD system interface to the client, and to store and manage use case data; The cloud CAD system end includes an instance manager and a modeling core, and the cloud CAD system end is used to provide a target environment for use case recording and use case execution.

8. An automated testing device for a three-dimensional CAD system, characterized in that: include: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed 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 perform the method according to any one of claims 1 to 7.

9. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Automatic test method and device of CAD software, storage medium and processor

    CN114116485A

  • Three-dimensional CAD software automatic test interface design method and system

    CN114546833A

  • Three-dimensional CAD software testing method and system based on unified test case script

    CN114546834A

  • Switch regression test method, equipment and medium

    CN116866242A

  • Automatic test method for reducing test technical threshold of intelligent terminal system

    CN117931620A

Cited By

  • Mechanical design knowledge long-term memory-oriented AI processing method and system

    CN120257996A

  • Simulation test method and system based on adaptive test environment

    CN120763070A

  • A method and system for performing simulation testing based on an adapted test environment

    CN120763070B