A method and system for performing simulation testing based on an adapted test environment
By adopting a simulation testing method based on an adaptive testing environment, the problem of complex testing requirements for CAD software was solved, achieving efficient and reliable test results and ensuring operational consistency and the accuracy of test indicators.
Patent Information
- Application Number
- CN202511265077.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2045-09-05
AI Technical Summary
Existing automated testing solutions for CAD software are insufficient to meet complex testing needs, resulting in low testing efficiency and high costs.
A simulation testing method based on an adaptive testing environment is adopted. By obtaining test requirements, selecting simulation combinations and drawings, generating or updating the test environment, and conducting simulation tests in the test environment, including the update judgment of operation points and the execution of simulated operation instructions, the adaptability of drawings is verified by combining preset association libraries and simulation rules, and test indicators are recorded.
It improves the accuracy and reliability of testing, ensures operational consistency, obtains test indicators with practical application value, reduces the deviation of test results, and improves testing efficiency and reliability.
Smart Images

Figure CN120763070B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of CAD (Computer Aided Design) testing technology, specifically to a method and system for simulation testing based on an adapted testing environment. Background Technology
[0002] Before a mature CAD software product is launched, it often needs to undergo multiple rounds of operational testing, and the results of these tests play a crucial role in the design and development of the CAD software.
[0003] Due to the complexity of CAD software products, the conventional development approach typically involves software engineers manually running and testing the software based on their design experience. This often results in a significant investment of manpower and time in testing CAD software. Testers need to perform tests on various complex modeling scenarios one by one, which is not only labor-intensive but also inefficient.
[0004] To address this, existing technologies provide an automated testing method:
[0005] For example, patent application 202210087464.5 discloses a method and system for designing an automatic testing interface for 3D CAD software. The method includes: introducing the concepts of objects and behaviors to abstract a standard testing interface, and creating a unified testing interface API by using a DLL import method; wherein each of the unified testing interface APIs executes a specific behavior of a specific object; and calling the functional modules of the 3D CAD software under test through the unified testing interface API to perform testing.
[0006] For example, patent application 202410961360.1 discloses an automated testing method, equipment, and medium for a 3D CAD system. The method includes: recording the modeling operation process in the modeling workspace as historical operation data for recording test cases; determining target test cases from the recorded test cases based on test case filtering instructions; receiving environment configuration instructions from the user and selecting a target test environment based on the environment configuration information in the environment configuration instructions; executing the target test cases in the target test environment to obtain the execution results of the target test cases in the target test environment; comparing the execution results of the target test cases in the target test environment and the benchmark environment to determine whether the target test cases have passed the test; the benchmark environment is the environment in which the test cases were recorded.
[0007] However, as the integration and complexity of functions in CAD software products gradually increase, traditional automated testing solutions are unable to meet complex testing needs. Summary of the Invention
[0008] The purpose of this invention is to provide a method for performing simulation testing based on an adapted testing environment, which partially solves or alleviates the above-mentioned shortcomings in the prior art and can improve testing efficiency and reliability.
[0009] To solve the aforementioned technical problems, the present invention specifically adopts the following technical solution:
[0010] A first aspect of the present invention is to provide a method for performing simulation testing based on an adaptive testing environment, the method comprising the steps of:
[0011] S102, Obtain the test requirements of the test users;
[0012] S104, Select a simulation combination according to the test requirements, wherein the simulation combination includes at least one simulation operation instruction, and each simulation operation instruction consists of at least one operation function;
[0013] S106, Select at least one simulation drawing according to the simulation combination;
[0014] S108, Generate or update the test environment based on the simulation combination and the simulation drawing;
[0015] S110, performing a simulation test under the test environment; wherein, S110 includes:
[0016] S1100, at the first moment, obtain the first operation point of the simulated user in the current operation interface, and execute the first simulated operation instruction at the first operation point;
[0017] S1102, at the second time, record the second operation point where the simulated user is currently located;
[0018] S1104, Before starting the second simulation operation instruction, determine whether the second operation point needs to be updated in order to update or obtain the current second operation point;
[0019] S1106, Execute the second simulation operation instruction according to the current second operation point.
[0020] In some embodiments, the step of determining whether the second operation point needs to be updated includes:
[0021] S11040, Obtain the first simulation environment at the first time and the second simulation environment at the current time;
[0022] S11042, determine whether the simulation attributes of the first simulation environment and the second simulation environment have changed, wherein the simulation attributes include one or more of the following: display resolution, spatial viewing angle, planar viewing angle, and scaling ratio;
[0023] If so, then it is determined that the second operation point needs to be updated.
[0024] In some embodiments, the steps further include:
[0025] S112, record test metrics.
[0026] In some embodiments, the simulation drawing includes at least one test element and at least one auxiliary element; correspondingly, the method further includes the step of: before S108.
[0027] S114, identify the simulation type of at least one of the simulation operation instructions;
[0028] S116, Identify first simulation information and second simulation information corresponding to the simulation type from a preset association library, wherein the first simulation information records at least one of simulation element type, simulation element quantity, and simulation element parameters, and the second simulation information records the associated element type; the preset association library includes: at least one simulation type, and the simulation type is associated with the first simulation information and the second simulation information.
[0029] S118, using simulation rules to determine whether the simulated drawing is suitable for the simulated combination; wherein, the simulation rule is that when the test element is the same as the first simulation information, and the similarity between the auxiliary element and the second simulation information is greater than a preset first similarity, then the simulated drawing is determined to be suitable for the simulated combination.
[0030] S120, output the first drawing suggestion based on the judgment result.
[0031] In some embodiments, the simulation type includes one or more of the following:
[0032] Switch between spaces, rotate, zoom, open drawing, close drawing, and edit elements.
[0033] In some embodiments, it also includes:
[0034] S122, identify whether the simulation type of the simulated operation instruction is a type of simulation;
[0035] If so, then execute step: S124, obtain the test index corresponding to the simulation combination, the test index including: the running time of the simulation combination in the current test environment;
[0036] S126, determine whether the running time is less than a preset test time threshold;
[0037] If so, proceed to step S128, which outputs a second drawing suggestion. The second drawing suggestion is used to prompt the simulated user and / or the test user to update the simulated drawing.
[0038] In some embodiments, the steps further include:
[0039] Identify the amount of drawing data in the simulated drawing;
[0040] Determine whether the amount of drawing data is less than a preset test data threshold;
[0041] If so, the corresponding update operation is to increase the amount of drawing data.
[0042] In some embodiments, the step of increasing the amount of drawing data includes:
[0043] At least one auxiliary element is added to the simulation drawing based on the second simulation information.
[0044] In some embodiments, the step of increasing the amount of drawing data includes:
[0045] At least one auxiliary element is added to the simulation drawing based on the simulated user's simulation scenario and the second simulation information.
[0046] The present invention also provides a system for performing simulation testing based on an adaptive testing environment, comprising:
[0047] The requirement elicitation module is used to obtain the test requirements of test users;
[0048] The combination selection module is used to select a simulation combination according to the test requirements, wherein the simulation combination includes at least one simulation operation instruction, and each simulation operation instruction consists of at least one operation function;
[0049] The drawing selection module is used to select at least one simulated drawing based on the simulation combination.
[0050] The environment update module generates or updates the test environment based on the simulation combination and the simulation drawings.
[0051] A testing module is used to perform simulated tests in the test environment; wherein, the testing module is used to perform the following steps:
[0052] In the first instant, obtain the first operation point of the simulated user in the current operation interface, and execute the first simulated operation instruction at the first operation point;
[0053] At the second time point, record the second operation point where the simulated user is currently located;
[0054] Before initiating the second simulated operation instruction, determine whether the second operation point needs to be updated in order to update or obtain the current second operation point;
[0055] Execute the second simulation operation instruction based on the current second operation point.
[0056] Beneficial technical effects: First, the present invention provides an automatic testing method for scene recognition before switching simulated operation instructions. This automatic testing method can ensure the operational continuity between different simulated operation instructions (such as the continuity of operation points), thereby improving the accuracy and reliability of automated simulation.
[0057] Furthermore, in order to improve the reliability of simulation results, that is, to obtain test indicators with practical application value, the present invention also provides a pre-verification method for simulated drawings. By co-verifying the test elements and auxiliary elements of the simulated drawings, the effectiveness of the test indicators can be improved.
[0058] Furthermore, this invention strategically performs localized verification of test results for a certain type of simulation to avoid or reduce the impact of improper selection of simulation drawings on the reliability of performance testing.
[0059] Furthermore, the present invention also provides a drawing update path based on function and scenario guidance. This drawing update path preferably performs local updates on the simulation drawings according to the function type (i.e., simulation category) and scenario type (such as user category and simulation scenario), thereby improving the adaptability of the simulation drawings to simulation needs and thus improving the effectiveness of the test results. Attached Figure Description
[0060] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. The elements or parts in the drawings are not necessarily drawn to scale. Obviously, the drawings described below are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0061] Figure 1 This is a flowchart illustrating a method for performing simulation testing based on an adaptive testing environment, as shown in an exemplary embodiment of the present invention.
[0062] Figure 2 This is a schematic diagram of the simulation test process in an exemplary embodiment of the present invention;
[0063] Figure 3 This is a schematic diagram of the judgment process for a simulated drawing in an exemplary embodiment of the present invention;
[0064] Figure 4 This is a flowchart illustrating a software performance monitoring method according to an exemplary embodiment of the present invention.
[0065] Figure 5 This is a schematic diagram of the evaluation process for a standard target in an exemplary embodiment of the present invention;
[0066] Figure 6 This is a schematic diagram of the evaluation results in an exemplary embodiment of the present invention. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 creative effort are within the scope of protection of the present invention.
[0068] In this document, suffixes such as "module," "part," or "unit" used to denote elements are used only for the purpose of illustrative purposes and have no specific meaning in themselves. Therefore, "module," "part," or "unit" may be used interchangeably.
[0069] In this document, the terms "upper," "lower," "inner," "outer," "front," "rear," "one end," and "the other end," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the present invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0070] In this document, unless otherwise explicitly specified and limited, the terms "installed," "equipped with," "connected," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium; it can be a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0071] In this document, "and / or" includes any and all combinations of one or more of the listed related items.
[0072] In this article, "multiple" means two or more, that is, it includes two, three, four, five, etc.
[0073] As used in this specification, the term "about" typically means + / -5% of the value, more typically + / -4% of the value, more typically + / -3% of the value, more typically + / -2% of the value, even more typically + / -1% of the value, and even more typically + / -0.5% of the value.
[0074] In this specification, certain embodiments may be disclosed in a range-bound format. It should be understood that this "range-bound" description is merely for convenience and brevity and should not be construed as a rigid limitation on the disclosed range. Therefore, the description of a range should be considered as having specifically disclosed all possible subranges and the individual numerical values within those ranges. For example, a description of the range 1-6 should be considered as having specifically disclosed subranges such as from 1 to 3, from 1 to 4, from 1 to 5, from 2 to 4, from 2 to 6, from 3 to 6, etc., and the individual numbers within those ranges, such as 1, 2, 3, 4, 5, and 6. This rule applies regardless of the breadth of the range.
[0075] Definition of noun:
[0076] “Entity”: In this document, an entity refers to graphic data on a drawing, such as a CAD file, displayed on the CAD drawing interface. An entity has attributes, which are data values that control specific visual characteristics of the entity or element (such as visibility, color, and line style). In different implementations, an entity may also be referred to as a “graphic element” or “graphic primitive.”
[0077] "Object": In this article, an object refers to information in a CAD file that is not displayed on the CAD drawing interface (the specific values of this information can also be called attributes), such as layers, text styles, and annotation styles. In this article, "style" refers to a set of named attributes used to classify and define specific geometric and text elements (such as line styles or text styles).
[0078] “Element”: In this article, an element refers to all possible information in a CAD file, including “entities” and “objects,” and can also be block, group, and cell definitions based on “entities” and / or “objects.” Correspondingly, the attributes of these elements are also referred to as simulation data (or drawing data).
[0079] "Drawings": In this article, "drawings" can refer to various files that can run in a CAD system and are used for drawing, editing, modifying, storing, and viewing CAD drawings. Common CAD drawing formats include, but are not limited to, DWG, DXF, DWT, DWF, DWL, DWS, DWX, MNU, MNC, MNL, MNS, CUI, CUIX, SHX, PAT, LIN, CTB, STB, PLT, PC3, etc.
[0080] "Software": In this article, it refers to a collection of computer data and instructions organized in a specific order. Software can include both computer programs that can run on a computer and the documentation associated with those programs. In other words, software can be a combination of programs and documentation.
[0081] "Test Environment": In this article, the software test environment refers to the combination of hardware and software specifically configured to verify the functionality, performance, and stability of the software. This includes one or more necessary components such as the operating system, database, network configuration, and testing tools (e.g., simulation setups, simulation drawings). Its core objective is to simulate the performance under real-world operating scenarios (e.g., drawing creation, drawing display).
[0082] "Operation point": In this document, "operation point" refers to the position of a user's operation on a digital interface (such as a display interface) using an input device (such as a mouse, touchpad, touchscreen, etc.). It is the direct point of interaction between the user and the system or software. It can be clearly identified by visual symbols such as a cursor or text insertion point, allowing the user to intuitively perceive the object being operated on (such as an entity or object) and complete the transmission of instructions through actions such as clicking, inputting, and dragging. For example, in some embodiments, when a user needs to draw a line segment on the current interface, they can select a first operation point and a second operation point on the display interface as the two endpoints of the line segment.
[0083] "Feature": In this article, a feature refers to a task unit (or task function, or function) that the software can execute. A function (Feature) is an independent unit that can complete a specific task or provide a specific service; for example, a function can be an operation command or an interaction module. Typically, a function is the core carrier of software interaction with the user, and usually has clearly defined input, processing, and output logic.
[0084] Example 1:
[0085] See Figures 1-3 As shown, the present invention provides a method for simulation testing based on an adapted testing environment.
[0086] like Figure 1 As shown, the method includes the following steps:
[0087] S102, Obtain the test requirements of the test users;
[0088] S104, Select a simulation combination according to the test requirements, wherein the simulation combination includes at least one simulation operation instruction, and each simulation operation instruction consists of at least one operation function;
[0089] For example, in some embodiments, the test user refers to the software test engineer, and correspondingly, the test requirement can be at least one test function selected by the test engineer. Test functions can be different requirements such as text functionality (e.g., testing the accuracy of text display), rendering performance (e.g., testing the accuracy of drawn data, drawing efficiency, rendering efficiency, etc.), and ecosystem functionality (e.g., stability, compatibility, etc.).
[0090] For example, in some embodiments, different simulation operation instructions can be selected to form different simulation combinations according to different testing requirements.
[0091] S106, Select at least one simulation drawing according to the simulation combination;
[0092] For example, the simulated drawing can be a CAD file.
[0093] S108, Generate or update the test environment based on the simulation combination and the simulation drawing;
[0094] For example, in some embodiments, the completeness of the drawing functions of the software under test can be confirmed in advance based on the drawing functions required by different simulation combinations or simulation drawings. For example, in some embodiments, the functionality of the test software can be extended by introducing plug-ins to update the test environment.
[0095] S110, a simulation test is performed under the test environment.
[0096] In some embodiments, performing a simulation test in the test environment means that the software under test runs the simulation combination in the test environment. Specifically, the drawing data used in the simulation combination is generated from simulation drawings.
[0097] In some embodiments, during the simulation test, it is preferable to perform update detection on the operation point, such as S110 including:
[0098] S1100, at the first moment, obtain the first operation point of the simulated user in the current operation interface, and execute the first simulated operation instruction at the first operation point;
[0099] In some embodiments, the simulated user can refer to a computer, meaning that the simulated user can autonomously execute simulated operation commands by recognizing simulated data in the simulated drawing (e.g., if the simulated drawing includes a block A, the computer can autonomously add block A to the computer). This simulates the operation commands of a real user.
[0100] S1102, at the second time, record the second operation point where the simulated user is currently located;
[0101] S1104, Before starting the second simulation operation instruction, determine whether the second operation point needs to be updated in order to update or obtain the current second operation point;
[0102] S1106, Execute the second simulation operation instruction according to the current second operation point.
[0103] In some embodiments, the step of determining whether the second operation point needs to be updated includes:
[0104] S11040, Obtain the first simulation environment at the first time and the second simulation environment at the current time (e.g., the second time);
[0105] S11042, determine whether the simulation attributes of the first simulation environment and the second simulation environment have changed, wherein the simulation attributes include one or more of the following: display resolution, spatial viewing angle, planar viewing angle, and scaling ratio;
[0106] If so, then it is determined that the second operation point needs to be updated.
[0107] For example, in some embodiments, at a first time t1, the user draws a circle (equivalent to a simulated element) and records the first coordinates of the user's operation point (equivalent to the first operation point) after the drawing is completed. Subsequently, at a second time t2, the user zooms in on the current interface, at which point the user's operation point (equivalent to the second operation point) is updated to the second coordinates. That is, when performing a drawing operation at the next time moment, the user's operation point will move from the second coordinate.
[0108] In this embodiment, by detecting simulated attributes, autonomous testing can be achieved through virtual users, and the effective execution of operations during the autonomous testing process can be ensured.
[0109] In some embodiments, test users can select appropriate simulation combinations from a preset simulation test library based on their testing needs. The simulation test library contains multiple pre-stored operation instructions.
[0110] For example, in some embodiments, the operation instructions are a combination of multiple operation functions.
[0111] Taking the circle drawing operation command as an example, a circle drawing operation command includes: operation function 1, which adds a circle drawing data to the display interface; operation function 2, which stores the circle drawing data (such as coordinate position, diameter, etc.) into the drawing database; and operation function 3, which refreshes the display interface based on the drawing data to display the newly added circle. Typically, the multiple operation functions have a set execution order to simulate the usual operation sequence of a drawing engineer.
[0112] In some embodiments, the simulated drawing can be a pre-acquired real CAD drawing. Alternatively, in some embodiments, the simulated drawing refers to a collection of data containing test elements, such as a simulated database storing the test elements and their necessary drawing information (e.g., dimensions, coordinates). By recognizing the simulated drawing, the software can automatically draw the content within it. By recording the test data during the drawing process (e.g., drawing time, lag, etc.), the software's performance can be analyzed.
[0113] In some embodiments, the steps further include:
[0114] S112, record test metrics.
[0115] For example, test metrics can be corresponding test scores. Based on the scoring rules preset by the test users, different scoring results can be generated for different test data. Furthermore, different scoring results can be generated for different test dimensions.
[0116] See Figure 6 As shown, the test machine is the software under test, and it displays the test scores obtained from testing different versions of the software under test.
[0117] In some embodiments, the simulation drawing includes at least one test element and at least one auxiliary element; for example, the test element and the auxiliary element may refer to an entity.
[0118] Correspondingly, before S108, the method further includes the following steps:
[0119] S114, identify the simulation type of at least one of the simulation operation instructions;
[0120] S116, Identify first simulation information and second simulation information corresponding to the simulation type from a preset association library, wherein the first simulation information records at least one of simulation element type, simulation element quantity, and simulation element parameters, and the second simulation information records the associated element type; the preset association library includes: at least one simulation type, and the simulation type is associated with the first simulation information and the second simulation information.
[0121] For example, in some embodiments, the simulation type can be one or more of the following: creating a tile, creating a layer, creating an entity, etc. For example, when the simulation operation instruction is to create entity a on the last layer, the first simulation information records: the type of entity a, the parameters of entity a (equivalent to simulation element parameters, such as size, coordinates, layer position, etc.), and the second simulation information records information of at least one auxiliary layer (equivalent to associated elements).
[0122] Furthermore, in order to simulate a more realistic operating environment, the first simulation information also records the recommended number of simulation elements for different simulation types.
[0123] S118, using simulation rules to determine whether the simulated drawing is suitable for the simulated combination; wherein, the simulation rule is that when the test element is the same as the first simulation information, and the similarity between the auxiliary element and the second simulation information is greater than a preset first similarity, then the simulated drawing is determined to be suitable for the simulated combination.
[0124] S120, output the first drawing suggestion based on the judgment result.
[0125] This embodiment provides a method for pre-verification of drawings.
[0126] In some embodiments, the similarity between the auxiliary element and the second simulated information can be determined based on one or more factors such as the number of elements and the type of elements.
[0127] For example, in some embodiments, when the type of an auxiliary element in the simulated drawing is the same as the type of an associated element recorded in the second simulation information, the auxiliary element is considered to match the associated element type, and the more matching auxiliary elements there are, the higher the similarity. Furthermore, the second simulation information may record multiple associated element types; when multiple auxiliary element types with the same associated element type appear in the simulated drawing, the similarity is considered to be high.
[0128] For example, in some embodiments, the second simulation information records the number of recommendations for at least one associated element type, and the similarity is higher when the number of matching auxiliary elements is close to or the same as the corresponding number of recommendations.
[0129] For example, in some embodiments, when the simulation drawing is adapted to the simulation combination, the user is advised to select the simulation drawing for the next simulation test.
[0130] In this embodiment, test elements and auxiliary elements are used to collaboratively verify and select the simulated drawings. This ensures that the selected simulated drawings meet the basic functional test requirements and have relatively rich drawing data, which can be closer to the real drawing scenario.
[0131] In other words, the method of pre-verifying the simulated drawings in this embodiment can avoid a large deviation between the test indicators and the actual operating state.
[0132] It is worth noting that in the application of CAD software, the actual drawing data volume is often very large, and users usually design new objects by gradually superimposing them on large drawings. Therefore, the collaborative verification and selection of test elements and auxiliary elements can make the test indicators closer to the real drawing scenario.
[0133] In some embodiments, the simulation type includes one or more of the following:
[0134] Switch between spaces, rotate, zoom, open drawing, close drawing, edit elements, and save drawing.
[0135] For example, in some embodiments, spatial switching is switching from one tile to another (i.e., tile switching). Alternatively, spatial switching is switching from one layer to another (i.e., layer switching).
[0136] In some embodiments, it also includes:
[0137] S122, identify whether the simulation type of the simulation operation instruction is a type of simulation; wherein, the type of simulation includes one or more of the following: space switching, opening drawing, saving drawing;
[0138] If so, then execute step: S124, obtain the test index corresponding to the simulation combination, the test index including: the running time of the simulation combination in the current test environment;
[0139] S126, determine whether the running time is less than a preset test time threshold;
[0140] If so, then execute step: S128, correspondingly output the second drawing suggestion, which is used to prompt the simulated user and / or the test user to update the simulated drawing;
[0141] If not, record the current running time and use it as one of the bases for calculating the test metrics.
[0142] In other words, this embodiment strategically performs local verification on the test results of a certain type of simulation in order to avoid or reduce the impact of simulation drawings on the reliability of performance testing.
[0143] For example, in some embodiments, when the simulated operation command is a spatial switch (specifically a layer switch), the expected switching time of the software under test may be between approximately 2 and 4 seconds, so the preset test time threshold can be 2 seconds. In this case, if the actual measured running time is 1 second, a second drawing suggestion can be output to advise the user to change the simulated drawing and test again.
[0144] It should be noted that this embodiment performs local verification on the global test results, which can improve the reliability of the test data while limiting the amount of operations required for the verification process. In other words, it can reduce the verification burden on the test results.
[0145] In some embodiments, the steps further include:
[0146] Identify the amount of drawing data in the simulated drawing;
[0147] Determine whether the amount of drawing data is less than a preset test data threshold;
[0148] If so, the corresponding update operation is to increase the amount of drawing data.
[0149] In this embodiment, for cases where the test run time of a certain type of simulation is too short, it is preferable to perform secondary or multiple verifications based on updated simulation drawings to avoid the simulation drawings having a small amount or type of data, which would result in a large difference between the reported running efficiency and the actual application situation.
[0150] In some embodiments, the step of increasing the amount of drawing data includes:
[0151] At least one auxiliary element is added to the simulation drawing based on the second simulation information.
[0152] For example, create one or more auxiliary elements based on the type of the associated element.
[0153] In some embodiments, the step of increasing the amount of drawing data includes:
[0154] At least one auxiliary element is added to the simulation drawing based on the simulated user's simulation scenario and the second simulation information.
[0155] For example, in some embodiments, simulated users can be divided into different user groups, such as bridge engineers, building engineers, mechanical engineers, etc.
[0156] For example, in some embodiments, the simulated scenario can be divided into one or more of the following: drawing review (such as a drawing review engineer reviewing and browsing the contents of the drawing, and checking the dimensions and specifications), 2D drawing, 3D modeling, and drawing output (such as preparing for 3D printing and generating a BOM).
[0157] For example, in some embodiments, a drawing update database is pre-set, which has different update suggestions. Each update suggestion includes an update element, which includes the type of the object to be updated and update parameters for the object (such as the number of updates). Each update suggestion also has at least one update tag, which can be either a simulated user category or a simulated scenario category.
[0158] For example, in some embodiments, when simulating a bridge engineer performing a three-dimensional model of a bridge project, the added auxiliary elements are preferably external reference objects.
[0159] For example, in CAD, an external reference object (Xref) refers to an external drawing file that is attached to the current drawing via a link or direct copy. Its content can be the entire drawing, a block, a layer, or other CAD elements.
[0160] For example, in some embodiments, when simulating a building engineer performing a 3D model of a building project, the auxiliary elements added are preferably blocks.
[0161] For example, in some embodiments, when a simulated mechanical engineer performs 3D modeling of mechanical equipment, the auxiliary elements added are preferably assembly relationships. Here, assembly relationships refer to the geometric constraints, positional relationships, and motion logic of multiple parts or components (equivalent to elements) in a virtual assembly environment. For instance, when it is necessary to introduce assembly relationships into mechanical equipment, multiple assembly elements (i.e., assembled parts or components) that have assembly relationships with the current test element or auxiliary element can be introduced.
[0162] Correspondingly, adding at least one auxiliary element to the simulation drawing based on the simulated user's simulation scenario and the second simulation information specifically includes the following steps:
[0163] Based on the simulated user and the simulated scenario, at least one matching update suggestion is retrieved from the drawing update database according to the update tag; wherein, when the category of the simulated user matches the update tag, and / or when the simulated scenario matches, the corresponding update suggestion is identified as a matching update suggestion;
[0164] The simulation drawings are updated according to the update recommendations.
[0165] Specifically, updating the simulation drawings according to the update recommendations also includes:
[0166] Based on the second simulation information, a matching update element is selected from at least one of the update suggestions, and the simulation drawing is updated according to the update element. That is, in this embodiment, the simulation drawing is preferably updated comprehensively based on the test function type, user category, and simulation scenario.
[0167] In summary, this invention provides a drawing update path based on function and scenario guidance. This drawing update path preferably performs local updates on the simulation drawings according to the function type (i.e., simulation category) and scenario type (such as user category and simulation scenario), thereby improving the adaptability of the simulation drawings to simulation needs and thus improving the effectiveness of the test results.
[0168] Furthermore, in some embodiments, the method further includes:
[0169] Users update the test environment (or simulation environment).
[0170] For example, in some embodiments, when the necessary secondary development files (such as plugins) are lacking in the existing testing environment, users can manually extend the testing environment using the header files and static libraries provided by the CAD software to adapt to new testing requirements.
[0171] In some embodiments, the method further includes the step of:
[0172] A selection interface is provided, offering version options to define the software version being tested. For example, test users (i.e., testers) can select different software versions through an intuitive interface and run scripts to batch test all drawings (i.e., the selected simulated drawings) in a specified directory. After testing, test data can be generated, which can be displayed graphically, tabularly, or in data formats.
[0173] The beneficial technical effects of this embodiment are:
[0174] First, the present invention provides an automatic testing method for scene recognition before switching simulated operation instructions. This automatic testing method can ensure the operational continuity between different simulated operation instructions (such as the continuity of operation points), thereby improving the accuracy and reliability of automated simulation.
[0175] Furthermore, in order to improve the reliability of the simulation results, that is, to obtain speed measurement indicators with practical application value, the present invention also provides a pre-verification method for simulation drawings. By co-verifying the test elements and auxiliary elements of the simulation drawings, the effectiveness of the test indicators can be improved.
[0176] Furthermore, this invention strategically performs localized verification on the test results of a certain type of simulation in order to avoid or reduce the impact of simulation drawings on the reliability of performance testing.
[0177] Furthermore, the present invention also provides a drawing update path based on function and scenario guidance. This drawing update path preferably performs local updates on the simulation drawings according to the function type (i.e., simulation category) and scenario type (such as user category and simulation scenario), thereby improving the adaptability of the simulation drawings to simulation needs and thus improving the effectiveness of the test results.
[0178] Example 2:
[0179] The present invention also provides a system for performing simulation testing based on an adaptive testing environment, comprising:
[0180] The requirement elicitation module is used to obtain the test requirements of test users;
[0181] The combination selection module is used to select a simulation combination according to the test requirements, wherein the simulation combination includes at least one simulation operation instruction, and each simulation operation instruction consists of at least one operation function;
[0182] The drawing selection module is used to select at least one simulated drawing based on the simulation combination.
[0183] The environment update module generates or updates the test environment based on the simulation combination and the simulation drawings.
[0184] A testing module is used to perform simulated tests in the test environment; wherein, the testing module is used to perform the following steps:
[0185] In the first instant, obtain the first operation point of the simulated user in the current operation interface, and execute the first simulated operation instruction at the first operation point;
[0186] At the second time point, record the second operation point where the simulated user is currently located;
[0187] Before initiating the second simulated operation instruction, determine whether the second operation point needs to be updated in order to update or obtain the current second operation point;
[0188] Execute the second simulation operation instruction based on the current second operation point.
[0189] It is understood that the system in this embodiment can be used to implement the method for simulation testing based on an adapted testing environment as described in any embodiment of the present invention, and the present invention does not limit it.
[0190] Example 3:
[0191] See Figures 4-5As shown, this invention provides a software performance monitoring method. This method can provide guiding recommendations for software testing plans based on testing requirements, thereby enhancing the application value of test results. In other words, by selecting appropriate benchmarks, engineers can more intuitively and specifically focus on changes or differences in software performance, thus providing reliable guidance for subsequent research and development work.
[0192] This invention also provides a software performance monitoring method, comprising the following steps:
[0193] S200, acquire a first inherent feature and a first test feature of the test target, the test target including: at least one version of software, characterized as a task unit that the software can execute;
[0194] In some embodiments, test features refer to the features (or functions) necessary to perform test requirements.
[0195] For example, in some embodiments, user-inputted test requirements can be obtained first. These requirements define at least one function to be tested (one of which is executed by one or more features). The features that need to be directly or indirectly activated during the execution of the function to be tested are called test features (or, in other words, the interactive functions that the user is currently directly operating during the execution of the test function are test features). Features that are not activated or are in a pending activation state are called inherent features (for example, some functions exist in menus, toolbars, or shortcuts, but are not triggered under the current test requirements; these can be defined as inherent features).
[0196] In other words, in this embodiment, inherent features and test features can be distinguished by the activation status of the feature during the testing process.
[0197] S202, select at least one standard target for adaptation based on the first inherent feature and the first test feature, wherein the second inherent feature of the standard target is the same as the first inherent feature, and the overlap between the second test feature and the first test feature of the standard target is greater than a preset overlap index;
[0198] In this context, at least one standard target can refer to at least one version of the software. For example, the test target is the software under test, while the standard target is other software on the market, such as the same software from a competitor.
[0199] S204, Select the file to be tested based on the first test feature, wherein the file to be tested includes: a simulated drawing;
[0200] S206, run the file to be tested using at least one of the aforementioned standard targets, generate a first test result accordingly, and generate at least one test benchmark based on the first test result;
[0201] S208, run the second test result of the file under test using the test target, and generate at least one performance test data based on the second test result and at least one test benchmark.
[0202] In some embodiments, the steps further include:
[0203] Performance test data is recorded, and this data is tagged with storage labels, including software version information and the file being tested. By recording each run, overall performance changes throughout the software development process can be monitored.
[0204] For example, in some embodiments, the degree of overlap can be based on the amount of overlap between the inherent features of the test target and the standard target. Specifically, two features are considered to overlap when they belong to the same category.
[0205] For example, in some embodiments, if the functional similarity between two features is greater than a preset value, they are considered to overlap.
[0206] For example, in some embodiments, the degree of overlap can be determined based on the functional similarity of multiple inherent features.
[0207] In some embodiments, functional similarity can be evaluated based on the accuracy or effectiveness of two functions in a feature set. For example, similarity can be assessed based on differences in parameters, accuracy, or interaction methods between two features. For instance, the inherent features of a test target may include chamfers, and the inherent features of a standard target may also include chamfers, but the specific options underlying the chamfers may differ. Therefore, similarity can be assessed based on the similarity of their options. Another example is whether two inherent features can perform the same task (such as whether the process from sketch to 3D modeling is consistent).
[0208] For example, in some embodiments, taking the functionality of the CAD professional version as an example, it may include one or more of the following functions: basic graphic drawing (such as drawing lines and circles), 3D editing (such as rotation, scanning, network modeling, etc.), basic editing (move, copy, rotate, etc.), advanced editing (such as array (rectangular / circular / path array), chamfer, fillet, grip editing, parametric constraints), text and tables, dimensioning, layer control (e.g., layer creation / deletion, layer status (frozen / locked / isolated), layer filter), object properties, blocks and external references, view control, visual styles and rendering.
[0209] The following example, using layer control testing, illustrates the above solution:
[0210] The user's testing requirement is layer control. Accordingly, layer creation, layer deletion, layer status, and layer filters are identified as the first test features, while other features of the test target are identified as the first inherent features.
[0211] To identify multiple existing CAD software programs on the market, we first select CAD software programs that contain layer creation, layer deletion, layer status, and layer filters (i.e., the second test features). Further, we identify other features in the CAD software (i.e., the second inherent features), and select CAD software programs whose second inherent features are highly similar to the first inherent features as standard targets (i.e., reference software).
[0212] Furthermore, the same test file is run on both the software under test and the reference software, and the test results of the reference software are used as the test benchmark to analyze the test results of the software under test, thereby generating performance test data. It is understood that in this embodiment, the comprehensive selection of fixed features and test features facilitates the selection of a suitable comparison combination. For example, for professional-grade CAD software, it is preferable to select a professional-grade CAD software with similar functions to enhance the interpretive value of the comparison results.
[0213] In some embodiments, the steps further include:
[0214] Obtain the attention and needs of test users;
[0215] The performance test data is analyzed based on the stated concerns to generate comparative results.
[0216] In this embodiment, at least one test data point in the performance test data can be optimized and analyzed based on the user's key needs.
[0217] For example, in some embodiments, taking layer control testing as an example, when the user's focus is on layer creation time and layer filtering time, it is preferable to output the differences between the two software programs in layer creation time and layer filtering time.
[0218] In some embodiments, the method further includes the step of:
[0219] (1) Analyze the comparison results to obtain a set of trend changes between at least two targets (i.e., software); (2) Calculate the performance difference degree based on the trend changes; (3) When the difference degree is less than a preset comparison threshold, output a first benchmark suggestion, which is used to prompt the test user to update the standard target.
[0220] In some embodiments, the trend change is a comparison result after running a target cycle duration. Typically, the target cycle duration is longer than a preset runtime threshold, which can be selected from the typical software usage duration.
[0221] For example, in some embodiments, trend change can refer to the performance values (such as running speed, resource consumption, stability, etc., one or more evaluation results) recorded at multiple time points / periods during the process of running a file under test.
[0222] Furthermore, the performance differences between the two software programs were calculated based on the trend changes of the two different software programs.
[0223] For example, in some embodiments, if two software programs exhibit high performance similarity during the same running time, they are considered to have a small degree of difference. Conversely, if two software programs exhibit large performance deviation during the same running time, they are considered to have a large degree of difference.
[0224] In some embodiments, performance differences can be defined by at least one of the following metrics: speed (e.g., frame rate), resource usage (e.g., CPU utilization (%): average CPU usage when running a task, GPU utilization (%): graphics card load when 3D rendering or computing, memory usage (MB / GB): RAM consumption when the software is running), stability (e.g., number of crashes, task failure rate), scalability, etc.
[0225] For example, in some embodiments, the test objective may include at least two versions of the software, and the corresponding standard objective may include at least two versions of the software (different from the test objective); correspondingly, two versions of the software are compared and analyzed to obtain trend changes. That is to say, a set of trend changes may include the differences in performance values between different versions of the software. Correspondingly, the degree of performance difference tested may include the performance difference between any two versions of the software, or it may include the optimization efficiency of the two software programs during version iteration.
[0226] Furthermore, in some embodiments, a first benchmark recommendation is output only when the difference between the test target and at least two standard targets is less than a comparison threshold.
[0227] In some embodiments, the test target is the software under test, while the standard target is other software on the market, such as the same software from competitors.
[0228] For example, in some embodiments, the standard target is software developed by the user, while the test target is another software developed by the user. Alternatively, the standard target and the test target may be different versions of the same software. In other words, the user can analyze long-term development progress through performance monitoring and analysis.
[0229] It should be noted that the applicant has observed a long-term need for performance analysis throughout the CAD software development process: 1) comparing the software with competitors' software; and 2) analyzing the development changes across different versions of the software. Furthermore, the comparison results will guide future development directions based on these findings.
[0230] To effectively guide subsequent research and development, this invention evaluates the comparative differences between the software. If the comparative differences are not significant (i.e., the degree of difference is less than a preset comparison threshold), the user is advised to change the target standard. From another perspective, this embodiment uses both inherent and test features to select comparative software with relatively high compatibility as the comparison benchmark. Furthermore, it employs a periodic overall comparison result analysis to determine the significance of differences. This avoids situations where excessive similarity makes it difficult to demonstrate software performance differences, which would be detrimental to software development analysis.
[0231] In other words, this embodiment, through the combined use of feature filtering and performance difference amplification, is more conducive to selecting standard targets suitable for software performance analysis / demonstration. The standard targets selected in this embodiment can not only demonstrate the performance differences of the software, but also amplify these differences within a reasonable range, so that software engineers can intuitively understand the degree of optimization and value under software version iterations.
[0232] In some embodiments, the comparison results are presented in the form of a graph or a table.
[0233] In some embodiments, S204 includes the step of:
[0234] A simulation combination is selected based on the first test feature, and the simulation combination includes at least one simulation operation instruction;
[0235] At least one simulation drawing is selected based on the simulation combination, the simulation drawing including at least one test element, the test element being editable by the simulation operation instructions.
[0236] In some embodiments, the simulation drawing further includes: auxiliary elements, corresponding to the step of selecting at least one simulation drawing according to the simulation combination, which includes:
[0237] Identify the simulation type of at least one of the simulated operation instructions;
[0238] The system identifies first simulation information and second simulation information corresponding to the simulation type from a preset association library. The first simulation information records at least one of the following: simulation element type, number of simulation elements, and simulation element parameters. The second simulation information records the associated element type. The preset association library includes at least one simulation type, and the simulation type is associated with the first simulation information and the second simulation information.
[0239] A simulation rule is used to determine whether the simulated drawing is suitable for the simulated combination; wherein, the simulation rule is that when the test element is the same as the first simulation information, and the similarity between the auxiliary element and the second simulation information is greater than a preset first similarity, then the simulated drawing is determined to be suitable for the simulated combination.
[0240] Based on the judgment results, the first drawing suggestion will be output.
[0241] It is understood that the method for selecting or evaluating the simulation drawings in this embodiment can refer to the above embodiment one.
[0242] In some embodiments, the steps further include:
[0243] When the degree of difference is less than a preset comparison threshold, a second benchmark suggestion is output, which is used to prompt the file under test to be updated.
[0244] For example, updating the file to be tested refers to updating at least one of the simulation drawings.
[0245] Furthermore, in this embodiment, the simulated drawings can also be updated, and the update method can also refer to Embodiment 1, which will not be repeated here.
[0246] Preferably, in order to identify the performance bottlenecks of the CAD platform in specific scenarios and intuitively display the changing trends of software performance, a monitoring system can be provided that can track and evaluate the processing efficiency of different drawings and operations on multiple CAD platforms over a long period of time, and compare data across time points and platforms. Based on this requirement, this invention constructs a performance analysis and monitoring system (or monitoring system) for CAD platforms.
[0247] For example, in some embodiments, the test target includes multiple versions of the software to be tested, while the standard target can be a single software or multiple iterative versions of the same software.
[0248] For example, the test target could be software from Company A, such as its professional version A-CAD, specifically including Professional CAD 1.0, Professional CAD 2.0, and Professional CAD 3.0; the standard target could be software from Company B, specifically its professional version B-CAD. Correspondingly, during the comparative analysis, the scoring results for Professional CAD 1.0, Professional CAD 2.0, Professional CAD 3.0, and Professional B-CAD can be obtained separately, thus achieving a cross-CAD platform and cross-time comparison.
[0249] The beneficial technical effects of this embodiment are as follows:
[0250] This invention provides a standard target selection method that facilitates amplifying performance differences. This method, through dual screening of inherent and test characteristics, can select suitable comparative software for performance analysis from a large pool of existing software products. Furthermore, by evaluating the degree of performance difference over a certain runtime, it proposes updates to the standard target for cases where the difference is not significant.
[0251] Furthermore, for different combinations of standard targets and test targets, the present invention can autonomously select simulation drawings based on comprehensive test requirements. Moreover, the simulation drawings can be enriched with data through the dual selection of the object under test and auxiliary objects, so as to better fit the actual operation scenario.
[0252] Example 4:
[0253] This invention also provides a software performance monitoring system, comprising:
[0254] A test target acquisition module is used to acquire a first inherent feature and a first test feature of a test target, wherein the test target includes: at least one version of software, characterized as a task unit that the software can execute;
[0255] The benchmark target acquisition module is used to select at least one adapted standard target based on the first inherent feature and the first test feature, wherein the second inherent feature of the standard target is the same as the first inherent feature, and the overlap between the second test feature and the first test feature of the standard target is greater than a preset overlap index.
[0256] The file acquisition module is used to select a file to be tested based on a first test feature, wherein the file to be tested includes: a simulated drawing;
[0257] The benchmark running module is used to run the file under test using at least one of the standard targets, generate a first test result accordingly, and generate at least one test benchmark based on the first test result;
[0258] The testing module is used to run the second test result of the file under test with the test target, and generate at least one performance test data based on the second test result and at least one test benchmark.
[0259] Specifically, the system in this embodiment mainly has the following functional modules:
[0260] Data logging: The system can capture and store key data from proprietary performance testing tools (such as files under test) during the performance testing process.
[0261] Scoring Algorithm: Each test step is quantitatively evaluated based on preset scoring criteria, and the results are integrated into a comprehensive score. This monitoring system not only reflects the performance of a specific operation on the drawing but also allows users to view the overall performance of the CAD software through the comprehensive score. Understandably, the scoring criteria can be selected by the user or set manually.
[0262] Visualization: Presents the performance evolution between CAD platform versions in the form of charts, enabling users to clearly understand the development trajectory of software performance.
[0263] Comparative analysis: Supports comparison between any two sets of data, helping users quickly identify performance differences between different versions of the platform or between different platforms, providing direction for subsequent software optimization.
[0264] Furthermore, in terms of performance data analysis, this system can collect, record, and analyze performance monitoring data from different servers, covering internal CAD products and some competitors.
[0265] In terms of establishing scoring benchmarks, a scoring model adapted to the CAD platform was developed to guide internal product quality improvement within the software.
[0266] In terms of tracking performance changes, the performance comparison results of test data can be used to track the time of performance changes, the relevant drawings and operations in a timely manner;
[0267] In terms of performance data comparison, all historical data and scoring results can be integrated into an online platform, making it easy for users to view performance trend charts and conduct detailed data comparisons, thereby better understanding the performance of CAD and its competitors over time.
[0268] It is understood that the performance monitoring system in this embodiment can also implement the methods or steps in any of the above embodiments, which will not be repeated here.
[0269] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any of the embodiments.
[0270] The present invention also provides a computer program product containing instructions that, when the computer program product is run on an electronic device, enable the electronic device to perform the method described in any of the embodiments.
[0271] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0272] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a computer terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0273] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method of performing simulation testing based on adapting a test environment, characterized by, The method comprises the steps of: S102, obtaining a test requirement of a test user; S104, selecting a simulation combination according to the test requirement, wherein the simulation combination comprises at least one simulation operation instruction, and one simulation operation instruction is composed of at least one operation function; S106, selecting at least one simulation drawing according to the simulation combination; S108, generating or updating the test environment according to the simulation combination and the simulation drawing; S110, performing simulation test in the test environment; wherein S110 comprises: S1100, obtaining a first operation point of a simulation user in a current operation interface at a first time, and executing a first simulation operation instruction at the first operation point; S1102, recording a second operation point currently located by the simulation user at a second time; S1104, judging whether the second operation point needs to be updated before starting a second simulation operation instruction, so as to update or obtain the current second operation point; S1106, executing the second simulation operation instruction according to the current second operation point; wherein the step of judging whether the second operation point needs to be updated comprises: S11040, obtaining a first simulation environment at the first time and a second simulation environment at the current time; S11042, judging whether simulation attributes of the first simulation environment and the second simulation environment change, wherein the simulation attributes comprise one or more of display resolution, spatial view angle, plane view angle and zooming scale; If yes, it is judged that the second operation point needs to be updated.
2. The method of claim 1, wherein, The method further comprises the step of: S112, recording a test index.
3. The method of claim 2, wherein, The simulation drawing comprises at least one test element and at least one auxiliary element; correspondingly, the method further comprises the steps of: S114, identifying a simulation type of at least one simulation operation instruction; S116, identifying first simulation information and second simulation information corresponding to the simulation type in a preset association library, wherein the first simulation information records at least one of simulation element type, simulation element quantity and simulation element parameter, and the second simulation information records associated element type; the preset association library comprises at least one simulation type, and the simulation type is associated with the first simulation information and the second simulation information; S118, judging whether the simulation drawing is suitable for the simulation combination by using a simulation rule; wherein the simulation rule is that when the test element is the same as the first simulation information, and the similarity between the auxiliary element and the second simulation information is greater than a preset first similarity, it is judged that the simulation drawing is suitable for the simulation combination; S120, outputting a first drawing suggestion according to the judgment result.
4. The method of claim 3, wherein, The simulation type comprises one or more of the following: spatial switching, rotation, zooming, opening a drawing, closing a drawing and editing an element.
5. The method of claim 3, wherein, The method further comprises: S122, identifying whether the simulation type of the simulation operation instruction is a type of simulation type; If yes, a step S124 is performed to acquire a test index corresponding to the simulation combination, the test index including a running time of the simulation combination running under the current test environment; A step S126 is performed to determine whether the running time is less than a preset test time threshold value; If yes, a step S128 is performed to output a second drawing suggestion, the second drawing suggestion being used to prompt the simulation user and / or the test user to perform an update operation on a simulation drawing.
6. The method of claim 5, wherein, The method comprises the steps of: identifying a drawing data amount of the simulation drawing; determining whether the drawing data amount is less than a preset test data threshold value; If yes, the update operation is to increase the drawing data amount.
7. The method of claim 6, wherein, The step of increasing the drawing data amount comprises: adding at least one auxiliary element in the simulation drawing according to the second simulation information.
8. The method of claim 6, wherein, The step of increasing the drawing data amount comprises: adding at least one auxiliary element in the simulation drawing according to the simulation scenario of the simulation user and the second simulation information.
9. A system for performing simulation testing based on adapting a testing environment, characterized by, The method comprises: a requirement acquisition module configured to acquire a test requirement of a test user; a combination selection module configured to select a simulation combination according to the test requirement, wherein the simulation combination comprises at least one simulation operation instruction, and one simulation operation instruction is composed of at least one operation function; a drawing selection module configured to select at least one simulation drawing according to the simulation combination; an environment update module configured to generate or update the test environment according to the simulation combination and the simulation drawing; a test module configured to perform a simulation test under the test environment; wherein the test module is configured to perform the following steps: at a first time, acquire a first operation point of a simulation user under a current operation interface, and execute a first simulation operation instruction at the first operation point; at a second time, record a second operation point currently located by the simulation user; before starting a second simulation operation instruction, determine whether the second operation point needs to be updated to update or acquire a current second operation point; execute the second simulation operation instruction according to the current second operation point; wherein the step of determining whether the second operation point needs to be updated comprises: acquire a first simulation environment at the first time and a second simulation environment at a current time; determine whether simulation attributes of the first simulation environment and the second simulation environment change, the simulation attributes including one or more of display resolution, spatial view angle, plane view angle, and zoom ratio; if yes, determine that the second operation point needs to be updated.
Citation Information
Patent Citations
Three-dimensional CAD software automatic test interface design method and system
CN114546833A
A method, device and medium for automated testing of a three-dimensional CAD system
CN118503139B
Full-automatic testing method, device and system based on AUTOCAD
CN114924979A
Automatic testing method and equipment of three-dimensional CAD system and medium
CN118503139A