CN112286800A - Auxiliary analysis method and system for functional test points - Google Patents
Auxiliary analysis method and system for functional test points Download PDFInfo
- Publication number
- CN112286800A CN112286800A CN202011124460.7A CN202011124460A CN112286800A CN 112286800 A CN112286800 A CN 112286800A CN 202011124460 A CN202011124460 A CN 202011124460A CN 112286800 A CN112286800 A CN 112286800A
- Authority
- CN
- China
- Prior art keywords
- function
- module
- points
- test
- point
- 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.)
- Granted
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 40
- 238000011990 functional testing Methods 0.000 title claims description 17
- 230000006870 function Effects 0.000 claims abstract description 163
- 238000012360 testing method Methods 0.000 claims abstract description 80
- 238000000034 method Methods 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012217 deletion Methods 0.000 claims description 8
- 230000037430 deletion Effects 0.000 claims description 8
- 238000012986 modification Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000002071 nanotube Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 231100000817 safety factor Toxicity 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
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
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 provides a method and a system for auxiliary analysis of function test points. The invention can rapidly comb the corresponding test points of each module of the newly contacted product to be tested for the functions of the newly contacted product to be tested, reduces the workload of test case analysis, greatly improves the efficiency of test analysis, and expands the automatically combed product function test points along with the increase of the analyzed product, thereby continuously improving the analysis efficiency of the function test points of the newly managed product.
Description
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a system for auxiliary analysis of function test points.
Background
Nowadays, with the rapid development of information technology, software products play an increasingly important role in the aspects of social life, product testing is generated along with the generation of products, the safety problem of the products is a main concern for sharing with developers, and after the products are developed, a lot of safety factors exist before the products are used, so the products must be analyzed.
When the product of a new nano tube is processed and tested at present, the functions of all the modules need to be combed manually and are arranged into function test points for subsequent testing, and the process is time-consuming and labor-consuming.
Disclosure of Invention
The invention aims to provide a method and a system for auxiliary analysis of functional test points, which aim to solve the problem of complex workload of functional tests in the prior art, reduce the workload of test case analysis and greatly improve the efficiency of test analysis.
In order to achieve the technical purpose, the invention provides an auxiliary analysis method for a function test point, which comprises the following operations:
inputting basic function points, inputting basic function test factors and establishing an incidence relation between the basic function points and the basic function test factors;
scanning a product to be tested, traversing modules at all levels, establishing a function point tree structure according to module levels, and setting a dependency relationship between modules at the bottommost layer;
after the scanning is finished, matching the functions of the bottommost layer module with the basic function points according to keywords;
reordering the created function point tree structures from high to low according to the dependency relationship;
and summarizing the function points and the matched test factors, and outputting the use cases of the test function points from the upper level structure to the lower level structure according to the incidence relation.
Preferably, the basic function points include login, creation, inquiry, deletion, modification and notification.
Preferably, when the module is a button type, the text description and the module name are obtained and used as the function point after being rearranged; and traversing the function points corresponding to the interfaces associated with the links when the modules are the link classes.
Preferably, the dependency relationship of the bottommost module is established when a certain module is a precondition for testing other modules, and is a top-level and bottom-level association relationship.
The invention also provides an auxiliary analysis system for the functional test points, which comprises:
the function point input module is used for inputting basic function points, inputting basic function test factors and establishing the incidence relation between the basic function points and the basic function test factors;
the function point structure establishing module is used for scanning a product to be detected, traversing all levels of modules, establishing a function point tree structure according to module levels and setting a dependency relationship between the bottommost modules;
the keyword matching module is used for matching the functions of the bottommost module with the basic function points according to keywords after the scanning is finished;
the function point sorting module is used for re-sorting the created function point tree structures from high to low according to the dependency relationship;
and the test case output module is used for summarizing the function points and the matched test factors and outputting the cases of the test function points from the upper level structure to the lower level structure according to the incidence relation.
Preferably, the basic function points include login, creation, inquiry, deletion, modification and notification.
Preferably, when the module is a button type, the text description and the module name are obtained and used as the function point after being rearranged; and traversing the function points corresponding to the interfaces associated with the links when the modules are the link classes.
Preferably, the dependency relationship of the bottommost module is established when a certain module is a precondition for testing other modules, and is a top-level and bottom-level association relationship.
The invention also provides auxiliary analysis equipment for the functional test points, which comprises:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the auxiliary analysis method of the functional test point.
The invention also provides a readable storage medium for storing a computer program, wherein the computer program realizes the auxiliary analysis method for the functional test point when being executed by a processor.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the method and the device have the advantages that the basic function points and the basic function test factors are input, the function point tree structure is established, the functions of the bottommost module are matched with the basic function points according to keywords, and the function points and the matched test factors are summarized, so that the test function point use case is quickly generated. The invention can rapidly comb the corresponding test points of each module of the newly contacted product to be tested for the functions of the newly contacted product to be tested, reduces the workload of test case analysis, greatly improves the efficiency of test analysis, and expands the automatically combed product function test points along with the increase of the analyzed product, thereby continuously improving the analysis efficiency of the function test points of the newly managed product.
Drawings
Fig. 1 is a flowchart of an auxiliary analysis method for a function test point provided in an embodiment of the present invention;
fig. 2 is a block diagram of an auxiliary analysis system for functional test points provided in the embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The following describes a method and a system for auxiliary analysis of function test points provided by the embodiments of the present invention in detail with reference to the accompanying drawings.
As shown in fig. 1, the present invention discloses a method for auxiliary analysis of a function test point, which comprises the following operations:
inputting basic function points, inputting basic function test factors and establishing an incidence relation between the basic function points and the basic function test factors;
scanning a product to be tested, traversing modules at all levels, establishing a function point tree structure according to module levels, and setting a dependency relationship between modules at the bottommost layer;
after the scanning is finished, matching the functions of the bottommost layer module with the basic function points according to keywords;
reordering the created function point tree structures from high to low according to the dependency relationship;
and summarizing the function points and the matched test factors, and outputting the use cases of the test function points from the upper level structure to the lower level structure according to the incidence relation.
The invention generates a new test function point case by automatically analyzing the function points of each module of the corresponding product and performing matching analysis.
Initializing a function point analysis system, manually inputting basic function points including basic function points such as login, creation, query, deletion, modification and notification, and initiatively inputting basic function test factors and establishing an association relationship with the basic function points, for example, the established basic function points relate to: full parameter input, repeated name, empty parameter input, parameter input boundary value, illegal parameter input, effective resource input and the like are sequentially recorded.
The system to be tested is initialized and the resource class module has created the actual resources.
Scanning a system to be tested, traversing to a specific function button in a page from a first-level module, acquiring text description of the button and arranging module names to be used as a function point, traversing the function point corresponding to an interface associated with a link if the function point is a link, and establishing a tree structure of functions according to module levels, such as a first-level module- > user management- > (user creation, user inquiry and user deletion).
And setting a dependency relationship among the bottommost modules, for example, the system has user management, system management, log management, resource management, cluster management and the like, and if the system management and the user management are preconditions for testing other modules, establishing a top-level and bottom-level association relationship.
After scanning is finished, matching the functions of the bottommost layer module with the basic function points according to keywords, if the matching is unsuccessful, extracting the unmatched modules for manual matching, selecting the basic function points as creation and the module functions as new creation through manual matching, forming a function point group through default of the creation and the new creation, and automatically matching the function points next time. Newly-built basic function points which cannot be matched are manually added and matched with the test factors, and can be automatically matched next time.
And after matching is completed, reordering the created function point tree structures according to the dependency relationship from high to low.
And summarizing the function points generated according to the functions of the product modules and the matched test factors, and outputting a use case of the test function points from a superior structure to a subordinate structure according to the incidence relation, such as a primary module- > a secondary module- > a basic function point- > a test factor structure.
According to the embodiment of the invention, the basic function points and the basic function test factors are input, the function point tree structure is established, the functions of the bottommost layer module are matched with the basic function points according to keywords, and the function points and the matched test factors are summarized, so that the test function point use case is quickly generated. The invention can rapidly comb the corresponding test points of each module of the newly contacted product to be tested for the functions of the newly contacted product to be tested, reduces the workload of test case analysis, greatly improves the efficiency of test analysis, and expands the automatically combed product function test points along with the increase of the analyzed product, thereby continuously improving the analysis efficiency of the function test points of the newly managed product.
As shown in fig. 2, an embodiment of the present invention further discloses a system for auxiliary analysis of a function test point, where the system includes:
the function point input module is used for inputting basic function points, inputting basic function test factors and establishing the incidence relation between the basic function points and the basic function test factors;
the function point structure establishing module is used for scanning a product to be detected, traversing all levels of modules, establishing a function point tree structure according to module levels and setting a dependency relationship between the bottommost modules;
the keyword matching module is used for matching the functions of the bottommost module with the basic function points according to keywords after the scanning is finished;
the function point sorting module is used for re-sorting the created function point tree structures from high to low according to the dependency relationship;
and the test case output module is used for summarizing the function points and the matched test factors and outputting the cases of the test function points from the upper level structure to the lower level structure according to the incidence relation.
Initializing a function point analysis system, manually inputting basic function points including basic function points such as login, creation, query, deletion, modification and notification, and initiatively inputting basic function test factors and establishing an association relationship with the basic function points, for example, the established basic function points relate to: full parameter input, repeated name, empty parameter input, parameter input boundary value, illegal parameter input, effective resource input and the like are sequentially recorded.
The system to be tested is initialized and the resource class module has created the actual resources.
Scanning a system to be tested, traversing to a specific function button in a page from a first-level module, acquiring text description of the button and arranging module names to be used as a function point, traversing the function point corresponding to an interface associated with a link if the function point is a link, and establishing a tree structure of functions according to module levels, such as a first-level module- > user management- > (user creation, user inquiry and user deletion).
And setting a dependency relationship among the bottommost modules, for example, the system has user management, system management, log management, resource management, cluster management and the like, and if the system management and the user management are preconditions for testing other modules, establishing a top-level and bottom-level association relationship.
After scanning is finished, matching the functions of the bottommost layer module with the basic function points according to keywords, if the matching is unsuccessful, extracting the unmatched modules for manual matching, selecting the basic function points as creation and the module functions as new creation through manual matching, forming a function point group through default of the creation and the new creation, and automatically matching the function points next time. Newly-built basic function points which cannot be matched are manually added and matched with the test factors, and can be automatically matched next time.
And after matching is completed, reordering the created function point tree structures according to the dependency relationship from high to low.
And summarizing the function points generated according to the functions of the product modules and the matched test factors, and outputting a use case of the test function points from a superior structure to a subordinate structure according to the incidence relation, such as a primary module- > a secondary module- > a basic function point- > a test factor structure.
The embodiment of the invention also discloses auxiliary analysis equipment for the functional test points, which comprises:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the auxiliary analysis method of the functional test point.
The embodiment of the invention also discloses a readable storage medium for storing a computer program, wherein the computer program realizes the auxiliary analysis method of the function test point when being executed by a processor.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (10)
1. A method for auxiliary analysis of functional test points is characterized by comprising the following operations:
inputting basic function points, inputting basic function test factors and establishing an incidence relation between the basic function points and the basic function test factors;
scanning a product to be tested, traversing modules at all levels, establishing a function point tree structure according to module levels, and setting a dependency relationship between modules at the bottommost layer;
after the scanning is finished, matching the functions of the bottommost layer module with the basic function points according to keywords;
reordering the created function point tree structures from high to low according to the dependency relationship;
and summarizing the function points and the matched test factors, and outputting the use cases of the test function points from the upper level structure to the lower level structure according to the incidence relation.
2. The method for aided analysis of functional test points according to claim 1, wherein the basic functional points include login, creation, query, deletion, modification and notification.
3. The method for auxiliary analysis of function test points according to claim 1, wherein when the module is of the button type, the text description and the module name are obtained and used as the function point after being rearranged; and traversing the function points corresponding to the interfaces associated with the links when the modules are the link classes.
4. The method as claimed in claim 1, wherein the dependency relationship of the bottommost module is established when a certain module is a precondition for testing other modules, and is a top-bottom level association relationship.
5. A system for assisting analysis of functional test points, the system comprising:
the function point input module is used for inputting basic function points, inputting basic function test factors and establishing the incidence relation between the basic function points and the basic function test factors;
the function point structure establishing module is used for scanning a product to be detected, traversing all levels of modules, establishing a function point tree structure according to module levels and setting a dependency relationship between the bottommost modules;
the keyword matching module is used for matching the functions of the bottommost module with the basic function points according to keywords after the scanning is finished;
the function point sorting module is used for re-sorting the created function point tree structures from high to low according to the dependency relationship;
and the test case output module is used for summarizing the function points and the matched test factors and outputting the cases of the test function points from the upper level structure to the lower level structure according to the incidence relation.
6. The system of claim 5, wherein the basic function point comprises login, creation, query, deletion, modification and notification.
7. The system for auxiliary analysis of function test points as claimed in claim 5, wherein when the module is of the button type, the text description and module name are obtained and re-arranged to serve as the function point; and traversing the function points corresponding to the interfaces associated with the links when the modules are the link classes.
8. The system of claim 5, wherein the dependency relationship of the bottommost module is established when a module is a precondition for testing other modules, and is a top-bottom level association relationship.
9. A functional test point auxiliary analysis device is characterized by comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the functional test point assisted analysis method according to any of claims 1-4.
10. A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the functional test point assisted analysis method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011124460.7A CN112286800B (en) | 2020-10-20 | 2020-10-20 | Auxiliary analysis method and system for functional test points |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011124460.7A CN112286800B (en) | 2020-10-20 | 2020-10-20 | Auxiliary analysis method and system for functional test points |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112286800A true CN112286800A (en) | 2021-01-29 |
CN112286800B CN112286800B (en) | 2022-07-19 |
Family
ID=74424324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011124460.7A Active CN112286800B (en) | 2020-10-20 | 2020-10-20 | Auxiliary analysis method and system for functional test points |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112286800B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847120A (en) * | 2010-03-31 | 2010-09-29 | 中兴通讯股份有限公司 | Design method and system of test case |
CN110532179A (en) * | 2019-08-14 | 2019-12-03 | 交控科技股份有限公司 | The method and device of test verifying is carried out in a kind of CBTC test analysis |
-
2020
- 2020-10-20 CN CN202011124460.7A patent/CN112286800B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847120A (en) * | 2010-03-31 | 2010-09-29 | 中兴通讯股份有限公司 | Design method and system of test case |
CN110532179A (en) * | 2019-08-14 | 2019-12-03 | 交控科技股份有限公司 | The method and device of test verifying is carried out in a kind of CBTC test analysis |
Also Published As
Publication number | Publication date |
---|---|
CN112286800B (en) | 2022-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984155B (en) | Data processing flow setting method and device | |
CN103092761B (en) | Method and device of recognizing and checking modifying code blocks based on difference information file | |
US9311345B2 (en) | Template based database analyzer | |
US20110016451A1 (en) | Method and system for generating test cases for a software application | |
CN110737689B (en) | Data standard compliance detection method, device, system and storage medium | |
CN109344053B (en) | Interface coverage test method, system, computer device and storage medium | |
EP3671526A1 (en) | Dependency graph based natural language processing | |
EP2983117A1 (en) | Event processing method in stream processing system and stream processing system | |
CN114328276B (en) | Test case generation method and device, and test case display method and device | |
CN108694108B (en) | iOS crash data classification and statistics method and device | |
KR20150091521A (en) | Method and device for mining data regular expression | |
CN112783786B (en) | Method, apparatus, device, medium and program product for generating test cases | |
US20210012219A1 (en) | Dynamic generation of rule and logic statements | |
JP6723976B2 (en) | Test execution device and program | |
CN113609008A (en) | Test result analysis method and device and electronic equipment | |
CN112286800B (en) | Auxiliary analysis method and system for functional test points | |
CN109857735B (en) | Data construction method and system for rule description through excel | |
CN110580170A (en) | software performance risk identification method and device | |
CN111177506A (en) | Classification storage method and system based on big data | |
CN110716866A (en) | Code quality scanning method and device, computer equipment and storage medium | |
CN113821496B (en) | Database migration method, system, device and computer readable storage medium | |
CN103714066B (en) | Database analysis device based on template | |
CN112783775B (en) | Special character input testing method and device | |
US9483332B2 (en) | Event processing method in stream processing system and stream processing system | |
CN111151008B (en) | Verification method and device for game operation data, configuration background and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |