CN114218086A - Case testing method, device and equipment and readable storage medium - Google Patents

Case testing method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN114218086A
CN114218086A CN202111483968.0A CN202111483968A CN114218086A CN 114218086 A CN114218086 A CN 114218086A CN 202111483968 A CN202111483968 A CN 202111483968A CN 114218086 A CN114218086 A CN 114218086A
Authority
CN
China
Prior art keywords
case
result
test
testing
parameters
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
CN202111483968.0A
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.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp 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 China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202111483968.0A priority Critical patent/CN114218086A/en
Publication of CN114218086A publication Critical patent/CN114218086A/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/3676Test management for coverage analysis
    • 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/3688Test management for test execution, e.g. scheduling of test suites
    • 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)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a case testing method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a combination relation between at least two parameters and the parameters, wherein each parameter corresponds to a first value set, and the first value set comprises at least one value; obtaining test cases based on the combination relation among the parameters and the first value set corresponding to each parameter, and collecting all the test cases to obtain a test case set; and testing each test case in the test case set to obtain a case test result corresponding to each test case. According to the invention, the full-coverage test case is automatically generated by combining the plurality of pieces, the manual generation of the combined condition test case can be reduced, the problem of case omission in manual writing is avoided, all condition cases are automatically traversed through the interface, the full-coverage test can be fully achieved, the manual test omission is avoided, and the manual test cost is high.

Description

