Software quality assessment method and device

By periodically evaluating the grade weight and expected score of software data items on a continuous timeline, the problem of timeliness and accuracy of software quality assessment in the existing technology is solved, and the consistency and objectivity of quality assessment before and after the software is launched are achieved. Ensures the continuous protection of software quality.

CN113342634BActive Publication Date: 2024-10-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202010135706.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-02
Publication Date
2024-10-18
Estimated Expiration
2040-03-02

AI Technical Summary

Technical Problem

In the existing technology, software quality can only be evaluated after the software testing work is completed, which cannot be done in a timely and effective manner. The evaluation results are inaccurate, and the evaluation methods at different stages in the software life cycle are not uniform and lack objectivity.

Method used

By periodically evaluating each data item in the software on a continuous timeline, calculating the actual score based on the grade weight and expected score, judging the software quality and issuing alarm information, ensuring the consistency and objectivity of the quality assessment before and after the software goes online. sex.

Benefits of technology

It achieves an effective, objective, accurate and continuous assessment of software quality, ensures the quality of the software before and after it goes online, and improves the reliability and uniformity of the assessment results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113342634B_ABST
    Figure CN113342634B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for software quality assessment, and relates to the field of computer technology. A specific implementation of the method includes: determining the grade weight of each first data item according to the grades of all first data items participating in the quality assessment within a preset period before and / or after the software to be assessed goes online; determining the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be assessed; evaluating the first data item of the software to be assessed within the preset period according to the actual score and the expected score of the first data item; and issuing an alarm message when the evaluation result is that the first data item has a quality defect. This implementation can periodically evaluate each data item in the software and / or the entire software on a continuous timeline, thereby effectively, objectively, accurately, and continuously evaluating the quality of the software, and ensuring the quality of the software before and after it goes online.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for software quality assessment. Background Art

[0002] The quality assurance work of software test engineers is only carried out after the software development engineers have completed the development and testing. The quality assurance work of software test engineers is only defined on the black box testing of functions, or on the basis of black box testing, adding automation testing related methods to verify the quality of the target system or function.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] (1) It can only be performed after the software testing work is completed, and it is impossible to evaluate the software quality in a timely and effective manner;

[0005] (2) Software quality assessment can only be performed at one point in time, and the assessment results are inaccurate;

[0006] (3) During the entire software life cycle, the evaluation methods for software quality are not unified at different stages, and the evaluation results lack objectivity. Summary of the invention

[0007] In view of this, an embodiment of the present invention provides a method and device for software quality assessment, which can periodically evaluate each data item in the software and / or the entire software on a continuous timeline, so as to effectively, objectively, accurately and continuously evaluate the software quality and ensure the quality of the software before and after it goes online.

[0008] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for software quality assessment is provided, comprising:

[0009] Determine the grade weight of each first data item according to the grades of all first data items that participate in the quality assessment within a preset period before and / or after the software to be assessed goes online;

[0010] Determine the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be evaluated;

[0011] According to the actual score and the expected score of the first data item, the first data item of the software to be evaluated within a preset period is evaluated; when the evaluation result shows that the first data item has a quality defect, an alarm message is issued.

[0012] Optionally, evaluating the first data item of the software to be evaluated within a preset period includes:

[0013] Determine whether the ratio of the actual score of the first data item to the expected score is less than a first threshold; if so, determine that the first data item of the software to be evaluated has quality defects within a preset period; otherwise, determine that the first data item of the software to be evaluated has no quality defects within the preset period.

[0014] Optionally, the method of the embodiment of the present invention also includes: evaluating the software to be evaluated within a preset period based on the number of first data items within the preset period, the actual score of each first data item, and the number of all second data items expected to participate in the quality assessment; when the evaluation result is that the software to be evaluated has quality defects, issuing an alarm message.

[0015] Optionally, evaluating the software to be evaluated within a preset period includes:

[0016] The sum of the actual scores of all the first data items is determined, and the ratio between the sum of the actual scores and the number of the second data items expected to participate in the quality assessment is used as the first assessment score:

[0017] Determine whether the first evaluation score is less than a second threshold; if so, determine that the software to be evaluated has quality defects within a preset period; otherwise, determine that the software to be evaluated has no quality defects within the preset period.

[0018] Optionally, after evaluating the software to be evaluated within a preset period, the method further includes: evaluating the software to be evaluated within multiple preset periods according to the evaluation results of the software to be evaluated within multiple preset periods before and / or after the software to be evaluated is launched; and issuing an alarm message when the evaluation result shows that the software to be evaluated has quality defects.

[0019] Optionally, evaluating the software to be evaluated within a plurality of preset periods includes:

[0020] Determine the sum of all first evaluation scores of the software to be evaluated within a plurality of preset periods, and take the ratio between the sum of all first evaluation scores and the number of preset periods as the second evaluation score:

[0021] Determine whether the second evaluation score is less than a third threshold; if so, determine that the software to be evaluated has quality defects within multiple preset periods; otherwise, determine that the software to be evaluated has no quality defects within multiple preset periods.

[0022] Optionally, after determining that the software to be evaluated has quality defects, the method further includes at least one of the following: checking the first data item in descending order of grade weight, modifying the first data item to participate in quality evaluation, and modifying the second data item expected to participate in quality evaluation.

[0023] According to a second aspect of an embodiment of the present invention, there is provided a device for software quality assessment, comprising:

[0024] A grade weight determination module determines the grade weight of each first data item according to the grades of all first data items that participate in the quality assessment within a preset period before and / or after the software to be assessed goes online;

[0025] An expected score determination module, which determines the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be evaluated;

[0026] The first quality evaluation module evaluates the first data item of the software to be evaluated within a preset period according to the actual score and the expected score of the first data item; when the evaluation result shows that the first data item has quality defects, an alarm message is issued.

[0027] Optionally, the first quality assessment module assesses the first data item of the software to be assessed within a preset period, including:

[0028] Determine whether the ratio of the actual score of the first data item to the expected score is less than a first threshold; if so, determine that the first data item of the software to be evaluated has quality defects within a preset period; otherwise, determine that the first data item of the software to be evaluated has no quality defects within the preset period.

[0029] Optionally, the device of the embodiment of the present invention also includes a second quality assessment module, which is used to: evaluate the software to be evaluated within a preset period based on the number of first data items within the preset period, the actual score of each first data item, and the number of all second data items expected to participate in the quality assessment; when the evaluation result is that the software to be evaluated has quality defects, an alarm message is issued.

[0030] Optionally, the second quality assessment module assesses the software to be assessed within a preset period, including:

[0031] The sum of the actual scores of all the first data items is determined, and the ratio between the sum of the actual scores and the number of the second data items expected to participate in the quality assessment is used as the first assessment score:

[0032] Determine whether the first evaluation score is less than a second threshold; if so, determine that the software to be evaluated has quality defects within a preset period; otherwise, determine that the software to be evaluated has no quality defects within the preset period.

[0033] Optionally, the device of the embodiment of the present invention also includes a third quality assessment module, which is used to: after the second quality assessment module evaluates the software to be evaluated within the preset period, evaluate the software to be evaluated within multiple preset periods according to the evaluation results of the software to be evaluated within multiple preset periods before and / or after the software to be evaluated goes online; when the evaluation result is that the software to be evaluated has quality defects, issue an alarm message.

[0034] Optionally, the third quality assessment module assesses the software to be assessed within a plurality of preset periods, including:

[0035] Determine the sum of all first evaluation scores of the software to be evaluated within a plurality of preset periods, and take the ratio between the sum of all first evaluation scores and the number of preset periods as the second evaluation score:

[0036] Determine whether the second evaluation score is less than a third threshold; if so, determine that the software to be evaluated has quality defects within multiple preset periods; otherwise, determine that the software to be evaluated has no quality defects within multiple preset periods.

[0037] Optionally, the device of the embodiment of the present invention also includes a troubleshooting module, which is used to perform at least one of the following after the second quality assessment module or the third quality assessment module determines that the software to be assessed has quality defects: troubleshooting the first data item in order of level weight from high to low, modifying the first data item participating in the quality assessment, and modifying the second data item expected to participate in the quality assessment.

[0038] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for software quality assessment, comprising:

[0039] one or more processors;

[0040] a storage device for storing one or more programs,

[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.

[0042] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.

[0043] An embodiment of the above invention has the following advantages or beneficial effects: the present invention transforms software quality assessment from a single time point to a continuous timeline, and periodically assesses each data item in the software and / or the entire software on the continuous timeline, and can effectively, objectively, accurately and continuously assess software quality, thereby ensuring the quality of the software before and after it goes online.

[0044] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0046] Figure 1 It is a schematic diagram of the main process of the method for software quality assessment according to an embodiment of the present invention;

[0047] Figure 2 is a schematic diagram of a software quality evaluation cycle in an embodiment of the present invention;

[0048] Figure 3 is a schematic diagram of a software quality assessment process in an optional embodiment of the present invention;

[0049] Figure 4 is a schematic diagram of main modules of a device for software quality assessment according to an embodiment of the present invention;

[0050] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0051] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0053] Black box testing: also known as functional testing, is a test to check whether each function can be used normally. In the test, the program is regarded as a black box that cannot be opened. Without considering the internal structure and internal characteristics of the program, the program interface is tested to check whether the program function is used normally according to the requirements specification and whether the program can properly receive input data and generate correct output information. Black box testing focuses on the external structure of the program, without considering the internal logical structure, and mainly tests the software interface and software functions.

[0054] White box testing: Coverage testing of the logic paths in the software by checking the internal logic structure of the software. Checkpoints are set up in different places of the program to check the status of the program to determine whether the actual running status is consistent with the expected status.

[0055] According to one aspect of an embodiment of the present invention, a method for evaluating software quality is provided.

[0056] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for software quality assessment according to an embodiment of the present invention. Figure 1 As shown, the method for software quality assessment includes: step S101, step S102, and step S103.

[0057] Step S101: Determine the grade weight of each first data item according to the grades of all first data items that participate in quality assessment within a preset period before and / or after the software to be assessed goes online.

[0058] The method for software quality assessment in the embodiment of the present invention can be applied to any period before and after the software is launched. Data items refer to data items that affect the quality of the software, and data items can be data results of various work contents that ensure the quality of the software in the workflow. For example, white box test coverage and pass rate, black box test coverage and pass rate, code specification compliance rate, etc. The first data item refers to the data item that actually participates in the quality assessment. The first data item can be selectively set according to the actual situation.

[0059] The level refers to the importance of the data item. The higher the level, the more significant the impact of the corresponding data item on the software quality. The level weight is the weight of the data item determined according to the level, and is an indicator that reflects the impact of the data item on the software quality.

[0060] For example, the level weight is calculated according to the following formula:

[0061]

[0062] Where W i represents the rank weight of the i-th first data item, L i represents the level of the i-th first data item, (L1+L2+…+L n ) represents the sum of the ranks of all first data items.

[0063] Step S102: Determine the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be evaluated.

[0064] For any first data item, the product of the grade weight of the first data item and the expected score of the software to be evaluated is taken as the expected score of the first data item, that is:

[0065] DFS=FS×W; FS represents the expected score of the software to be evaluated, DFS represents the expected score of the first data item, and W represents the grade weight of the first data item.

[0066] Step S103: evaluate the first data item of the software to be evaluated within a preset period according to the actual score and the expected score of the first data item; when the evaluation result shows that the first data item has a quality defect, issue an alarm message. The software can be repaired according to the alarm message.

[0067] The difference between the actual score and the expected score can reflect the quality of the first data item. When the difference between the actual score and the expected score is large, it indicates that the quality of the current first data item is low.

[0068] Optionally, the first data item of the software to be evaluated within a preset period is evaluated, including: determining whether the ratio of an actual score of the first data item to an expected score is less than a first threshold; if so, determining that the first data item of the software to be evaluated within the preset period has quality defects; otherwise, determining that the first data item of the software to be evaluated within the preset period has no quality defects.

[0069] By transforming software quality assessment from a single point in time to a continuous timeline, and periodically evaluating each data item in the software on a continuous timeline, the software quality can be evaluated effectively, objectively, accurately, and continuously to ensure the quality of the software before and after it goes online. Since the evaluation method of data items before and after the software goes online is consistent, the objectivity and uniformity of the evaluation results can be guaranteed, which facilitates comparative analysis. By introducing the diversity of data items into the software quality assessment process, the impact of the diversity of data items on the quality score is reflected, and the evaluation results are obtained comprehensively and accurately. The more data items are used to evaluate software quality, the more reliable and trustworthy the software quality evaluation results are.

[0070] The present invention can adjust the software evaluation work from a single testing stage to any stage of software engineering, and adjust the roles involved in software quality assurance from a single software testing engineer to any person involved in software engineering. For example, product managers need to be responsible for the quality of requirements and prototype design, and software development engineers need to be responsible for the quality of their own technical solutions.

[0071] Optionally, the method of the embodiment of the present invention further includes: evaluating the software to be evaluated within a preset period according to the number of first data items within a preset period, the actual score of each first data item, and the number of all second data items expected to participate in the quality evaluation; when the evaluation result is that the software to be evaluated has quality defects, issuing an alarm message. The software can be repaired according to the alarm message.

[0072] Optionally, evaluating the software to be evaluated within a preset period includes:

[0073] The sum of the actual scores of all the first data items is determined, and the ratio between the sum of the actual scores and the number of the second data items expected to participate in the quality assessment is used as the first assessment score:

[0074] Determine whether the first evaluation score is less than a second threshold; if so, determine that the software to be evaluated has quality defects within a preset period; otherwise, determine that the software to be evaluated has no quality defects within the preset period.

[0075] The calculation formula for the first assessment score is as follows:

[0076]

[0077] Where sg represents the first evaluation score of the software to be evaluated within a preset period, n represents the number of first data items, and DS i represents the actual score of the i-th first data item, and N represents the number of second data items expected to participate in quality assessment.

[0078] By evaluating the quality of the entire software based on the actual scores of multiple first data items within a cycle, the diversity of data items can be introduced into the software quality evaluation process, reflecting the impact of the diversity of data items on the quality score, and the evaluation results can be obtained comprehensively and accurately. The more data items are used to evaluate the quality of the software, the more reliable and trustworthy the evaluation results of the software quality are. The present invention transforms the software quality evaluation from a single time point to a continuous timeline, and periodically evaluates the entire software on a continuous timeline, which can effectively, objectively, accurately and continuously evaluate the software quality, and ensure the quality of the software before and after it goes online. Since the evaluation methods of the data items before and after the software goes online are consistent, the objectivity and uniformity of the evaluation results can be guaranteed, which is convenient for comparative analysis.

[0079] Optionally, after evaluating the software to be evaluated within a preset period, the method further includes: evaluating the software to be evaluated within multiple preset periods according to the evaluation results of the software to be evaluated within multiple preset periods before and / or after the software to be evaluated is launched; and issuing an alarm message when the evaluation result shows that the software to be evaluated has quality defects.

[0080] Figure 2 Schematic diagram of the software quality evaluation cycle in an embodiment of the present invention. Figure 2As shown in the figure, software may change at any point in time. The reason for the change may be the launch of new functions, system upgrades caused by the repair of known defects, or just the addition of test codes. In addition to changes in the software code itself, changes in the external environment will also affect the quality of the software. For example, when the network fluctuates, when there are problems with the server, when there are delays or errors in the upstream data that it depends on, etc., the quality of the software will be affected. Therefore, software quality is changing and continuous.

[0081] Optionally, evaluating the software to be evaluated within a plurality of preset periods includes:

[0082] Determine the sum of all first evaluation scores of the software to be evaluated within a plurality of preset periods, and take the ratio between the sum of all first evaluation scores and the number of preset periods as the second evaluation score:

[0083] Determine whether the second evaluation score is less than a third threshold; if so, determine that the software to be evaluated has quality defects within multiple preset periods; otherwise, determine that the software to be evaluated has no quality defects within multiple preset periods.

[0084] The calculation formula for the second assessment score is as follows:

[0085]

[0086] In the formula, SG represents the second evaluation score of the software to be evaluated within multiple preset cycles, T represents the number of cycles, and sg t It represents the first evaluation score of the software to be evaluated in the tth cycle.

