CN116069670A - Module generation standard checking method in modularized programming industrial software - Google Patents
Module generation standard checking method in modularized programming industrial software Download PDFInfo
- Publication number
- CN116069670A CN116069670A CN202310243577.4A CN202310243577A CN116069670A CN 116069670 A CN116069670 A CN 116069670A CN 202310243577 A CN202310243577 A CN 202310243577A CN 116069670 A CN116069670 A CN 116069670A
- Authority
- CN
- China
- Prior art keywords
- module
- test case
- generation
- test
- modules
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3676—Test management for coverage analysis
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a modular programming industrial software module generation standard verification method, which comprises the following steps: randomly generating a test case set containing different module types, and collecting a batch of real test cases with a plurality of different module types for expanding the test case set; counting and analyzing the number of module types contained in each test case in the test case set, and carrying out standardized naming pretreatment operation on the modules; extracting a test case from the test case set by adopting a layered random sampling method as a test case to be tested; performing three types of generation standard tests, namely inquiry check, generation check and clone check, on the module in the test case to be tested, recording the checked module information and generating a module test result; performing generation specification supplement and perfection on the modules which do not meet the three generation specifications in the module test result, and feeding back a supplement and perfection scheme to the technical support of the modularized programming industrial software; and carrying out the operation on the test cases in all the test case sets until no new modules are tested.
Description
Technical Field
The invention relates to software testing, in particular to a module generation specification checking method in modularized programming industrial software.
Background
For workers in the high-tech field, industrial software is a soul for producing products and is also a key for judging whether the products can become high-precision products. If it is desired to produce a high-precision tip product, then what is needed is industrial software in addition to the top-level chip technology. For the modular programming of industrial software, a module is each brick of a building, which is industrial software, and if the module cannot be correctly generated according to the requirement standard due to imperfect generation specifications in the industrial software, the building will tilt.
In the field of existing software testing, testing for modular programming industry software is increasingly moving from manual to automated testing, for which generation of modules is more challenging. At present, most of modularized programming industrial software is immature and imperfect in generation specification, different in language and different in implementation, so that a plurality of modules cannot be generated according to the generation mode required by authorities, most of existing countermeasures are to avoid weight, remove the modules which are difficult to generate from a generation library, avoid the modules from being selected, and clearly greatly reduce the testable coverage and the comprehensiveness of software testing.
Disclosure of Invention
According to the problems existing in the prior art, the invention discloses a module generation specification checking method in modularized programming industrial software, which specifically comprises the following steps:
randomly generating a test case set containing different module types, and collecting a batch of real test cases with a plurality of different module types for expanding the test case set;
counting and analyzing the number of module types contained in each test case in the test case set, and carrying out standardized naming pretreatment operation on the modules;
extracting a test case from the test case set by adopting a layered random sampling method as a test case to be tested;
performing three types of generation standard tests, namely inquiry check, generation check and clone check, on the module in the test case to be tested, recording the checked module information and generating a module test result;
performing generation specification supplement and perfection on the modules which do not meet the three generation specifications in the module test result, and feeding back a supplement and perfection scheme to the technical support of the modularized programming industrial software;
and carrying out the operation on the test cases in all the test case sets until no new modules are tested.
Further, the standardized naming preprocessing operation is to perform name sequencing on the modules in the same test case, ensure that the names conform to the specifications of the modular programming industrial software to be tested, and the naming mode is 'module name_layer number_serial number', the module name is the name of the module in the modular programming industrial software where the module is located, the layer number is the number of subsystem layers in the test case where the module is located, and the serial number is a unique number sequence which starts to increase from 0.
Further, query and check are performed to determine whether the module has been checked and query the module that has not been checked in the test case according to the module name, so as to determine whether the module name can be matched with the corresponding module.
Further, generating a check, judging whether the module passing the query check can be generated by the module name, adjusting and running the functional parameters of the module generated by the module name, and judging whether the generation module normally completes the designated function.
Furthermore, cloning check is carried out to the existing modules in the test cases, a new cloning module is generated, difference test is carried out, and whether the cloning module cloned through cloning operation and the original module realize the same function is judged.
Further, the method for supplementing and perfecting the generation specification is to supplement and perfect the details of the generation specification by the modules which do not conform to the three generation specifications, and the actions which can be taken include, but are not limited to, correspondence of module names, removal of special characters, case correction, matching of generation codes and other actions which can be used for perfecting the generation specification are included in the method.
By adopting the technical scheme, the module generation specification verification method for the modularized programming industrial software provided by the invention has the advantages that three checks, namely query verification, generation verification and clone verification, are carried out on each module in the modularized programming industrial software, the generatability of each module is determined, the code supplement of the module which cannot meet the verification is carried out to perfect the generation reliability and report the code to the technical support of the corresponding modularized programming industrial software, the generation specification of the modularized programming industrial software is greatly perfected, the test development of the modularized programming industrial software is improved, more errors hidden in the modularized programming industrial software can be found after the complete module is added into the test case, and the test effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a flow chart of module generation specification verification in a test case of the present invention.
Detailed Description
In order to make the technical scheme and advantages of the present invention more clear, the technical scheme in the embodiment of the present invention is clearly and completely described below with reference to the accompanying drawings in the embodiment of the present invention:
the module generation specification checking method in the modular programming industrial software shown in fig. 1 specifically comprises the following steps:
in step S101: generating a test case set;
a test case set containing different module types is randomly generated, and a batch of real test cases with a plurality of different module types are collected for expanding the test case set.
The random generation mode is to randomly drag the modules in the module library in the modularized programming industrial software into the blank test case file, and the number of the drag is not particularly limited, but the occurrence times of the same modules are reduced as much as possible. The method does not consider whether the test cases where the modules are located can be normally executed, so that the modules generated in each test case should be kept highly independent to avoid the condition of failure in running the test cases from affecting the subsequent operation.
The test cases contained in the test case set should focus on the high degree of coverage of the modules of different classifications in the modular programming industry software module library to ensure the degree of coverage for subsequent generation specification checks of the modules. In order to increase the practical practicability of the method, a batch of real test cases are collected, and a large number of custom modules are also included in the real test cases so as to increase the difficulty of generating the specification of the method.
In step S102: carrying out statistical analysis and pretreatment on the modules;
in the step, the number of the module types contained in each test case in the test case set is counted and analyzed, and standardized naming preprocessing operation is carried out on the modules.
Specifically, the number of module types included in each test case in the test case set generated in step S101 is counted, and the judgment of the module types is to judge the module name, where the module name is the name of the module in the modularized programming industrial software where the module is located.
Further, the standardized naming preprocessing operation is to perform name sequencing on the modules in the same test case, ensure that the names conform to the specifications of the modular programming industrial software to be tested, and the naming mode is 'module name_layer number_serial number', the module name is the name of the module in the modular programming industrial software where the module is located, the layer number is the number of subsystem layers in the test case where the module is located, and the serial number is a unique number sequence which starts to increase from 0.
In step S103: layering and randomly sampling test cases;
in the step, a layered random sampling method is adopted to extract a test case from the test case set as the test case to be tested.
The hierarchical random sampling method is characterized in that the number of module types counted in the step S102 is calculated according to the median, test cases with the number larger than the median of the module types are classified into one type, test cases with the number lower than or equal to the median are classified into one type, and the test cases to be tested are extracted from the two types alternately and randomly when the test cases to be tested are extracted.
In step S104: generating a standard test by using the test case;
and carrying out three types of generation standard tests, namely inquiry check, generation check and clone check, on the module in the test case to be tested, recording the checked module information and generating a module test result.
Specifically, as shown in fig. 2, the module generation specification test flow chart in the test case is composed of a generation specification test 21, a checked module information record 22 and a module test result generation 23, and further, the generation specification test 21 may be composed of a query test 211, a generation test 212 and a clone test 213. The various ones of the generation specification checks 21 have a sequential relationship.
Further, in the step of query and check 211, it is determined whether the module has been checked before, and for the checked module, the flow of generating the standard check will be skipped, and the module that has not been checked is queried according to the module name in the test case where the module is located, most of modularized programming industrial software provides a query box or a query interface for global or local searching in the model based on the module name, and the query box or the query interface is used to query the module name, so as to determine whether the module name can be matched to a specific module in the corresponding test case.
If the module name query cannot be found when the module name query occurs to the known module in the test case, the condition of 'the module name query matching is lost' is included, and the record is carried out in the subsequent step.
Further, generating a check, generating a designated module based on the module name of the selected module in the test case, judging whether the module is normally generated, adjusting functional parameters in the module at random, operating the test case, checking whether the module is correspondingly changed according to the adjusted functional parameters, and judging whether the generation module normally completes the designated function. If the module name can not be generated or the module function generated by the module name can not be normally realized, the module is in the condition of 'failure of generating the module or loss of function', and the record is carried out in the subsequent steps.
And finally, performing cloning verification, performing cloning operation on the existing modules in the test cases, generating a new cloning module, performing difference test, and judging whether the cloning module cloned by the cloning operation has the same function as the original module.
Specifically, the difference test is to feed two identical cloning modules into the same input under the same mode to observe whether the identical output is generated, if the generated outputs are inconsistent, the situation of "cloning module failure" is included, and the record is performed in the subsequent steps.
In step S105: generating normative complement perfection and feedback;
and carrying out generation specification supplement and perfection on the modules which do not meet the three generation specifications in the module test result, and feeding back a supplement and perfection scheme to the technical support of the modularized programming industrial software.
Further, the method for supplementing and perfecting the generation specification is to supplement and perfect the details of the generation specification by the modules which do not conform to the three generation specifications, and common and available operations including, but not limited to, corresponding module names, removing special characters, case correction, matching of the generation codes and other operations which can be used for perfecting the generation specification are included in the method.
After the completion of the generation specification supplement, the generation specification test 21 is performed on the module generated after the completion of the generation specification supplement, and the module can pass the test normally.
And (3) carrying out document recording on the modules which cannot pass through the generation specification inspection in the early stage, wherein the recorded content comprises one of the conditions of ' module name query matching losing ', ' generating module failure or function losing ', cloning module failure ', supplementing and perfecting the details of the generation specification, and providing a module example generated after the supplement and perfecting of the generation specification. And packaging the documents, reporting according to a feedback channel mode provided by the technical support of the modularized programming industrial software, and waiting for replying.
Recording a module which is supported by the modularized programming industrial software technology and replied to confirm, supplementing the details of the generated specification, and completing the open source to open source community of the repair code to help other testers to complete the test until the problem of the module is thoroughly repaired by the modularized programming industrial software.
And carrying out the operation on the test cases in all the test case sets until no new modules are tested.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.
Claims (6)
1. A modular programming industry software module generation specification verification method, comprising:
randomly generating a test case set containing different module types, and collecting a batch of real test cases with a plurality of different module types for expanding the test case set;
counting and analyzing the number of module types contained in each test case in the test case set, and carrying out standardized naming pretreatment operation on the modules;
extracting a test case from the test case set by adopting a layered random sampling method as a test case to be tested;
performing three types of generation standard tests, namely inquiry check, generation check and clone check, on the module in the test case to be tested, recording the checked module information and generating a module test result;
performing generation specification supplement and perfection on the modules which do not meet the three generation specifications in the module test result, and feeding back a supplement and perfection scheme to the technical support of the modularized programming industrial software;
and carrying out the operation on the test cases in all the test case sets until no new modules are tested.
2. A modular programming industry software module generation specification verification method as claimed in claim 1, wherein: the standardized naming preprocessing operation is to perform name sequencing on the modules in the same test case, ensure that the names conform to the standard of modular programming industrial software to be tested, and is named as a module name_layer number_serial number, wherein the module name is the name of the module in the modular programming industrial software where the module is located, the layer number is the number of subsystem layers in the test case where the module is located, and the serial number is a unique number sequence which starts to increase from 0.
3. A modular programming industry software module generation specification verification method as claimed in claim 1, wherein: and inquiring and checking, namely judging whether the module is checked or not, and inquiring the module which is not checked in the test case according to the module name so as to judge whether the module name can be matched with the corresponding module.
4. A modular programming industry software module generation specification verification method as claimed in claim 1, wherein: generating check, judging whether the module passing the check can be generated by the module name, adjusting and running the function parameters of the module generated by the module name, and judging whether the generating module normally completes the appointed function.
5. A modular programming industry software module generation specification verification method as claimed in claim 1, wherein: and (3) cloning and checking, namely performing cloning operation on the existing modules in the test case, generating a new cloning module, performing difference test, and judging whether the cloning module cloned by the cloning operation has the same function as the original module.
6. A modular programming industry software module generation specification verification method as claimed in claim 1, wherein: the method for supplementing and perfecting the generation specification is to supplement and perfect the details of the generation specification by the modules which do not meet the three generation specifications, and the actions which can be taken include, but are not limited to, corresponding module names, special character removal, case correction, generation code matching and other actions which can be used for perfecting the generation specification are all included in the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310243577.4A CN116069670A (en) | 2023-03-14 | 2023-03-14 | Module generation standard checking method in modularized programming industrial software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310243577.4A CN116069670A (en) | 2023-03-14 | 2023-03-14 | Module generation standard checking method in modularized programming industrial software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116069670A true CN116069670A (en) | 2023-05-05 |
Family
ID=86180347
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310243577.4A Withdrawn CN116069670A (en) | 2023-03-14 | 2023-03-14 | Module generation standard checking method in modularized programming industrial software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116069670A (en) |
-
2023
- 2023-03-14 CN CN202310243577.4A patent/CN116069670A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7234131B1 (en) | Peer review evaluation tool | |
CN103793322A (en) | Test method and test system for translation problems in software localization testing | |
CN115328784A (en) | Agile interface-oriented automatic testing method and system | |
Ye et al. | Adaptive board-level functional fault diagnosis using incremental decision trees | |
Ye et al. | Knowledge discovery and knowledge transfer in board-level functional fault diagnosis | |
CN113468301A (en) | Automatic generation method and system of integrated circuit test scheme | |
CN111274056B (en) | Self-learning method and device for fault library of intelligent electric energy meter | |
Huang et al. | Errortracer: Design error diagnosis based on fault simulation techniques | |
CN111330871B (en) | Quality classification method and device | |
CN116069670A (en) | Module generation standard checking method in modularized programming industrial software | |
CN112579699A (en) | Quality monitoring method, system and storage medium for service data processing link | |
CN112765014A (en) | Automatic test system for multi-user simultaneous operation and working method | |
Dargan et al. | Predicting systems performance through requirements quality attributes model | |
Rao et al. | A Systematic Review of β-factor Models in the Quantification of Common Cause Failures | |
CN104572433B (en) | A kind of financial information system method of testing and device | |
CN112527573A (en) | Interface testing method, device and storage medium | |
CN113485940B (en) | Combined test case generation method based on parameter abstract modeling | |
CN113220594B (en) | Automatic test method, device, equipment and storage medium | |
CN111782695B (en) | MPW multi-product joint measurement data processing method, storage medium and computer equipment | |
CN111552639B (en) | Software test comprehensive control method and system | |
Chu et al. | FAST: a framework for automating statistics-based testing | |
CN111815146A (en) | Quality inspection machine simulation test data method and system | |
CN113434408B (en) | Unit test case sequencing method based on test prediction | |
Yasko et al. | FMEDA and FIT-based safety assessment of NPP I&C systems considering expert uncertainty | |
CN113590167B (en) | Conditional statement defect patch generation and verification method in object-oriented program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20230505 |
|
WW01 | Invention patent application withdrawn after publication |