CN115543774A - Automatic case measuring and calculating method - Google Patents

Automatic case measuring and calculating method Download PDF

Info

Publication number
CN115543774A
CN115543774A CN202210984176.XA CN202210984176A CN115543774A CN 115543774 A CN115543774 A CN 115543774A CN 202210984176 A CN202210984176 A CN 202210984176A CN 115543774 A CN115543774 A CN 115543774A
Authority
CN
China
Prior art keywords
strategy
case
node
expected standard
test 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.)
Granted
Application number
CN202210984176.XA
Other languages
Chinese (zh)
Other versions
CN115543774B (en
Inventor
陈建
黄建
付琦
何漪柔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Smart Co Ltd Beijing Technology Co ltd
Original Assignee
Smart Co Ltd Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Smart Co Ltd Beijing Technology Co ltd filed Critical Smart Co Ltd Beijing Technology Co ltd
Priority to CN202210984176.XA priority Critical patent/CN115543774B/en
Publication of CN115543774A publication Critical patent/CN115543774A/en
Application granted granted Critical
Publication of CN115543774B publication Critical patent/CN115543774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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/3692Test management for test results analysis

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 invention provides an automatic case measuring and calculating method, which comprises the following steps: configuring a policy variable or a variable combination; leading in a test case; setting an expected standard according to the configuration strategy variable or the variable combination; analyzing the test case according to the configuration strategy variables or the variable combinations to obtain case analysis results; and judging whether the test case meets the expected standard according to the case analysis result to obtain a case measurement and calculation result. According to the automatic generation method of the test cases, a plurality of test cases can be obtained according to the change strategy without human participation in adjustment, so that not only is the labor consumption saved, but also the error in the adjustment process is reduced, and different test cases can be accurately obtained.

Description

Automatic case measuring and calculating method
Technical Field
The invention relates to the technical field of automation, in particular to an automatic case measuring and calculating method.
Background
The current automated tests are relatively biased to the technical level, and from the service perspective, not only the decision result and the hit strategy code value output by the case are concerned, but also the passing rate of the regression test case after passing the new strategy and the hit or interception condition of each strategy node are concerned. This is a missing part of current systems. At present, in the prior art scheme, the variables in the test scheme are required to be sequentially and manually input and adjusted according to the change measurement, a large amount of manpower is consumed, a worker is required to provide work reward, and a work error is easy to occur in the manual work process.
Disclosure of Invention
The invention aims to provide an automatic case measuring and calculating method to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: an automatic case calculation method comprises the following steps:
configuring a policy variable or a variable combination;
leading in a test case;
setting an expected standard according to the configuration strategy variable or the variable combination;
analyzing the test case according to the configuration strategy variables or the variable combinations to obtain case analysis results;
and judging whether the test case meets the expected standard according to the case analysis result to obtain a case measurement and calculation result.
Further, analyzing the test case according to the configuration strategy variables or the variable combinations, including:
defining policy nodes in the policy variables or variable combinations;
acquiring data information of the test case at the strategy node;
respectively carrying out measurement and calculation analysis on the data information of the test case to obtain node measurement and calculation data information;
and obtaining a case analysis result according to the data information measured and calculated by the node.
Further, whether the test case meets the expected standard or not is judged according to the case analysis result, and judgment is respectively carried out on each strategy node, whether the node test data information of the strategy node meets the expected standard or not is determined, so that a node judgment result is obtained, and the strategy node passing rate of the test case is obtained by analyzing according to the node judgment result.
Further, when analyzing according to the node judgment result to obtain the policy node passing rate of the test case, the method includes: grouping analysis and overall analysis, wherein the grouping analysis is to classify the strategy nodes according to grouping rules to obtain a plurality of strategy node groups, match and divide the strategy node groups in the node judgment results to obtain a plurality of groups of node judgment results, determine the number of strategy nodes passing the node judgment results in the plurality of groups of node judgment results, and calculate the passing rate of each group of strategy node groups according to the number of strategy nodes passing the node judgment results; and the integral analysis is to directly acquire the number of strategy nodes with the node judgment result of passing aiming at all the node judgment results, and combine the number of the strategy nodes with the node judgment result of passing with the integral number of the strategy nodes to obtain the integral passing rate of the strategy nodes.
Further, when a case measurement and calculation result is obtained, adjustment is carried out according to the case measurement and calculation result, analysis and judgment are carried out on the test case again based on adjustment information after adjustment, and the strategy variables or variable combinations at the moment are exported and stored after the case measurement and calculation result meets the requirements for multiple times of circulation.
Further, the adjusting comprises: prospective standard adjustments and strategic variables or variable combination adjustments; wherein the expected standard adjustments comprise: analyzing the expected standard by combining the configuration strategy variables or the variable combinations, determining a feasible range of the expected standard, adjusting the expected standard within the feasible range of the expected standard to obtain a new expected standard, judging whether the test case meets the new expected standard according to the case analysis result, completing the adjustment process if the judgment result meets the new expected standard, adjusting the expected standard again within the feasible range of the expected standard if the judgment result does not meet the new expected standard, updating the new expected standard, and continuously judging whether the test case is updated according to the case analysis result until the judgment result meets the new expected standard or the expected standard within the feasible range of the expected standard can not enable the test case to meet the test case according to the case analysis result; the policy variable or variable combination adjustment comprises: and carrying out preliminary analysis on the overall passing rate of the strategy nodes, when the overall passing rate of the strategy nodes reaches an adjustment condition, analyzing the passing rate of the strategy node group to determine target adjustment strategy nodes, combining the current configuration strategy variables or variable combinations to form an adjustment scheme according to the target adjustment strategy nodes, adjusting the current configuration strategy variables or variable combinations through the adjustment scheme to obtain new strategy variables or variable combinations, and carrying out case automatic measurement and calculation on the introduced test cases again based on the new strategy variables or variable combinations.
Further, when the passing rate of the strategy nodes of the test case is obtained by analyzing according to the judgment result of the nodes, visual display is carried out according to the strategy nodes, the hit ratio and the interception ratio of the strategy nodes are obtained according to the passing rate of the strategy nodes, and the hit ratio and the interception ratio are presented together.
Further, when the hit ratio and the intercept ratio are presented together, presenting in a pie chart form, wherein the pie chart comprises: respectively determining the angles of corresponding fillet areas according to the hit ratio and the interception ratio; performing area division in an initialization pie chart substrate according to the angle, and determining the hit ratio and the interception ratio on a dividing line in the initialization pie chart substrate to obtain a first state pie chart; performing color rendering in the first state pie chart, and performing color filling on the hit ratio corresponding area and the interception ratio corresponding area by adopting different colors to obtain a second state pie chart; generating a three-dimensional image aiming at the second state pie chart, and raising the pie chart area corresponding to the hit ratio and the interception ratio to a preset height based on the second state pie chart to obtain a three-dimensional pie chart;
when adjustment is carried out, a three-dimensional pie chart is obtained according to data information during each adjustment, and the three-dimensional pie charts are combined together to obtain an overall analysis chart.
Further, when configuring the policy variables or variable combinations, a plurality of professionals respectively perform configuration, and then analyze and evaluate the configured policy variables or variable combinations for each professional to determine the final policy variables or variable combinations.
Further, when the test case is imported, the test case is imported through a data import system, and the data import system includes: acquiring a test case to be imported, performing characteristic analysis on the test case to be imported, and determining parameters of the test case to be imported; performing contract analysis in the parameters of the test case to be imported, judging whether an additional contract exists in the parameters, when the parameters do not have the additional contract, importing data according to a mapping import relation aiming at the parameters, when the parameters have the additional contract, preferentially considering the additional contract when the parameters are imported according to the mapping import relation, analyzing and judging whether the additional contract influences the data of the parameters, and if the additional contract influences the data of the parameters, importing the data of the parameters after the contract according to the additional contract.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram illustrating a step of the case automation measuring and calculating method according to the present invention;
fig. 2 is a schematic flow chart of the case automation measuring and calculating method according to the present invention;
fig. 3 is a schematic flow chart of another method for automatically measuring and calculating cases according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
As shown in fig. 1, an embodiment of the present invention provides an automatic case measurement method, including:
step one, configuring strategy variables or variable combinations;
step two, importing a test case;
thirdly, setting an expected standard according to the configuration strategy variables or the variable combination;
analyzing the test case according to the configuration strategy variables or the variable combination to obtain a case analysis result;
and fifthly, judging whether the test case meets the expected standard according to the case analysis result to obtain a case measurement and calculation result.
The technical scheme provides an automatic case measuring and calculating method, when the case is measured and calculated automatically, firstly, strategy variables or variable combinations are configured, then a test case is led in to obtain the test case needing to be measured and calculated, then an expected standard is determined, threshold setting is carried out according to the configured strategy variables or variable combinations to obtain the expected standard, then the test case is analyzed according to the configured strategy variables or variable combinations, data information analysis is carried out according to strategy nodes to obtain case analysis results, and then whether the test case meets the expected standard or not is judged according to the case analysis results to obtain case measuring and calculating results.
According to the technical scheme, automatic measurement and calculation are achieved for the test cases, measurement and calculation can be automatically performed for the introduced test cases, case test results are quickly obtained, and when analysis is performed for the test cases according to configuration strategy variables or variable combinations, data information analysis is performed according to strategy nodes, so that analysis time consumption can be effectively reduced, and measurement and calculation efficiency is improved.
In an embodiment of the present invention, analyzing the test case according to the configuration policy variable or the variable combination includes:
defining policy nodes in the policy variables or variable combinations;
acquiring data information of the test case at the strategy node;
respectively carrying out measurement and calculation analysis on the data information of the test case to obtain node measurement and calculation data information;
and obtaining a case analysis result according to the data information measured and calculated by the nodes.
According to the technical scheme, when whether the test case meets the expected standard or not is judged according to the case analysis result, and judgment is respectively carried out on each strategy node, firstly, which strategy nodes exist in strategy variables or variable combinations are determined, then, data information of the test case is obtained from the strategy nodes respectively, measurement and calculation analysis is carried out on the data information, and therefore node measurement and calculation data information is obtained, wherein the measurement and calculation analysis comprises information specification processing and information operation processing, and then, the node measurement and calculation data information of all strategy nodes is gathered together according to the node measurement and calculation data information to obtain a case analysis result.
According to the technical scheme, when the test case is analyzed, the strategy nodes are taken as research objects, the strategy nodes taken as the research objects can completely reflect the characteristics of the strategy variables or the variable combinations by determining the strategy nodes in the strategy variables or the variable combinations, the test case is comprehensively considered, and different strategy nodes can be simultaneously analyzed by respectively acquiring the data information of the test case from the strategy nodes, so that the analysis efficiency is effectively improved.
In an embodiment provided by the present invention, whether the test case meets the expected standard is determined according to the case analysis result, and each policy node is determined, so as to determine whether the node test data information of the policy node meets the expected standard, obtain a node determination result, and analyze according to the node determination result, so as to obtain the policy node passing rate of the test case.
In the technical scheme, in the process of respectively judging each strategy node according to the case analysis result and judging whether the test case meets the expected standard, firstly, whether the node test data information of the strategy node meets the expected standard is determined, so that a node judgment result is obtained, after the node judgment result is obtained, the passing rate analysis is also carried out on the strategy node, the number of the node test data information meeting the expected standard is determined according to the node judgment result, the proportion of the node test data information meeting the expected standard is further calculated in the strategy node, and the strategy node passing rate of the test case is obtained.
According to the technical scheme, the measurement and calculation conditions of the strategy variables or the variable combinations aiming at the test cases are reflected through the strategy node passing rate of the test cases, and further the evaluation of the strategy variables or the variable combinations is achieved.
In an embodiment provided by the present invention, when analyzing according to the node determination result to obtain the policy node passing rate of the test case, the method includes: grouping analysis and overall analysis, wherein the grouping analysis is to classify the strategy nodes according to grouping rules to obtain a plurality of strategy node groups, match and divide the strategy node groups in the node judgment results to obtain a plurality of groups of node judgment results, determine the number of strategy nodes passing the node judgment results in the plurality of groups of node judgment results, and calculate the passing rate of each group of strategy node groups according to the number of strategy nodes passing the node judgment results; and the integral analysis is to directly acquire the number of strategy nodes with the node judgment result of passing aiming at all the node judgment results, and combine the number of the strategy nodes with the node judgment result of passing with the integral number of the strategy nodes to obtain the integral passing rate of the strategy nodes.
According to the technical scheme, when the passing rate of the strategy nodes of the test case is obtained by analyzing according to the node judgment result, the method comprises two analysis modes, one is grouping analysis and the other is integral analysis, wherein the strategy nodes are firstly classified according to grouping rules when the grouping analysis is carried out to obtain a plurality of strategy node groups, the grouping rules can be grouping according to manual setting, or grouping according to the attributes of the strategy nodes, or grouping according to other classification attributes, then matching and dividing are carried out according to the strategy node groups in the node judgment result to obtain a plurality of groups of node judgment results, the number of the strategy nodes with the passing node judgment result is determined in the plurality of groups of node judgment results, and then the passing rate of each group of strategy node groups is obtained by combining the number of the strategy nodes with the total number of each group of strategy nodes according to the node judgment result; the overall analysis is to directly acquire the number of strategy nodes with the node judgment result of passing according to all the node judgment results, and combine the number of strategy nodes with the node judgment result of passing with the overall number of the strategy nodes to obtain the overall passing rate of the strategy nodes.
According to the technical scheme, through grouping analysis and overall analysis, not only can overall passing rate evaluation be carried out on all strategy nodes, but also passing rate analysis of part of strategy nodes can be realized, so that the overall effect of strategy variables or variable combinations can be determined, partial effects in the strategy variables or variable combinations can be obtained, the strategy variables or variable combinations can be more comprehensively reflected, and local adjustment can be conveniently carried out on the strategy variables or variable combinations.
In one embodiment provided by the invention, when the case measurement and calculation result is obtained, adjustment is carried out according to the case measurement and calculation result, the test case is analyzed and judged again based on the adjustment information after the adjustment, and the strategy variable or the variable combination at the moment is exported and stored after the case measurement and calculation result meets the requirement after circulation for many times.
According to the technical scheme, the adjustment is carried out according to the case measurement and calculation result when the case measurement and calculation result is obtained, the test case is analyzed and judged again based on the adjustment information after the adjustment, and the strategy variable or the variable combination at the moment is exported and stored after the case measurement and calculation result meets the requirements for multiple times of circulation.
According to the technical scheme, the strategy variables or variable combinations are optimized by adjusting according to the case measurement and calculation results, so that better strategy variables or variable combinations are stored, the test cases can be measured and calculated better, and the optimization effect of the strategy variables or variable combinations is improved through multiple cycles.
In one embodiment provided by the present invention, the adjusting comprises: prospective standard adjustments and strategic variables or variable combination adjustments; wherein the expected standard adjustments comprise: analyzing the expected standard by combining the configuration strategy variables or the variable combinations, determining a feasible range of the expected standard, adjusting the expected standard within the feasible range of the expected standard to obtain a new expected standard, judging whether the test case meets the new expected standard according to the case analysis result, completing the adjustment process if the judgment result meets the new expected standard, adjusting the expected standard again within the feasible range of the expected standard if the judgment result does not meet the new expected standard, updating the new expected standard, and continuously judging whether the test case is updated according to the case analysis result until the judgment result meets the new expected standard or the expected standard within the feasible range of the expected standard can not enable the test case to meet the test case according to the case analysis result; the policy variable or variable combination adjustment comprises: and carrying out preliminary analysis on the overall passing rate of the strategy nodes, when the overall passing rate of the strategy nodes reaches an adjustment condition, analyzing the passing rate of the strategy node group to determine target adjustment strategy nodes, combining the current configuration strategy variables or variable combinations to form an adjustment scheme according to the target adjustment strategy nodes, adjusting the current configuration strategy variables or variable combinations through the adjustment scheme to obtain new strategy variables or variable combinations, and carrying out case automatic measurement and calculation on the introduced test cases again based on the new strategy variables or variable combinations.
The above technical solution includes when adjusting: prospective standard adjustments and strategic variables or variable combination adjustments; the process of adjusting the expected standard is shown in fig. 2, the expected standard is analyzed by combining with configuration strategy variables or variable combinations, the feasible range of the expected standard is determined, the expected standard is adjusted in the feasible range of the expected standard to obtain a new expected standard, then whether the test case meets the new expected standard is judged according to the case analysis result, if the judgment result is that the test case meets the new expected standard, the adjustment process is completed, if the judgment result is that the test case does not meet the new expected standard, the test case is adjusted again in the feasible range of the expected standard, the new expected standard is updated, whether the test case is updated according to the case analysis result is judged, until the judgment result is that the test case meets the new expected standard or the expected standard in the feasible range of the expected standard cannot enable the test case to be judged to meet according to the case analysis result, wherein the test case is adjusted step by step according to a certain rule when the expected standard is adjusted again in the feasible range of the expected standard. When the adjustment is performed through the strategy variables or the variable combinations, as shown in fig. 3, firstly, a preliminary analysis is performed on the overall pass rate of the strategy nodes, when the overall pass rate of the strategy nodes reaches the adjustment condition, a target adjustment strategy node is determined by analyzing the pass rate of the strategy node group, then, an adjustment scheme is formed according to the target adjustment strategy node and the current configuration strategy variables or the variable combinations, then, the adjustment scheme is performed on the current configuration strategy variables or the variable combinations to obtain new strategy variables or variable combinations, and then, based on the new strategy variables or the variable combinations, case automation measurement and calculation are performed again on the introduced test cases.
According to the technical scheme, the expected standard can be adjusted within the feasible range of the expected standard corresponding to the current strategy variable or variable combination by adjusting the expected standard, the strategy variable or variable combination does not need to be adjusted, and the strategy variable or variable combination does not need to be configured again, so that the adjustment time consumption is reduced, and the gradual adjustment is carried out according to a certain rule when the expected standard is adjusted again within the feasible range of the expected standard, so that the adjustment disorder can be effectively avoided, the adjustment can be orderly carried out in a plurality of adjustment processes, and the repeated analysis on the same expected standard is avoided. By using the passing rate of the strategy points as the adjustment reference basis when the strategy variables or the variable combinations are adjusted, the strategy variables or the variable combinations can be better analyzed, and the entry points of the adjustment can be quickly found, so that the efficiency of the adjustment of the strategy variables or the variable combinations is improved.
In one embodiment of the invention, when the passing rate of the policy nodes of the test case is obtained by analyzing according to the node judgment result, the visual display is also carried out according to the policy nodes, the hit ratio and the interception ratio of the policy nodes are obtained according to the passing rate of the policy nodes, and the hit ratio and the interception ratio are presented together.
According to the technical scheme, when the passing rate of the strategy nodes of the test case is obtained through analysis according to the node judgment result, visual display is further carried out according to the strategy nodes, the hit ratio and the interception ratio of the strategy nodes are obtained according to the passing rate of the strategy nodes, and the hit ratio and the interception ratio are presented together.
According to the technical scheme, through visual display, related workers can know the detailed conditions of the strategy nodes corresponding to the strategy variables or the variable combinations in the automatic measuring and calculating process, so that the related workers can know the strategy variables or the variable combinations.
In an embodiment provided by the present invention, when presenting the hit ratio and the intercept ratio together, presenting in the form of a pie chart, the pie chart includes, when generating: respectively determining the angles of corresponding fillet areas according to the hit ratio and the interception ratio; performing area division in an initialization pie chart substrate according to the angle, and determining the hit ratio and the interception ratio on a dividing line in the initialization pie chart substrate to obtain a first state pie chart; performing color rendering in the first state pie chart, and performing color filling on the hit ratio corresponding area and the interception ratio corresponding area by adopting different colors to obtain a second state pie chart; generating a three-dimensional image aiming at the second state pie chart, and raising the pie chart area corresponding to the hit ratio and the interception ratio to a preset height based on the second state pie chart to obtain a three-dimensional pie chart;
when adjustment is carried out, a three-dimensional pie chart is obtained according to data information during each adjustment, and the three-dimensional pie charts are combined together to obtain an overall analysis chart.
The technical scheme presents the hit ratio and the interception ratio in a pie chart form when presenting the hit ratio and the interception ratio together, wherein the pie chart comprises the following steps of: respectively determining the angles of the corresponding fillet areas according to the hit ratio and the interception ratio; performing area division in the initialization pie chart substrate according to the angle, and determining hit ratio and intercepting dividing lines of the hit ratio in the initialization pie chart substrate to obtain a first state pie chart; performing color rendering in the first state pie chart, and performing color filling on the hit ratio corresponding area and the interception ratio corresponding area by adopting different colors to obtain a second state pie chart; generating a three-dimensional image aiming at the second state pie chart, and raising the pie chart area corresponding to the hit ratio and the interception ratio to a preset height based on the second state pie chart to obtain a three-dimensional pie chart; and when the adjustment is carried out, a three-dimensional pie chart is obtained according to the data information during each adjustment, so that a plurality of three-dimensional pie charts are obtained, and then the three-dimensional pie charts are integrated together according to the obtained sequence to obtain an integral analysis chart.
When different colors are adopted to fill colors in a hit proportion corresponding area and an interception proportion corresponding area, firstly, a color is randomly generated to serve as a first filling color, and color parameters R, G and B of the first filling color in an RGB color space are obtained;
the second fill color is then selected by the following formula:
Figure BDA0003801352500000121
wherein D is i A judgment value r representing the ith candidate second fill color i 、g i And b i A color parameter representing the ith candidate second fill color in the RGB color space,
then according to the judgment value D of the ith candidate second filling color i Determining a second alternative color;
Figure BDA0003801352500000122
and P represents a determination result, and in the determination result, the corresponding i is the final second candidate color.
According to the technical scheme, the hit ratio and the interception ratio are displayed in the same pie chart, so that the condition distribution of whether the strategy nodes corresponding to the configuration strategy variables or the variable combinations pass can be visually seen, the hit ratio and the interception ratio can be obviously distinguished through color rendering, and the pie chart is set to be in a three-dimensional state, so that the fluctuation of the hit ratio and the interception ratio can be clearly shown by integrating a plurality of obtained three-dimensional pie charts during adjustment, and the change in the adjustment process can be more clearly shown. In addition, through filling the colour according to first filling colour selection second and can avoid two colours to be close and produce the puzzlement phenomenon in vision, improve the difference between first filling colour and the second filling colour, promote visual effect.
In an embodiment of the present invention, when configuring the policy variables or the variable combinations, a plurality of professionals respectively perform configuration, and then analyze and evaluate the policy variables or the variable combinations configured by each professional to determine final policy variables or variable combinations.
According to the technical scheme, when strategy variables or variable combinations are configured, a plurality of professionals respectively configure the strategy variables or variable combinations, and then the strategy variables or variable combinations configured by each professional are analyzed and evaluated to determine the final strategy variables or variable combinations.
According to the technical scheme, the configuration of the strategy variables or the variable combinations can be ensured by respectively configuring the strategy variables or the variable combinations by a plurality of professionals, and after the plurality of professionals respectively configure the strategy variables or the variable combinations configured by each professional, the strategy variables or the variable combinations configured by each professional are analyzed and evaluated, so that the subjective influence of the professionals is reduced, and the configured strategy variables or the variable combinations can be more consistent with the test cases.
In an embodiment provided by the present invention, the test case is imported through a data import system, and the data import system includes: acquiring a test case to be imported, performing characteristic analysis on the test case to be imported, and determining parameters of the test case to be imported; performing contract analysis in the parameters of the test case to be imported, judging whether an additional contract exists in the parameters, when the parameters do not have the additional contract, importing data according to a mapping import relation aiming at the parameters, when the parameters have the additional contract, preferentially considering the additional contract when the parameters are imported according to the mapping import relation, analyzing and judging whether the additional contract influences the data of the parameters, and if the additional contract influences the data of the parameters, importing the data of the parameters after the contract according to the additional contract.
The technical scheme is that the test case is imported through a data import system when the test case is imported, and the data import system comprises the following steps of: acquiring a test case to be imported, performing characteristic analysis on the test case to be imported, and determining parameters of the test case to be imported; performing convention analysis in parameters of a test case to be imported, judging whether additional conventions exist in the parameters, importing data aiming at the parameters according to a mapping import relation when the parameters do not have the additional conventions, giving priority to the additional conventions when the parameters have the additional conventions and importing the data aiming at the parameters according to the mapping import relation, analyzing and judging whether the additional conventions influence the data of the parameters, and if the additional conventions influence the data of the parameters, importing the data of the constrained parameters after constraining the data of the parameters according to the additional conventions.
According to the technical scheme, the automatic import of the test case can be realized through the data import system, the parameters of the test case to be imported and the data of the parameters are not required to be manually input, the possibility of data import errors is reduced, the efficiency is high, and the additional conventions stored in the test case to be imported can be imported together through convention analysis in the parameters of the test case to be imported, so that the test case is more accurate during automatic case measurement and calculation, the automatic case measurement and calculation precision is improved, and the automatic case measurement and calculation errors are reduced.
It will be understood by those skilled in the art that the first and second embodiments of the present invention are merely directed to different stages of application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An automatic case measuring and calculating method is characterized by comprising the following steps:
configuring a policy variable or a variable combination;
leading in a test case;
setting an expected standard according to the configuration strategy variable or the variable combination;
analyzing the test case according to the configuration strategy variables or the variable combinations to obtain case analysis results;
and judging whether the test case meets the expected standard according to the case analysis result to obtain a case measurement and calculation result.
2. The case automated measurement and calculation method of claim 1, wherein analyzing the test cases according to the configuration strategy variables or variable combinations comprises:
defining policy nodes in the policy variables or variable combinations;
acquiring data information of the test case at the strategy node;
respectively carrying out measurement and calculation analysis on the data information of the test case to obtain node measurement and calculation data information;
and obtaining a case analysis result according to the data information measured and calculated by the nodes.
3. The automatic case measuring and calculating method as claimed in claim 2, wherein the case analysis result is used to determine whether the test case meets the expected standard, and the method further comprises determining whether the node test data information of the policy nodes meets the expected standard to obtain a node determination result, and analyzing the node determination result to obtain the passing rate of the policy nodes of the test case.
4. The automatic case calculation method according to claim 3, wherein when analyzing the node judgment result to obtain the policy node passing rate of the test case, the method comprises: grouping analysis and overall analysis, wherein the grouping analysis is to classify the strategy nodes according to grouping rules to obtain a plurality of strategy node groups, match and divide the strategy node groups in the node judgment results to obtain a plurality of groups of node judgment results, determine the number of strategy nodes passing the node judgment results in the plurality of groups of node judgment results, and calculate the passing rate of each group of strategy node groups according to the number of strategy nodes passing the node judgment results; and the integral analysis is to directly acquire the number of strategy nodes with the node judgment result of passing aiming at all the node judgment results, and combine the number of the strategy nodes with the node judgment result of passing with the integral number of the strategy nodes to obtain the integral passing rate of the strategy nodes.
5. The automatic case measuring and calculating method as claimed in claim 4, characterized in that adjustment is performed according to the case measuring and calculating results when the case measuring and calculating results are obtained, and analysis and judgment are performed again for the test case based on adjustment information after the adjustment, and the strategy variables or the variable combinations at this time are derived and stored after a plurality of cycles until the case measuring and calculating results meet requirements.
6. The case automated measurement and calculation method of claim 5, wherein the adjusting comprises: prospective standard adjustments and strategic variables or combinations of variables adjustments; wherein the expected standard adjustments comprise: analyzing the expected standard by combining the configuration strategy variables or the variable combinations, determining a feasible range of the expected standard, adjusting the expected standard within the feasible range of the expected standard to obtain a new expected standard, judging whether the test case meets the new expected standard according to the case analysis result, completing the adjustment process if the judgment result meets the new expected standard, adjusting the expected standard again within the feasible range of the expected standard if the judgment result does not meet the new expected standard, updating the new expected standard, and continuously judging whether the test case is updated according to the case analysis result until the judgment result meets the new expected standard or the expected standard within the feasible range of the expected standard can not enable the test case to meet the test case according to the case analysis result; the policy variable or variable combination adjustment comprises: and carrying out preliminary analysis on the overall passing rate of the strategy nodes, when the overall passing rate of the strategy nodes reaches an adjustment condition, analyzing the passing rate of the strategy node group to determine target adjustment strategy nodes, combining the current configuration strategy variables or variable combinations to form an adjustment scheme according to the target adjustment strategy nodes, adjusting the current configuration strategy variables or variable combinations through the adjustment scheme to obtain new strategy variables or variable combinations, and carrying out case automatic measurement and calculation on the introduced test cases again on the basis of the new strategy variables or variable combinations.
7. The automatic case measuring and calculating method according to claim 6, wherein the strategy node passing rate of the test case is obtained by analyzing according to the node judgment result, the visual display is further performed according to the strategy node, the hit ratio and the intercept ratio of the strategy node are obtained according to the passing rate of the strategy node, and the hit ratio and the intercept ratio are presented together.
8. The case automated measurement and calculation method according to claim 7, wherein the hit and intercept fractions are presented together in the form of a pie chart, and the pie chart comprises, when generated: respectively determining the angles of corresponding fillet areas according to the hit ratio and the interception ratio; performing area division in an initialization pie chart substrate according to the angle, and determining the hit ratio and the interception ratio on a dividing line in the initialization pie chart substrate to obtain a first state pie chart; performing color rendering in the first state pie chart, and performing color filling on the hit ratio corresponding area and the interception ratio corresponding area by adopting different colors to obtain a second state pie chart; generating a three-dimensional image aiming at the second state pie chart, and raising the pie chart area corresponding to the hit ratio and the interception ratio to a preset height based on the second state pie chart to obtain a three-dimensional pie chart;
when adjustment is carried out, a three-dimensional pie chart is obtained according to data information during each adjustment, and the three-dimensional pie charts are combined together to obtain an overall analysis chart.
9. The case automated measurement and calculation method according to claim 1, wherein the strategy variables or variable combinations are configured by a plurality of professionals, and then the strategy variables or variable combinations configured by each professional are analyzed and evaluated to determine final strategy variables or variable combinations.
10. The automatic case calculation method according to claim 1, wherein the test cases are imported by a data import system, and the data import system comprises: acquiring a test case to be imported, performing characteristic analysis on the test case to be imported, and determining parameters of the test case to be imported; performing contract analysis in the parameters of the test case to be imported, judging whether an additional contract exists in the parameters, when the parameters do not have the additional contract, importing data according to a mapping import relation aiming at the parameters, when the parameters have the additional contract, preferentially considering the additional contract when the parameters are imported according to the mapping import relation, analyzing and judging whether the additional contract influences the data of the parameters, and if the additional contract influences the data of the parameters, importing the data of the parameters after the contract according to the additional contract.
CN202210984176.XA 2022-08-17 2022-08-17 Case automation measuring and calculating method Active CN115543774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210984176.XA CN115543774B (en) 2022-08-17 2022-08-17 Case automation measuring and calculating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210984176.XA CN115543774B (en) 2022-08-17 2022-08-17 Case automation measuring and calculating method

Publications (2)

Publication Number Publication Date
CN115543774A true CN115543774A (en) 2022-12-30
CN115543774B CN115543774B (en) 2023-06-23

Family

ID=84726348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210984176.XA Active CN115543774B (en) 2022-08-17 2022-08-17 Case automation measuring and calculating method

Country Status (1)

Country Link
CN (1) CN115543774B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160320420A1 (en) * 2015-05-01 2016-11-03 Bio-Rad Laboratories, Inc. Using patient risk in analysis of quality control strategy for lab results
EP3672081A1 (en) * 2018-12-21 2020-06-24 Socionext Inc. Calibration of clock-controlled circuitry
CN112052170A (en) * 2020-09-03 2020-12-08 中国银行股份有限公司 Automatic detection method and device, storage medium and electronic equipment
CN113448860A (en) * 2021-07-09 2021-09-28 中国工商银行股份有限公司 Test case analysis method and device
CN114721959A (en) * 2022-04-19 2022-07-08 中国银行股份有限公司 Test information analysis method and device
CN114817034A (en) * 2022-04-26 2022-07-29 中国农业银行股份有限公司 Test quality analysis method and device and electronic equipment
CN114860608A (en) * 2022-05-26 2022-08-05 平安银行股份有限公司 Scene construction based system automation testing method, device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160320420A1 (en) * 2015-05-01 2016-11-03 Bio-Rad Laboratories, Inc. Using patient risk in analysis of quality control strategy for lab results
EP3672081A1 (en) * 2018-12-21 2020-06-24 Socionext Inc. Calibration of clock-controlled circuitry
CN112052170A (en) * 2020-09-03 2020-12-08 中国银行股份有限公司 Automatic detection method and device, storage medium and electronic equipment
CN113448860A (en) * 2021-07-09 2021-09-28 中国工商银行股份有限公司 Test case analysis method and device
CN114721959A (en) * 2022-04-19 2022-07-08 中国银行股份有限公司 Test information analysis method and device
CN114817034A (en) * 2022-04-26 2022-07-29 中国农业银行股份有限公司 Test quality analysis method and device and electronic equipment
CN114860608A (en) * 2022-05-26 2022-08-05 平安银行股份有限公司 Scene construction based system automation testing method, device, equipment and medium

Also Published As

Publication number Publication date
CN115543774B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
JP5940667B2 (en) A device for evaluating solutions to multi-criteria optimization problems.
US11789919B2 (en) Method and system for providing a clarity grade for a gem
Matkovic et al. Global contrast factor-a new approach to image contrast.
US9905027B2 (en) Pigment identification of complex coating mixtures with sparkle color
US10969952B2 (en) Color and texture match ratings for optimal match selection
US20080189081A1 (en) System and method for analyzing geometric deviations of a physical object
EP2887275A1 (en) Method and system for determining a color formula
CN105550938B (en) Method for testing abnormal value of county-area cultivated land quality evaluation result
JP2017508952A5 (en)
CN111145138B (en) Detection method, device and equipment for LED lamp panel and storage medium
TW201207380A (en) Apparatus and methods for setting up optical inspection parameters
CN106053024A (en) LED light source preference prediction method for monochromatic objects
CN109191386A (en) A kind of quick Gamma bearing calibration and device based on BPNN
CN115511788A (en) Method for automatic detection and modeling of motor vehicle driver examination field
CN115543774A (en) Automatic case measuring and calculating method
CN107110708A (en) Characteristic for determining quality of colour
US20080022239A1 (en) System and method for determining and visualizing tradeoffs between yield and performance in electrical circuit designs
US10935464B2 (en) Method for determining support points of a test plan
CN107527365A (en) A kind of method and device of dynamic calculation class circle object morphology diameter
CN110838101B (en) Image segmentation quality evaluation method based on edge characteristics
CN107830930B (en) Test method and test equipment for batch white backlight parts
KR20200067851A (en) Method and system for determining multiple color quality indicators for color control of paint
CN117555812B (en) Cloud platform automatic testing method and system
CN115546621B (en) Crop growth condition analysis method, device and application
CN112446561A (en) Advertisement design drawing quality detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant