CN115543774B - Case automation measuring and calculating method - Google Patents

Case automation measuring and calculating method Download PDF

Info

Publication number
CN115543774B
CN115543774B CN202210984176.XA CN202210984176A CN115543774B CN 115543774 B CN115543774 B CN 115543774B CN 202210984176 A CN202210984176 A CN 202210984176A CN 115543774 B CN115543774 B CN 115543774B
Authority
CN
China
Prior art keywords
strategy
case
node
variable
expected standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210984176.XA
Other languages
Chinese (zh)
Other versions
CN115543774A (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 a case automation measuring and calculating method, which comprises the following steps: configuring a policy variable or variable combination; importing a test case; setting expected standards according to the configuration strategy variables or variable combinations; analyzing the test cases according to the configuration strategy variables or variable combinations to obtain case analysis results; judging whether the test case accords with the expected standard according to the case analysis result to obtain a case calculation result. According to the automatic test case generation method, a plurality of test cases can be obtained according to the change strategy without artificial participation in adjustment, so that not only is the manpower consumption saved, but also errors in the adjustment process are changed to be low, and different test cases can be accurately obtained.

Description

Case automation measuring and calculating method
Technical Field
The invention relates to the technical field of automation, in particular to a case automation measuring and calculating method.
Background
The current automatic test is biased to the technical level, and from the service perspective, the passing rate of the regression test case after passing through the new strategy and the hit or interception condition of each strategy node are also concerned in addition to the decision result and the hit strategy code value of the case output. This is an absent part of the current system. At present, in the prior art, the input and adjustment are often needed to be sequentially and manually carried out according to the change measurement aiming at the variables in the test scheme, so that a great amount of labor is needed to be consumed, personnel are needed to provide working compensation, and working errors are easy to occur in the artificial working process.
Disclosure of Invention
The invention aims to provide a case automatic measuring and calculating method for solving the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: a case automation measurement method, comprising:
configuring a policy variable or variable combination;
importing a test case;
setting expected standards according to the configuration strategy variables or variable combinations;
analyzing the test cases according to the configuration strategy variables or variable combinations to obtain case analysis results;
judging whether the test case accords with the expected standard according to the case analysis result to obtain a case calculation result.
Further, analyzing the test cases according to the configuration policy variables or variable combinations 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 calculation analysis on the data information of the test cases to obtain node calculation data information;
and obtaining a case analysis result according to the node measuring and calculating data information.
Further, judging whether the test case accords with the expected standard according to the case analysis result, respectively judging each strategy node, determining whether node test data information of the strategy node accords with the expected standard, obtaining a node judgment result, and analyzing according to the node judgment result to obtain the strategy node passing rate of the test case.
Further, when the policy node passing rate of the test case is obtained by analyzing according to the node judgment result, 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 node judgment results according to the strategy node groups to obtain a plurality of groups of node judgment results, determine the number of strategy nodes passing through 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 through the node judgment results; and the overall analysis is to directly acquire the number of the strategy nodes passing through the node judgment result aiming at all the node judgment results, and combine the number of the strategy nodes passing through the node judgment result with the overall number of the strategy nodes to obtain the overall passing rate of the strategy nodes.
Further, when a case calculation result is obtained, adjustment is further performed according to the case calculation result, analysis and judgment are performed on the test case again based on adjustment information after adjustment, and policy variables or variable combinations at the moment are exported and stored after a plurality of loops until the case calculation result meets the requirement.
Further, the adjusting includes: expected standard adjustments and policy variables or variable combination adjustments; wherein the expected standard adjustment comprises: analyzing the expected standard in combination with the configuration strategy variable or variable combination, 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, if the test case meets the new expected standard, completing the adjustment process, if the test case does not meet the new expected standard, adjusting the expected standard again within the feasible range of the expected standard, updating the new expected standard, and continuing to judge whether the new expected standard after the test case is updated according to the case analysis result until the test case meets the new expected standard or the expected standard within the feasible range of the expected standard can not enable the test case to be judged according to the case analysis result; the policy variable or variable combination adjustment includes: and performing 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 and determining a target adjustment strategy node according to the passing rate of the strategy node group, forming an adjustment scheme by combining the current configuration strategy variable or variable combination according to the target adjustment strategy node, adjusting the current configuration strategy variable or variable combination according to the adjustment scheme to obtain a new strategy variable or variable combination, and re-performing case automatic measurement and calculation on the imported test case based on the new strategy variable or variable combination.
Further, when the policy node passing rate of the test case is obtained through analysis according to the node judgment result, the policy node passing rate is visually displayed, the hit ratio and the interception ratio of the policy node are obtained according to the policy node passing rate, and the hit ratio and the interception ratio are presented together.
Further, the hit and intercept ratios are presented together in the form of a pie chart, which when generated includes: determining the angle of the corresponding fillet area according to the hit ratio and the interception ratio; dividing the area in the initialized pie chart substrate according to the angle, and determining dividing lines of the hit ratio and the intercept ratio in the initialized pie chart substrate to obtain a first state pie chart; performing color rendering in the first state cake diagram, 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 cake diagram; generating a three-dimensional stereoscopic image aiming at the second state pie chart, and lifting the hit ratio and the intercept ratio corresponding pie chart area to a preset height based on the second state pie chart to obtain a stereoscopic pie chart;
and when the adjustment is carried out, a stereoscopic cake diagram is obtained aiming at the data information in each adjustment, and the stereoscopic cake diagrams are combined together to obtain an overall analysis diagram.
Further, when the strategy variables or variable combinations are configured, the final strategy variables or variable combinations are determined after analysis and evaluation are performed on the strategy variables or variable combinations configured by each professional after the strategy variables or variable combinations are configured by a plurality of professionals respectively.
Further, the test cases are imported through a data importing system, and the data importing system comprises: acquiring a test case to be imported, performing feature analysis on the test case to be imported, and determining parameters of the test case to be imported; and carrying out contract analysis in the parameters of the test cases to be imported, judging whether additional contracts exist in the parameters, carrying out data import on the parameters according to a mapping import relation when the additional contracts do not exist in the parameters, giving priority to the additional contracts when the data import is carried out on the parameters according to the mapping import relation when the additional contracts exist in the parameters, analyzing and judging whether the additional contracts influence the data of the parameters, and if the additional contracts influence the data of the parameters, carrying out constraint on the data of the parameters according to the additional contracts and then importing the constrained data of the parameters.
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 thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a schematic diagram of steps of a case automation measurement method according to the present invention;
fig. 2 is a schematic flow chart of a case automation measurement method according to the present invention;
fig. 3 is a schematic flow chart of a case automation measurement method according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
As shown in fig. 1, an embodiment of the present invention provides a case automation measurement method, including:
step one, configuring strategy variables or variable combinations;
step two, importing a test case;
setting expected standards according to the configuration strategy variables or variable combinations;
step four, analyzing the test cases according to the configuration strategy variables or variable combinations to obtain case analysis results;
and fifthly, judging whether the test case accords with the expected standard according to the case analysis result, and obtaining a case calculation result.
The technical scheme provides a case automation measuring and calculating method, when case automation measuring and calculating is carried out, policy variables or variable combinations are firstly configured, then test cases are imported to obtain test cases needing measuring and calculating, expected standards are then determined, threshold setting is carried out according to the configuration policy variables or variable combinations, so that expected standards are obtained, analysis is carried out on the test cases according to the configuration policy variables or variable combinations, data information analysis is carried out according to policy nodes, so that case analysis results are obtained, whether the test cases meet the expected standards is judged according to the case analysis results, and case measuring and calculating results are obtained.
According to the technical scheme, automatic measurement and calculation of the test cases are realized, the introduced test cases can be automatically measured and calculated, the case test results are quickly obtained, and when the test cases are analyzed according to the configuration strategy variables or variable combinations, the data information analysis is carried out according to the strategy nodes, so that the time consumed by the analysis can be effectively reduced, and the measurement and calculation efficiency is improved.
In one embodiment provided by the present invention, analyzing the test cases according to the configuration policy variables or variable combinations 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 calculation analysis on the data information of the test cases to obtain node calculation data information;
and obtaining a case analysis result according to the node measuring and calculating data information.
When judging whether the test case accords with the expected standard according to the case analysis result, judging each policy node respectively, firstly, determining which policy nodes exist in policy variables or variable combinations, then, respectively obtaining data information of the test case in the policy nodes, and carrying out calculation analysis on the data information to obtain node calculation data information, wherein the calculation analysis comprises information specification processing and information operation processing, and then, according to the node calculation data information, summarizing the node calculation data information of all the policy nodes to obtain a case analysis result.
According to the technical scheme, when the test cases are analyzed, the strategy nodes are taken as research objects, the strategy nodes serving as research objects can fully embody the characteristics of the strategy variables or the variable combinations through the strategy nodes in the clear strategy variables or the variable combinations, the test cases are comprehensively considered, and different strategy nodes can be simultaneously analyzed through respectively acquiring the data information of the test cases from the strategy nodes, so that the analysis efficiency is effectively improved.
In one embodiment provided by the invention, whether the test case accords with the expected standard is judged according to the case analysis result, judgment is respectively carried out for each strategy node, whether the node test data information of the strategy node accords with the expected standard is confirmed, a node judgment result is obtained, and the strategy node passing rate of the test case is obtained by analysis according to the node judgment result.
In the above technical scheme, in the process of respectively judging each policy node when judging whether the test case accords with the expected standard according to the case analysis result, firstly, whether the node test data information of the policy node accords with the expected standard is determined so as to obtain the node judgment result, and after the node judgment result is obtained, the passing rate analysis is also carried out on the policy node, the number of the node test data information accords with the expected standard is determined according to the node judgment result, and then the duty ratio of the node test data information accords with the expected standard is calculated in the policy node so as to obtain the policy node passing rate of the test case.
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, so that the evaluation of the strategy variables or the variable combinations is realized.
In one embodiment of the present invention, when analyzing 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 node judgment results according to the strategy node groups to obtain a plurality of groups of node judgment results, determine the number of strategy nodes passing through 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 through the node judgment results; and the overall analysis is to directly acquire the number of the strategy nodes passing through the node judgment result aiming at all the node judgment results, and combine the number of the strategy nodes passing through the node judgment result with the overall number of the strategy nodes to obtain the overall passing rate of the strategy nodes.
The technical scheme includes that when the policy node passing rate of the test case is obtained through analysis according to the node judgment result, the method comprises two analysis modes, namely grouping analysis and overall analysis, wherein the policy node is firstly classified according to grouping rules when the grouping analysis is carried out to obtain a plurality of policy node groups, grouping rules can be set manually or according to attributes of the policy nodes, or grouping can be carried out according to other classification attributes, then matching and dividing are carried out according to the policy node groups in the node judgment result to obtain a plurality of groups of node judgment results, the number of policy nodes passing through the node judgment result is determined in the plurality of groups of node judgment results, and then the passing rate of each group of policy node groups is calculated according to the number of policy nodes passing through the node judgment result and the total number of each group of policy nodes; and the overall analysis is to directly acquire the number of the strategy nodes with the node judgment result as passing aiming at all the node judgment results, and combine the number of the strategy nodes with the node judgment result as passing with the overall number of the strategy nodes to acquire the overall passing rate of the strategy nodes.
According to the technical scheme, through grouping analysis and overall analysis, not only can the overall pass rate evaluation be carried out on all the strategy nodes, but also the pass rate analysis of part of the strategy nodes can be realized, so that the overall effect of strategy variables or variable combinations can be clarified, the partial effect of the strategy variables or variable combinations can be obtained, the strategy variables or variable combinations can be comprehensively embodied, and the local adjustment is further facilitated on the strategy variables or variable combinations.
In one embodiment provided by the invention, the method is further adjusted according to the case measurement result when the case measurement result is obtained, analysis and judgment are carried out on the test case 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 a plurality of cycles until the case measurement result meets the requirement.
According to the technical scheme, the case calculation result is obtained, the adjustment is carried out according to the case calculation result, analysis and judgment are carried out on the test case 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 calculation result meets the requirement for a plurality of times.
According to the technical scheme, the strategy variables or variable combinations are optimized by adjusting according to the case calculation result, so that the better strategy variables or variable combinations are saved, the test cases can be 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 includes: expected standard adjustments and policy variables or variable combination adjustments; wherein the expected standard adjustment comprises: analyzing the expected standard in combination with the configuration strategy variable or variable combination, 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, if the test case meets the new expected standard, completing the adjustment process, if the test case does not meet the new expected standard, adjusting the expected standard again within the feasible range of the expected standard, updating the new expected standard, and continuing to judge whether the new expected standard after the test case is updated according to the case analysis result until the test case meets the new expected standard or the expected standard within the feasible range of the expected standard can not enable the test case to be judged according to the case analysis result; the policy variable or variable combination adjustment includes: and performing 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 and determining a target adjustment strategy node according to the passing rate of the strategy node group, forming an adjustment scheme by combining the current configuration strategy variable or variable combination according to the target adjustment strategy node, adjusting the current configuration strategy variable or variable combination according to the adjustment scheme to obtain a new strategy variable or variable combination, and re-performing case automatic measurement and calculation on the imported test case based on the new strategy variable or variable combination.
The technical scheme comprises the following steps of: expected standard adjustments and policy variables or variable combination adjustments; the process of adjusting the expected standard is shown in fig. 2, and the expected standard is combined with the configuration policy variable or variable combination to analyze, determine the feasible range of the expected standard, so as to adjust the expected standard within the feasible range of the expected standard to obtain a new expected standard, then determine whether the test case meets the new expected standard according to the case analysis result, if the determination result meets the new expected standard, the adjusting process is completed, if the determination result does not meet the new expected standard, adjust the expected standard again within the feasible range of the expected standard, update the new expected standard, and continue to determine whether the test case is updated according to the case analysis result to obtain a new expected standard until the determination result meets the new expected standard, or the expected standard within the feasible range of the expected standard cannot enable the test case to be determined 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 within the feasible range of the expected standard. When the strategy variables or variable combinations are adjusted, as shown in fig. 3, first, preliminary analysis is performed on the overall passing rate of the strategy nodes, when the overall passing rate of the strategy nodes reaches the adjustment condition, analysis is performed on the passing rate of the strategy node group to determine a target adjustment strategy node, then an adjustment scheme is formed by combining the current configuration strategy variables or variable combinations according to the target adjustment strategy node, then the current configuration strategy variables or variable combinations are adjusted through the adjustment scheme to obtain new strategy variables or variable combinations, and then case automatic measurement and calculation are performed again on the imported test cases based on the new strategy variables or variable combinations.
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, the strategy variable or variable combination is not required to be adjusted, and the strategy variable or variable combination configuration is not required to be carried out again, so that the adjustment time consumption is reduced, and the adjustment confusion can be effectively avoided by carrying out gradual adjustment according to a certain rule when the expected standard is adjusted again within the feasible range of the expected standard, so that the adjustment can be orderly carried out in sequence in a plurality of adjustment processes, and repeated analysis on the same expected standard is avoided. By using the passing rate of the strategy points as an adjustment reference basis when the strategy variables or the variable combination are adjusted, the analysis can be better conducted on the strategy variables or the variable combination, and the adjusted access points can be quickly found, so that the efficiency of adjusting the strategy variables or the variable combination is improved.
In one embodiment provided by the invention, when the policy node passing rate of the test case is obtained by analyzing according to the node judgment result, the policy node is visually displayed, the hit ratio and the interception ratio of the policy node are obtained according to the passing rate of the policy node, and the hit ratio and the interception ratio are presented together.
According to the technical scheme, when the policy node passing rate of the test case is obtained through analysis according to the node judging result, the visual display is carried out according to the policy node, the hit ratio and the interception ratio of the policy node are obtained according to the passing rate of the policy node, and the hit ratio and the interception ratio are presented together.
According to the technical scheme, through visual display, related staff can know the detailed condition of the strategy node corresponding to the strategy variable or the variable combination in the automatic measuring and calculating process, so that the related staff can know the strategy variable or the variable combination.
In one embodiment provided by the invention, the hit ratio and the intercept ratio are presented together in the form of a pie chart, and the pie chart comprises the following components in generation: determining the angle of the corresponding fillet area according to the hit ratio and the interception ratio; dividing the area in the initialized pie chart substrate according to the angle, and determining dividing lines of the hit ratio and the intercept ratio in the initialized pie chart substrate to obtain a first state pie chart; performing color rendering in the first state cake diagram, 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 cake diagram; generating a three-dimensional stereoscopic image aiming at the second state pie chart, and lifting the hit ratio and the intercept ratio corresponding pie chart area to a preset height based on the second state pie chart to obtain a stereoscopic pie chart;
and when the adjustment is carried out, a stereoscopic cake diagram is obtained aiming at the data information in each adjustment, and the stereoscopic cake diagrams are combined together to obtain an overall analysis diagram.
The technical scheme is that the hit ratio and the intercept ratio are presented in the form of a pie chart when presented together, and the pie chart comprises the following steps: determining angles of the corresponding fillet areas according to the hit ratio and the interception ratio respectively; dividing the area in the initialized pie chart substrate according to the angle, and definitely determining the hit ratio and the intercept ratio of the dividing line in the initialized pie chart substrate to obtain a first state pie chart; color rendering is carried out in the first state cake diagram, and different colors are adopted to carry out color filling on the hit proportion corresponding area and the interception proportion corresponding area, so that a second state cake diagram is obtained; generating a three-dimensional image aiming at the second state cake diagram, and lifting the hit ratio and the interception ratio corresponding cake diagram area to a preset height based on the second state cake diagram to obtain a three-dimensional cake diagram; and when the adjustment is carried out, a three-dimensional cake diagram is obtained aiming at the data information during each adjustment, so that a plurality of three-dimensional cake diagrams are obtained, and then the three-dimensional cake diagrams are integrated together according to the sequence to obtain an overall analysis diagram.
When different colors are adopted for carrying out color filling on the hit ratio corresponding area and the intercept ratio corresponding area, firstly, randomly generating one color as a first filling color, and acquiring color parameters R, G and B of the first filling color in an RGB color space;
the selection of the second fill color is then performed by the following formula:
Figure BDA0003801352500000121
wherein D is i A judgment value representing the i-th alternative second fill color, r i 、g i And b i Representing the color parameters of the i-th alternative second fill color in the RGB color space,
then according to the judgment value D of the ith alternative second filling color i Determining a second alternative color;
Figure BDA0003801352500000122
wherein, P represents the determination result, in which 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 whether the strategy nodes corresponding to the configuration strategy variables or the variable combinations pass through or not 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 a plurality of obtained three-dimensional pie charts can be integrated together when being adjusted, the hit ratio and the interception ratio can be clearly fluctuated, and therefore the change in the adjustment process can be clearly presented. In addition, by selecting the second filling color according to the first filling color, the phenomenon that two colors are similar to each other and are visually confused can be avoided, the difference between the first filling color and the second filling color is improved, and the visual effect is improved.
In one embodiment provided by the invention, when the strategy variables or variable combinations are configured, the final strategy variables or variable combinations are determined after analysis and evaluation of the strategy variables or variable combinations configured by each professional after the strategy variables or variable combinations are respectively configured by a plurality of professionals.
When the strategy variables or the variable combinations are configured, the strategy variables or the variable combinations configured by each professional are analyzed and evaluated after being respectively configured by a plurality of professionals, and the final strategy variables or the variable combinations are determined.
According to the technical scheme, the professionals can respectively configure the strategy variables or the variable combinations, and the strategy variables or the variable combinations configured by each professional are analyzed and evaluated after the professionals respectively configure the strategy variables or the variable combinations, so that subjective influence of the professionals is reduced, and meanwhile, the configured strategy variables or variable combinations are more consistent with test cases.
In one embodiment provided by the present invention, the test cases are imported by a data importing system, where the data importing system includes: acquiring a test case to be imported, performing feature analysis on the test case to be imported, and determining parameters of the test case to be imported; and carrying out contract analysis in the parameters of the test cases to be imported, judging whether additional contracts exist in the parameters, carrying out data import on the parameters according to a mapping import relation when the additional contracts do not exist in the parameters, giving priority to the additional contracts when the data import is carried out on the parameters according to the mapping import relation when the additional contracts exist in the parameters, analyzing and judging whether the additional contracts influence the data of the parameters, and if the additional contracts influence the data of the parameters, carrying out constraint on the data of the parameters according to the additional contracts and then importing the constrained data of the parameters.
The technical scheme is that the test case is imported through a data importing system when the test case is imported, and the data importing system comprises: acquiring a test case to be imported, carrying out feature analysis on the test case to be imported, and determining parameters of the test case to be imported; and carrying out contract analysis in the parameters of the test cases to be imported, judging whether additional contracts exist in the parameters, carrying out data import according to the mapping import relation when the additional contracts do not exist in the parameters, giving priority to the additional contracts when the data import is carried out according to the mapping import relation when the additional contracts exist in the parameters, analyzing and judging whether the additional contracts influence the data of the parameters, and if the additional contracts influence the data of the parameters, restricting the data of the parameters according to the additional contracts and importing the restricted data of the parameters.
According to the technical scheme, the automatic import of the test cases can be realized through the data import system, parameters of the test cases to be imported and data of the parameters do not need to be manually input, the possibility of errors in data import is reduced, the efficiency is high, and additional conventions stored in the test cases to be imported can be imported together through the convention analysis in the parameters of the test cases to be imported, so that the test cases are more accurate in case automatic calculation, the precision of case automatic calculation is improved, and the errors of case automatic calculation are reduced.
It will be appreciated by those skilled in the art that the first and second aspects of the present invention refer only to different phases 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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (7)

1. A case automation measurement method, characterized in that the case automation measurement method comprises:
configuring a policy variable or variable combination;
importing a test case;
setting expected standards according to the configuration strategy variables or variable combinations;
analyzing the test cases according to the configuration strategy variables or the variable combinations to obtain case analysis results, wherein the case analysis results comprise: defining policy nodes in the policy variables or variable combinations; acquiring data information of the test case at the strategy node; respectively carrying out calculation analysis on the data information of the test cases to obtain node calculation data information; obtaining a case analysis result according to the node measuring and calculating data information;
judging whether the test case accords with the expected standard according to the case analysis result, obtaining a case measuring and calculating result, respectively judging each strategy node when judging whether the test case accords with the expected standard according to the case analysis result, determining whether node test data information of the strategy node accords with the expected standard, obtaining a node judgment result, and analyzing according to the node judgment result to obtain the strategy node passing rate of the test case, wherein when analyzing according to the node judgment result to obtain the strategy node passing rate of the test case, the method comprises the following steps: 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 node judgment results according to the strategy node groups to obtain a plurality of groups of node judgment results, determine the number of strategy nodes passing through 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 through the node judgment results; and the overall analysis is to directly acquire the number of the strategy nodes passing through the node judgment result aiming at all the node judgment results, and combine the number of the strategy nodes passing through the node judgment result with the overall number of the strategy nodes to obtain the overall passing rate of the strategy nodes.
2. The case-based automatic measuring and calculating method according to claim 1, wherein the case-based measuring and calculating method is further adjusted according to the case-based measuring and calculating result when the case-based measuring and calculating result is obtained, and the test case is analyzed and judged again based on the adjustment information after the adjustment, and the strategy variable or the combination of variables at the moment is exported and stored after the case-based measuring and calculating result meets the requirement for a plurality of times.
3. The case automation measurement method of claim 2, wherein the adjusting comprises: expected standard adjustments and policy variables or variable combination adjustments; wherein the expected standard adjustment comprises: analyzing the expected standard in combination with the configuration strategy variable or variable combination, 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, if the test case meets the new expected standard, completing the adjustment process, if the test case does not meet the new expected standard, adjusting the expected standard again within the feasible range of the expected standard, updating the new expected standard, and continuing to judge whether the new expected standard after the test case is updated according to the case analysis result until the test case meets the new expected standard or the expected standard within the feasible range of the expected standard can not enable the test case to be judged according to the case analysis result; the policy variable or variable combination adjustment includes: and performing 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 and determining a target adjustment strategy node according to the passing rate of the strategy node group, forming an adjustment scheme by combining the current configuration strategy variable or variable combination according to the target adjustment strategy node, adjusting the current configuration strategy variable or variable combination according to the adjustment scheme to obtain a new strategy variable or variable combination, and re-performing case automatic measurement and calculation on the imported test case based on the new strategy variable or variable combination.
4. The case-based automatic measuring and calculating method according to claim 3, wherein when the policy node passing rate of the test case is obtained by analyzing according to the node judgment result, the policy node passing rate is visually displayed according to the policy node, the hit ratio and the intercept ratio of the policy node are obtained according to the policy node passing rate, and the hit ratio and the intercept ratio are presented together.
5. The case-automation measurement method of claim 4, wherein the hit and intercept ratios are presented together in the form of a pie chart, the pie chart when generated comprising: determining the angle of the corresponding fillet area according to the hit ratio and the interception ratio; dividing the area in the initialized pie chart substrate according to the angle, and determining dividing lines of the hit ratio and the intercept ratio in the initialized pie chart substrate to obtain a first state pie chart; performing color rendering in the first state cake diagram, 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 cake diagram; generating a three-dimensional stereoscopic image aiming at the second state pie chart, and lifting the hit ratio and the intercept ratio corresponding pie chart area to a preset height based on the second state pie chart to obtain a stereoscopic pie chart;
and when the adjustment is carried out, a stereoscopic cake diagram is obtained aiming at the data information in each adjustment, and the stereoscopic cake diagrams are combined together to obtain an overall analysis diagram.
6. The case automation measurement method of claim 1, wherein the configuration policy variables or variable combinations are analyzed and evaluated by a plurality of professionals after the configuration is performed respectively for each professional configured policy variable or variable combination, and then a final policy variable or variable combination is determined.
7. The case-based automated computing machinery of claim 1, wherein the importing the test case is performed by a data importing system, the data importing system comprising, when importing the test case: acquiring a test case to be imported, performing feature analysis on the test case to be imported, and determining parameters of the test case to be imported; and carrying out contract analysis in the parameters of the test cases to be imported, judging whether additional contracts exist in the parameters, carrying out data import on the parameters according to a mapping import relation when the additional contracts do not exist in the parameters, giving priority to the additional contracts when the data import is carried out on the parameters according to the mapping import relation when the additional contracts exist in the parameters, analyzing and judging whether the additional contracts influence the data of the parameters, and if the additional contracts influence the data of the parameters, carrying out constraint on the data of the parameters according to the additional contracts and then importing the constrained data of the parameters.
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 CN115543774A (en) 2022-12-30
CN115543774B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860608A (en) * 2022-05-26 2022-08-05 平安银行股份有限公司 Scene construction based system automation testing method, device, equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10161947B2 (en) * 2015-05-01 2018-12-25 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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115543774A (en) 2022-12-30

Similar Documents

Publication Publication Date Title
JP5940667B2 (en) A device for evaluating solutions to multi-criteria optimization problems.
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
CN103841401A (en) Apparatus and method for correcting depth map for three-dimensional image
CN105547325B (en) A kind of optical fiber based on K mean cluster is used to a group temperature model coefficient and determines method
CN101325648B (en) Color processing apparatus, color processing method
JP2017508952A5 (en)
Koster et al. On the robustness of optimal network designs
CN109063317B (en) Online cloud picture drawing method for cold-rolled strip shape
CN109191386A (en) A kind of quick Gamma bearing calibration and device based on BPNN
CN115543774B (en) Case automation measuring and calculating method
CN115311452A (en) Precise glue filling evaluation method and system based on machine vision
US7689952B2 (en) System and method for determining and visualizing tradeoffs between yield and performance in electrical circuit designs
CN114222101B (en) White balance adjusting method and device and electronic equipment
CN107958344A (en) A kind of power distribution network Development Strategy Analysis method based on AHP and SWOT
KR20220135246A (en) Estimation apparatus and method for estimating error factors
CN111680740A (en) Neural network training method and device and electrical load distinguishing method and device
CN104813148A (en) Method and apparatus for aligning measurements of color measurement instruments
CN113011220A (en) Spike number identification method and device, storage medium and processor
Neydorf et al. Improved bi-optimal hybrid approximation algorithm for monochrome multitone image processing
CN110838101B (en) Image segmentation quality evaluation method based on edge characteristics
CN110705875B (en) Method for calibrating weight of dyed yarn, method, device and equipment for determining weight of leader
CN116994515B (en) Quick gamma correction method based on gradient descent
CN114492195A (en) CAE model multi-parameter intelligent correction calculation method based on optimization algorithm
CN107274036A (en) A kind of determination method and system of optimal trend yield model

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