CN114896152A - Test case processing method and device - Google Patents

Test case processing method and device Download PDF

Info

Publication number
CN114896152A
CN114896152A CN202210524240.6A CN202210524240A CN114896152A CN 114896152 A CN114896152 A CN 114896152A CN 202210524240 A CN202210524240 A CN 202210524240A CN 114896152 A CN114896152 A CN 114896152A
Authority
CN
China
Prior art keywords
target
test cases
preset
test case
numerical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210524240.6A
Other languages
Chinese (zh)
Inventor
党娜
刘洋
李�昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210524240.6A priority Critical patent/CN114896152A/en
Publication of CN114896152A publication Critical patent/CN114896152A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • G06N5/043Distributed expert systems; Blackboards

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a test case processing method and device, relates to the technical field of data processing, and can be used in the financial field or other technical fields. The method comprises the following steps: obtaining the number of test cases of the test cases to be evaluated; comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located; determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy. The device performs the above method. The test case processing method and the test case processing device provided by the embodiment of the invention can adopt corresponding processing strategies according to the number of the test cases in a targeted manner.

Description

Test case processing method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a test case processing method and device.
Background
At present, writing test cases is a very important task in test work.
The number of the test cases can reflect the completion quality of the test work to a certain degree, the number of the more reasonable test cases can be neither too large nor too small, and in addition, in order to ensure that the test work can be completed with high quality, corresponding counter measures need to be taken for the actually completed test cases urgently.
Disclosure of Invention
For solving the problems in the prior art, embodiments of the present invention provide a method and an apparatus for processing test cases, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a test case processing method, including:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
Wherein, obtaining the number of the standard test cases comprises:
acquiring test case information represented by a mind map;
processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information;
and the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules.
Determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, wherein the target processing strategy comprises the following steps:
and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved.
Determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, wherein the target processing strategy comprises the following steps:
if the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
Determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, wherein the target processing strategy comprises the following steps:
if the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
In one aspect, the present invention provides a test case processing apparatus, including:
the acquisition unit is used for acquiring the number of the test cases to be evaluated;
the comparison unit is used for comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
the execution unit is used for determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
Wherein the test case processing apparatus is further configured to:
acquiring test case information represented by a mind map;
processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information;
and the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules.
Wherein the execution unit is specifically configured to:
and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved.
Wherein the execution unit is specifically configured to:
if the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
Wherein the execution unit is specifically configured to:
if the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
In another aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following method when executing the computer program:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
An embodiment of the present invention provides a computer-readable storage medium, including:
the computer-readable storage medium stores a computer program which, when executed by a processor, implements a method comprising:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, the computer program implements the following method:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
According to the test case processing method and device provided by the embodiment of the invention, the number of test cases of the test cases to be evaluated is obtained; comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located; determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy, and the corresponding processing strategy can be adopted in a targeted manner according to the number of the test cases.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic flow chart of a test case processing method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a test case processing method according to another embodiment of the present invention.
Fig. 3 is a flowchart illustrating a test case processing method according to another embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a test case processing apparatus according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic flow chart of a test case processing method according to an embodiment of the present invention, and as shown in fig. 1, the test case processing method according to the embodiment of the present invention includes:
step S1: and obtaining the number of the test cases to be evaluated.
Step S2: and comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located.
Step S3: determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
In the above step S1, the apparatus acquires the number of test cases of the test cases to be evaluated. The apparatus may be a computer device or the like, e.g. a server, performing the method. According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations. After the test case is written by the tester, the written test case can be used as the test case to be evaluated.
And obtaining the number of the test cases by calculating the number of the test cases to be evaluated.
In the step S2, the device compares the number of test cases with the number of standard test cases obtained in advance to obtain a target value interval where the comparison result value is located. The standard test case number can be understood as the number of test cases as a comparison standard, and can be set autonomously by an expert with experience. The method can also be obtained by acquiring the number of the standard test cases, including:
acquiring test case information represented by a mind map; the thought chart is an Xmind chart, and the test case information can be fully and intuitively represented through the Xmind chart, and mainly comprises the content information of the test case.
The test case information which is approved by the tester can be used as the test case information which is represented by the thinking guide diagram, and the thinking guide diagram is input into the preset test case quantity prediction model.
Processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information; the output result of the prediction model of the preset number of test cases can be used as the number of the standard test cases.
And the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules. The description is as follows:
the prediction model of the number of the preset test cases can be realized based on an artificial intelligence technology, and is established by adopting an expert system, wherein the expert system comprises a knowledge base and an inference machine, the expert system learns test main points Xmind images serving as samples, learned expert rules are input into the knowledge base and are continuously optimized and adjusted in the using process, the inference machine is established by adopting a tree model mode, a thinking guide image representing the information of the test cases is input into the prediction model of the number of the preset test cases after learning, and the number of the standard test cases of the test cases is output by the inference machine.
The comparison result can be obtained by subtracting the number of the test cases from the number of the standard test cases.
It is understood that the number of test cases may be greater than the number of standard test cases, the number of test cases may be less than the number of standard test cases, and the number of test cases may be equal to the number of standard test cases.
And when the number of the test cases is less than the number of the standard test cases, the comparison result is a negative number.
In the step S3, the device determines a target processing policy to be executed on the test case to be evaluated according to the target value interval and a preset corresponding relationship, and executes the target processing policy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
The determining a target processing strategy executed on the test case to be evaluated according to the target value interval and the preset corresponding relation comprises the following steps:
and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved. The first value range can be set independently according to actual conditions, and can be selected as (-20, + 20).
If the target value interval is within the first value range, the difference between the number of the test cases and the number of the standard test cases is small, the number of the test cases for writing the test cases by a tester is reasonable, and the test cases can be approved.
If the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range. The second value range may be set autonomously according to actual conditions, and may be selected as (-50, + 50).
If the target value interval is (-50, -20) or (+20, +50), it indicates that the number of the test cases is greatly different from the number of the standard test cases, and the number of the test cases for the testers to write the test cases is not reasonable enough, and further case optimization processing is required.
If the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
If the target value interval is less than minus 50 or greater than plus 50, the difference between the number of the test cases and the number of the standard test cases is large, the number of the test cases for writing the test cases by testers is completely unreasonable, and the test cases need to be rewritten.
The test case processing method provided by the embodiment of the invention obtains the number of test cases to be evaluated; comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located; determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset numerical value interval and a preset processing strategy, and the corresponding processing strategy can be adopted in a targeted manner according to the number of the test cases.
Further, as shown in fig. 2, obtaining the number of the standard test cases includes:
s01: acquiring test case information represented by a mind map; reference is made to the above description and no further description is given.
S02: processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information;
and the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules. Reference is made to the above description and no further description is made.
Further, as shown in fig. 3, the determining a target processing policy to be executed on the test case to be evaluated according to the target value interval and a preset corresponding relationship includes:
s301: and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved. Reference is made to the above description and no further description is made.
Further, as shown in fig. 3, the determining a target processing policy to be executed on the test case to be evaluated according to the target value interval and a preset corresponding relationship includes:
s302: if the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range. Reference is made to the above description and no further description is made.
Further, as shown in fig. 3, the determining a target processing policy to be executed on the test case to be evaluated according to the target value interval and a preset corresponding relationship includes:
s303: if the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range. Reference is made to the above description and no further description is made.
It should be noted that the test case processing method provided by the embodiment of the present invention may be used in the financial field, and may also be used in any technical field other than the financial field.
Fig. 4 is a schematic structural diagram of a test case processing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the test case processing apparatus according to the embodiment of the present invention includes an obtaining unit 401, a comparing unit 402, and an executing unit 403, where:
the obtaining unit 401 is configured to obtain the number of test cases of the test cases to be evaluated; the comparison unit 402 is configured to compare the number of test cases with a pre-obtained number of standard test cases to obtain a target value interval where a comparison result value is located; the execution unit 403 is configured to determine a target processing policy to be executed on the test case to be evaluated according to the target value interval and a preset corresponding relationship, and execute the target processing policy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
Specifically, an obtaining unit 401 in the device is used for obtaining the number of test cases of the test cases to be evaluated; the comparison unit 402 is configured to compare the number of test cases with a pre-obtained number of standard test cases to obtain a target value interval where a comparison result value is located; the execution unit 403 is configured to determine a target processing policy to be executed on the test case to be evaluated according to the target value interval and a preset corresponding relationship, and execute the target processing policy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
The test case processing device provided by the embodiment of the invention obtains the number of test cases to be evaluated; comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located; determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy, and the corresponding processing strategy can be adopted in a targeted manner according to the number of the test cases.
Further, the test case processing apparatus is further configured to:
acquiring test case information represented by a mind map;
processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information;
and the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules.
Further, the execution unit 403 is specifically configured to:
and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved.
Further, the execution unit 403 is specifically configured to:
if the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
Further, the execution unit 403 is specifically configured to:
if the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
The embodiment of the test case processing apparatus provided in the embodiment of the present invention may be specifically used to execute the processing flows of the above method embodiments, and the functions of the embodiment are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present invention, and as shown in fig. 5, the computer device includes: a memory 501, a processor 502 and a computer program stored on the memory 501 and executable on the processor 502, the processor 502 implementing the following method when executing the computer program:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
The present embodiment discloses a computer program product comprising a computer program which, when executed by a processor, implements the method of:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relationship comprises a corresponding relationship between a preset numerical value interval and a preset processing strategy.
The present embodiments provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements a method of:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
In the embodiment of the invention, the number of test cases of the test cases to be evaluated is obtained; comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located; determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy, and the corresponding processing strategy can be adopted in a targeted manner according to the number of the test cases.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A test case processing method is characterized by comprising the following steps:
obtaining the number of test cases of the test cases to be evaluated;
comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation, and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
2. The test case handling method of claim 1, wherein obtaining the standard number of test cases comprises:
acquiring test case information represented by a mind map;
processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information;
and the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules.
3. The method for processing the test cases according to claim 1 or 2, wherein the determining a target processing strategy to be executed for the test case to be evaluated according to the target value interval and a preset corresponding relationship comprises:
and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved.
4. The method for processing the test cases according to claim 3, wherein the determining the target processing strategy to be executed on the test cases to be evaluated according to the target value interval and the preset corresponding relationship comprises:
if the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
5. The method for processing the test cases according to claim 4, wherein the determining the target processing strategy to be executed on the test cases to be evaluated according to the target value interval and the preset corresponding relationship comprises:
if the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
6. A test case handling apparatus, comprising:
the acquisition unit is used for acquiring the number of the test cases to be evaluated;
the comparison unit is used for comparing the number of the test cases with the number of the standard test cases obtained in advance to obtain a target value interval where the comparison result value is located;
the execution unit is used for determining a target processing strategy executed on the test case to be evaluated according to the target value interval and a preset corresponding relation and executing the target processing strategy; the preset corresponding relation comprises a corresponding relation between a preset value interval and a preset processing strategy.
7. The test case processing apparatus of claim 6, further configured to:
acquiring test case information represented by a mind map;
processing the mind map based on a preset test case quantity prediction model to obtain the quantity of standard test cases corresponding to the test case information;
and the preset test case quantity prediction model is obtained by optimizing an expert system according to the learned expert rules.
8. The test case processing apparatus of claim 6 or 7, wherein the execution unit is specifically configured to:
and if the target value interval is determined to be within the first value range, determining that the target processing strategy is approved.
9. The test case processing apparatus of claim 8, wherein the execution unit is specifically configured to:
if the target value interval is determined to be outside the first value range and within the second value range, determining the target processing strategy to be case optimization processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
10. The test case processing apparatus of claim 9, wherein the execution unit is specifically configured to:
if the target numerical value interval is determined to be outside a second numerical value range, determining the target processing strategy to be case rewriting processing; the lower numerical limit of the second numerical range is less than the lower numerical limit of the first numerical range, and the upper numerical limit of the second numerical range is greater than the upper numerical limit of the first numerical range.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 5.
13. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
CN202210524240.6A 2022-05-13 2022-05-13 Test case processing method and device Pending CN114896152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210524240.6A CN114896152A (en) 2022-05-13 2022-05-13 Test case processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210524240.6A CN114896152A (en) 2022-05-13 2022-05-13 Test case processing method and device

Publications (1)

Publication Number Publication Date
CN114896152A true CN114896152A (en) 2022-08-12

Family

ID=82721748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210524240.6A Pending CN114896152A (en) 2022-05-13 2022-05-13 Test case processing method and device

Country Status (1)

Country Link
CN (1) CN114896152A (en)

Similar Documents

Publication Publication Date Title
WO2019056720A1 (en) Automated test case management method and apparatus, device, and storage medium
CN113031983B (en) Intelligent software upgrading method and device based on deep reinforcement learning
CN105988930A (en) Test case generation method and device
CN110969200A (en) Image target detection model training method and device based on consistency negative sample
CN115205586A (en) Knowledge distillation-based multi-self-supervision task fusion method and device and storage medium
CN115170971A (en) Construction safety-oriented self-supervision monocular depth estimation transfer learning method and system
CN107818051B (en) Test case jump analysis method and device and server
CN114896152A (en) Test case processing method and device
CN112990461B (en) Method, device, computer equipment and storage medium for constructing neural network model
CN111462278A (en) Depth-based material sorting rendering method, medium, equipment and device
CN115510998A (en) Transaction abnormal value detection method and device
CN110533054B (en) Multi-mode self-adaptive machine learning method and device
CN112084117B (en) Test method and device
CN116361138A (en) Test method and test equipment
CN112036566A (en) Method and apparatus for feature selection using genetic algorithm
CN113703637A (en) Inspection task coding method and device, electronic equipment and computer storage medium
CN110033096B (en) State data generation method and system for reinforcement learning
CN112527631A (en) bug positioning method, system, electronic equipment and storage medium
CN112181951A (en) Heterogeneous database data migration method, device and equipment
CN117035122B (en) Reinforced learning model construction method and device, storage medium and electronic equipment
CN115509811B (en) Distributed storage data recovery method, system and cloud platform
JP7314723B2 (en) Image processing system and image processing program
CN110045985B (en) Targetlink model calibration parameter setting method, device, equipment and medium
CN113282288A (en) Method for controlling Flutter application to perform off-screen canvas rendering
CN116071252A (en) Efficient interactive point cloud offset correction method and system

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