CN115185836A - Method, device and related equipment for determining test complexity - Google Patents

Method, device and related equipment for determining test complexity Download PDF

Info

Publication number
CN115185836A
CN115185836A CN202210789890.3A CN202210789890A CN115185836A CN 115185836 A CN115185836 A CN 115185836A CN 202210789890 A CN202210789890 A CN 202210789890A CN 115185836 A CN115185836 A CN 115185836A
Authority
CN
China
Prior art keywords
function
test complexity
determining
category
complexity
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.)
Pending
Application number
CN202210789890.3A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210789890.3A priority Critical patent/CN115185836A/en
Publication of CN115185836A publication Critical patent/CN115185836A/en
Pending legal-status Critical Current

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

Abstract

The invention discloses a method, a device and related equipment for determining test complexity, which can be applied to the financial field or other fields. Determining a modified first function point belonging to a first function category from multiple types of function points obtained by splitting a system to be tested; according to the number of the function points in the first function category, determining a second function category with the highest similarity to the first function category as a first target function category from a plurality of second function categories obtained by pre-splitting a specific system; determining a first unit vector based on the first evaluation test complexity of each first function point; determining a second target function category from the second function categories using the first unit vector; and correcting the first evaluation test complexity through the second evaluation test complexity and the second actual test complexity of the second function point in the second target function category and the first target function category respectively to obtain the first actual test complexity of the first function point, so that the test quality and the test progress are ensured.

Description

Method, device and related equipment for determining test complexity
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for determining test complexity and related equipment.
Background
The enterprise system (such as a bank system) does not know the test complexity when developing a new function, which results in insufficient evaluation of the test complexity, thereby causing planning errors in time planning and cost investment planning, and finally affecting the test quality and test progress of the enterprise system. Therefore, there is a need for a way to determine the complexity of testing a system.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a related device for determining a test complexity, so as to determine a test complexity of a system.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiments of the present invention discloses a method for determining test complexity, where the method includes:
determining a modified first function point belonging to a first function category from multiple types of function points obtained by splitting a system to be tested;
according to the number of the function points included in the first function category, determining a second function category with the highest similarity to the first function category as a first target function category from a plurality of second function categories obtained by pre-splitting a specific system, wherein each second function category includes at least one second function point, and each second function point has corresponding second evaluation test complexity and second actual test complexity;
acquiring a first evaluation test complexity of each first function point, and determining a first unit vector based on the first evaluation test complexity;
determining a second target function class from a plurality of the second function classes using the first unit vector;
and correcting the first evaluation test complexity respectively according to the second evaluation test complexity and the second actual test complexity of each second function point in the second target function type and the first target function type to obtain the first actual test complexity of the first function point.
Preferably, determining, according to the number of function points included in the first function category, a second function category with the highest similarity to the first function category from among a plurality of second function categories obtained by pre-splitting a specific system as a first target function category includes:
determining a corresponding first quantity vector based on the quantity of the function points contained in the first function category;
for each second function category obtained by pre-splitting a specific system, determining a corresponding second quantity vector based on the quantity of second function points contained in the second function category;
and determining a second function category corresponding to the second quantity vector closest to the first quantity vector as a first target function category.
Preferably, the determining a second target function category from the plurality of second function categories by using the first unit vector includes:
for each second function category, determining a corresponding second unit vector according to second evaluation test complexity of all second function points contained in the second function category;
and determining a second function type corresponding to the second unit vector nearest to the first unit vector as a second target function type.
Preferably, the modifying the first evaluation test complexity according to the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category and the first target function category to obtain the first actual test complexity of the first function point includes:
determining a third unit vector and a fourth unit vector respectively based on the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category;
performing preliminary correction on the first evaluation test complexity by using a ratio between the third unit vector and the fourth unit vector;
calculating an evaluation test complexity mean value and an actual test complexity mean value respectively based on a second evaluation test complexity and a second actual test complexity of each second function point in the first target function category;
and finally correcting the first estimated test complexity after the preliminary correction by utilizing the ratio between the estimated test complexity mean value and the actual test complexity mean value to obtain the first actual test complexity of the first function point.
A second aspect of the embodiments of the present invention discloses a device for determining test complexity, where the device includes:
the processing unit is used for determining a modified first function point belonging to a first function category from the multiple types of function points obtained by splitting the system to be tested;
a first determining unit, configured to determine, according to the number of function points included in the first function category, a second function category with a highest similarity to the first function category from among a plurality of second function categories obtained by splitting a specific system in advance, as a first target function category, where each of the second function categories includes at least one second function point, and each of the second function points has a corresponding second evaluation test complexity and a corresponding second actual test complexity;
a second determining unit, configured to obtain a first evaluation test complexity of each first function point, and determine a first unit vector based on the first evaluation test complexity;
a third determining unit configured to determine a second target function class from among the plurality of second function classes using the first unit vector;
and the correcting unit is used for correcting the first evaluation test complexity respectively according to the second evaluation test complexity and the second actual test complexity of each second function point in the second target function type and the first target function type to obtain the first actual test complexity of the first function point.
Preferably, the first determination unit includes:
a first determining module, configured to determine, based on the number of function points included in the first function category, a corresponding first number vector;
a second determining module, configured to determine, for each second function category obtained by splitting a specific system in advance, a corresponding second quantity vector based on the number of second function points included in the second function category;
and the third determining module is used for determining that the second function category corresponding to the second quantity vector closest to the first quantity vector is the first target function category.
Preferably, the third determining unit is specifically configured to: for each second function category, determining a corresponding second unit vector according to second evaluation test complexity of all second function points contained in the second function category; and determining a second function class corresponding to the second unit vector closest to the first unit vector as a second target function class.
Preferably, the correction unit includes:
a determining module, configured to determine a third unit vector and a fourth unit vector based on a second evaluation test complexity and a second actual test complexity of each second function point in the second target function category, respectively;
a first correction module, configured to perform preliminary correction on the first evaluation test complexity by using a ratio between the third unit vector and the fourth unit vector;
the calculation module is used for calculating an evaluation test complexity mean value and an actual test complexity mean value respectively based on a second evaluation test complexity and a second actual test complexity of each second function point in the first target function category;
and the second correction module is used for finally correcting the first evaluation test complexity after the preliminary correction by utilizing the proportion between the evaluation test complexity mean value and the actual test complexity mean value so as to obtain the first actual test complexity of the first function point.
A third aspect of an embodiment of the present invention discloses an electronic device, including: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is used for storing a program for implementing the method for determining test complexity as disclosed in the first aspect of the embodiments of the present invention.
A fourth aspect of the present invention discloses a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to execute the method for determining test complexity disclosed in the first aspect of the present invention.
Based on the method, the device and the related equipment for determining the test complexity, provided by the embodiment of the invention, the modified first function point belonging to the first function category is determined from the multiple types of function points obtained by splitting the system to be tested; according to the number of function points contained in the first function category, determining a second function category with the highest similarity to the first function category as a first target function category from a plurality of second function categories obtained by pre-splitting a specific system; acquiring first evaluation test complexity of each first function point, and determining a first unit vector based on the first evaluation test complexity; determining a second target function class from the plurality of second function classes using the first unit vector; and correcting the first evaluation test complexity through the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category and the first target function category respectively to obtain the first actual test complexity of the first function point. According to the scheme, for the reconstructed first function point belonging to the first function category, the first target function category and the second target function category related to the first function category are respectively determined from two dimensions of the number of the function points of the first function category and the evaluation test complexity. And correcting the first evaluation test complexity of the first function point by using the second target function type and the first target function type respectively to obtain corresponding first actual test complexity, so that the test quality and the test progress are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining test complexity according to an embodiment of the present invention;
FIG. 2 is a flowchart of determining a first target function category according to an embodiment of the present invention;
FIG. 3 is a flowchart for obtaining a first actual test complexity according to an embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for determining test complexity according to an embodiment of the present invention;
FIG. 5 is another block diagram of an apparatus for determining complexity of testing according to an embodiment of the present invention;
fig. 6 is a block diagram of another structure of an apparatus for determining test complexity according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
It should be noted that the method, the apparatus and the related device for determining the test complexity provided by the present invention may be used in the financial field or other fields, for example, may be used in a system test application scenario in the financial field. The other fields are arbitrary fields other than the financial field, for example, the data processing field. The foregoing is merely an example, and does not limit the application fields of the method, the apparatus, and the related device for determining the test complexity provided by the present invention.
It can be known from the background art that the test complexity is unknown when the enterprise system develops a new function, which results in insufficient evaluation of the test complexity, thereby causing planning errors in time planning and cost investment planning, and finally affecting the test quality and test progress of the enterprise system.
Therefore, embodiments of the present invention provide a method, an apparatus, and a related device for determining a test complexity, where for a first modified function point belonging to a first function class, a first target function class and a second target function class related to the first function class are respectively determined from two dimensions of a number of function points of the first function class and an evaluation test complexity. And correcting the first evaluation test complexity of the first function point by using the second target function type and the first target function type respectively to obtain corresponding first actual test complexity so as to ensure the test quality and the test progress.
Referring to fig. 1, a flowchart of a method for determining test complexity according to an embodiment of the present invention is shown, where the method includes:
step S101: and determining a modified first function point belonging to the first function category from the plurality of categories of function points obtained by splitting the system to be tested.
In the process of implementing step S101 specifically, the system to be tested is split into detailed function points, so as to split the system to be tested into multiple types of function points (or function points of multiple function categories); and determining a modified first function point belonging to a first function category from all the function points obtained by splitting the system to be tested, wherein the first function point is a modified function point.
In some embodiments, after the system to be tested is split into multiple types of function points, the split function points may be entered into a human-computer interaction interface.
Step S102: and according to the number of the function points included in the first function category, determining a second function category with the highest similarity to the first function category as a first target function category from a plurality of second function categories obtained by splitting a specific system in advance.
In some embodiments, the splitting of the detailed function points is performed on a particular system to split the particular system into second function points of a plurality of second function categories; each second function category comprises at least one second function point; for each second function point, evaluating the second evaluation test complexity of the second function point according to a preset rule; and after the function test is completed on the specific system, determining to obtain the second actual test complexity of each second function point.
It should be noted that the test complexity of a functional point is the test time required for testing the functional point; accordingly, the evaluation test complexity of the function point is: the test time required for the functional point obtained by the evaluation (equivalent to the test time obtained by the evaluation means); the actual test complexity of the functional points is: the test time (corresponding to the actual test time) required to actually test the functional point.
That is, each second functional point has a respective second evaluated test complexity and second actual test complexity.
In some embodiments, the plurality of second functional categories include, but are not limited to: adding and modifying front-end interface fields, adding and modifying background logic (logic is single logic after splitting, such as copying and matching), and processing background data (adding, deleting, modifying and querying data).
In the process of implementing step S102 specifically, for each first function category, the number of function points included in the first function category is used, and the number of function points included in each second function category is combined, so as to determine the second function category with the highest similarity to the first function category as the first target function category.
Step S103: and acquiring a first evaluation test complexity of each first function point, and determining a first unit vector based on the first evaluation test complexity.
In the process of specifically implementing step S103, the test complexity of each first function point is evaluated according to a preset rule, so as to obtain a first evaluation test complexity of each first function point.
The first evaluation test complexity of each first function point is superposed to form a first unit vector. Specifically, all the first evaluation test complexities are superposed and divided by the number of the first function points to calculate a first unit vector.
Step S104: a second target function class is determined from the plurality of second function classes using the first unit vector.
In the process of specifically implementing step S104, for each second function category, determining a corresponding second unit vector according to the second evaluation test complexity of all second function points included in the second function category; each second function type may determine to obtain a corresponding second unit vector, and refer to the content of calculating the first unit vector in step S103 for a specific way of calculating the second unit vector, which is not described herein again.
Respectively calculating the distance between the first unit vector and each second unit vector; and determining a second function type corresponding to a second unit vector closest to the first unit vector as a second target function type according to the calculated distance. That is, after the distances between the first unit vectors and the respective second unit vectors are calculated, the second function category corresponding to the second unit vector having the smallest distance between the first unit vectors is determined as the second target function category.
Step S105: and correcting the first evaluation test complexity through the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category and the first target function category respectively to obtain the first actual test complexity of the first function point.
In the process of specifically implementing step S105, for each first function point, primarily correcting the first evaluation test complexity of the first function point by using the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category; and finally correcting the preliminarily corrected first evaluation test complexity of the first function point by using the second evaluation test complexity and the second actual test complexity of each second function point in the first target function category, and determining to obtain the first actual test complexity (namely the final test complexity) of the first function point.
By the method, the first actual test complexity of each first function point is determined, and therefore the actual test complexity of the system to be tested can be determined.
In the embodiment of the invention, for a modified first function point belonging to a first function category, a first target function category and a second target function category related to the first function category are respectively determined from two dimensions of the number of function points of the first function category and the evaluation test complexity. And correcting the first evaluation test complexity of the first function point by using the second target function type and the first target function type respectively to obtain corresponding first actual test complexity, so that the test quality and the test progress are ensured.
In the above embodiment of the present invention, referring to fig. 2, the content of determining the first target function category in step S102 in fig. 1 is a flowchart illustrating the step of determining the first target function category according to the embodiment of the present invention, which includes the following steps:
step S201: based on the number of function points comprised by the first function category, a corresponding first number vector is determined.
In the process of implementing step S201 specifically, for each first function category, the number of function points included in the first function category is used to determine and obtain a corresponding first number vector.
Step S202: for each second function category resulting from pre-splitting the particular system, a corresponding second quantity vector is determined based on the number of second function points comprised by the second function category.
In the process of implementing step S202 specifically, for each second function category, a corresponding second quantity vector is determined by using the number of second function points included in the second function category.
Step S203: and determining a second function class corresponding to a second quantity vector closest to the first quantity vector as a first target function class.
In the process of specifically implementing step S203, for each first number vector, respectively calculating a distance between the first number vector and each second number vector; and determining a second function category corresponding to a second quantity vector closest to the first quantity vector as a first target function category based on the calculated distance. That is, after calculating the distance between the first number vector and each second number vector, the second function category corresponding to the second number vector having the smallest distance between the first number vectors is determined as the first target function category.
It should be noted that, for each first quantity vector of the first function category, the second function category corresponding to the second quantity vector with the smallest distance between the first quantity vectors is the second function category with the highest similarity to the first function category (i.e., the first target function category).
In the above embodiment of the present invention, referring to fig. 3, the content of obtaining the first actual test complexity related in step S105 in fig. 1 shows a flowchart for obtaining the first actual test complexity provided in the embodiment of the present invention, which includes the following steps:
step S301: and determining a third unit vector and a fourth unit vector respectively based on the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category.
In the process of specifically implementing step S301, the second evaluation test complexity of each second function point in the second target function category is superimposed to form a third unit vector; and overlapping the second actual test complexity of each second function point in the second target function category to form a fourth unit vector.
It should be noted that, the manner of obtaining the third unit vector and the fourth unit vector is determined, refer to the content of calculating the first unit vector in step S103 in fig. 1 in the above embodiment of the present invention, and are not described herein again.
Step S302: and performing preliminary correction on the first evaluation test complexity by using the proportion between the third unit vector and the fourth unit vector.
In the process of specifically implementing the step S302, the first evaluation test complexity is preliminarily corrected by using the ratio between the third unit vector and the fourth unit vector; specifically, the first evaluation test complexity is preliminarily corrected by the following formula (1).
d=cb/a(1)
In formula (1), a is the third unit vector, b is the fourth unit vector, c is the first evaluation test complexity, and d is the first evaluation test complexity after the initial correction.
Step S303: and calculating an evaluation test complexity mean value and an actual test complexity mean value respectively based on the second evaluation test complexity and the second actual test complexity of each second function point in the first target function category.
In the process of specifically implementing the step S303, an evaluation test complexity mean value is calculated based on the second evaluation test complexity of each second function point in the first target function category; and calculating to obtain an actual test complexity mean value based on the second actual test complexity of each second function point in the first target function category.
Step S304: and finally correcting the first estimated test complexity after the preliminary correction by utilizing the proportion between the estimated test complexity mean value and the actual test complexity mean value to obtain the first actual test complexity of the first function point.
In the process of specifically implementing step S304, for the preliminarily corrected first evaluation test complexity corresponding to each first function point, the preliminarily corrected first evaluation test complexity is finally corrected by using a ratio between the evaluation test complexity average and the actual test complexity average, so as to obtain the first actual test complexity of the first function point. Specifically, the first evaluation test complexity after the preliminary correction is finally corrected by the following formula (2).
g=df/e(2)
In formula (2), d is the first estimated test complexity after the initial modification, e is the average value of the estimated test complexity, f is the average value of the actual test complexity, and g is the first actual test complexity.
In the embodiment of the invention, the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category and the first target function category are respectively utilized to carry out secondary correction on the first evaluation test complexity so as to obtain accurate first actual test complexity, thereby ensuring the test quality.
Corresponding to the method for determining the test complexity provided by the embodiment of the present invention, referring to fig. 4, an embodiment of the present invention further provides a structural block diagram of an apparatus for determining the test complexity, where the apparatus includes: a processing unit 401, a first determining unit 402, a second determining unit 403, a third determining unit 404, and a correcting unit 405;
the processing unit 401 is configured to determine a modified first function point belonging to a first function category from among multiple types of function points obtained by splitting the system to be tested.
A first determining unit 402, configured to determine, according to the number of function points included in a first function category, a second function category with a highest similarity to the first function category from among a plurality of second function categories obtained by splitting a specific system in advance, as a first target function category, where each second function category includes at least one second function point, and each second function point has a corresponding second evaluation test complexity and second actual test complexity.
A second determining unit 403, configured to obtain a first evaluation test complexity of each first function point, and determine a first unit vector based on the first evaluation test complexity.
A third determining unit 404, configured to determine a second target function class from the plurality of second function classes by using the first unit vector.
In a specific implementation, the third determining unit 404 is specifically configured to: for each second function category, determining a corresponding second unit vector according to second evaluation test complexity of all second function points contained in the second function category; and determining a second function class corresponding to a second unit vector closest to the first unit vector as a second target function class.
The correcting unit 405 is configured to correct the first evaluation test complexity through the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category and the first target function category, respectively, to obtain the first actual test complexity of the first function point.
In the embodiment of the invention, for a modified first function point belonging to a first function category, a first target function category and a second target function category related to the first function category are respectively determined from two dimensions of the number of function points of the first function category and the evaluation test complexity. And correcting the first evaluation test complexity of the first function point by using the second target function type and the first target function type respectively to obtain corresponding first actual test complexity, so that the test quality and the test progress are ensured.
Preferably, referring to fig. 5 in conjunction with fig. 4, another structural block diagram of an apparatus for determining test complexity according to an embodiment of the present invention is shown, where the first determining unit 402 includes: a first determination module 4021, a second determination module 4022, and a third determination module 4023;
a first determining module 4021, configured to determine a corresponding first quantity vector based on the number of function points included in the first function category.
A second determining module 4022, configured to determine, for each second function category obtained by pre-splitting the specific system, a corresponding second quantity vector based on the number of second function points included in the second function category.
A third determining module 4023, configured to determine that the second function category corresponding to the second quantity vector closest to the first quantity vector is the first target function category.
Preferably, referring to fig. 6 in conjunction with fig. 4, a further structural block diagram of an apparatus for determining a test complexity according to an embodiment of the present invention is shown, where the modifying unit 405 includes: a determining module 4051, a first correcting module 4052, a calculating module 4053 and a second correcting module 4054;
the determining module 4051 is configured to determine a third unit vector and a fourth unit vector based on the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category, respectively.
A first correcting module 4052, configured to perform a preliminary correction on the first evaluation test complexity by using a ratio between the third unit vector and the fourth unit vector.
A calculating module 4053, configured to calculate an evaluation test complexity average value and an actual test complexity average value based on a second evaluation test complexity and a second actual test complexity of each second function point in the first target function category, respectively;
the second correcting module 4054 is configured to finally correct the preliminarily corrected first evaluation test complexity by using a ratio between the evaluation test complexity average and the actual test complexity average, so as to obtain the first actual test complexity of the first function point.
In the embodiment of the invention, the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category and the first target function category are respectively utilized to carry out secondary correction on the first evaluation test complexity so as to obtain accurate first actual test complexity, thereby ensuring the test quality.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; a memory for storing a program for implementing the method of determining test complexity as disclosed in the above method embodiments.
Preferably, an embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to execute the method for determining test complexity disclosed in the foregoing method embodiment.
In summary, embodiments of the present invention provide a method, an apparatus, and a related device for determining a test complexity, in which for a modified first function point belonging to a first function category, a first target function category and a second target function category related to the first function category are respectively determined from two dimensions of a number of function points of the first function category and an evaluation test complexity. And correcting the first evaluation test complexity of the first function point by using the second target function type and the first target function type respectively to obtain corresponding first actual test complexity, so that the test quality and the test progress are ensured.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of determining test complexity, the method comprising:
determining a modified first function point belonging to a first function category from multiple types of function points obtained by splitting a system to be tested;
according to the number of the function points included in the first function category, determining a second function category with the highest similarity to the first function category as a first target function category from a plurality of second function categories obtained by pre-splitting a specific system, wherein each second function category includes at least one second function point, and each second function point has a corresponding second evaluation test complexity and a corresponding second actual test complexity;
acquiring a first evaluation test complexity of each first function point, and determining a first unit vector based on the first evaluation test complexity;
determining a second target function class from a plurality of the second function classes using the first unit vector;
and correcting the first evaluation test complexity respectively according to the second evaluation test complexity and the second actual test complexity of each second function point in the second target function type and the first target function type to obtain the first actual test complexity of the first function point.
2. The method according to claim 1, wherein determining, from a plurality of second function categories obtained by splitting a specific system in advance according to the number of function points included in the first function category, a second function category with a highest similarity to the first function category as a first target function category includes:
determining a corresponding first quantity vector based on the quantity of the function points contained in the first function category;
for each second function category obtained by pre-splitting a specific system, determining a corresponding second quantity vector based on the number of second function points contained in the second function category;
and determining a second function category corresponding to the second quantity vector closest to the first quantity vector as a first target function category.
3. The method of claim 1, wherein determining a second target function class from the plurality of second function classes using the first unit vector comprises:
for each second function category, determining a corresponding second unit vector according to second evaluation test complexity of all second function points contained in the second function category;
and determining a second function class corresponding to the second unit vector closest to the first unit vector as a second target function class.
4. The method according to claim 1, wherein the step of correcting the first evaluation test complexity through a second evaluation test complexity and a second actual test complexity of each second function point in the second target function category and the first target function category to obtain a first actual test complexity of the first function point comprises:
determining a third unit vector and a fourth unit vector respectively based on the second evaluation test complexity and the second actual test complexity of each second function point in the second target function category;
performing preliminary correction on the first evaluation test complexity by using a ratio between the third unit vector and the fourth unit vector;
calculating an evaluation test complexity mean value and an actual test complexity mean value respectively based on a second evaluation test complexity and a second actual test complexity of each second function point in the first target function category;
and finally correcting the first estimated test complexity after the preliminary correction by utilizing the ratio between the estimated test complexity mean value and the actual test complexity mean value to obtain the first actual test complexity of the first function point.
5. An apparatus for determining test complexity, the apparatus comprising:
the processing unit is used for determining a modified first function point belonging to a first function category from the multiple types of function points obtained by splitting the system to be tested;
a first determining unit, configured to determine, according to the number of function points included in the first function category, a second function category with a highest similarity to the first function category from among a plurality of second function categories obtained by splitting a specific system in advance, as a first target function category, where each of the second function categories includes at least one second function point, and each of the second function points has a corresponding second evaluation test complexity and a corresponding second actual test complexity;
a second determining unit, configured to obtain a first evaluation test complexity of each first function point, and determine a first unit vector based on the first evaluation test complexity;
a third determining unit configured to determine a second target function class from among the plurality of second function classes using the first unit vector;
and the correcting unit is used for correcting the first evaluation test complexity respectively according to the second evaluation test complexity and the second actual test complexity of each second function point in the second target function type and the first target function type to obtain the first actual test complexity of the first function point.
6. The apparatus according to claim 5, wherein the first determining unit comprises:
a first determining module, configured to determine, based on the number of function points included in the first function category, a corresponding first number vector;
the second determining module is used for determining a corresponding second quantity vector based on the quantity of second function points contained in each second function category obtained by pre-splitting a specific system;
and the third determining module is used for determining that the second function category corresponding to the second quantity vector closest to the first quantity vector is the first target function category.
7. The apparatus according to claim 5, wherein the third determining unit is specifically configured to: for each second function category, determining a corresponding second unit vector according to second evaluation test complexity of all second function points contained in the second function category; and determining a second function type corresponding to the second unit vector nearest to the first unit vector as a second target function type.
8. The apparatus of claim 5, wherein the correction unit comprises:
a determining module, configured to determine a third unit vector and a fourth unit vector based on a second evaluation test complexity and a second actual test complexity of each second function point in the second target function category, respectively;
a first correction module, configured to perform preliminary correction on the first evaluation test complexity by using a ratio between the third unit vector and the fourth unit vector;
the calculation module is used for calculating an evaluation test complexity mean value and an actual test complexity mean value respectively based on a second evaluation test complexity and a second actual test complexity of each second function point in the first target function category;
and the second correction module is used for finally correcting the first evaluation test complexity after the preliminary correction by utilizing the proportion between the evaluation test complexity mean value and the actual test complexity mean value so as to obtain the first actual test complexity of the first function point.
9. An electronic device, comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory for storing a program for implementing the method of determining test complexity as claimed in any one of claims 1-4.
10. A computer-readable storage medium having stored thereon computer-executable instructions for performing the method of determining test complexity of any of claims 1-4.
CN202210789890.3A 2022-07-05 2022-07-05 Method, device and related equipment for determining test complexity Pending CN115185836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210789890.3A CN115185836A (en) 2022-07-05 2022-07-05 Method, device and related equipment for determining test complexity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210789890.3A CN115185836A (en) 2022-07-05 2022-07-05 Method, device and related equipment for determining test complexity

