CAD resource verification method and device, storage medium and processor

By obtaining and mapping the characteristic information of CAD resources, running an automated test program, and combining preset verification methods, the problem of low resource verification efficiency in the existing technology is solved, and fast and accurate resource verification and guarantee of CAD front-end call functions are achieved. .

CN114138646BActive Publication Date: 2025-01-07CAXA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111437385.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2025-01-07
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

In the prior art, when automated exhaustive coverage and manual verification of CAD software resources, the efficiency is low, resulting in a long resource verification cycle, large workload, and easy to miss.

Method used

By obtaining the target list document, it contains the characteristic information of multiple target CAD resources, maps it into a CAD front-end call list, and runs the CAD side automated test program to verify the correctness of the resource, and judges the correctness of the resource based on the preset verification method, and updates the document And feedback error reminders.

Benefits of technology

Improve the efficiency of resource verification, ensure the correctness of CAD front-end call functions, and reduce manual intervention and verification cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138646B_ABST
    Figure CN114138646B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for verifying CAD resources, a storage medium and a processor. The method comprises: obtaining a target list document, wherein the target list document includes at least a plurality of target CAD resources; mapping the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; and running an automated test program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource. The present application solves the problem in the related art that the resources in the CAD software are verified by automated exhaustive coverage and manual methods, resulting in low resource verification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of resource management technology, and in particular to a verification method and device for CAD resources, a storage medium, and a processor. Background Art

[0002] With the development of technology, a large number of resources will be called in CAD software applications, such as standard parts, general parts, and purchased parts libraries. Even with the expansion of CAD software applications in different industries, different types of resources will be added. For example, in home CAD, a large number of decorative resources will be called, such as floors, accessories, sofas, chandeliers, toys, and other resources. The number of these resources ranges from thousands to hundreds of thousands or millions. And these resources can be placed in an internal shared environment or private cloud, or on a public cloud for the public. In addition, these resources can also be resources for public participation, so these resources are characterized by a wide variety and large amount of data. It takes a very long time for the system to fully verify the resources provided in a CAD software application, ranging from a few days to more than 1 month. Therefore, it is almost impossible to verify all resources within the specified online time. Therefore, how to ensure that there are no problems with the front-end application of CAD, the update of resources is orderly, the availability of resources, the reliability of resource quality, and how to promptly discover resource usage problems are a testing difficulty and resource consumption point for CAD software providers and providers of massive resources.

[0003] At present, some companies use manual sampling verification to verify the application of massive resources. The disadvantages of this method are that it requires a lot of manpower, is time-consuming, has a large workload, and is prone to omissions. In addition, some standardized companies will also use automated exhaustive coverage combined with manual sampling verification or free verification. The disadvantages of this method are that each coverage is time-consuming, has a large workload, and has a long cycle to complete the coverage. The flowchart of using automated testing to verify CAD resources in related technologies, such as Figure 1 shown.

[0004] Currently, no effective solution has been proposed to solve the problem that the efficiency of resource verification is low due to the use of automated exhaustive coverage and manual methods in related technologies to verify resources in CAD software. Summary of the invention

[0005] The main purpose of the present application is to provide a CAD resource verification method and device, storage medium and processor to solve the problem of low resource verification efficiency caused by using automated exhaustive coverage methods and manual methods to verify resources in CAD software in related technologies.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for verifying CAD resources is provided. The method comprises: obtaining a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; mapping the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; according to the CAD front-end call list, running the automated test program on the CAD side to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource.

[0007] Furthermore, before obtaining the target list document, the method also includes: before a preset date, traversing CAD resources through an information reader to obtain a first list document, wherein the first list document includes at least a plurality of CAD resources; traversing CAD resources through an information reader on the preset date to obtain a second list document, wherein the second list document includes at least a plurality of traversed CAD resources; comparing the first list document and the second list document to obtain the target list document, wherein the target list document includes different resources in the first list document and the second list document.

[0008] Furthermore, according to the CAD front-end call list, running the automated testing program on the CAD side to verify the correctness of the target CAD resource includes: judging whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list; if the target CAD resource is a CAD resource in the first list document, judging whether the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document; if the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document, updating the first list document; if the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, judging whether the target CAD resource is correct by a preset verification method to verify the correctness of the target CAD resource.

[0009] Furthermore, after determining whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list, the method also includes: if the target CAD resource is not a CAD resource in the first list document, determining whether the target CAD resource is correct through a preset verification method to verify the correctness of the target CAD resource.

[0010] Furthermore, judging whether the target CAD resource is correct by a preset verification method to verify the correctness of the target CAD resource includes: if the target CAD resource is judged to be correct by the preset verification method, updating the first list document; if the target CAD resource is judged to be incorrect by the preset verification method, feeding back an error reminder message.

[0011] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a CAD resource verification device is provided. The device comprises: a first acquisition unit, used to acquire a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; a first mapping unit, used to map the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; a first processing unit, used to run the automated test program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource.

[0012] Furthermore, the device also includes: a first traversal unit, used to traverse CAD resources through an information reader before obtaining the target list document and before a preset date to obtain a first list document, wherein the first list document includes at least multiple CAD resources; a second traversal unit, used to traverse CAD resources through an information reader on the preset date to obtain a second list document, wherein the second list document includes at least the traversed multiple CAD resources; a first comparison unit, used to compare the first list document and the second list document to obtain the target list document, wherein the target list document includes different resources in the first list document and the second list document.

[0013] Furthermore, the first processing unit includes: a first judgment module, used to judge whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list; a second judgment module, used to judge whether the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document if the target CAD resource is the CAD resource in the first list document; a first update module, used to update the first list document if the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document; and a third judgment module, used to judge whether the target CAD resource is correct through a preset verification method if the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, so as to verify the correctness of the target CAD resource.

[0014] Furthermore, the device also includes: a first judgment unit, which is used to judge whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list. If the target CAD resource is not a CAD resource in the first list document, whether the target CAD resource is correct is judged by a preset verification method to verify the correctness of the target CAD resource.

[0015] Furthermore, the third judgment module or the first judgment unit includes: a first processing submodule, used to update the first list document if the target CAD resource is judged to be correct through a preset verification method; and a second processing submodule, used to feedback error reminder information if the target CAD resource is judged to be incorrect through a preset verification method.

[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned CAD resource verification methods when running.

[0017] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a storage medium is provided, wherein the storage medium includes a stored program, wherein the program executes any one of the above-mentioned CAD resource verification methods.

[0018] Through this application, the following steps are adopted: obtaining a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; mapping the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; according to the CAD front-end call list, running the automated test program on the CAD side to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource, solving the problem of low resource verification efficiency caused by using automated exhaustive coverage methods and manual methods to verify resources in CAD software in related technologies. By mapping the obtained target list document into a CAD front-end call list, and then running the automated test program on the CAD side according to the CAD front-end call list, the correctness of the target CAD resource can be accurately verified, thereby improving the resource verification efficiency, and thus achieving the effect of ensuring the correct implementation of the CAD front-end call function. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a flow chart for verifying CAD resources using automated testing according to the prior art;

[0021] Figure 2 is a flow chart of a CAD resource verification method provided according to an embodiment of the present application;

[0022] Figure 3 is a flowchart of an optional CAD resource verification method provided according to an embodiment of the present application;

[0023] Figure 4 It is a schematic diagram of a CAD resource verification device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] The present invention is described below in conjunction with preferred implementation steps. Figure 2 is a flow chart of a CAD resource verification method provided in an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:

[0028] Step S201, obtaining a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method.

[0029] For example, the target list document can be a massive resource update list document, which is a document that records the target massive resource information. Each piece of information includes at least: resource name, resource unique ID, resource size (accurate to the number of bytes), and file modification date. The document also needs to pay attention to the resource processing method. If MD5 encryption is used, the MD5 code can be added. The file uses *.xls, *.xlsx format, and can also use text types *.txt, *.xml, *.Json and other formats.

[0030] Step S202: Map the target list document into a CAD front-end calling list, wherein the CAD front-end calling list at least includes name information corresponding to each target CAD resource.

[0031] For example, based on the mapping relationship between the massive resource update list document and the CAD front-end call list, the back-end massive resource update list document is converted into a massive resource CAD front-end call list. Among them, the CAD front-end call list includes the name information corresponding to each target CAD resource. In addition, the purpose of forming the massive resource CAD front-end call list is to enable the front-end call place to directly call the CAD front-end call list. When calling the CAD front-end call list, it can be switched to the call place for calling, or it can be called by searching keywords. If there is an entrance for searching resources, the method of searching keywords can be used.

[0032] Step S203, running the automated testing program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated testing program on the CAD side is used to test the target CAD resource.

[0033] For example, according to the CAD front-end call list, an automated test program for testing CAD resources is run, and the correctness of the target CAD resources is verified based on the running results of the automated test program, and the above-mentioned automated test program for testing CAD resources is an automated test program on the CAD side.

[0034] Through the above steps S201 to S203, by mapping the acquired target list document into a CAD front-end call list, and then running the automated testing program on the CAD side according to the CAD front-end call list, the correctness of the target CAD resources can be accurately verified, thereby improving the resource verification efficiency and achieving the effect of ensuring the correct implementation of the CAD front-end call function.

[0035] Optionally, in the CAD resource verification method provided in an embodiment of the present application, before obtaining the target list document, the method also includes: before a preset date, traversing the CAD resources by an information reader to obtain a first list document, wherein the first list document includes at least a plurality of CAD resources; traversing the CAD resources by an information reader on a preset date to obtain a second list document, wherein the second list document includes at least the traversed plurality of CAD resources; comparing the first list document and the second list document to obtain a target list document, wherein the target list document includes different resources in the first list document and the second list document.

[0036] For example, the above-mentioned information reader can be a massive resource key information reader, the first list document can be a massive resource baseline list document, and the second list document can be a massive resource list document. Among them, the massive resource key information reader is a tool developed to read massive resource file information. For example, the size of the resource file, accurately to the number of bytes and the file modification date can be read as key information and written into the massive resource list document and the massive resource baseline list document. The contents in the massive resource baseline list document and the massive resource list document are similar to the contents in the above-mentioned massive resource update list document, but the difference is that the massive resource baseline list document records the documents of all massive resource information and uses all the massive resources in this document as the baseline, and the massive resource list document records multiple documents of massive resource information traversed on the test day. For example, before the test day, a massive resource key information reader is used to traverse the massive resource server to form a massive resource baseline list document; then on each test day, a massive resource key information reader is also used to traverse the massive resource server to form a massive resource list document, and this document can be named according to the test day, such as the document generated on the test day of September 28, 2021, named CAXASmartHomeCloudRes20210928; a massive resource comparator is used to compare the information of each resource item in the massive resource list document on the test day and the massive resource baseline list document to form a list of identical items and different items, and the content in the different item lists is used as the content in the massive resource update list document.

[0037] In summary, by comparing the information of each resource item in the massive resource list document and the massive resource baseline list document, the massive resource update list document can be accurately obtained.

[0038] Optionally, in the CAD resource verification method provided in the embodiment of the present application, according to the CAD front-end call list, running the automated testing program on the CAD side to verify the correctness of the target CAD resource includes: according to the CAD front-end call list, judging whether the target CAD resource is a CAD resource in a first list document; if the target CAD resource is a CAD resource in the first list document, judging whether the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document; if the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document, updating the first list document; if the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, judging whether the target CAD resource is correct by a preset verification method to verify the correctness of the target CAD resource.

[0039] For example, according to the CAD front-end call list, run the CAD software to call the resource automation test program, and then determine whether each CAD resource in the CAD front-end call list is in the resources in the massive resource baseline list document, that is, determine whether the resource is a new resource and whether there is a corresponding baseline in the massive resource baseline list document. If there is a baseline, then automatically determine whether the running result of the CAD resource is the same as the running result of the baseline resource. If the running result of the CAD resource is the same as the running result of the baseline resource, then update the massive resource baseline list document; if the running result of the CAD resource is different from the running result of the baseline resource, then manually confirm whether the CAD resource is correct, and verify the correctness of the CAD resource based on the manual confirmation result.

[0040] Through the above solution, by combining automated operation and manual confirmation, the correctness of CAD resources can be accurately determined, while also improving the efficiency of CAD resource verification.

[0041] Optionally, in the CAD resource verification method provided in an embodiment of the present application, after determining whether the target CAD resource is a CAD resource in a first list document according to the CAD front-end call list, the method further includes: if the target CAD resource is not a CAD resource in the first list document, determining whether the target CAD resource is correct by a preset verification method to verify the correctness of the target CAD resource.

[0042] For example, according to the CAD front-end call list, run the CAD software to call the resource automation test program, and then determine whether each CAD resource in the CAD front-end call list is in the resources in the massive resource baseline list document, that is, determine whether the resource is a new resource and whether there is a corresponding baseline in the massive resource baseline list document. If there is no baseline, confirm that the resource is a new resource, and manually confirm whether the CAD resource is correct, and verify the correctness of the CAD resource based on the manual confirmation result.

[0043] In summary, when it is determined through automation that a CAD resource has no baseline, manual confirmation can be used to accurately and quickly determine the correctness of the CAD resource.

[0044] Optionally, in the CAD resource verification method provided in the embodiment of the present application, whether the target CAD resource is correct is determined by a preset verification method to verify the correctness of the target CAD resource, including: if the target CAD resource is determined to be correct by the preset verification method, updating the first list document; if the target image is determined to be incorrect by a manual verification method, feeding back an error reminder message.

[0045] For example, when the CAD resource is judged to be correct through manual verification, the massive resource baseline list document is updated; when the CAD resource is judged to be incorrect through manual verification, an error reminder message is reported. In addition, when all resources in the massive resource CAD front-end call list are traversed and called, the verification cycle ends.

[0046] Through the above scheme, the CAD resources are verified by manual confirmation, so as to ensure the correctness of the CAD resources and further ensure the normal implementation of the CAD front-end calling function.

[0047] Schematic diagram of the verification method of the optional CAD resource, such as Figure 3 As shown. Use the massive resource key information reader to traverse the massive resources and generate the baseline file of the key attributes of the massive resources, that is, the massive resource baseline list document; use the massive resource key information reader to traverse the massive resources regularly, obtain the key attribute information of the massive resource items, and form a massive resource list document; use the massive resource comparator to compare the acquired key attribute information of the massive resource items with the baseline data to form a massive resource update list document; map the massive resource update list document into a massive resource CAD front-end call list; run the CAD software to call the resource automation test program; determine whether the resource is a newly added resource and has no corresponding baseline; if there is a baseline, perform automatic operation to obtain the operation result; if the automatic operation result is incorrect, perform manual confirmation, and if the confirmation is incorrect, feedback error reminder information; if the confirmation is correct, update the massive resource baseline list document; if there is no baseline, perform manual confirmation directly, and if the confirmation is incorrect, feedback error reminder information; if the confirmation is correct, update the massive resource baseline list document.

[0048] In summary, the verification method of CAD resources provided in the embodiment of the present application obtains a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; maps the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; according to the CAD front-end call list, runs the automated test program on the CAD side to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource, which solves the problem of low resource verification efficiency caused by the use of automated exhaustive coverage methods and manual methods to verify resources in CAD software in the related art. By mapping the obtained target list document into a CAD front-end call list, and then running the automated test program on the CAD side according to the CAD front-end call list, the correctness of the target CAD resource can be accurately verified, thereby improving the resource verification efficiency, and thus achieving the effect of ensuring the correct implementation of the CAD front-end call function.

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

[0050] The embodiment of the present application also provides a CAD resource verification device. It should be noted that the CAD resource verification device of the embodiment of the present application can be used to execute the CAD resource verification method provided in the embodiment of the present application. The CAD resource verification device provided in the embodiment of the present application is introduced below.

[0051] Figure 4 Schematic diagram of a CAD resource verification device according to an embodiment of the present application. Figure 4 As shown, the device includes: a first acquisition unit 401, a first mapping unit 402 and a first processing unit 403.

[0052] Specifically, the first acquisition unit 401 is used to acquire a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method;

[0053] A first mapping unit 402 is used to map the target list document into a CAD front-end call list, wherein the CAD front-end call list at least includes name information corresponding to each target CAD resource;

[0054] The first processing unit 403 is used to run the automatic test program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automatic test program on the CAD side is used to test the target CAD resource.

[0055] In summary, the CAD resource verification device provided by the embodiment of the present application obtains a target list document through the first acquisition unit 401, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; the first mapping unit 402 maps the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; the first processing unit 403 runs the automated test program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource, which solves the problem of low resource verification efficiency caused by using automated exhaustive coverage methods and manual methods to verify resources in CAD software in the related art. By mapping the acquired target list document into a CAD front-end call list, and then running the automated test program on the CAD side according to the CAD front-end call list, the correctness of the target CAD resource can be accurately verified, thereby improving the resource verification efficiency, and thus achieving the effect of ensuring the correct implementation of the CAD front-end call function.

[0056] Optionally, in the CAD resource verification device provided in the embodiment of the present application, the device also includes: a first traversal unit, used to traverse the CAD resources through an information reader before obtaining the target list document and before a preset date to obtain a first list document, wherein the first list document includes at least multiple CAD resources; a second traversal unit, used to traverse the CAD resources through an information reader on a preset date to obtain a second list document, wherein the second list document includes at least the traversed multiple CAD resources; a first comparison unit, used to compare the first list document and the second list document to obtain a target list document, wherein the target list document includes different resources in the first list document and the second list document.

[0057] Optionally, in the CAD resource verification device provided in the embodiment of the present application, the first processing unit includes: a first judgment module, used to judge whether the target CAD resource is a CAD resource in a first list document according to the CAD front-end call list; a second judgment module, used to judge whether the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document if the target CAD resource is a CAD resource in the first list document; if the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document, update the first list document; a third judgment module, used to judge whether the target CAD resource is correct by a preset verification method if the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, so as to verify the correctness of the target CAD resource.

[0058] Optionally, in the CAD resource verification device provided in the embodiment of the present application, the device also includes: a first judgment unit, which is used to judge whether the target CAD resource is a CAD resource in a first list document according to the CAD front-end call list, and if the target CAD resource is not a CAD resource in the first list document, judge whether the target CAD resource is correct through a preset verification method to verify the correctness of the target CAD resource.

[0059] Optionally, in the CAD resource verification device provided in the embodiment of the present application, the third judgment module or the first judgment unit includes: a first processing sub-module, used to update the first list document if the target CAD resource is judged to be correct through a preset verification method; and a second processing sub-module, used to feedback error reminder information if the target CAD resource is judged to be incorrect through a preset verification method.

[0060] The CAD resource verification device includes a processor and a memory. The first acquisition unit 401, the first mapping unit 402 and the first processing unit 403 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.

[0061] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the resource verification efficiency can be improved by adjusting the kernel parameters.

[0062] The memory may include non-permanent memory in a computer-readable medium, 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.

[0063] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the verification method of the CAD resource is implemented.

[0064] An embodiment of the present invention provides a processor, which is used to run a program, wherein the verification method of the CAD resource is executed when the program is running.

[0065] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; mapping the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; and running an automated test program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated test program on the CAD side is used to test the target CAD resource.

[0066] When the processor executes the program, the following steps are also implemented: before obtaining the target list document, the method also includes: before a preset date, traversing the CAD resources through an information reader to obtain a first list document, wherein the first list document includes at least multiple CAD resources; traversing the CAD resources through an information reader on the preset date to obtain a second list document, wherein the second list document includes at least the traversed multiple CAD resources; comparing the first list document and the second list document to obtain the target list document, wherein the target list document includes different resources in the first list document and the second list document.

[0067] When the processor executes the program, the following steps are also implemented: according to the CAD front-end call list, the automated test program on the CAD side is run to verify the correctness of the target CAD resource, including: according to the CAD front-end call list, whether the target CAD resource is a CAD resource in the first list document is judged; if the target CAD resource is a CAD resource in the first list document, whether the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document is judged; if the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document, the first list document is updated; if the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, whether the target CAD resource is correct is judged by a preset verification method to verify the correctness of the target CAD resource.

[0068] When the processor executes the program, the following steps are also implemented: after determining whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list, the method also includes: if the target CAD resource is not a CAD resource in the first list document, determining whether the target CAD resource is correct through a preset verification method to verify the correctness of the target CAD resource.

[0069] When the processor executes the program, the following steps are also implemented: judging whether the target CAD resource is correct by a preset verification method, so as to verify the correctness of the target CAD resource, including: if the target CAD resource is judged to be correct by the preset verification method, then updating the first list document; if the target CAD resource is judged to be incorrect by the preset verification method, then feeding back error reminder information. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0070] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; mapping the target list document into a CAD front-end call list, wherein the CAD front-end call list includes at least the name information corresponding to each target CAD resource; and running an automated testing program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated testing program on the CAD side is used to test the target CAD resource.

[0071] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: before obtaining a target list document, the method also includes: before a preset date, traversing CAD resources through an information reader to obtain a first list document, wherein the first list document includes at least a plurality of CAD resources; traversing CAD resources through an information reader on the preset date to obtain a second list document, wherein the second list document includes at least the traversed plurality of CAD resources; comparing the first list document and the second list document to obtain the target list document, wherein the target list document includes different resources in the first list document and the second list document.

[0072] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: according to the CAD front-end call list, running the automated test program on the CAD side to verify the correctness of the target CAD resource, including: according to the CAD front-end call list, judging whether the target CAD resource is a CAD resource in the first list document; if the target CAD resource is a CAD resource in the first list document, judging whether the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document; if the running result of the target CAD resource is the same as the running result of the CAD resource in the first list document, updating the first list document; if the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, judging whether the target CAD resource is correct through a preset verification method to verify the correctness of the target CAD resource.

