Test Method and Device for CAM Software Processing Function, Storage Medium and Processor

By using automated testing and intelligent reasoning rule bases in CAM software to generate and compare processing trajectories, the problems of low efficiency and insufficient accuracy of automated test scripting for CAM software are solved, and efficient and professional test results are achieved.

CN114153738BActive Publication Date: 2025-07-29CAXA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111502062.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2025-07-29
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

In the prior art, the automated test scripting of CAM software is inefficient and the accuracy of the test results is insufficient, so it is impossible to truly simulate the user's actual application scenarios and process experience.

Method used

Automatic tests are used to run target test cases, determine target processing parameters based on preset tables, combine process knowledge base and intelligent reasoning rule base, and generate and compare processing trajectories to obtain test results.

Benefits of technology

It improves the accuracy and efficiency of CAM software automation testing, ensures that the test results are in line with the user's actual application scenarios and process experience, and improves the professionalism and comprehensiveness of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153738B_ABST
    Figure CN114153738B_ABST
Patent Text Reader

Abstract

The present application discloses a test method and device for the processing function of CAM software, a storage medium, and a processor. The method includes: using an automated test to run a target test case, where the target test case is a case for automatically testing the processing function of CAM software; determining target processing parameters corresponding to the target test case according to a first preset table, where the first preset table at least includes the correspondence between multiple processing parameters; processing a target part according to the target processing parameters corresponding to the target test case to generate a target processing trajectory; comparing the target processing trajectory with a first processing trajectory to obtain a test result of the processing function of CAM software, where the first processing trajectory is the processing trajectory before generating the target processing trajectory. Through the present application, the problem of low accuracy of test results in the related art when automatically testing the processing function of CAM software is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of CAM software testing. Specifically, it relates to a test method and device for the processing function of CAM software, a storage medium, and a processor. Background Technique

[0002] Currently, when preparing an automated test script for CAM software, each parameter value needs to be manually input or selected, and each parameter is set separately. Since there are many parameters, if this method is used to prepare the automated test script for CAM software, it will lead to low efficiency in preparing the automated test script, and further result in low testing efficiency for CAM software. Moreover, the parameters manually input or selected may not necessarily be the parameters that conform to the user's actual use. At most, they are some simple or pure test technique parameters. Therefore, the real parameters that the user may use cannot be tested and verified. Hence, this method is not professional and cannot truly simulate the user's actual application. Additionally, the flowchart of preparing the automated test script for CAM software in the current related technology is as Figure 1 shown. Therefore, when using the automated test script for CAM software prepared by the current related technology to perform an automated test on the processing function of CAM software, the process experience knowledge during part processing is not applied. So, when performing an automated test on the processing function of CAM software through the current related technology, the accuracy of the test results is relatively low.

[0003] Regarding the problem of relatively low accuracy of test results when performing an automated test on the processing function of CAM software in the related technology, no effective solution has been proposed yet. Summary of the Invention

[0004] The main purpose of the present application is to provide a test method and device for the processing function of CAM software, a storage medium, and a processor, so as to solve the problem of relatively low accuracy of test results when performing an automated test on the processing function of CAM software in the related technology.

[0005] To achieve the above object, according to one aspect of the present application, a test method for the machining function of CAM software is provided. The method includes: running a target test case using automated testing, where the target test case is a case for automated testing of the machining function of CAM software; determining target machining parameters corresponding to the target test case according to a first preset table, where the first preset table at least includes the correspondence between multiple machining parameters; machining a target part according to the target machining parameters corresponding to the target test case to generate a target machining trajectory; comparing the target machining trajectory with a first machining trajectory to obtain a test result of the machining function of the CAM software, where the first machining trajectory is the machining trajectory before generating the target machining trajectory.

[0006] Further, before determining the target machining parameters corresponding to the target test case according to the first preset table, the method further includes: constructing a process knowledge base, a machining tool library, and a machining method library according to the part machining manual and part machining experience values; constructing an intelligent inference rule library according to the process knowledge base, the machining tool library, and the machining method library, where the intelligent inference rule library at least includes the mapping relationship between multiple machining parameters; obtaining the first preset table according to the intelligent inference rule library.

[0007] Further, before running the target test case, the method further includes: determining machining parameter one required for machining the target part according to the target part; obtaining machining parameter two required for machining the target part according to the target machining parameters and the first preset table, where the machining parameter two is the machining parameter other than the machining parameter one required for machining the target part; obtaining a first script, where the first script is a preset script; combining the machining parameter one, the machining parameter two, and the first script to obtain a target script; constructing the target test case according to the target script.

[0008] Further, after comparing the target machining trajectory with the first machining trajectory to obtain the test result of the machining function of the CAM software, the method further includes: if the test result indicates that the target machining trajectory is the same as the first machining trajectory, it indicates that the machining function of the CAM software meets the preset requirements; if the test result indicates that the target machining trajectory is different from the first machining trajectory, determining whether the target machining trajectory is correct through a preset verification method; if it is determined through the preset verification method that the target machining trajectory is correct, updating the first machining trajectory to the target machining trajectory; if it is determined through the preset verification method that the target machining trajectory is incorrect, determining that the machining function of the CAM software does not meet the preset requirements and triggering a reminder message.

[0009] Further, if there are multiple test cases for testing the CAM software processing function, the method further includes: after it is characterized that the CAM software processing function meets the preset requirements, or, after updating the first processing trajectory to the target processing trajectory, or, after determining that the CAM software processing function does not meet the preset requirements and triggering a reminder message, running the test cases other than the target test case until all test cases are executed to complete the test of the CAM software processing function.

[0010] To achieve the above object, according to another aspect of the present application, there is provided a test device for a CAM software processing function. The device includes: a first running unit for running a target test case by using automated testing, where the target test case is a case for automated testing of the CAM software processing function; a first determining unit for determining, according to a first preset table, the target processing parameters corresponding to the target test case, where the first preset table at least includes the correspondence between multiple processing parameters; a first generating unit for processing a target part according to the target processing parameters corresponding to the target test case to generate a target processing trajectory; a first comparing unit for comparing the target processing trajectory with the first processing trajectory to obtain the test result of the CAM software processing function, where the first processing trajectory is the processing trajectory before generating the target processing trajectory.

[0011] Further, the device further includes: a first constructing unit for constructing a process knowledge base, a machining tool library, and a machining mode library according to a part machining manual and part machining empirical values before determining, according to the first preset table, the target processing parameters corresponding to the target test case; a second constructing unit for constructing an intelligent inference rule library according to the process knowledge base, the machining tool library, and the machining mode library, where the intelligent inference rule library at least includes the mapping relationship between multiple processing parameters; a first processing unit for obtaining the first preset table according to the intelligent inference rule library.

[0012] Further, the device further includes: a second determination unit, configured to determine machining parameter 1 required for machining the target part according to the target part before running the target test case; a second processing unit, configured to obtain machining parameter 2 required for machining the target part according to the target machining parameter and the first preset table, where the machining parameter 2 is the machining parameter other than the machining parameter 1 required for machining the target part; a first acquisition unit, configured to acquire a first script, where the first script is a preset script; a first combination unit, configured to combine the machining parameter 1, the machining parameter 2, and the first script to obtain a target script; a third construction unit, configured to construct the target test case according to the target script.

[0013] Further, the device further includes: a third processing unit, configured to, after comparing the target machining trajectory with the first machining trajectory to obtain the test result of the CAM software machining function, if the test result indicates that the target machining trajectory is the same as the first machining trajectory, it indicates that the CAM software machining function meets the preset requirements; a first judgment unit, configured to, if the test result indicates that the target machining trajectory is different from the first machining trajectory, judge whether the target machining trajectory is correct through a preset verification method; a first update unit, configured to, if it is judged through the preset verification method that the target machining trajectory is correct, update the first machining trajectory to the target machining trajectory; a fourth processing unit, configured to, if it is judged through the preset verification method that the target machining trajectory is incorrect, determine that the CAM software machining function does not meet the preset requirements and trigger a reminder message.

[0014] Further, if there are multiple test cases for testing the CAM software machining function, the device further includes: a fifth processing unit, configured to run the test cases other than the target test case after indicating that the CAM software machining function meets the preset requirements, or after updating the first machining trajectory to the target machining trajectory, or after determining that the CAM software machining function does not meet the preset requirements and triggering a reminder message, until all test cases are executed to complete the test of the CAM software machining function.

[0015] To achieve the above object, according to another aspect of the present application, there is provided a processor, where the processor is configured to run a program, and when the program runs, it executes the method for testing the CAM software machining function described in any one of the above.

[0016] To achieve the above object, according to another aspect of the present application, there is provided a storage medium, the storage medium including a stored program, wherein the program executes the test method for the CAM software processing function described in any one of the above.

[0017] Through the present application, the following steps are adopted: Automatically run target test cases, where the target test cases are cases for automatically testing the CAM software processing function; According to a first preset table, determine the target processing parameters corresponding to the target test cases, where the first preset table at least includes the correspondence between multiple processing parameters; Process the target part according to the target processing parameters corresponding to the target test cases to generate a target processing trajectory; Compare the target processing trajectory with the first processing trajectory to obtain the test result of the CAM software processing function, where the first processing trajectory is the processing trajectory before generating the target processing trajectory, which solves the problem of low accuracy of test results in the related art when automatically testing the processing function of CAM software. By determining the target processing parameters corresponding to the target test cases according to the first preset table and comparing the target processing trajectory obtained by processing the target part according to the target processing parameters with the first processing trajectory to obtain the test result of the CAM software processing function, the accuracy of the test result in automatically testing the processing function of CAM software is improved, and thus the effect of ensuring the normal operation of the CAM software is achieved. Description of the Drawings

[0018] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:

[0019] Figure 1 is a flowchart of compiling an automated test script for CAM software according to the prior art;

[0020] Figure 2 is a flowchart of the test method for the CAM software processing function provided by the embodiment of the present application;

[0021] Figure 3 is a schematic diagram of some processing parameters of the part in the CAM software in the embodiment of the present application;

[0022] Figure 4 is a schematic diagram of constructing an intermediate table of processing parameters based on lightweight intelligent reasoning in the embodiment of the present application;

[0023] Figure 5 is a schematic diagram of writing an automated test script for CAM software based on lightweight intelligent reasoning in the embodiment of the present application;

[0024] Figure 6 It is a flowchart of a test method for an optional CAM software processing function provided according to an embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of a test device for the CAM software processing function provided according to an embodiment of the present application. Detailed implementation manners

[0026] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances for the embodiments of the present application described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0029] The present invention will be described below in combination with preferred implementation steps. Figure 2 It is a flowchart of a test method for the CAM software processing function provided according to an embodiment of the present application, as Figure 2 shown, the method includes the following steps:

[0030] Step S201, using automated testing to run a target test case, where the target test case is a test case for automating the testing of the CAM software processing function.

[0031] For example, use the automated testing method to run the test case, and this test case is a test case for automating the testing of the CAM software processing function.

[0032] Step S202: Determine the target processing parameters corresponding to the target test case according to the first preset table, where the first preset table at least includes the corresponding relationships between multiple processing parameters.

[0033] For example, the above-mentioned first preset table can be a processing parameter intermediate table, which includes multiple processing parameters required for machining parts and the corresponding relationships between these processing parameters. According to the data in the processing parameter intermediate table, the respective processing parameters corresponding to the test case can be determined. Moreover, in the CAM software, some processing parameters of the part are as Figure 3 shown.

[0034] Step S203: Machine the target part according to the target processing parameters corresponding to the target test case to generate a target machining trajectory.

[0035] For example, machine the part according to the respective processing parameters corresponding to the test case to generate the machining trajectory of this part.

[0036] Step S204: Compare the target machining trajectory with the first machining trajectory to obtain the test result of the machining function of the CAM software, where the first machining trajectory is the machining trajectory before generating the target machining trajectory.

[0037] For example, the above-mentioned first machining trajectory can be a baseline trajectory. Compare the machining trajectory of this part with the machining trajectory of this part before running the test case, and obtain the test result of the machining function of the CAM software according to the comparison result.

[0038] Through the above steps S201 to S204, by determining the target processing parameters corresponding to the target test case according to the first preset table, and comparing the target machining trajectory obtained by machining the target part according to the target processing parameters with the first machining trajectory, the test result of the machining function of the CAM software is obtained, thereby improving the accuracy of the test result during the automated test of the machining function of the CAM software, and further achieving the effect of ensuring the normal operation of the CAM software.

[0039] Optionally, in the test method for the machining function of the CAM software provided in the embodiments of the present application, before determining the target processing parameters corresponding to the target test case according to the first preset table, the method further includes: constructing a process knowledge base, a machining tool library, and a machining method library according to the part machining manual and part machining experience values; constructing an intelligent inference rule library according to the process knowledge base, the machining tool library, and the machining method library, where the intelligent inference rule library at least includes the mapping relationships between multiple processing parameters; obtaining the first preset table according to the intelligent inference rule library.

[0040] For example, the process of constructing an intermediate table of machining parameters based on lightweight intelligent reasoning is to create a process knowledge base Excel file in Excel for creating various process knowledge bases, tool libraries, machining mode libraries, intelligent reasoning rule libraries, and calling intermediate tables. In addition, "lightweight intelligent reasoning" in this application refers to analyzing and reasoning data, and this application is an improvement on the parameter association method in current automated testing. It is not a simple association of table or file data, but an association based on intelligent reasoning. The specific construction process is as follows Figure 4 shown and is divided into the following steps: (1) Construct a process knowledge base: In the Excel table, create a process knowledge base page, which can be a single page or multiple pages, and the data source is the machining manual. The data collection scope is the possible scope used in test cases, and this data table can continue to be increased or adjusted as the test cases increase; (2) Construct a machining tool library: In the Excel table, create a machining tool library, and the tool library data comes from the manual, can also come from the tool factory, or can come from cooperative manufacturers, etc.; (3) Construct a machining mode library: In the Excel table, create possible feed modes, corner transition modes, root cleaning modes, approach modes, return modes, etc.; (4) Construct an intelligent reasoning rule library: Extract the recommended relationships between various parameters from the experience manual; precipitate experience from cooperative customers; precipitate experience from the consulting expert group, etc. Express it as a direct linear relationship, and for the range recommended values in the process parameters, directly adopt the intermediate value; in the Excel table, create a single column page as the relationship of the reasoning rule library. When there is no definite relationship for some relationships, directly subjectively define the relationship, and the defined relationship can be adjusted later; (5) Construct a calling intermediate master table: In the Excel table, create a calling intermediate master table page, and the fields in this page should at least include all the fields to be called in all automated tests. At the same time, each field has a corresponding relationship with the process knowledge base, tool library, machining mode library, etc. Determine the other required parameters based on one or several specific attributes, such as tool number, machining material, etc.

[0041] In summary, the association based on intelligent reasoning can generate an intermediate table of machining parameters, and the data in the intermediate table of machining parameters is dynamically generated and has strong professionalism and experience.

[0042] Optionally, in the test method for the machining function of the CAM software provided in the embodiment of this application, before running the target test case, the method further includes: determining machining parameter 1 required for machining the target part according to the target part; obtaining machining parameter 2 required for machining the target part based on the target machining parameter and the first preset table, where machining parameter 2 is the machining parameter other than machining parameter 1 required for machining the target part; obtaining a first script, where the first script is a preset script; combining machining parameter 1, machining parameter 2, and the first script to obtain a target script; constructing a target test case based on the target script.

[0043] For example, the process of writing an automated test script for a CAM software based on lightweight intelligent reasoning is as Figure 5 shown below: (1) Repeatedly operate the CAM software to analyze the machining parameters that need to be set for each machining strategy and the dependency relationships between the parameters; (2) Combine all the machining parameters of all machining strategies to form an intermediate table format of machining parameters. This table is the largest set of parameter usage and contains fields similar to machining parameters such as tool number, tool material, tool radius, tool length, spindle speed, feed rate, etc. in the intermediate table format; (3) Record and write the automated test script for the CAM software, and the input machining parameters used all come from the intermediate table of machining parameters; (4) The step of parameterization is to combine the recorded and written automated test script for the CAM software with the intermediate table of machining parameters to obtain the final automated test script to be used. Among them, when writing the automated test script for the CAM software, the steps of automatically setting the machining strategy parameters of the CAM software by calling the intermediate table of machining parameters are as follows: (1) Obtain the machining strategy information and determine whether the strategy belongs to rough machining or finish machining. The rough machining accuracy is defaulted to 0.1, and the finish machining accuracy is defaulted to 0.01; (2) Obtain the material information of the part; (3) After obtaining the machining strategy, machining accuracy, material, outer contour diameter, etc. of the part, the tool to be used is intelligently deduced through the mapping relationship in the process intelligent deduction library; (4) After obtaining the tool information, the diameter value and length value of the tool can be directly obtained. After the values are obtained, they are automatically filled into the parameter dialog box; (5) According to the machining accuracy, part material information, and tool information, values such as cutting, row spacing, spindle speed, feed rate, etc. can be intelligently deduced. After the values are obtained, these values are automatically filled into the parameter dialog box.

[0044] In summary, in the daily automated testing of CAM software, by invoking the intermediate table of machining parameters, a series of data such as tool length value, diameter value, height reduction value per layer, row spacing value, spindle speed value, cutting speed value, etc. can be automatically derived based on the material of the part, the material of the tool, the machining height of the part, the part accuracy, the machining area value, etc. These values are automatically set into the machining strategy parameter dialog box of the CAM software. Therefore, during the process of setting machining parameters in the machining strategy guidance interface, the function of intelligent parameter setting is realized through lightweight intelligent reasoning, thereby reducing the parameter input time and further improving the efficiency of writing automated test scripts. Additionally, the input parameters are no longer randomly given values, but values that professionally and realistically simulate the user usage scenario, that is, intelligent reasoning is adopted for the parameter selection of all machining strategies in the test cases of the user scenario or process, thus enhancing the effectiveness and professionalism of the parameters, making the automated testing professional, and realizing the system of transforming empirical decision-making into intelligent reasoning in the CAM software and in automated testing. Moreover, through the automated testing using intelligent reasoning, the testing is more in line with the actual usage scenario, can quickly expand the test cases of the user scenario, improve the test coverage rate, and further improve the accuracy of the test results when performing automated testing on the machining function of the CAM software.

[0045] Optionally, in the test method for the machining function of the CAM software provided in the embodiment of the present application, after comparing the target machining trajectory with the first machining trajectory to obtain the test result of the machining function of the CAM software, the method further includes: if the test result indicates that the target machining trajectory is the same as the first machining trajectory, it indicates that the machining function of the CAM software meets the preset requirements; if the test result indicates that the target machining trajectory is different from the first machining trajectory, it is determined whether the target machining trajectory is correct through a preset verification method; if it is determined through the preset verification method that the target machining trajectory is correct, the first machining trajectory is updated to the target machining trajectory; if it is determined through the preset verification method that the target machining trajectory is incorrect, it is determined that the machining function of the CAM software does not meet the preset requirements, and a reminder message is triggered.

[0046] For example, when executing the comparison result, if the comparison result indicates that the target machining trajectory is the same as the baseline trajectory, it means that the machining function of the CAM software has no bugs; if the comparison result indicates that the target machining trajectory is different from the baseline trajectory, it is verified manually. If the result of the manual auxiliary verification is correct, the baseline is updated, that is, the baseline trajectory is updated to the target machining trajectory. If the result of the manual auxiliary verification is incorrect, it means that the machining function of the CAM software has bugs and the bugs are reported.

[0047] In summary, by combining automated testing and manual verification, the accuracy of the test results when performing automated testing on the machining function of the CAM software can be improved.

[0048] Optionally, in the test method for the CAM software processing function provided in the embodiments of the present application, if there are multiple test cases for testing the CAM software processing function, the method further includes: after it is characterized that the CAM software processing function meets the preset requirements, or after updating the first processing trajectory to the target processing trajectory, or after it is determined that the CAM software processing function does not meet the preset requirements and a reminder message is triggered, running the test cases other than the target test case until all test cases are executed to complete the test of the CAM software processing function.

[0049] For example, after it is indicated that the CAM software processing function has no bugs, or after it is indicated that the CAM software processing function has bugs and the bugs are reported, or after updating the baseline and updating the baseline trajectory to the target processing trajectory, enter a loop to execute the next test case until all test cases are executed to complete the test of the CAM software processing function. If after all test cases are executed, if the execution results of all test cases are correct, it indicates that the CAM software processing function has no bugs; if one of the execution results of all test cases is incorrect, it indicates that the CAM software processing function has bugs.

[0050] In summary, multiple function points of the CAM software processing function can be tested through multiple test cases, thereby improving the comprehensiveness of the test.

[0051] The flowchart of the optional test method for the CAM software processing function is as Figure 6 shown. Run the test case; the test case calls the intermediate general table data, and based on intelligent reasoning, determines each processing parameter; execute the comparison result. If the result is correct, enter a loop to execute the next test case; if the result is incorrect, perform manual assisted verification. If the result is still incorrect, report the bug; if the result is correct, update the baseline and enter a loop to execute the next test case.

[0052] In summary, the test method for the CAM software processing function provided by the embodiments of the present application runs target test cases through automated testing, where the target test cases are cases used for automated testing of the CAM software processing function; determines the target processing parameters corresponding to the target test cases according to the first preset table, where the first preset table at least includes the corresponding relationships between multiple processing parameters; processes the target part according to the target processing parameters corresponding to the target test cases to generate a target processing trajectory; compares the target processing trajectory with the first processing trajectory to obtain the test result of the CAM software processing function, where the first processing trajectory is the processing trajectory before generating the target processing trajectory, solving the problem of low accuracy of test results in the related art when performing automated testing on the processing function of the CAM software. By determining the target processing parameters corresponding to the target test cases according to the first preset table and comparing the target processing trajectory obtained by processing the target part according to the target processing parameters with the first processing trajectory to obtain the test result of the CAM software processing function, the accuracy of the test result in performing automated testing on the processing function of the CAM software is improved, and the effect of ensuring the normal operation of the CAM software is achieved.

[0053] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0054] The embodiments of the present application also provide a test device for the CAM software processing function. It should be noted that the test device for the CAM software processing function in the embodiments of the present application can be used to execute the test method for the CAM software processing function provided by the embodiments of the present application. The following introduces the test device for the CAM software processing function provided by the embodiments of the present application.

[0055] Figure 7 is a schematic diagram of the test device for the CAM software processing function according to the embodiments of the present application. As Figure 7 shown, the device includes: a first operation unit 701, a first determination unit 702, a first generation unit 703, and a first comparison unit 704.

[0056] Specifically, the first operation unit 701 is configured to run target test cases through automated testing, where the target test cases are cases used for automated testing of the CAM software processing function;

[0057] A first determination unit 702, configured to determine target processing parameters corresponding to a target test case according to a first preset table, where the first preset table at least includes a correspondence between multiple processing parameters;

[0058] A first generation unit 703, configured to process a target part according to the target processing parameters corresponding to the target test case to generate a target processing trajectory;

[0059] A first comparison unit 704, configured to compare the target processing trajectory with a first processing trajectory to obtain a test result of the CAM software processing function, where the first processing trajectory is the processing trajectory before the target processing trajectory is generated.

[0060] Optionally, in the test device for the CAM software processing function provided in the embodiments of the present application, the device further includes: a first construction unit, configured to construct a process knowledge base, a processing tool library, and a processing method library according to a part processing manual and part processing experience values before determining the target processing parameters corresponding to the target test case according to the first preset table; a second construction unit, configured to construct an intelligent inference rule library according to the process knowledge base, the processing tool library, and the processing method library, where the intelligent inference rule library at least includes a mapping relationship between multiple processing parameters; a first processing unit, configured to obtain the first preset table according to the intelligent inference rule library.

[0061] Optionally, in the test device for the CAM software processing function provided in the embodiments of the present application, the device further includes: a second determination unit, configured to determine processing parameter 1 required for processing the target part according to the target part before running the target test case; a second processing unit, configured to obtain processing parameter 2 required for processing the target part according to the target processing parameters and the first preset table, where processing parameter 2 is the processing parameter other than processing parameter 1 required for processing the target part; a first acquisition unit, configured to acquire a first script, where the first script is a preset script; a first combination unit, configured to combine processing parameter 1, processing parameter 2, and the first script to obtain a target script; a third construction unit, configured to construct a target test case according to the target script.

[0062] Optionally, in the test device for the CAM software processing function provided in the embodiments of the present application, the device further includes: a third processing unit, configured to, after comparing a target processing trajectory with a first processing trajectory to obtain a test result of the CAM software processing function, if the test result indicates that the target processing trajectory is the same as the first processing trajectory, characterize that the CAM software processing function meets the preset requirements; a first determination unit, configured to, if the test result indicates that the target processing trajectory is different from the first processing trajectory, determine whether the target processing trajectory is correct through a preset verification method; a first update unit, configured to, if it is determined through the preset verification method that the target processing trajectory is correct, update the first processing trajectory to the target processing trajectory; a fourth processing unit, configured to, if it is determined through the preset verification method that the target processing trajectory is incorrect, determine that the CAM software processing function does not meet the preset requirements, and trigger a reminder message.

[0063] Optionally, in the test device for the CAM software processing function provided in the embodiments of the present application, if there are multiple test cases for testing the CAM software processing function, the device further includes: a fifth processing unit, configured to, after characterizing that the CAM software processing function meets the preset requirements, or after updating the first processing trajectory to the target processing trajectory, or after determining that the CAM software processing function does not meet the preset requirements and triggering a reminder message, run the test cases other than the target test case until all test cases are executed to complete the test of the CAM software processing function.

[0064] In summary, for the test device for the CAM software processing function provided in the embodiments of the present application, the first operation unit 701 runs the automated test target test case, where the target test case is a test case for automatically testing the CAM software processing function; the first determination unit 702 determines the target processing parameters corresponding to the target test case according to the first preset table, where the first preset table at least includes the correspondence between multiple processing parameters; the first generation unit 703 processes the target part according to the target processing parameters corresponding to the target test case to generate a target processing trajectory; the first comparison unit 704 compares the target processing trajectory with the first processing trajectory to obtain a test result of the CAM software processing function, where the first processing trajectory is the processing trajectory before the target processing trajectory is generated, which solves the problem of low accuracy of the test result in the related art when automatically testing the processing function of the CAM software. By determining the target processing parameters corresponding to the target test case according to the first preset table and comparing the target processing trajectory obtained by processing the target part according to the target processing parameters with the first processing trajectory to obtain the test result of the CAM software processing function, the accuracy of the test result in the automatic test of the CAM software processing function is improved, and the effect of ensuring the normal operation of the CAM software is achieved.

[0065] The test device for the CAM software processing function includes a processor and a memory. The first operation unit 701, the first determination unit 702, the first generation unit 703, the first comparison unit 704, etc. are all stored in the memory as program units, and the processor executes the above program units stored in the memory to implement corresponding functions.

[0066] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and by adjusting the kernel parameters, the accuracy of the test results can be improved when automatically testing the processing function of the CAM software.

[0067] The memory may include non-permanent memory in a computer-readable medium, forms such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0068] An embodiment of the present invention provides a storage medium, on which a program is stored, and when the program is executed by a processor, the test method for the CAM software processing function is implemented.

[0069] An embodiment of the present invention provides a processor, which is used to run a program. When the program runs, the test method for the CAM software processing function is executed.

[0070] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, the following steps are implemented: Automatically testing and running a target test case, where the target test case is a test case for automatically testing the CAM software processing function; determining target processing parameters corresponding to the target test case according to a first preset table, where at least the first preset table includes the corresponding relationship between multiple processing parameters; processing a target part according to the target processing parameters corresponding to the target test case to generate a target processing trajectory; comparing the target processing trajectory with a first processing trajectory to obtain the test result of the CAM software processing function, where the first processing trajectory is the processing trajectory before generating the target processing trajectory.