[0087] This embodiment evaluates the software quality according to the data item scores within a plurality of preset periods, so that the evaluation result can be variable and continuous based on time.

[0088] After determining that the software to be evaluated has quality defects, the present invention may further include at least one of the following: checking the first data item in descending order of grade weight, modifying the first data item to be evaluated, and modifying the second data item to be evaluated. The modification of the data item may be addition, deletion, change of data item content, etc.

[0089] Figure 3 FIG. 1 is a schematic diagram of a software quality assessment process in an optional embodiment of the present invention. Figure 3As shown, before the software goes online, after the software requirements are proposed, the software product circular review, development design review, and test design review are carried out, and the software development is carried out after the review is passed. After the software development is completed, test evaluation is carried out for data items such as function, interface, compatibility, and performance. If there are quality defects, they are repaired and then the test evaluation is re-performed. If there are no quality defects, the code specification data items are further tested and evaluated. If there are quality defects, they are repaired and then the test evaluation is re-performed; otherwise, the code compliance data items are tested and evaluated. If there are quality defects, they are repaired and then the test evaluation is re-performed; otherwise, the evaluation score of the entire software is judged. If the evaluation score is less than the corresponding threshold, the defects in the software are repaired and then the test evaluation is re-performed. If it is not less than the corresponding threshold, it indicates that the software can be released and released online, and the software is released online. After going online, each data item and the entire software can be evaluated, exemplarily including: online system corresponding code branch unit test, online system corresponding code branch specification scanning, interface test script regression, etc. After going online, online defect statistics and online alarm statistics can be performed for subsequent analysis. After going online, the entire software can be evaluated based on the actual scores of each data item to determine the evaluation score. If the evaluation score is greater than or equal to the threshold, it means that the score meets the standard and the evaluation monitoring can continue; if the evaluation score is less than the threshold, it means that the score does not meet the standard, an alarm message is issued, the defects corresponding to the data item are repaired, and then the test evaluation steps before going online are re-executed.

[0090] The following combination Figure 3 The method for software quality assessment of an embodiment of the present invention is described in detail. In this example, the method for software quality assessment includes two parts, namely "before going online" and "after going online". In the "before going online" workflow, the set of data items expected to participate in the software quality scoring is {D1, D2, D3, D4, D5, D6, D7, D8, D9}, and the set of data items actually participating in the software quality scoring is {D1, D2, D3, D4, D7}. The description of each data item is as follows:

[0091] D1: product prototype design data items;

[0092] D2: Development and design data items;

[0093] D3: Test case design data items;

[0094] D4: Functional test data items;

[0095] D5: interface test data item;

[0096] D6: white box test data item;

[0097] D7: Code specification data item;

[0098] D8: compatibility test data item;

[0099] D9: Performance test data item.

[0100] Assume that the set of quality level values ​​is {1,2,3,4,5,6,7,8,9}, with a total of 9 quality levels. The quality level value of D1 is 2, the quality level value of D2 is 3, the quality level value of D3 is 5, the quality level of D7 is 2, and the quality level of D4 is 8. Then:

[0101] D1's grade weight

[0102] D2's grade weight

[0103] D3's level weight

[0104] D4's grade weight

[0105] D7's grade weight

[0106] In the workflow before going online, set the expected score of the software in each evaluation cycle sg max =100, the expected score of each data item is equal to DSF=FS×W. Then:

[0107] The expected score of D1 is 100×0.1=10.

[0108] The expected score of D2 is 100×0.15=15.

[0109] The expected score of D3 is 100×0.25=25.

[0110] The expected score of D4 is 100×0.4=40.

[0111] The expected score of D7 is 100×0.1=10.

[0112] Assuming that the actual scores of the data items involved in the software quality assessment before the launch are DS1=10, DS2=15, DS3=25, DS4=40, DS7=3, the software evaluation score is:

[0113]

[0114] Before the official launch, judge whether sg has reached the launch standard. For example, in the workflow before the actual launch, sg≥80 is required to go online. When the actual sg is less than 80, it is not allowed to go online. The reason for the failure to meet the sg standard must be found in the current workflow.

[0115] Taking the above scenario of sg≈51.67 as an example, the following problems may occur:

[0116] Problem (I): There are too many data items expected to be involved in the software quality assessment, and the quality assessment of the current online content does not require so many data items. According to the actual situation, the expected data items are adjusted to {D1, D2, D3, D4, D6, D7}, then:

[0117] sg rises.

[0118] Question (II): Some of the data items actually involved in the software quality assessment have too low scores, for example, DS7=3 is too low. D7 is the code specification data item. In actual application, the code should be required to fully comply with the specification. Once the non-standard code is put online, it may cause serious quality degradation in some unknown scenarios. Assume that after all the non-standard code in the online content is repaired, DS7=10. Then:

[0119] sg has exceeded the online threshold and is allowed to go online.

[0120] After the launch, it does not mean that the software quality assurance work is over. Because software quality is changing and continuous. Therefore, after the launch, the quality assurance work enters the stage of Figure 1 In the "post-launch" process in . In the post-launch workflow, the data items involved in the software quality assessment need to be adjusted according to the actual situation. Assume that the set of data items expected to participate in the software quality assessment is {D1, D2, D3, D4, D5, D6}, and the set of data items actually participating in the software quality assessment is {D1, D2, D3, D4, D5, D6}. The description of each data item is as follows:

[0121] D1: white box test data item;

[0122] D2: Code specification data item;

[0123] D3: interface test regression data item;

[0124] D4: Functional test regression data items;

[0125] D5: Online defect data item;

[0126] D6: Online alarm data item.

[0127] The quality levels of the above six data items are: D1's quality level is 2, D2's quality level is 3, D3's quality level is 4, D4's quality level is 5, D5's quality level is 9, and D6's quality level is 6. Then:

[0128] D1's grade weight

[0129] D2's grade weight

[0130] D3's level weight

[0131] D4's grade weight

[0132] D5's grade weight

[0133] D6 Grade Weight

[0134] Set the expected score of the software for each grading cycle sg max =100, according to the model DSF=FS×W with full marks for each data item, the expected score of data item D1 is calculated to be 100×0.07=7, the expected score of data item D2 is 100×0.10=10, the expected score of data item D3 is 100×0.14=14, the expected score of D4 is 100×0.17=17, the expected score of D5 is 100×0.31=31, and the expected score of D6 is 100×0.21=21.

[0135] Assuming that the data items in a certain online software quality evaluation cycle are actually divided equally into DS1=3, DS2=7, DS3=14, DS4=17, DS5=31, DS6=21, then the software quality score in this evaluation cycle is:

[0136]

[0137] Assume that in the next software quality evaluation cycle, a functional defect is found online, causing some functions to be unable to be used normally. At this time, the score DS5 of D5 will drop and the quality level of D5 will be very high, resulting in a significant drop in the software quality score sg. When sg does not meet the standard, an alarm message is issued to analyze the reasons for the drop in the software quality score and deal with it in time. After the processing is completed, it returns to the "before going online" workflow. The average quality score of multiple evaluation cycles represents the real software quality during this period.

[0138] In the present invention, whether it is the quality assessment process before going online or the quality assessment process after going online, the set of data items expected to participate in the software quality evaluation, the set of data items actually participating in the software quality evaluation, the set of quality grades, and the quality grades corresponding to each data item can all be set according to actual conditions and dynamically adjusted in different evaluation cycles.

[0139] The present invention conducts effective, objective, accurate and continuous quality evaluation of software by establishing a mathematical model that conforms to the objective characteristics of software quality, and provides an effective, reasonable and objective software quality assurance workflow through this method of establishing a mathematical model, thereby achieving the purpose of continuously ensuring software quality.

[0140] According to a second aspect of an embodiment of the present invention, a device for implementing the above method is provided.

[0141] Figure 4 is a schematic diagram of the main modules of the device for software quality assessment according to an embodiment of the present invention, such as Figure 4 As shown, the software quality assessment device 400 includes:

[0142] The grade weight determination module 401 determines the grade weight of each first data item according to the grades of all first data items that participate in the quality assessment within a preset period before and / or after the software to be assessed is launched;

[0143] An expected score determination module 402 determines the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be evaluated;