[0073] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after determining whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list, the method also includes: if the target CAD resource is not a CAD resource in the first list document, determining whether the target CAD resource is correct through a preset verification method to verify the correctness of the target CAD resource.

[0074] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: judging whether the target CAD resource is correct through a preset verification method to verify the correctness of the target CAD resource, including: if the target CAD resource is judged to be correct through the preset verification method, then updating the first list document; if the target CAD resource is judged to be incorrect through the preset verification method, then feeding back an error reminder message.

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

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

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

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

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

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

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

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

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

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

Claims

1. A method for verifying CAD resources, characterized in that: include: Acquire a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; Mapping the target list document into a CAD front-end call list, wherein the CAD front-end call list at least includes name information corresponding to each target CAD resource; According to the CAD front-end call list, running an automated testing program on the CAD side to verify the correctness of the target CAD resource, wherein the automated testing program on the CAD side is used to test the target CAD resource; Before obtaining the target list document, the method further includes: Before a preset date, traverse the CAD resources through an information reader to obtain a first list document, wherein the first list document includes at least a plurality of CAD resources; On the preset date, traversing the CAD resources by means of an information reader to obtain a second list document, wherein the second list document at least includes the traversed multiple CAD resources; Comparing the first list document with the second list document to obtain the target list document, wherein the target list document includes different resources in the first list document and the second list document; Wherein, running the automated test program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource includes: According to the CAD front-end call list, determining whether the target CAD resource is a CAD resource in the first list document; If the target CAD resource is a CAD resource in the first list document, determining whether the operation result of the target CAD resource is the same as the operation result of the CAD resource in the first list document; If the operation result of the target CAD resource is the same as the operation result of the CAD resource in the first list document, updating the first list document; If the running result of the target CAD resource is different from the running result of the CAD resource in the first list document, whether the target CAD resource is correct is determined by a preset verification method to verify the correctness of the target CAD resource.

2. The method according to claim 1, characterized in that: After determining whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list, the method further includes: If the target CAD resource is not a CAD resource in the first list document, whether the target CAD resource is correct is determined by a preset verification method to verify the correctness of the target CAD resource.

3. The method according to any one of claims 1 or 2, characterized in that: Determining whether the target CAD resource is correct by a preset verification method to verify the correctness of the target CAD resource includes: If the target CAD resource is determined to be correct through a preset verification method, the first list document is updated; If it is determined through a preset verification method that the target CAD resource is incorrect, an error reminder message is fed back.

4. A CAD resource verification device, characterized in that: include: A first acquisition unit is used to acquire a target list document, wherein the target list document includes at least a plurality of target CAD resources, wherein the characteristic information of each target CAD resource includes at least: name, ID, size, modification date, and processing method; A first mapping unit, configured to map the target list document into a CAD front-end call list, wherein the CAD front-end call list at least includes name information corresponding to each target CAD resource; A first processing unit is used to run an automated testing program on the CAD side according to the CAD front-end call list to verify the correctness of the target CAD resource, wherein the automated testing program on the CAD side is used to test the target CAD resource; The device further comprises: a first traversal unit, used for traversing CAD resources through an information reader before acquiring a target list document and before a preset date to obtain a first list document, wherein the first list document includes at least a plurality of CAD resources; a second traversal unit, used for traversing CAD resources through an information reader on the preset date to obtain a second list document, wherein the second list document includes at least a plurality of traversed CAD resources; a first comparison unit, used for comparing the first list document and the second list document to obtain the target list document, wherein the target list document includes resources that are different from those in the first list document and the second list document; Among them, the first processing unit includes: a first judgment module, used to judge whether the target CAD resource is a CAD resource in the first list document according to the CAD front-end call list; a second judgment module, used to judge whether the operation result of the target CAD resource is the same as the operation result of the CAD resource in the first list document if the target CAD resource is the CAD resource in the first list document; a first update module, used to update the first list document if the operation result of the target CAD resource is the same as the operation result of the CAD resource in the first list document; a third judgment module, used to judge whether the target CAD resource is correct through a preset verification method if the operation result of the target CAD resource is different from the operation result of the CAD resource in the first list document, so as to verify the correctness of the target CAD resource.

5. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the CAD resource verification method according to any one of claims 1 to 3.

6. A processor, characterized in that: The processor is used to run a program, wherein the program executes the CAD resource verification method described in any one of claims 1 to 3 when running.

Citation Information

Patent Citations

  • Method and system of design verification

    CN101008963A

  • Data interaction method and device based on computer-aided design (CAD) software

    CN102520971A