CN112286800B - Auxiliary analysis method and system for functional test points - Google Patents

Auxiliary analysis method and system for functional test points Download PDF

Info

Publication number
CN112286800B
CN112286800B CN202011124460.7A CN202011124460A CN112286800B CN 112286800 B CN112286800 B CN 112286800B CN 202011124460 A CN202011124460 A CN 202011124460A CN 112286800 B CN112286800 B CN 112286800B
Authority
CN
China
Prior art keywords
module
function
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.)
Active
Application number
CN202011124460.7A
Other languages
Chinese (zh)
Other versions
CN112286800A (en
Inventor
王阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011124460.7A priority Critical patent/CN112286800B/en
Publication of CN112286800A publication Critical patent/CN112286800A/en
Application granted granted Critical
Publication of CN112286800B publication Critical patent/CN112286800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test 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

Auxiliary analysis method and system for functional test points
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 a basic function point, inputting a basic function test factor and establishing an incidence relation between the basic function point and the basic function test factor;
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 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 a system for auxiliary analysis of 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 effects provided in the summary of the invention are only the effects of the embodiments, not all of 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 functional test points 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, specific example components and arrangements 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 increased 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 the use cases 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 to establish the function point tree structure, the functions of the bottommost module are matched with the basic function points according to the keywords, and the function points and the matched test factors are summarized, so that the test function point use case is rapidly generated. The invention can rapidly comb the test points corresponding to 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 an 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, parameter input boundary value, illegal parameter input, effective resource 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 the 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 the association relationship between the upper level and the lower level.
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 intended to be illustrative of the preferred embodiment of the present invention and should not be taken as limiting the invention, but rather, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the 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 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 a superior structure to a subordinate 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 functional test points as claimed in claim 5, wherein when the module is a button type, the text description and module name are obtained and used as the functional point after rearrangement; 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 aided 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.
CN202011124460.7A 2020-10-20 2020-10-20 Auxiliary analysis method and system for functional test points Active CN112286800B (en)

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 CN112286800A (en) 2021-01-29
CN112286800B true 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)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
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
CN112286800A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN103092761B (en) Method and device of recognizing and checking modifying code blocks based on difference information file
US9311345B2 (en) Template based database analyzer
CN110737689B (en) Data standard compliance detection method, device, system and storage medium
CN109344053B (en) Interface coverage test method, system, computer device and storage medium
CN112988782B (en) Hive-supported interactive query method and device and storage medium
EP2983117A1 (en) Event processing method in stream processing system and stream processing system
CN108984155A (en) Flow chart of data processing setting method and device
CN108694108B (en) iOS crash data classification and statistics method and device
CN112783786B (en) Method, apparatus, device, medium and program product for generating test cases
US20210012219A1 (en) Dynamic generation of rule and logic statements
CN112328499A (en) Test data generation method, device, equipment and medium
JP6723976B2 (en) Test execution device and program
CN107908525B (en) Alarm processing method, equipment and readable storage medium
CN110069455B (en) File merging method and device
CN110580170B (en) Method and device for identifying software performance risk
CN113220588A (en) Automatic testing method, device and equipment for data processing and storage medium
CN112286800B (en) Auxiliary analysis method and system for functional test points
JP2017049639A (en) Evaluation program, procedure manual evaluation method, and evaluation 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
US9483332B2 (en) Event processing method in stream processing system and stream processing system
CN112783775B (en) Special character input testing method and device
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
EP4191438A1 (en) Software information organization method and device, and computer-readable 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