[0144] The first quality evaluation module 403 evaluates the first data item of the software to be evaluated within a preset period according to the actual score and the expected score of the first data item; when the evaluation result shows that the first data item has a quality defect, an alarm message is issued.

[0145] Optionally, the first quality assessment module assesses the first data item of the software to be assessed within a preset period, including:

[0146] Determine whether the ratio of the actual score of the first data item to the expected score is less than a first threshold; if so, determine that the first data item of the software to be evaluated has quality defects within a preset period; otherwise, determine that the first data item of the software to be evaluated has no quality defects within the preset period.

[0147] Optionally, the device of the embodiment of the present invention also includes a second quality assessment module, which is used to: evaluate the software to be evaluated within a preset period based on the number of first data items within the preset period, the actual score of each first data item, and the number of all second data items expected to participate in the quality assessment; when the evaluation result is that the software to be evaluated has quality defects, an alarm message is issued.

[0148] Optionally, the second quality assessment module assesses the software to be assessed within a preset period, including:

[0149] The sum of the actual scores of all the first data items is determined, and the ratio between the sum of the actual scores and the number of the second data items expected to participate in the quality assessment is used as the first assessment score:

[0150] Determine whether the first evaluation score is less than a second threshold; if so, determine that the software to be evaluated has quality defects within a preset period; otherwise, determine that the software to be evaluated has no quality defects within the preset period.

[0151] Optionally, the device of the embodiment of the present invention also includes a third quality assessment module, which is used to: after the second quality assessment module evaluates the software to be evaluated within the preset period, evaluate the software to be evaluated within multiple preset periods according to the evaluation results of the software to be evaluated within multiple preset periods before and / or after the software to be evaluated goes online; when the evaluation result is that the software to be evaluated has quality defects, issue an alarm message.

[0152] Optionally, the third quality assessment module assesses the software to be assessed within a plurality of preset periods, including:

[0153] Determine the sum of all first evaluation scores of the software to be evaluated within a plurality of preset periods, and take the ratio between the sum of all first evaluation scores and the number of preset periods as the second evaluation score:

[0154] Determine whether the second evaluation score is less than a third threshold; if so, determine that the software to be evaluated has quality defects within multiple preset periods; otherwise, determine that the software to be evaluated has no quality defects within multiple preset periods.

[0155] Optionally, the device of the embodiment of the present invention also includes a troubleshooting module, which is used to perform at least one of the following after the second quality assessment module or the third quality assessment module determines that the software to be assessed has quality defects: troubleshooting the first data item in order of level weight from high to low, modifying the first data item participating in the quality assessment, and modifying the second data item expected to participate in the quality assessment.

[0156] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for software quality assessment, comprising:

[0157] one or more processors;

[0158] a storage device for storing one or more programs,

[0159] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.

[0160] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.

[0161] Figure 5 An exemplary system architecture 500 is shown to which the method for software quality assessment or the apparatus for software quality assessment according to an embodiment of the present invention can be applied.

[0162] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0163] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0164] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0165] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0166] It should be noted that the software quality assessment method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the software quality assessment device is generally disposed in the server 505 .

[0167] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0168] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0169] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0170] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0171] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0172] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0173] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0174] The modules involved in the embodiments of the present invention can be implemented by software or hardware. The modules described can also be set in a processor, for example, it can be described as: a processor includes: a grade weight determination module, which determines the grade weight of each first data item according to the grades of all first data items participating in the quality assessment within a preset period before and / or after the software to be assessed goes online; an expected score determination module, which determines the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be assessed; a first quality assessment module, which evaluates the first data item of the software to be assessed within a preset period according to the actual score and expected score of the first data item; when the assessment result is that the first data item has a quality defect, an alarm message is issued. Among them, the names of these modules do not constitute a limitation on the module itself under certain circumstances. For example, the grade weight determination module can also be described as a "module for determining the expected score of each first data item".

[0175] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: determining the grade weight of each first data item according to the grades of all first data items participating in the quality assessment within a preset period before and / or after the software to be assessed goes online; determining the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be assessed; evaluating the first data item of the software to be assessed within the preset period according to the actual score and the expected score of the first data item; and issuing an alarm message when the assessment result shows that the first data item has a quality defect.

[0176] According to the technical solution of the embodiments of the present invention, the software quality assessment is transformed from a single time point to a continuous timeline, and each data item in the software and / or the entire software is periodically assessed on the continuous timeline, which can effectively, objectively, accurately and continuously assess the software quality, thereby ensuring the quality of the software before and after it goes online.

[0177] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for software quality assessment, characterized in that: include: Determine the grade weight of each first data item according to the grades of all first data items that participate in the quality assessment within a preset period before and / or after the software to be assessed goes online; the number of the preset periods is multiple; Determine the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be evaluated; According to the actual score and the expected score of the first data item, the first data item of the software to be evaluated within a preset period is evaluated; when the evaluation result shows that the first data item has a quality defect, an alarm message is issued; According to the number of first data items in a preset period, the actual score of each first data item, and the number of all second data items expected to participate in quality evaluation, the software to be evaluated in a preset period is evaluated; when the evaluation result shows that the software to be evaluated has quality defects, an alarm message is issued.

2. The method according to claim 1, characterized in that Evaluating the first data item of the software to be evaluated within a preset period includes: Determine whether the ratio of the actual score of the first data item to the expected score is less than a first threshold; if so, determine that the first data item of the software to be evaluated has quality defects within a preset period; otherwise, determine that the first data item of the software to be evaluated has no quality defects within the preset period.

3. The method according to claim 1, characterized in that Evaluate the software to be evaluated within the preset period, including: The sum of the actual scores of all the first data items is determined, and the ratio between the sum of the actual scores and the number of the second data items expected to participate in the quality assessment is used as the first assessment score: Determine whether the first evaluation score is less than a second threshold; if so, determine that the software to be evaluated has quality defects within a preset period; otherwise, determine that the software to be evaluated has no quality defects within the preset period.

4. The method according to claim 3, characterized in that After evaluating the software to be evaluated within the preset period, the method further includes: evaluating the software to be evaluated within multiple preset periods according to the evaluation results of the software to be evaluated within multiple preset periods before and / or after the software to be evaluated is launched; and issuing an alarm message when the evaluation result shows that the software to be evaluated has quality defects.

5. The method according to claim 4, characterized in that Evaluate the software to be evaluated within multiple preset periods, including: Determine the sum of all first evaluation scores of the software to be evaluated within a plurality of preset periods, and take the ratio between the sum of all first evaluation scores and the number of preset periods as the second evaluation score: Determine whether the second evaluation score is less than a third threshold; if so, determine that the software to be evaluated has quality defects within multiple preset periods; otherwise, determine that the software to be evaluated has no quality defects within multiple preset periods.

6. The method according to claim 1 or 4, characterized in that: After determining that the software to be evaluated has quality defects, the method further includes at least one of the following: checking the first data item in descending order of grade weight, modifying the first data item to be evaluated, and modifying the second data item to be evaluated.

7. A device for software quality assessment, characterized in that: include: A grade weight determination module determines the grade weight of each first data item according to the grades of all first data items that participate in the quality assessment within a preset period before and / or after the software to be assessed goes online, wherein the number of the preset periods is multiple; An expected score determination module, which determines the expected score of each first data item according to the grade weight of each first data item and the expected score of the software to be evaluated; A first quality assessment module is configured to assess the first data item of the software to be assessed within a preset period according to the actual score and the expected score of the first data item; and to issue an alarm message when the assessment result indicates that the first data item has a quality defect; The second quality assessment module assesses the software to be assessed within a preset period according to the number of first data items within the preset period, the actual score of each first data item, and the number of all second data items expected to participate in the quality assessment; and issues an alarm message when the assessment result shows that the software to be assessed has quality defects.

8. An electronic device for software quality assessment, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Software quality evaluation apparatus and software quality evaluation quantitative analysis method

    CN101261604A

  • Method and system for evaluating software quality

    CN105468512A

  • Software assessment method and apparatus

    CN108121656A

  • Visual-design-interface evaluation method and device and electronic equipment

    CN108170738A

  • A method for evaluating the quality of software development vendor delivery

    CN109146402A