Case testing method, device and equipment and readable storage medium
Technical Field
The invention relates to the technical field of testing, in particular to a case testing method, a case testing device, case testing equipment and a readable storage medium.
Background
Currently, a plurality of condition combination tests are frequently encountered in practical projects, and the combination examples may involve more than 300 or 400, and the front-end manual full-coverage test or sampling test is mainly passed. However, the method of the front-end manual full coverage test has extremely low test efficiency and high labor cost; the method has the condition of missing test through sampling test, and for important scenes, defects may exist, and no full-coverage test exists, so the loss is caused by online test.
Disclosure of Invention
The present invention is directed to a case testing method, apparatus, device and readable storage medium to solve the above problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides a case testing method, where the method includes:
acquiring a combination relation between at least two parameters and the parameters, wherein each parameter corresponds to a first value set, and the first value set comprises at least one value;
obtaining test cases based on the combination relation among the parameters and the first value set corresponding to each parameter, and collecting all the test cases to obtain a test case set;
and testing each test case in the test case set to obtain a case test result corresponding to each test case.
Optionally, obtaining a test case based on the combination relationship between the parameters and the first value set corresponding to each parameter includes:
and analyzing the combination relation among the parameters, if the combination relation among the parameters is a positive relation, respectively taking one value from each first value set, and collecting all the taken values and the parameters corresponding to the values to obtain the test case.
Optionally, obtaining a test case based on the combination relationship between the parameters and the first value set corresponding to each parameter includes:
analyzing the combination relation among the parameters, and if the combination relation among the parameters is an OR relation, adding a numerical value representing a null value into the first numerical value set corresponding to each parameter;
defining the first set of values after adding the value representing the null value as a second set of values;
and taking a numerical value in each second numerical value set, and collecting all the taken numerical values and the corresponding parameters to obtain the test case.
Optionally, the testing each test case in the test case set to obtain a case test result corresponding to each test case includes:
testing the test case to obtain a first result;
acquiring an analysis result of the test case input by a worker, and defining the analysis result as a second result;
and comparing whether the first result is consistent with the second result to obtain a case test result, wherein if the first result is consistent with the second result, the case test result is successful, and if the first result is inconsistent with the second result, the case test result is failed.
Optionally, the testing each test case in the test case set to obtain a case test result corresponding to each test case includes:
testing the test case to obtain a first result;
analyzing the test case according to the business logic relation among the parameters to obtain a second result;
and comparing whether the first result is consistent with the second result to obtain a case test result, wherein if the first result is consistent with the second result, the case test result is successful, and if the first result is inconsistent with the second result, the case test result is failed.
Optionally, after the testing is performed on each test case in the test case set to obtain a case test result corresponding to each test case, the method further includes:
performing statistical analysis on all test case results to obtain a test result analysis report;
and displaying the test result analysis report on a display interface and sending the test result analysis to a test person mailbox for helping the test person to analyze the problems in the test process.
In a second aspect, an embodiment of the present application provides a case testing apparatus, which includes an obtaining module, an assembling module, and a testing module.
The obtaining module is configured to obtain at least two parameters and a combination relationship between the parameters, where each parameter corresponds to a first value set, and the first value set includes at least one value;
the collection module is used for obtaining test cases based on the combination relation among the parameters and the first value collection corresponding to each parameter, and collecting all the test cases to obtain a test case collection;
the test module is used for testing each test case in the test case set to obtain a case test result corresponding to each test case.
Optionally, the aggregation module includes:
the first set unit is used for analyzing the combination relationship among the parameters, if the combination relationship among the parameters is a positive relationship, one value is taken from each first value set, and all the taken values and the parameters corresponding to the values are set to obtain the test case.
Optionally, the aggregation module includes:
the first analysis unit is used for analyzing the combination relationship among the parameters, and if the combination relationship among the parameters is an OR relationship, a numerical value representing a null value is added to the first numerical value set corresponding to each parameter;
a defining unit, configured to define the first value set to which the value representing the null value is added as a second value set;
and the second set unit is used for taking a numerical value in each second numerical value set and collecting all the taken numerical values and the parameters corresponding to the numerical values to obtain the test case.
Optionally, the test module includes:
the first test unit is used for testing the test case to obtain a first result;
the acquisition unit is used for acquiring an analysis result of the test case input by a worker, and defining the analysis result as a second result;
and the first comparing unit is used for comparing whether the first result is consistent with the second result to obtain the case testing result, wherein if the first result is consistent with the second result, the case testing result is successful, and if the first result is inconsistent with the second result, the case testing result is failed.
Optionally, the test module includes:
the second testing unit is used for testing the testing case to obtain a first result;
the second analysis unit is used for analyzing the test case according to the business logic relationship among the parameters to obtain a second result;
and the second comparison unit is used for comparing whether the first result is consistent with the second result to obtain the case test result, wherein if the first result is consistent with the second result, the case test result is successful, and if the first result is inconsistent with the second result, the case test result is failed.
Optionally, the apparatus further includes:
the statistical module is used for performing statistical analysis on all test case results to obtain a test result analysis report;
and the sending module is used for displaying the test result analysis report on a display interface and sending the test result analysis to a test person mailbox for helping the test person analyze the problems in the test process.
In a third aspect, an embodiment of the present application provides a case testing method apparatus, which includes a memory and a processor. The memory is used for storing a computer program; the processor is used for implementing the steps of the case testing method when executing the computer program.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the case testing method described above.
The invention has the beneficial effects that:
according to the invention, the full-coverage test cases are automatically generated by combining a plurality of pieces, so that the manual generation of the combined condition test cases can be reduced, the problem of case omission in manual writing is avoided, all condition cases are automatically traversed through the interface, full-coverage test can be fully achieved, and manual test omission and high manual test cost are avoided; meanwhile, the test method and the configuration can be used in many combined condition test scenarios.
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 the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic flow chart of a case testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a case testing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of case testing equipment 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 clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a case testing method, which includes step S1, step S2, and step S3.
Step S1, acquiring a combination relation between at least two parameters and the parameters, wherein each parameter corresponds to a first value set, and the first value set comprises at least one value;
step S2, obtaining test cases based on the combination relation among the parameters and the first value set corresponding to each parameter, and collecting all the test cases to obtain a test case set;
and step S3, testing each test case in the test case set to obtain a case test result corresponding to each test case.
In this embodiment, for example, there are three parameters, the first parameter is the age of the client, the second parameter is the deposit of the client, the third parameter is whether the client has work, the values corresponding to the first parameter are, for example, 30, 40, and 50, the values corresponding to the second parameter are, for example, 30000, 40000, and 50000, the values corresponding to the third parameter are, for example, 1 and 2, where a value 1 represents work, and a value 2 represents no work; the number of the numerical values corresponding to each parameter can be customized according to the requirements of users and different application scenes;
if the combination relationship among the three parameters is a positive relationship, then each of the three parameters is combined by taking a value, specifically, each of the three parameters is combined by taking a value in the age (30, 40, 50) of the customer, the deposit (30000, 40000, 50000) of the customer, and whether the customer has work (1, 2), for example: if 30 is taken from the age of the client, 30000 is taken from the deposit of the client, and 1 is taken from the work of the client, the combined test cases are as follows: (age of customer 30, customer deposit 30000, whether customer has work 1); in this embodiment, all combinations of numerical values are combined to obtain all test cases, where the first parameter corresponds to 3 numerical values, the second parameter corresponds to 3 numerical values, and the second parameter corresponds to 2 numerical values, so that the total combinations of numerical values include 3 × 3 × 2 — 18, and there are 18 combinations of numerical values, that is, 18 test cases; and then automatically testing the 18 test cases to obtain the test result of each test case.
If the combination relationship between the three parameters is an or relationship, then a value representing a null value is added to each of the three sets of values, which may be customized according to the needs of the user, for example, symbols such as @, & and the like may be used to represent the null value, or a value 0 may be used to represent the null value, for example, in this embodiment, a value 0 is used to represent the null value, and then the value set corresponding to each parameter after adding the null value is: the ages (30, 40, 50 and 0) of the customers, the deposits (30000, 40000, 50000 and 0) of the customers and whether the customers work or not (1, 2 and 0) are determined, then one value is taken from each value set according to the method to be combined to obtain all test cases, and then the test cases are tested to obtain the test result of each test case.
In this embodiment, different combinations of the values corresponding to the parameters may be performed according to the "and" or "relationship to obtain a plurality of test cases, and then all the test cases are automatically tested. The method has the advantages that the full-coverage test cases are automatically generated by combining a plurality of pieces, the manual generation of the combined condition test cases can be reduced, the problem of case omission in manual writing is avoided, all condition cases are automatically traversed through the interface, full-coverage test can be fully achieved, manual test omission is avoided, and the manual test cost is high; meanwhile, the test method and the configuration can be used in many combined condition test scenarios.
In a specific embodiment of the present disclosure, the step S2 may further include a step S21.
Step S21, analyzing the combination relationship among the parameters, and if the combination relationship among the parameters is a positive relationship, taking one value from each first value set, and collecting all the values and the parameters corresponding to the values to obtain the test case.
In a specific embodiment of the present disclosure, the step S2 may further include a step S22, a step S23 and a step S24.
Step S22, analyzing the combination relationship among the parameters, and if the combination relationship among the parameters is an OR relationship, adding a numerical value representing a null value into the first numerical value set corresponding to each parameter;
step S23, defining the first numerical value set added with the numerical values representing the null values as a second numerical value set;
step S24, taking a value from each second value set, and collecting all the taken values and the corresponding parameters to obtain the test case.
In a specific embodiment of the present disclosure, the step S3 may further include a step S31, a step S32 and a step S33.
Step S31, testing the test case to obtain a first result;
s32, obtaining an analysis result of the test case input by a worker, and defining the analysis result as a second result;
step S33, comparing whether the first result is consistent with the second result to obtain the case test result, wherein if the first result is consistent with the second result, the case test result is a successful test, and if the first result is inconsistent with the second result, the case test result is a failed test.
In this embodiment, the system automatically tests each test case to obtain a test result of each test case, and then the worker obtains an analysis result according to the parameters included in the test case and the values corresponding to the parameters, for example, a test case is: (the age of the client is 30, the deposit of the client is 30000, and whether the client works or not is 1), the system obtains a passing test result, and the staff obtains a passing result under the condition according to the business logic relation among the parameters, namely, the client can be credited under the condition that the age of the client is 30, the deposit is 30000 and the client works, and then the first result and the second result are both passed, so that the test result of the test case is successful; if the system fails, the test result of the test case is a test failure.
In a specific embodiment of the present disclosure, the step S3 may further include a step S34, a step S35 and a step S36.
Step S34, testing the test case to obtain a first result;
step S35, analyzing the test case according to the business logic relation among the parameters to obtain a second result;
step S36, comparing whether the first result is consistent with the second result to obtain the case test result, wherein if the first result is consistent with the second result, the case test result is a successful test, and if the first result is inconsistent with the second result, the case test result is a failed test.
In this embodiment, a mode of obtaining an analysis result of the test case input by the worker is not adopted, but the system directly judges whether the test case passes through according to the business logic relationship between the parameters, so that the working content of the worker can be simplified, and the testing efficiency is improved.
In a specific embodiment of the present disclosure, after the step S3, steps S4 and S5 may be further included.
Step S4, performing statistical analysis on all test case results to obtain a test result analysis report;
and step S5, displaying the test result analysis report on a display interface and sending the test result analysis to a test person mailbox for helping the test person analyze the problems existing in the test process.
In this embodiment, the test case results can be counted and then sent to the working mailbox of the tester, which can help the tester to obtain the problems existing in the test in time, so as to debug the system; in another embodiment, all the test case results can be analyzed after statistics to obtain an analysis report desired by a worker, the analysis report is displayed on a display interface, and the analysis report can be conveniently viewed by the relevant worker by displaying the analysis report on the display interface; in another embodiment, multiple analysis tools can be provided, different workers can select different analysis tools according to their own requirements to analyze all test case results to obtain an analysis report meeting the requirements, and the applicability of the embodiment can be expanded by this way.
Example 2
As shown in fig. 2, the present embodiment provides a case testing apparatus, which includes an obtaining module 701, an aggregating module 702, and a testing module 703.
The obtaining module 701 is configured to obtain at least two parameters and a combination relationship between the parameters, where each parameter corresponds to a first value set, and the first value set includes at least one value;
the collecting module 702 is configured to obtain test cases based on the combination relationship between the parameters and the first value set corresponding to each parameter, and collect all the test cases to obtain a test case set;
the testing module 703 is configured to test each testing case in the testing case set to obtain a case testing result corresponding to each testing case.
In this embodiment, different combinations of the values corresponding to the parameters may be performed according to the "and" or "relationship to obtain a plurality of test cases, and then all the test cases are automatically tested. The method has the advantages that the full-coverage test cases are automatically generated by combining a plurality of pieces, the manual generation of the combined condition test cases can be reduced, the problem of case omission in manual writing is avoided, all condition cases are automatically traversed through the interface, full-coverage test can be fully achieved, manual test omission is avoided, and the manual test cost is high; meanwhile, the test method and the configuration can be used in many combined condition test scenarios.
In a specific embodiment of the present disclosure, the aggregation module 702 further includes a first aggregation unit 7021.
The first set unit 7021 is configured to analyze a combination relationship between the parameters, and if the combination relationship between the parameters is a positive relationship, each of the first value sets is taken as one value, and all the taken values and the parameters corresponding to the value are set to obtain the test case.
In a specific embodiment of the present disclosure, the aggregation module 702 further includes a first analysis unit 7022, a definition unit 7023, and a second aggregation unit 7024.
The first analyzing unit 7022 is configured to analyze a combination relationship between the parameters, and if the combination relationship between the parameters is an or relationship, add a value representing a null value to the first value set corresponding to each of the parameters;
the defining unit 7023 is configured to define the first value set to which the value representing the null value is added as a second value set;
the second collecting unit 7024 is configured to take a numerical value from each of the second numerical value sets, and collect all the taken numerical values and the parameters corresponding to the taken numerical values to obtain the test case.
In a specific embodiment of the present disclosure, the testing module 703 further includes a first testing unit 7031, an obtaining unit 7032, and a first comparing unit 7033.
The first testing unit 7031 is configured to test the test case to obtain a first result;
the obtaining unit 7032 is configured to obtain an analysis result of the test case, which is input by a worker, and define the analysis result as a second result;
the first comparing unit 7033 is configured to compare whether the first result is consistent with the second result, so as to obtain the case test result, where if the first result is consistent with the second result, the case test result is a test success, and if the first result is inconsistent with the second result, the case test result is a test failure.
In a specific embodiment of the present disclosure, the testing module 703 further includes a second testing unit 7034, a second analyzing unit 7035, and a second comparing unit 7036.
The second testing unit 7034 is configured to test the test case to obtain a first result;
the second analyzing unit 7035 is configured to analyze the test case according to the business logic relationship between the parameters to obtain a second result;
the second comparing unit 7036 is configured to compare whether the first result is consistent with the second result, to obtain the case test result, where the case test result is a test success if the first result is consistent with the second result, and the case test result is a test failure if the first result is inconsistent with the second result.
In a specific embodiment of the present disclosure, the apparatus further includes a statistics module 704 and a sending module 705.
The statistical module 704 is configured to perform statistical analysis on all test case results to obtain a test result analysis report;
the sending module 705 is configured to display the test result analysis report on a display interface and send the test result analysis to a test staff mailbox, so as to help the test staff analyze problems in the test process.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
Example 3
Corresponding to the above method embodiments, the embodiments of the present disclosure also provide a case testing apparatus, and the case testing apparatus described below and the case testing method described above may be referred to correspondingly.
Fig. 3 is a block diagram illustrating a case testing apparatus 800 according to an exemplary embodiment. As shown in fig. 3, the case testing apparatus 800 may include: a processor 801, a memory 802. The case testing apparatus 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the case testing apparatus 800 to perform all or some of the steps of the case testing method described above. The memory 802 is used to store various types of data to support operation at the case testing device 800, which may include, for example, instructions for any application or method operating on the case testing device 800, as well as application-related data such as contact data, messaging, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the case testing apparatus 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the case testing Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the case testing methods described above.
In another exemplary embodiment, a computer-readable storage medium is also provided that includes program instructions which, when executed by a processor, implement the steps of the case testing method described above. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions that are executable by the processor 801 of the case testing apparatus 800 to perform the case testing methods described above.
Example 4
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium, and a readable storage medium described below and the case testing method described above may be referred to correspondingly.
A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the case testing method of the above-mentioned method embodiments.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A case testing method, comprising:
acquiring a combination relation between at least two parameters and the parameters, wherein each parameter corresponds to a first value set, and the first value set comprises at least one value;
obtaining test cases based on the combination relation among the parameters and the first value set corresponding to each parameter, and collecting all the test cases to obtain a test case set;
and testing each test case in the test case set to obtain a case test result corresponding to each test case.
2. The case testing method of claim 1, wherein obtaining the test case based on the combination relationship between the parameters and the first value set corresponding to each of the parameters comprises:
and analyzing the combination relation among the parameters, if the combination relation among the parameters is a positive relation, respectively taking one value from each first value set, and collecting all the taken values and the parameters corresponding to the values to obtain the test case.
3. The case testing method of claim 1, wherein obtaining the test case based on the combination relationship between the parameters and the first value set corresponding to each of the parameters comprises:
analyzing the combination relation among the parameters, and if the combination relation among the parameters is an OR relation, adding a numerical value representing a null value into the first numerical value set corresponding to each parameter;
defining the first set of values after adding the value representing the null value as a second set of values;
and taking a numerical value in each second numerical value set, and collecting all the taken numerical values and the corresponding parameters to obtain the test case.
4. The case testing method of claim 1, wherein the testing each test case in the test case set to obtain a case testing result corresponding to each test case comprises:
testing the test case to obtain a first result;
acquiring an analysis result of the test case input by a worker, and defining the analysis result as a second result;
and comparing whether the first result is consistent with the second result to obtain a case test result, wherein if the first result is consistent with the second result, the case test result is successful, and if the first result is inconsistent with the second result, the case test result is failed.
5. The case testing method of claim 1, wherein the testing each test case in the test case set to obtain a case testing result corresponding to each test case comprises:
testing the test case to obtain a first result;
analyzing the test case according to the business logic relation among the parameters to obtain a second result;
and comparing whether the first result is consistent with the second result to obtain a case test result, wherein if the first result is consistent with the second result, the case test result is successful, and if the first result is inconsistent with the second result, the case test result is failed.
6. The case testing method of claim 1, wherein the step of testing each test case in the test case set to obtain a case testing result corresponding to each test case further comprises:
performing statistical analysis on all test case results to obtain a test result analysis report;
and displaying the test result analysis report on a display interface and sending the test result analysis to a test person mailbox for helping the test person to analyze the problems in the test process.
7. A case testing apparatus, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring at least two parameters and a combination relation between the parameters, each parameter corresponds to a first value set, and the first value set comprises at least one value;
the collection module is used for obtaining test cases based on the combination relation among the parameters and the first value collection corresponding to each parameter, and collecting all the test cases to obtain a test case collection;
and the testing module is used for testing each testing case in the testing case set to obtain a case testing result corresponding to each testing case.
8. The case testing apparatus of claim 7, wherein said aggregation module comprises:
the first set unit is used for analyzing the combination relationship among the parameters, if the combination relationship among the parameters is a positive relationship, one value is taken from each first value set, and all the taken values and the parameters corresponding to the values are set to obtain the test case.
9. The case testing apparatus of claim 7, wherein said aggregation module comprises:
the first analysis unit is used for analyzing the combination relationship among the parameters, and if the combination relationship among the parameters is an OR relationship, a numerical value representing a null value is added to the first numerical value set corresponding to each parameter;
a defining unit, configured to define the first value set to which the value representing the null value is added as a second value set;
and the second set unit is used for taking a numerical value in each second numerical value set and collecting all the taken numerical values and the parameters corresponding to the numerical values to obtain the test case.
10. A case testing device as in claim 7 wherein said testing module comprises:
the first test unit is used for testing the test case to obtain a first result;
the acquisition unit is used for acquiring an analysis result of the test case input by a worker, and defining the analysis result as a second result;
and the first comparing unit is used for comparing whether the first result is consistent with the second result to obtain the case testing result, wherein if the first result is consistent with the second result, the case testing result is successful, and if the first result is inconsistent with the second result, the case testing result is failed.
11. A case testing device as in claim 7 wherein said testing module comprises:
the second testing unit is used for testing the testing case to obtain a first result;
the second analysis unit is used for analyzing the test case according to the business logic relationship among the parameters to obtain a second result;
and the second comparison unit is used for comparing whether the first result is consistent with the second result to obtain the case test result, wherein if the first result is consistent with the second result, the case test result is successful, and if the first result is inconsistent with the second result, the case test result is failed.
12. The case testing apparatus of claim 7, further comprising:
the statistical module is used for performing statistical analysis on all test case results to obtain a test result analysis report;
and the sending module is used for displaying the test result analysis report on a display interface and sending the test result analysis to a test person mailbox for helping the test person analyze the problems in the test process.
13. A case testing method apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the case testing method according to any one of claims 1 to 6 when executing the computer program.
14. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the case testing method as claimed in any one of claims 1 to 6.
CN202111483968.0A 2021-12-07 2021-12-07 Case testing method, device and equipment and readable storage medium Pending CN114218086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111483968.0A CN114218086A (en) 2021-12-07 2021-12-07 Case testing method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111483968.0A CN114218086A (en) 2021-12-07 2021-12-07 Case testing method, device and equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114218086A true CN114218086A (en) 2022-03-22

Family

ID=80700003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111483968.0A Pending CN114218086A (en) 2021-12-07 2021-12-07 Case testing method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114218086A (en)

Similar Documents

Publication Publication Date Title
CN109828903B (en) Automatic testing method and device, computer device and storage medium
CN107992409B (en) Test case generation method and device, computer equipment and storage medium
CN108399114B (en) System performance testing method and device and storage medium
CN105094783B (en) method and device for testing stability of android application
CN109633351B (en) Intelligent IT operation and maintenance fault positioning method, device, equipment and readable storage medium
US7636871B1 (en) Method for comparing customer and test load data with comparative functional coverage hole analysis
CN102323873B (en) In order to trigger the method and system that icon is replied in instant messaging
CN107301130A (en) A kind of VR all-in-ones testing tool and its method
US9734042B1 (en) System, method, and computer program for automated parameterized software testing
CN112650670A (en) Application testing method, device, system, electronic equipment and storage medium
CN115964272A (en) Transaction data automatic testing method, device, equipment and readable storage medium
CN111651342A (en) HTTP interface automation testing framework based on Charles recording session
CN107908525B (en) Alarm processing method, equipment and readable storage medium
CN111708712A (en) User behavior test case generation method, flow playback method and electronic equipment
CN114218086A (en) Case testing method, device and equipment and readable storage medium
CN113238901B (en) Multi-device automatic testing method and device, storage medium and computer device
CN110990237B (en) Information collection system, method and storage medium
CN113282493A (en) Method and device for smoke test, storage medium and electronic equipment
CN113238931A (en) Test coverage calculation method and device based on execution path tracking technology
CN107102938B (en) Test script updating method and device
CN111400117A (en) Method for automatically testing Ceph cluster
CN114218079A (en) Case testing method, device and equipment and readable storage medium
CN114219255A (en) Capability analysis method, device, equipment and readable storage medium
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium
US20210191585A1 (en) Information processing apparatus and non-transitory computer readable medium storing computer program

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