Publications (1)

Publication Number Publication Date
CN115185836A true CN115185836A (en) 2022-10-14

Family

ID=83517914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210789890.3A Pending CN115185836A (en) 2022-07-05 2022-07-05 Method, device and related equipment for determining test complexity

Country Status (1)

Country Link
CN (1) CN115185836A (en)

Similar Documents

Publication Publication Date Title
US9483385B2 (en) Method, program, and system for generating test cases
CN111475402A (en) Program function testing method and related device
CN111008130B (en) Intelligent question-answering system testing method and device
CN115185836A (en) Method, device and related equipment for determining test complexity
CN111488278A (en) Test method and device
CN113704123A (en) Interface test method, device, equipment and storage medium
CN115934129A (en) Software project updating method and device, computer equipment and storage medium
CN112541514A (en) Event distribution method, server, terminal and storage medium
CN113343366B (en) Method for determining main section parameters of vehicle body and related equipment
CN111782499A (en) Test case generation method and system
CN110704301A (en) TPC-E automatic test method and TPC-E test system
CN110008073B (en) Hardware platform differential shielding method, device, equipment and readable storage medium
CN110716830B (en) Pressure measuring machine selection method and device, electronic equipment and storage medium
CN114971639A (en) Risk control method and device based on geographical region analysis
CN112035288A (en) Operation fault influence determination method and related equipment
CN116089138A (en) Service data processing method, device, computer equipment and storage medium
CN115509934A (en) Page testing method and device
CN116662185A (en) Data processing method and related device
CN114610619A (en) Method, device and equipment for testing business process and storage medium
CN117172787A (en) Node rollback method, device, electronic equipment and storage medium
CN110969401A (en) Method and device for detecting conflict of project execution schemes
CN115705594A (en) Rule checking method and device, electronic equipment and storage medium
CN115373975A (en) Test data set generation method, device, equipment and storage medium
CN112199297A (en) Data testing method and device, nonvolatile storage medium and processor
CN115857896A (en) Rule engine on-line generation method, rule engine system and related equipment

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