CN115576830A - Method and device for determining quality of use case, electronic equipment and storage medium - Google Patents

Method and device for determining quality of use case, electronic equipment and storage medium Download PDF

Info

Publication number
CN115576830A
CN115576830A CN202211326625.8A CN202211326625A CN115576830A CN 115576830 A CN115576830 A CN 115576830A CN 202211326625 A CN202211326625 A CN 202211326625A CN 115576830 A CN115576830 A CN 115576830A
Authority
CN
China
Prior art keywords
determining
weight
rate
quality
use case
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
CN202211326625.8A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211326625.8A priority Critical patent/CN115576830A/en
Publication of CN115576830A publication Critical patent/CN115576830A/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
    • 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
    • G06F11/3684Test management for test design, e.g. generating new test cases

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a method and a device for determining case quality, electronic equipment and a storage medium. The method for determining the quality of the use case comprises the following steps: determining a current item of case quality to be determined; determining the reverse use case rate and the use case quality standard reaching rate of the current project; and determining the quality of the use case of the current project according to the reverse use case rate and the standard rate of the quality of the use case. The technical scheme of the embodiment of the invention can automatically determine the quality of the use case, thereby improving the efficiency and the accuracy of determining the quality of the use case and further ensuring the reliability of the test.

Description

Method and device for determining quality of use case, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for determining case quality, electronic equipment and a storage medium.
Background
The test cases are a set of collections provided to the system under test for performing tests, the set of collections including: test environment, operational steps, test data, expected results, etc. In the daily test progress and project management process, the test cases are the most important assets in the test management and the project management, but the quality of the test cases is uneven due to project requirements and subjective and objective difference conditions of various testers.
The traditional quality determination method of the test case is that a test manager or a project manager generally determines by developing expert online and offline review, and each expert and project owner need to prepare in advance and have deeper cognition on the system, so that a lot of time is consumed, the project progress is influenced even in a large project or the project flows in a format in an agile project, and the quality determination efficiency of the test case is low and the accuracy is poor.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for determining quality of a use case, an electronic device, and a storage medium, which can automatically determine the quality of a use case, thereby improving efficiency and accuracy of determining the quality of a use case, and further ensuring reliability of a test.
According to an aspect of the present invention, a method for determining use case quality is provided, including:
determining a current item of case quality to be determined;
determining the reverse use case rate and the use case quality standard reaching rate of the current project;
and determining the quality of the use case of the current project according to the reverse use case rate and the standard rate of the quality of the use case.
According to another aspect of the present invention, there is provided a use case quality determination apparatus, including:
the current project determining module is used for determining the current project of the quality of the use case to be determined;
the calculation index determining module is used for determining the reverse use case rate and the use case quality standard rate of the current project;
and the use case quality determining module is used for determining the use case quality of the current project according to the reverse use case rate and the use case quality standard rate.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method for use case quality determination according to any of the embodiments of the present invention.
According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to implement the use case quality determination method according to any embodiment of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the current item of the quality of the case to be determined is determined, the reverse case rate and the case quality standard rate of the current item are determined, and the quality of the case of the current item is determined according to the reverse case rate and the case quality standard rate.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining use-case quality according to an embodiment of the present invention;
fig. 2 is a flowchart of a use case quality determination method according to a second embodiment of the present invention;
FIG. 3 is a diagram of a normalized matrix according to a second embodiment of the present invention;
fig. 4 is an exemplary flowchart of a method for determining use case quality according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a use case quality determination apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device implementing the use case quality determination method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a use case quality determination method according to an embodiment of the present invention, where this embodiment is applicable to a situation where the efficiency of determining the use case quality is improved and the accuracy of determining the use case quality is improved at the same time, and the method may be executed by a use case quality determination apparatus, and the apparatus may be implemented in a software and/or hardware manner, and may generally be directly integrated into an electronic device that executes the method, where the electronic device may be a terminal device or a server device. Specifically, as shown in fig. 1, the method for determining the quality of the use case may specifically include the following steps:
and S110, determining the current item of the quality of the use case to be determined.
The current item of the quality of the use case to be determined may be an item that needs to determine the quality of the test case. It can be understood that one project may correspond to multiple test cases, and tests of different dimensions may be performed on the project through different test cases.
In the embodiment of the invention, the current item of the quality of the use case to be determined is determined. It can be understood that after a project is developed and before the project is used online, the project needs to be tested through the test cases, and the quality of the test cases corresponding to the project affects the stability of the project, so that the quality of the test cases of the project needs to be determined.
And S120, determining the reverse use case rate and the use case quality standard rate of the current project.
The reverse use case rate may be a proportion of the reverse use case in the test case. It is understood that the test cases of a project may include reverse cases and forward cases to enable comprehensive testing of the project. The reverse case may be a test case consisting of a valid equivalence class and an invalid equivalence class. A valid equivalence class may be a set of reasonable, meaningful input data. Invalid equivalence classes can be sets of input data that are not meaningful, unreasonable to the software specification. It should be noted that a valid equivalence class can be a meaningful set of data that does not meet the business requirements of the software. The case quality standard-reaching rate can be the proportion of the case with standard quality in the test case.
In the embodiment of the invention, after the current item of the use case quality to be determined is determined, the reverse use case rate and the use case quality standard rate of the current item can be further determined, so that the use case quality of the current item can be determined according to the reverse use case rate and the use case quality standard rate.
S130, determining the use case quality of the current project according to the reverse use case rate and the use case quality standard-reaching rate.
In the embodiment of the invention, after the reverse use case rate and the use case quality standard rate of the current project are determined, the use case quality of the current project can be further determined according to the reverse use case rate and the use case quality standard rate.
According to the technical scheme of the embodiment, the current item of the case quality to be determined is determined, the reverse case rate and the case quality standard rate of the current item are determined, and the case quality of the current item is determined according to the reverse case rate and the case quality standard rate.
Example two
Fig. 2 is a flowchart of a use case quality determining method provided in the second embodiment of the present invention, which further details the above technical solutions and provides various specific optional implementations for determining the reverse use case rate and the standard case quality rate of the current item and determining the use case quality of the current item according to the reverse use case rate and the standard case quality rate. The solution in this embodiment may be combined with the individual alternatives in one or more of the embodiments described above. As shown in fig. 2, the method may include the steps of:
and S210, determining the current item of the quality of the use case to be determined.
S220, determining the reverse use case rate and the use case quality standard reaching rate of the current project.
Optionally, determining the reverse utilization rate of the current project may include: determining the number of reverse cases corresponding to the current project and the total number of test cases corresponding to the current project; and determining the reverse use case rate of the current project according to the number of the reverse use cases and the total number of the test cases.
The number of reverse use cases may be the number of reverse use cases corresponding to the current item. The total number of test cases may be the number of all test cases corresponding to the current project.
Specifically, after the current item of the quality of the use case to be determined is determined, the number of reverse use cases corresponding to the current item and the total number of test cases corresponding to the current item can be further determined, so that the reverse use case rate of the current item is determined according to the number of reverse use cases and the total number of test cases.
Optionally, the reverse use-case rate of the current item may be determined based on the following formula:
Figure BDA0003912353590000071
wherein r is 1 Representing the reverse use-case rate, n, of the current project 1 Representing the number of reverse cases and N representing the total number of test cases.
Optionally, determining the quality compliance rate of the use case of the current project may include: determining a functional module corresponding to the current project and the complexity of the functional module; determining the use case sampling weight corresponding to each functional module according to the complexity of each functional module; according to the case sampling weight, performing case sampling on the test cases corresponding to the functional modules to obtain sampling test cases; determining the quality standard quantity of the sample test cases and the quantity of the sample test cases; and determining the quality standard-reaching rate of the use cases of the current project according to the quality standard-reaching quantity of the use cases and the quantity of the sampling test use cases.
The function module may be a module capable of implementing a certain function in the current project. It is understood that the functional modules may implement a certain function in the form of code. The functional module complexity may be the complexity of the functional module to achieve its functionality. It is understood that if a functional module easily implements its function, the functional module of the functional module has low complexity. If a functional module has difficulty in implementing its function, the functional module of the functional module has high complexity. The case sampling weight may be a weight when the test case is sampled. The case sampling may be sampling all test cases corresponding to the current project. The sampled test case may be a test case obtained by sampling. It is to be understood that the sample test case may be a reverse case or a forward case. The quality qualified number of the cases can be the number of the quality qualified test cases in the sampling test cases. The number of sample test cases may be the number of sample test cases.
Specifically, after the current item of the quality of the use case to be determined is determined, the function module corresponding to the current item and the complexity of the function module can be further determined, the use case sampling weight corresponding to each function module is determined according to the complexity of each function module, the test case corresponding to each function module is subjected to use case sampling according to the use case sampling weight to obtain a sampling test case, the quality standard quantity of the use cases of the sampling test case and the quantity of the sampling test case are determined, and therefore the quality standard rate of the use case of the current item is determined according to the quality standard quantity of the use cases and the sampling test case data. It is understood that one functional module may correspond to a plurality of test cases.
Optionally, the function module corresponding to the current project and the complexity of the function module may be determined according to the scale estimation document. Wherein the scale estimation documents may be documents for statistical functional modules and module complexity and for human resources estimation.
Optionally, the use case sampling weight corresponding to each functional module is determined according to the complexity of each functional module, and the higher the complexity of the functional module is, the higher the use case sampling weight corresponding to the determined functional module is; the lower the complexity of the functional module is, the lower the sampling weight of the use case corresponding to the determined functional module is.
For example, assuming that the functional module complexity includes complex, medium, and simple, the complex functional module complexity may determine a use case sampling weight of 3, the medium functional module complexity may determine a use case sampling weight of 2, and the simple functional module complexity may determine a use case sampling weight of 1. Assuming that 60 test cases need to be extracted during case sampling, 30 test cases corresponding to complex functional modules, 20 test cases corresponding to medium functional modules, and 10 test cases corresponding to medium functional modules can be extracted.
Optionally, before determining the quality standard quantity of the sample test cases, the quality of the sample test cases may be determined. It should be noted that, in the embodiment of the present invention, a specific implementation manner for determining the case quality of each sample test case is not limited, as long as the determination of the case quality of the sample test case can be achieved.
Optionally, the use case quality achievement rate of the current project may be determined based on the following formula:
Figure BDA0003912353590000091
wherein r is 2 Represents the quality standard-reaching rate of the use case, n 2 Number of quality standard of representation case, n 3 Representing the number of sample test cases.
S230, determining a first weight corresponding to the reverse case rate and a second weight corresponding to the case quality standard rate, and determining the total number of test cases corresponding to the current project.
The first weight may be a weight corresponding to a reverse use case rate. The second weight may be a weight corresponding to the case quality achievement rate.
In the embodiment of the invention, after the reverse use case rate and the use case quality standard rate of the current project are determined, a first weight corresponding to the reverse use case rate and a second weight corresponding to the use case quality standard rate can be further determined, and the total number of test cases corresponding to the current project is determined.
Optionally, a first weight corresponding to the reverse use-case rate and a second weight corresponding to the use-case quality standard-reaching rate may be determined by an entropy weight method. Specifically, according to the explanation of the basic principle of the information theory, information is a measure of the degree of order of the system, and entropy is a measure of the degree of disorder of the system; according to the definition of the information entropy, the degree of dispersion of a certain index can be judged by using the entropy value, the smaller the information entropy value is, the larger the degree of dispersion of the index is, the larger the influence (namely weight) of the index on the comprehensive evaluation is, and if the values of the certain index are all equal, the index does not play a role in the comprehensive evaluation. Therefore, the weight of each index can be calculated by using the information entropy tool, and a basis is provided for multi-index comprehensive evaluation.
Optionally, determining a first weight corresponding to the reverse use-case rate and a second weight corresponding to the use-case quality standard-reaching rate may include: acquiring a preset number of historical items, and determining calculation index data corresponding to weight calculation indexes of the historical items; calculating index data corresponding to the index according to the weight of each historical item, and determining the proportion of the calculated index corresponding to each historical item; determining a calculation index entropy value corresponding to the weight calculation index according to the proportion of each calculation index; determining the weight of the calculation index corresponding to the weight calculation index according to the entropy of the calculation index; and determining a first weight and a second weight according to the calculated index weight.
Wherein the preset number may be a preset number. It is to be understood that the preset number may be the number of all items, the number of partial items, and the like, and the embodiment of the present invention does not limit this. The history item may be any item that has completed testing. The weight calculation index may be an index for calculating a weight corresponding to the history item. It is to be understood that the weight calculation index may be one or more, and the embodiment of the present invention does not limit this. The calculation index data may be data corresponding to an index for calculating a weight corresponding to the history item. The calculated index proportion may be a weight occupied by the calculated index data corresponding to the history item. The entropy value of the weight calculation index may be an entropy value corresponding to the weight calculation index. The calculation index weight may be a weight occupied by an index of the calculation weight corresponding to the history item. It can be understood that the greater the number of history items, the higher the accuracy of the calculated weight of the index.
Specifically, after the reverse use case rate and the use case quality standard rate of the current item are determined, a preset number of historical items can be further obtained, calculation index data corresponding to weight calculation indexes of the historical items are determined, calculation index proportions corresponding to the historical items are determined according to the calculation index data, calculation index entropy values corresponding to the weight calculation indexes are determined according to the calculation index proportions, calculation index weights corresponding to the weight calculation indexes are determined according to the calculation index entropy values, and therefore the first weight and the second weight are determined according to the calculation index weights.
Optionally, before determining the calculation index proportion corresponding to each historical item according to each calculation index data, each calculation index data may be subjected to standardization processing to eliminate the influence caused by the inconsistency of the index dimensions. It can be understood that the inconsistency of the index dimension (unit) may cause the data of different indexes to have different sizes, which may affect the weight calculation result.
Optionally, after determining the calculation index data corresponding to the weight calculation index of each historical item, the calculation index data corresponding to the weight calculation index may be further subjected to data processing by using a normalization matrix. Specifically, the normalization matrix can be expressed as the following formula:
W={X ij } n*m
wherein, X ij And computing index data corresponding to the jth weight computing index representing the ith historical item, wherein n represents the row number of the normalization matrix, and m represents the column number of the normalization matrix.
Optionally, the calculation index proportion corresponding to each history item is determined according to the calculation index data corresponding to the weight calculation index of each history item, and may be determined based on the following formula:
Figure BDA0003912353590000111
wherein, P ij And the calculated index proportion corresponding to the jth weight calculated index representing the ith historical item.
Optionally, the entropy value of the calculation index corresponding to the weight calculation index is determined according to the specific gravity of each calculation index, and may be determined based on the following formula:
Figure BDA0003912353590000112
Figure BDA0003912353590000113
wherein e is j And expressing the entropy value of the calculation index corresponding to the jth weight calculation index, and k expresses an entropy weight coefficient.
Optionally, the weight of the calculation index corresponding to the weight calculation index is determined according to the entropy of the calculation index, and may be determined based on the following formula:
Figure BDA0003912353590000121
wherein, w j And the weight of the calculation index corresponding to the jth weight calculation index is shown.
For example, fig. 3 is a schematic diagram of a normalization matrix according to a second embodiment of the present invention, and as shown in fig. 3, the weight calculation indexes may include a reverse use-case rate index and a use-case quality achievement rate index. The normalization matrix can count the reverse use-case rate index (j 1 index) and the use-case quality standard rate index (j 2 index) of different projects into a matrix. The calculation index proportion corresponding to the reverse use case rate index of the A1 project is 33/(33 +21+10+11+15+ 19) =0.30.
Optionally, the weight calculation index may include a reverse use-case rate index, and the calculation index weight may include a reverse use-case rate index weight; determining the first weight from the calculated metric weight may include: and determining a first weight according to the reverse use case rate index weight.
The reverse use-case rate index may be an index calculated by using the reverse use-case rate as a weight. The reverse use-case rate index weight may be a weight obtained when the reverse use-case rate is used as an index for weight calculation.
Specifically, when the weight calculation index includes a reverse use-case rate index and the calculation index weight includes a reverse use-case rate index weight, the first weight may be determined according to the reverse use-case rate index weight. Optionally, the determining the first weight according to the reverse use-case rate index weight may be determining the reverse use-case rate index weight as the first weight.
Optionally, the weight calculation index may include a use case quality achievement rate index, and the calculation index weight may include a use case quality achievement rate index weight; determining the second weight from the calculated metric weight may include: and determining a second weight according to the case quality standard rate index weight.
The use case quality standard-reaching rate index can be an index calculated by taking the use case quality standard-reaching rate as weight. The example quality achievement rate index weight may be a weight obtained when the example quality achievement rate is used as an index of weight calculation.
Specifically, when the weight calculation index includes the use case quality achievement rate and the calculation index weight includes the use case quality achievement rate index weight, the second weight may be determined according to the use case quality achievement rate index weight. Optionally, the determining the second weight according to the use case quality achievement rate index weight may be determining the use case quality achievement rate index weight as the second weight.
S240, determining a case quality coefficient according to the reverse case rate, the case quality standard rate, the total number of the test cases, the first weight and the second weight.
The use case quality coefficient may be a coefficient for determining the use case quality of the current item.
In the embodiment of the invention, after the first weight corresponding to the reverse case rate and the second weight corresponding to the case quality standard rate are determined and the total number of the test cases corresponding to the current item is determined, the case quality coefficient can be further determined according to the reverse case rate, the case quality standard rate, the total number of the test cases, the first weight and the second weight.
Optionally, the use case quality coefficient may be determined based on the following formula:
Figure BDA0003912353590000131
wherein Q represents the case mass coefficient, lambda 1 Denotes a first weight, λ 2 Representing a second weight.
And S250, determining the quality of the use case of the current item according to the use case quality coefficient.
In the embodiment of the invention, after the case quality coefficient is determined according to the reverse case rate, the case quality standard rate, the total number of test cases, the first weight and the second weight, the case quality of the current item can be further determined according to the case quality coefficient. It can be understood that the larger the value of the use case quality coefficient, the higher the use case quality is. The smaller the value of the use case quality coefficient is, the lower the use case quality is. It can be understood that the smaller the reverse use rate is, the less reverse use case consideration is indicated, the worse the use case quality is, whereas the larger the reverse use rate is, the more reverse use case consideration is indicated, and the better the use case quality is. The quality standard-reaching rate of the use cases can reflect the quality condition of the test use cases of the whole project through the sample condition, and the higher the quality standard-reaching rate of the use cases is, the better the quality of the use cases of the project is.
For example, fig. 4 is an exemplary flowchart of a method for determining quality of use case provided by the second embodiment of the present invention, and as shown in fig. 4, the method specifically includes determining a reverse use-case rate of a current item, determining a standard rate of quality of use case, and performing weight distribution on the reverse use-case rate of quality of test use case and the standard rate of quality of sample use case by using an entropy method to obtain a quality index (that is, a use-case quality monitoring coefficient), so as to control quality of the test use case according to the quality index. Specifically, the step of determining the quality standard-reaching rate of the use cases comprises the steps of determining the complexity of function points (namely the complexity of the function modules) of each function module of the current project, randomly extracting the use cases according to the complexity weight proportion of the function points, determining whether the quality of the extracted use cases reaches the standard or not through expert review, and obtaining a result by dividing the standard-reaching quantity by the total quantity of the extracted samples, namely the quality standard-reaching rate of the use cases.
According to the technical scheme, the reverse case rate and the test cases are extracted from the projects, so that the independence of data is guaranteed, the weight value corresponding to the reverse case rate can be correspondingly changed according to different corresponding projects in the same period, and the method can be suitable for various projects; random sampling is carried out according to the sampling weight of the test case, so that the sample can reflect the integral condition of the test case to the maximum extent; sampling survey is carried out instead of full-scale inspection, so that the consumption of a large amount of human resources is saved; the two indexes of the reverse use case rate and the use case quality standard rate are combined, so that the problem of contradiction when the two indexes are concerned at the same time can be solved; if other indexes exist, a row of indexes can be added in the normalized matrix, and expansibility is achieved.
According to the technical scheme of the embodiment, the current item of the case quality to be determined, the reverse case rate and the case quality standard rate of the current item are determined, the first weight corresponding to the reverse case rate and the second weight corresponding to the case quality standard rate are determined, the total number of the test cases corresponding to the current item is determined, and the case quality coefficient is determined according to the reverse case rate, the case quality standard rate, the total number of the test cases, the first weight and the second weight, so that the case quality of the current item is determined according to the case quality coefficient.
EXAMPLE III
Fig. 5 is a schematic diagram of a use case quality determining apparatus according to a third embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a current item determination module 510, a calculation index determination module 520, and a use case quality determination module 530, wherein:
a current item determining module 510, configured to determine a current item of quality of a use case to be determined;
a calculation index determining module 520, configured to determine a reverse use case rate and a use case quality standard rate of the current project;
a use case quality determining module 530, configured to determine the use case quality of the current project according to the reverse use case rate and the use case quality achievement rate.
According to the technical scheme of the embodiment, the current item of the case quality to be determined is determined, the reverse case rate and the case quality standard rate of the current item are determined, and the case quality of the current item is determined according to the reverse case rate and the case quality standard rate.
Optionally, the calculation index determining module 520 may specifically be configured to: determining the number of reverse cases corresponding to the current project and the total number of test cases corresponding to the current project; and determining the reverse use case rate of the current project according to the number of the reverse use cases and the total number of the test cases.
Optionally, the calculation index determining module 520 may be further specifically configured to: determining a functional module corresponding to the current project and the complexity of the functional module; determining the use case sampling weight corresponding to each functional module according to the complexity of each functional module; according to the case sampling weight, performing case sampling on the test cases corresponding to the functional modules to obtain sampling test cases; determining the quality standard quantity of the sample test cases and the quantity of the sample test cases; and determining the quality standard-reaching rate of the use cases of the current project according to the quality standard-reaching quantity of the use cases and the quantity of the sampling test use cases.
Optionally, the use case quality determining module 530 may be specifically configured to: determining a first weight corresponding to a reverse case rate and a second weight corresponding to a case quality standard rate, and determining the total number of test cases corresponding to the current project; determining a case quality coefficient according to the reverse case rate, the case quality standard rate, the total number of test cases, the first weight and the second weight; and determining the quality of the use case of the current item according to the quality coefficient of the use case.
Optionally, the use case quality determining module 530 may be further configured to: acquiring a preset number of historical items, and determining calculation index data corresponding to weight calculation indexes of the historical items; calculating index data corresponding to the index according to the weight of each historical item, and determining the proportion of the calculated index corresponding to each historical item; determining a calculation index entropy value corresponding to the weight calculation index according to the proportion of each calculation index; determining the weight of the calculation index corresponding to the weight calculation index according to the entropy of the calculation index; and determining a first weight and a second weight according to the calculated index weight.
Optionally, the weight calculation index may include a reverse use-case rate index, and the calculation index weight may include a reverse use-case rate index weight; accordingly, the use case quality determining module 530 may be further configured to: and determining a first weight according to the reverse use case rate index weight.
Optionally, the weight calculation index may include a use case quality achievement rate index, and the calculation index weight may include a use case quality achievement rate index weight; accordingly, the use case quality determining module 530 may be further configured to: and determining a second weight according to the case quality standard rate index weight.
The case quality determining device provided by the embodiment of the invention can execute the case quality determining method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example four
FIG. 6 illustrates a schematic structural diagram of an electronic device 10 that may be used to implement an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as the use case quality determination method.
In some embodiments, the use case quality determination method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the use case quality determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the use case quality determination method in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for determining use case quality is characterized by comprising the following steps:
determining a current item of case quality to be determined;
determining the reverse use case rate and the use case quality standard reaching rate of the current project;
and determining the quality of the use case of the current project according to the reverse use case rate and the standard rate of the quality of the use case.
2. The method of claim 1, wherein the determining a reverse use-case rate of the current project comprises:
determining the number of reverse use cases corresponding to the current project and the total number of test use cases corresponding to the current project;
and determining the reverse use case rate of the current project according to the reverse use case number and the total number of the test cases.
3. The method of claim 1, wherein determining a use case quality achievement rate for the current project comprises:
determining a functional module corresponding to the current project and the complexity of the functional module;
determining a use case sampling weight corresponding to each functional module according to the complexity of each functional module;
according to the case sampling weight, performing case sampling on the test cases corresponding to the functional modules to obtain sampling test cases;
determining the quality standard quantity of the sample test cases and the quantity of the sample test cases;
and determining the quality standard-reaching rate of the use cases of the current project according to the quality standard-reaching quantity of the use cases and the quantity of the sampling test use cases.
4. The method of claim 1, wherein determining the use case quality for the current project based on the reverse use case rate and the use case quality achievement rate comprises:
determining a first weight corresponding to the reverse case rate and a second weight corresponding to the case quality standard rate, and determining the total number of test cases corresponding to the current project;
determining a case quality coefficient according to the reverse case rate, the case quality standard rate, the total number of the test cases, the first weight and the second weight;
and determining the use case quality of the current project according to the use case quality coefficient.
5. The method of claim 4, wherein the determining a first weight corresponding to the reverse use-case rate and a second weight corresponding to the quality of use-case achievement rate comprises:
acquiring a preset number of historical items, and determining calculation index data corresponding to the weight calculation indexes of the historical items;
calculating index data corresponding to the weight calculation index of each historical item, and determining the proportion of the calculation index corresponding to each historical item;
determining a calculation index entropy value corresponding to the weight calculation index according to the proportion of each calculation index;
determining the weight of the calculation index corresponding to the weight calculation index according to the entropy of the calculation index;
determining the first weight and the second weight according to the calculated index weight.
6. The method of claim 5, wherein the weight calculation metrics comprise reverse use-case rate metrics, and wherein the calculation metric weights comprise reverse use-case rate metric weights;
the determining the first weight according to the calculated metric weight comprises:
and determining the first weight according to the reverse use case rate index weight.
7. The method of claim 5, wherein the weight calculation indicator comprises a use case quality achievement rate indicator, and wherein the calculation indicator weight comprises a use case quality achievement rate indicator weight;
the determining the second weight according to the calculated metric weight comprises:
and determining the second weight according to the use case quality standard rate index weight.
8. A use case quality determination apparatus, comprising:
the current item determining module is used for determining the current item of the quality of the use case to be determined;
the calculation index determining module is used for determining the reverse use case rate and the use case quality standard rate of the current project;
and the use case quality determining module is used for determining the use case quality of the current project according to the reverse use case rate and the use case quality standard reaching rate.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the use case quality determination method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor to, when executed, implement the method for use case quality determination of any of claims 1-7.
CN202211326625.8A 2022-10-27 2022-10-27 Method and device for determining quality of use case, electronic equipment and storage medium Pending CN115576830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211326625.8A CN115576830A (en) 2022-10-27 2022-10-27 Method and device for determining quality of use case, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211326625.8A CN115576830A (en) 2022-10-27 2022-10-27 Method and device for determining quality of use case, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115576830A true CN115576830A (en) 2023-01-06

Family

ID=84587051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211326625.8A Pending CN115576830A (en) 2022-10-27 2022-10-27 Method and device for determining quality of use case, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115576830A (en)

Similar Documents

Publication Publication Date Title
CN114662953A (en) Internet of things equipment operation and maintenance method, device, equipment and medium
CN114841619A (en) State evaluation method and device for isolating switch, electronic equipment and medium
CN117593115A (en) Feature value determining method, device, equipment and medium of credit risk assessment model
CN117273450A (en) Power system risk assessment method, device, equipment and storage medium
CN115392715A (en) Power utilization data risk assessment method, device, equipment and storage medium
CN115576830A (en) Method and device for determining quality of use case, electronic equipment and storage medium
CN115375039A (en) Industrial equipment fault prediction method and device, electronic equipment and storage medium
CN115344495A (en) Data analysis method and device for batch task test, computer equipment and medium
CN114996930A (en) Modeling method and device, electronic equipment and storage medium
CN114676177A (en) Financial index determination method, device, equipment, medium and product
CN115098405B (en) Software product evaluation method and device, electronic equipment and storage medium
CN115291111B (en) Training method of battery rest time prediction model and rest time prediction method
CN117851208A (en) Chip evaluation method and device, electronic equipment and medium
CN114742153A (en) Power utilization behavior analysis method based on one graph of power distribution network
CN114443492A (en) Software testing method and device, electronic equipment and storage medium
CN117455684A (en) Data processing method, device, electronic equipment, storage medium and product
CN116258395A (en) Project monitoring scheme attribute weight generation method, project monitoring scheme generation method and device
CN116167519A (en) Monitoring amount prediction method, device, equipment and medium
CN114443490A (en) Software defect prediction method, device, equipment and storage medium
CN118033461A (en) Method and device for evaluating battery health state and electronic equipment
CN115905492A (en) Alarm information analysis method, device, equipment and medium
CN114490347A (en) Research and development efficiency index calculation method and device, electronic equipment and storage medium
CN115617676A (en) Method and device for determining software test range, electronic equipment and storage medium
CN117575419A (en) Assessment index determination method and device, electronic equipment and storage medium
CN114866437A (en) Node detection method, device, equipment 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