[0071] When the processor executes the program, the following steps are also implemented: Before determining the target processing parameters corresponding to the target test case according to the first preset table, the method further includes: constructing a process knowledge base, a processing tool library, and a processing method library according to the part processing manual and part processing experience values; constructing an intelligent inference rule library according to the process knowledge base, the processing tool library, and the processing method library, where the intelligent inference rule library at least includes mapping relationships between multiple processing parameters; obtaining the first preset table according to the intelligent inference rule library.

[0072] When the processor executes the program, the following steps are also implemented: Before running the target test case, the method further includes: determining the first processing parameter required for processing the target part according to the target part; obtaining the second processing parameter required for processing the target part according to the target processing parameter and the first preset table, where the second processing parameter is the processing parameter other than the first processing parameter required for processing the target part; obtaining a first script, where the first script is a preset script; combining the first processing parameter, the second processing parameter, and the first script to obtain a target script; constructing the target test case according to the target script.

[0073] When the processor executes the program, the following steps are also implemented: After comparing the target machining trajectory with the first machining trajectory to obtain the test result of the CAM software machining function, the method further includes: if the test result indicates that the target machining trajectory is the same as the first machining trajectory, it indicates that the CAM software machining function meets the preset requirements; if the test result indicates that the target machining trajectory is different from the first machining trajectory, determining whether the target machining trajectory is correct through a preset verification method; if it is determined that the target machining trajectory is correct through the preset verification method, updating the first machining trajectory to the target machining trajectory; if it is determined that the target machining trajectory is incorrect through the preset verification method, determining that the CAM software machining function does not meet the preset requirements and triggering a reminder message.

[0074] When the processor executes the program, the following steps are also implemented: If there are multiple test cases for testing the CAM software machining function, the method further includes: after indicating that the CAM software machining function meets the preset requirements, or after updating the first machining trajectory to the target machining trajectory, or after determining that the CAM software machining function does not meet the preset requirements and triggering a reminder message, running the tests other than the target test case. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0075] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program initialized with the following method steps: using an automated test to run a target test case, where the target test case is a case for automatically testing the processing function of CAM software; determining target processing parameters corresponding to the target test case according to a first preset table, where the first preset table at least includes the correspondence between multiple processing parameters; processing a target part according to the target processing parameters corresponding to the target test case to generate a target processing trajectory; comparing the target processing trajectory with a first processing trajectory to obtain a test result of the processing function of the CAM software, where the first processing trajectory is the processing trajectory before generating the target processing trajectory.

[0076] When executed on a data processing device, it is also adapted to execute a program initialized with the following method steps: before determining the target processing parameters corresponding to the target test case according to the first preset table, the method further includes: constructing a process knowledge base, a processing tool library, and a processing method library according to a part processing manual and part processing experience values; constructing an intelligent inference rule library according to the process knowledge base, the processing tool library, and the processing method library, where the intelligent inference rule library at least includes the mapping relationship between multiple processing parameters; obtaining the first preset table according to the intelligent inference rule library.

[0077] When executed on a data processing device, it is also adapted to execute a program initialized with the following method steps: before running the target test case, the method further includes: determining processing parameter one required for processing the target part according to the target part; obtaining processing parameter two required for processing the target part according to the target processing parameters and the first preset table, where the processing parameter two is the processing parameter other than the processing parameter one required for processing the target part; obtaining a first script, where the first script is a preset script; combining the processing parameter one, the processing parameter two, and the first script to obtain a target script; constructing the target test case according to the target script.

[0078] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: After comparing the target machining trajectory with the first machining trajectory to obtain the test result of the CAM software machining function, the method further includes: If the test result indicates that the target machining trajectory is the same as the first machining trajectory, it is characterized that the CAM software machining function meets the preset requirements; If the test result indicates that the target machining trajectory is different from the first machining trajectory, it is judged whether the target machining trajectory is correct through a preset verification method; If it is judged that the target machining trajectory is correct through the preset verification method, the first machining trajectory is updated to the target machining trajectory; If it is judged that the target machining trajectory is incorrect through the preset verification method, it is determined that the CAM software machining function does not meet the preset requirements, and a reminder message is triggered.

[0079] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: If there are multiple test cases for testing the CAM software machining function, the method further includes: After characterizing that the CAM software machining function meets the preset requirements, or, after updating the first machining trajectory to the target machining trajectory, or, after determining that the CAM software machining function does not meet the preset requirements and triggering a reminder message, run the tests other than the target test case.

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

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

[0082] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the functions specified in one process Figure 1 or a plurality of processes and / or blocks Figure 1 or a plurality of blocks.

[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, thereby providing steps for implementing the functions specified in one process Figure 1 or a plurality of processes and / or blocks Figure 1 or a plurality of blocks.

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

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

[0086] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology for information storage. The 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (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 accessible by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.

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

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

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

Claims

1. A test method for the processing function of CAM software, characterized in that Including: Using automated testing to run target test cases, where the target test cases are cases for automating the testing of the CAM software's machining function; Determining target machining parameters corresponding to the target test cases according to a first preset table, where the first preset table at least includes the correspondence between multiple machining parameters; Machining a target part according to the target machining parameters corresponding to the target test cases to generate a target machining trajectory; Comparing the target machining trajectory with a first machining trajectory to obtain the test result of the CAM software's machining function, where the first machining trajectory is the machining trajectory before generating the target machining trajectory, and the first machining trajectory is the baseline trajectory.

2. The method according to claim 1, characterized in that Before determining the target machining parameters corresponding to the target test cases according to the first preset table, the method further includes: Constructing a process knowledge base, a machining tool library, and a machining method library according to the part machining manual and part machining experience values; Constructing an intelligent inference rule library according to the process knowledge base, the machining tool library, and the machining method library, where the intelligent inference rule library at least includes the mapping relationship between multiple machining parameters; Obtaining the first preset table according to the intelligent inference rule library.

3. The method according to claim 1, wherein Before running the target test cases, the method further includes: Determining machining parameter 1 required for machining the target part according to the target part; Obtaining machining parameter 2 required for machining the target part according to the target machining parameters and the first preset table, where machining parameter 2 is the machining parameter other than machining parameter 1 required for machining the target part; Obtaining a first script, where the first script is a preset script; Combining machining parameter 1, machining parameter 2, and the first script to obtain a target script; Constructing the target test cases according to the target script.

4. The method according to claim 1, characterized in that After comparing the target machining trajectory with the first machining trajectory to obtain the test result of the CAM software's machining function, the method further includes: If the test result indicates that the target machining trajectory is the same as the first machining trajectory, it indicates that the CAM software's machining function meets the preset requirements; If the test result indicates that the target machining trajectory is different from the first machining trajectory, judging whether the target machining trajectory is correct through a preset verification method; If it is judged that the target machining trajectory is correct through the preset verification method, updating the first machining trajectory to the target machining trajectory; If it is judged that the target machining trajectory is incorrect through the preset verification method, determining that the CAM software's machining function does not meet the preset requirements and triggering a reminder message.

5. The method according to claim 4, wherein If there are multiple test cases for testing the CAM software's machining function, the method further includes: After characterizing that the machining function of the CAM software meets the preset requirements, or after updating the first machining trajectory to the target machining trajectory, or after determining that the machining function of the CAM software does not meet the preset requirements and triggering a reminder message, run test cases other than the target test case until all test cases are executed to complete the test of the machining function of the CAM software.

6. A test device for the processing function of CAM software, characterized in that, Including: A first running unit for running a target test case, where the target test case is a test case for testing the machining function of the CAM software; A first determining unit for determining target machining parameters corresponding to the target test case according to a first preset table, where the first preset table at least includes the correspondence between multiple machining parameters; A first generating unit for machining a target part according to the target machining parameters corresponding to the target test case to generate a target machining trajectory; A first comparing unit for comparing the target machining trajectory with the first machining trajectory to obtain the test result of the machining function of the CAM software, where the first machining trajectory is the machining trajectory before generating the target machining trajectory, and the first machining trajectory is the baseline trajectory.

7. The device according to claim 6, characterized in that, The device further includes: A first constructing unit for constructing a process knowledge base, a machining tool library, and a machining method library according to the part machining manual and part machining empirical values before determining the target machining parameters corresponding to the target test case according to the first preset table; A second constructing unit for constructing an intelligent inference rule library according to the process knowledge base, the machining tool library, and the machining method library, where the intelligent inference rule library at least includes the mapping relationship between multiple machining parameters; A first processing unit for obtaining the first preset table according to the intelligent inference rule library.

8. The device according to claim 6, characterized in that, The device further includes: A second determining unit for determining machining parameter one required for machining the target part according to the target part before running the target test case; A second processing unit for obtaining machining parameter two required for machining the target part according to the target machining parameters and the first preset table, where the machining parameter two is the machining parameter other than the machining parameter one required for machining the target part; A first obtaining unit for obtaining a first script, where the first script is a preset script; A first combining unit for combining the machining parameter one, the machining parameter two, and the first script to obtain a target script; A third constructing unit for constructing the target test case according to the target script.

9. A storage medium, characterized in that, The storage medium includes a stored program, where the program executes the test method for the machining function of the CAM software according to any one of claims 1 to 5.

10. A processor, characterized in that, The processor is used to run the program, where the program runs to execute the test method for the machining function of the CAM software according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for generating processing path function of computer graphic

    CN103777571A

  • Method and device for testing comprehensive performance of numerical control system

    CN109656196A