A test case design method, device, management system and medium

By analyzing the non-technical factors and weights of test cases, and using the three-dimensional rectangular coordinate system to calculate the granularity ratio of test cases, the problem of low quality caused by non-technical factors in test case design is solved, and the design efficiency and quality of test cases are improved. .

CN114185810BActive Publication Date: 2024-10-15BEIJING NETTAI TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111653133.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-10-15
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

During the test case design process, non-technical factors (such as time, personnel, requirements, project models, etc.) lead to low test case pass rates, high maintenance costs, low code coverage, and low test quality.

Method used

By obtaining the usage scenarios and business goals of the test cases, determine the factor dimensions and weight dimensions of non-technical factors, analyze the test cases using the three-dimensional rectangular coordinate system, calculate the proportion of balanced test case granularity, and optimize the test case design and implementation structure.

Benefits of technology

It improves the efficiency and quality of test case design, reduces test implementation costs, and provides decision-makers with a reference to balance the granular distribution of test cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114185810B_ABST
    Figure CN114185810B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a test case design method, device, management system and medium, the method comprising: obtaining the use scenario and business goal of the test case; determining the factor dimension of the test case according to the non-technical factors corresponding to the business goal; determining the weight dimension of the test case according to the weight of the test case; determining the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension; analyzing the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension to obtain the design process of the test case. The test case design and test implementation structure are optimized, and the optimal distribution of the test case granularity proportion is finally obtained by considering different non-technical factors and applying weight values ​​and expected granularity to them, providing a reference for decision makers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a test case design method, device, management system and medium. Background Art

[0002] At present, the test case design method is to analyze the design method of a certain function point, a certain business flow or system integration test case from a technical perspective, and reduce the investment cost of test case design and test execution as much as possible to find potential defects. For example: Cause and effect diagram method: It is suitable for describing the combination of multiple conditions and the corresponding generation of multiple actions to consider the design of test cases. Error speculation method: It is a method of speculating all possible errors in the program based on experience and intuition, so as to design test cases in a targeted manner. Test cases are selected by listing all possible errors in the program and special situations where errors are prone to occur. Equivalence class boundary value method: First determine the boundary conditions, usually the boundaries of the input and output equivalence classes. The boundary conditions that are focused on testing should select values ​​that are just equal to, just greater than, or just less than the boundaries as test data, etc.

[0003] In the actual test case design process, there are often non-technical factors such as time, personnel, requirements, and project models, which lead to low test case pass rate, high maintenance cost, low code coverage, and low test quality, reducing the effectiveness of implementing design advantages from a technical perspective. Summary of the invention

[0004] The embodiments of the present invention provide a test case design method, device, management system and medium, which calculate the proportion of balanced test case granularity to address the problem of low test quality caused by the existence of non-technical factors in test case design.

[0005] In order to achieve the above objectives, the present invention is implemented through the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a test case design method, comprising:

[0007] Obtain the usage scenarios and business objectives of the test cases;

[0008] Determining the factor dimensions of the test case according to the non-technical factors corresponding to the business objectives;

[0009] Determining a weight dimension of the test case according to the weight of the test case;

[0010] Determining the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension;

[0011] The test case is analyzed according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension to obtain the design process of the test case.

[0012] Optionally, determining the granularity dimension of the non-technical factors in the test case according to the factor dimension and the weight dimension includes: dividing the weight levels of different non-technical factors in the test case according to the weight dimension;

[0013] Further, according to the non-technical factors, the granularity levels of different non-technical factors in the test case are determined, and the granularity of the non-technical factors with a high level of detail is greater than the granularity of the non-technical factors with a low level of detail;

[0014] Furthermore, according to the weight levels of different non-technical factors in the test case and the granularity levels of different non-technical factors in the test case, the granularity dimension of the test case occupied by the non-technical factors is determined.

[0015] Optionally, the sum of the granularity dimensions of the test case occupied by the non-technical factors is 1.

[0016] Optionally, the weight level and the non-technical factor have a one-to-many relationship; the non-technical factor and the weight level have a one-to-one relationship.

[0017] Optionally, the factor dimension, weight dimension, and granularity dimension corresponding to different test cases are divided differently.

[0018] In a second aspect, an embodiment of the present invention provides a test case design device, the device comprising:

[0019] Acquisition module, used to obtain the usage scenarios and business objectives of test cases;

[0020] A factor module, used to determine the factor dimension of the test case according to the non-technical factors corresponding to the business objectives;

[0021] A weight module, used to determine the weight dimension of the test case according to the weight of the test case;

[0022] A granularity module, used to determine the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension;

[0023] A coordinate module is used to analyze the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension to obtain the design process of the test case.

[0024] Optionally, the granularity module includes:

[0025] A level unit, used to classify the weight levels of different non-technical factors in the test case according to the weight dimension;

[0026] A hierarchical unit, used to determine the granularity levels of different non-technical factors in the test case according to the non-technical factors, wherein the granularity of the non-technical factors with a high level of detail is greater than the granularity of the non-technical factors with a low level of detail;

[0027] The determination unit is used to determine the granularity dimension of the test case occupied by the non-technical factors according to the weight levels of different non-technical factors in the test case and the granularity levels of different non-technical factors in the test case.

[0028] Optionally, the sum of the granularity dimensions of the test case occupied by the non-technical factors is 1.

[0029] In a third aspect, an embodiment of the present invention provides a test case management system, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the test case design method as described above.

[0030] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the test case design method as described above.

[0031] The embodiment of the present invention provides a test case design method, device, management system and medium, which obtains the use scenario and business goal of the test case; determines the factor dimension of the test case according to the non-technical factors corresponding to the business goal; determines the weight dimension of the test case according to the weight of the test case; determines the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension; analyzes the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension, and obtains the design process of the test case. The test case design and test implementation structure are optimized, and the optimal distribution of the test case granularity proportion is finally obtained by considering different non-technical factors and applying weight values ​​and expected granularity to them, providing a reference for decision makers. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only illustrate the embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 It is a flow chart of a test case design method provided in Example 1 of the present application;

[0034] Figure 2 It is a schematic diagram of a test case design method provided in Example 1 of the present application;

[0035] Figure 3 This is a device structure diagram of a test case design provided in Example 2 of the present application;

[0036] Figure 4 This is a structural diagram of a test case management system provided in Example 3 of the present application. DETAILED DESCRIPTION

[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention are shown in the accompanying drawings, rather than all structures. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other without conflict.

[0038] Whether the test case design is reasonable or not affects whether the test is implemented smoothly and the reliability of the final product / software quality; the ultimate goal of test case design is to improve code coverage, reduce costs, and discover more defects.

[0039] Embodiment 1

[0040] Figure 1 The flowchart of a test case design method provided in this embodiment can be executed by a test case management system. The test case management system can be set in a mobile terminal, such as a mobile phone terminal, a tablet computer, etc. Figure 1 As shown, the test case design method includes the following steps:

[0041] S110. Obtain usage scenarios and business objectives of the test cases.

[0042] Testers obtain the requirements specification of a test project, analyze the requirements, and obtain the business objectives based on the project's usage scenarios. Testing should be based on scenarios, which are mapped to the functions of the product / software. Only when the business objectives of the project are clear can reasonable test case design work be carried out.

[0043] S120: Determine the factor dimensions of the test case according to the non-technical factors corresponding to the business objectives.

[0044] Non-technical factors refer to some real non-technical factors that affect test case design and test implementation. For example, time factors: whether there is enough time to design sufficiently detailed test cases; personnel factors: whether each tester can independently complete scientific design; demand factors: whether frequent demand changes will cause excessive maintenance costs for test cases; project mode: whether agile development mode or waterfall mode will affect the rhythm and quality of test case design; member perspective: whether the designed test cases can reduce communication costs, etc. These non-technical factors lead to many problems in the test cases designed by testers, resulting in low code coverage, low review pass rate, low test quality, low case pass rate, and high maintenance cost. By analyzing the non-technical factor level of the project, the above factor dimensions are established.

[0045] S130. Determine a weight dimension of the test case according to the weight of the test case.

[0046] The weight dimension is the weight value of the non-technical factor, and the weight level in the weight dimension is set, including but not limited to the following: the first-level weight is the lowest weight in the weight level; the second-level weight is the weight in the weight level that is higher than the first-level weight and lower than the third-level weight; the third-level weight is the weight in the weight level that is higher than the second-level weight and lower than the fourth-level weight.

[0047] The weights of different non-technical factors are not fixed, but are dynamically adjusted elements. For example, in a project, if the demand factor changes frequently, the weight of the demand factor will be increased accordingly, and at the same time, the weight of other non-technical factors in the factor dimension will be adaptively reduced.

[0048] S140: Determine the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension.

[0049] The finer the granularity, the more detailed the test case design details; the coarser the granularity, the simpler the test case design details. For business processes, the test case implementation is simply described as low granularity; the test case implementation is more detailed than low granularity and coarser than high granularity as medium granularity; the test case implementation is more detailed than the medium granularity as high granularity.

[0050] S150, analyzing the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension, and the granularity dimension to obtain a design process of the test case.

[0051] Exemplarily, in a three-dimensional rectangular coordinate system, the coordinates of the three-dimensional space are constructed, and the number of coordinates is: the number of granularity levels * the number of non-technical factors. Taking time, personnel, demand factors and low, medium and high levels of granularity as examples, there are the following nine coordinates: A1 (time factor, first-level weight, low granularity); A2 (time factor, first-level weight, medium granularity); A3 (time factor, first-level weight, high granularity); A4 (personnel factor, second-level weight, low granularity); A5 (personnel factor, second-level weight, medium granularity); A6 (personnel factor, second-level weight, high granularity); A7 (demand factor, third-level weight, low granularity); A8 (demand factor, third-level weight, medium granularity); A9 (demand factor, third-level weight, high granularity).

[0052] Calculate the coordinate values ​​corresponding to the weights of different factors, and let them be B1=1*A1; B2=1*A2; B3=1*A3; B4=2*A4; B5=2*A5; B6=2*A6; B7=3*A7; B8=3*A8; B9=3*A9.

[0053] Taking the Z-axis particle size level as the starting point and parallel to the X-axis and Y-axis, a cross section in the three-dimensional rectangular coordinate system is intercepted to obtain the coordinate value in each particle size level, wherein the cross section coordinates of the low particle size level include B1, B4, and B7; the coordinates of the medium particle size level include B2, B5, and B8; and the coordinates of the high particle size level include B3, B6, and B9;

[0054] Calculate the sum of the coordinate values ​​in each granularity level; the low granularity level is Clow=B1+B4+B7; the medium granularity level is Cmedium=B2+B5+B8; and the high granularity level is Chigh=B3+B6+B9.

[0055] In the entire project, the proportion of low-granularity level is The proportion of medium granularity level is: The proportion of high-granularity levels is:

[0056] See also Figure 2 In this embodiment, the x-axis is the weight dimension, the y-axis is the factor dimension, and the z-axis is the granularity dimension. The three-dimensional rectangular coordinate system is used to calculate and balance the granularity proportion of test cases, providing analysis data for decision makers, who can balance the test case design according to the method.

[0057] Optionally, according to the weight dimension, weight levels of different non-technical factors in the test case are divided.

[0058] Furthermore, based on the non-technical factors, the granularity levels of different non-technical factors in the test case are determined, and the granularity of non-technical factors with a high level of description details is greater than the granularity of non-technical factors with a low level of description details.

[0059] Granularity refers to the specific level of detail and clarity. Specifically, the criteria for dividing the levels from coarse granularity to fine granularity are: understanding ideas or concepts; being able to describe ideas or concepts in detail with some details; being able to describe and explain ideas and concepts in detail with some details; being able to describe and explain ideas and concepts in detail with all details. It should be noted that different projects or different testers set different numbers of granularity levels based on the standards; the granularity levels include but are not limited to: low granularity, medium granularity, and high granularity; among them, low granularity refers to a simple description of the test case for a function point or business process, etc.; medium granularity is a more specific description of a function point or business process based on low granularity; high granularity refers to a more specific and detailed description of a function point or business process based on medium granularity.

[0060] Furthermore, according to the weight levels of different non-technical factors in the test case and the granularity levels of different non-technical factors in the test case, the granularity dimension of the test case occupied by the non-technical factors is determined.

[0061] Optionally, the sum of the granularity dimensions of the test case occupied by the non-technical factors is 1.

[0062] Optionally, the weight level and the non-technical factor have a one-to-many relationship; the non-technical factor and the weight level have a one-to-one relationship.

[0063] Optionally, the factor dimension, weight dimension, and granularity dimension corresponding to different test cases are divided differently.

[0064] For example, suppose that a company's testing work has the following non-technical factors: personnel factors, product type factors, time factors, and demand factors. Among them, personnel factors include: small testing team and heavy workload; product / software type factors include: complex product / software business processes, and the difference between coarse-grained and fine-grained descriptions in the test case design process; time factors: for testers, if the product / software details are oriented to the demand side, testers must control time costs; demand factors: according to the business goals specified in the project's requirements specification, there is a problem of frequent changes in requirements during the actual testing process due to the continuous development / integration of new functions.

[0065] When the number of project test cases is large, the existence of the above non-technical factors causes maintenance and testing difficulties, which in turn affects the project progress and quality. The technical solution of the embodiment of the present invention is adopted to assign different weights to the above factors to obtain the respective proportions of different functions / business processes. For example, in the entire project, the coarse granularity accounts for about 25%, the medium granularity accounts for about 40%, and the high granularity accounts for about 35%; the fluctuation of any non-technical factor has no serious impact on the test cases and test implementation. Testers can dynamically select test cases of corresponding granularity levels according to the test stage, test object, personnel capabilities, progress factors, etc.; among which, the test objects include: simple functions or complex functions, core functions or non-core functions; personnel capabilities include: experienced testers or inexperienced testers.

[0066] A test case design method provided by an embodiment of the present invention obtains the use scenario and business goal of the test case; determines the factor dimension of the test case according to the non-technical factors corresponding to the business goal; determines the weight dimension of the test case according to the weight of the test case; determines the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension; analyzes the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension, and the granularity dimension to obtain the design process of the test case. The test case design and test implementation structure are optimized, and the optimal distribution of the test case granularity ratio is finally obtained by considering different non-technical factors and applying weight values ​​and expected granularity to them, providing a reference for decision makers.

[0067] Embodiment 2

[0068] Figure 3 This is a structural diagram of a test case design device provided in this embodiment. The device can execute the test case design method provided in the above embodiment 1, such as Figure 3 As shown, the device includes an acquisition module 310, a factor module 320, a weight module 330, a granularity module 340, and a coordinate module 350. Among them:

[0069] The acquisition module 310 is used to acquire the usage scenario and business objectives of the test case.

[0070] The factor module 320 is used to determine the factor dimensions of the test case according to the non-technical factors corresponding to the business objectives.

[0071] The weight module 330 is used to determine the weight dimension of the test case according to the weight of the test case.

[0072] The granularity module 340 is used to determine the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension.

[0073] The coordinate module 350 is used to analyze the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension to obtain the design process of the test case.

[0074] Optionally, the granularity module 340 includes: a level unit, used to divide the weight levels of different non-technical factors in the test case according to the weight dimension.

[0075] Furthermore, the hierarchical unit is used to determine the granularity levels of different non-technical factors in the test case according to the non-technical factors, and the granularity of the non-technical factors with a high level of description details is greater than the granularity of the non-technical factors with a low level of description details.

[0076] Furthermore, the determination unit is used to determine the granularity dimension of the non-technical factors in the test case according to the weight levels of different non-technical factors in the test case and the granularity levels of different non-technical factors in the test case.

[0077] Optionally, the sum of the granularity dimensions of the test case occupied by the non-technical factors is 1.

[0078] Optionally, the weight level and the non-technical factor have a one-to-many relationship; the non-technical factor and the weight level have a one-to-one relationship.

[0079] Optionally, the factor dimension, weight dimension, and granularity dimension corresponding to different test cases are divided differently.

[0080] The embodiment of the present invention provides a test case design device, which obtains the use scenario and business goal of the test case; determines the factor dimension of the test case according to the non-technical factors corresponding to the business goal; determines the weight dimension of the test case according to the weight of the test case; determines the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension; analyzes the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension, and the granularity dimension to obtain the design process of the test case. The test case design and test implementation structure are optimized, and the optimal distribution of the test case granularity ratio is finally obtained by considering different non-technical factors and applying weight values ​​and expected granularity to them, providing a reference for decision makers.

[0081] Embodiment 3

[0082] Figure 4It is a structural diagram of a test case management system provided by an embodiment of the present invention. Figure 4 It is a structural diagram of a test case management system provided by an embodiment of the present invention. Figure 4 A block diagram of an exemplary test case management system 412 suitable for implementing embodiments of the present invention is shown. Figure 4 The test case management system 412 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0083] like Figure 4 As shown, the test case management system 412 is in the form of a general-purpose computing device. The components of the test case management system 412 may include, but are not limited to: one or more processors 416, a system memory 428, and a bus 418 connecting different system components (including the system memory 428 and the processor 416).

[0084] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a local bus to processor 416, or a bus structure using any of a variety of bus architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0085] The test case management system 412 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the test case management system 412, including volatile and non-volatile media, removable and non-removable media.

[0086] The system memory 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 442. The test case management system 412 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage device 434 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 418 via one or more data medium interfaces. The memory 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0087] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in system memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 442 generally perform the functions and / or methods of the embodiments described herein.

[0088] The test case management system 412 may also communicate with one or more external devices 414 (e.g., keyboards, pointing devices, displays 424, etc.), may also communicate with one or more devices that enable a user to interact with the test case management system 412, and / or may communicate with any device that enables the test case management system 412 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 422. In addition, the test case management system 412 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 420. As shown, the network adapter 420 communicates with other modules of the test case management system 412 via a bus 418. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the test case management system 412, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0089] The processor 416 executes various functional applications and data processing by running the program stored in the system memory 428, for example, implementing the test case design method provided in the embodiment of the present invention, which includes:

[0090] Obtain the usage scenarios and business objectives of the test cases;

[0091] Determining the factor dimensions of the test case according to the non-technical factors corresponding to the business objectives;

[0092] Determining a weight dimension of the test case according to the weight of the test case;

[0093] Determining the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension;

[0094] The test case is analyzed according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension to obtain the design process of the test case.

[0095] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the test case design method provided by any embodiment of the present invention.

[0096] Embodiment 4

[0097] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the test case design method provided by the embodiment of the present invention is implemented. The method includes:

[0098] Obtain the usage scenarios and business objectives of the test cases;

[0099] Determining the factor dimensions of the test case according to the non-technical factors corresponding to the business objectives;

[0100] Determining a weight dimension of the test case according to the weight of the test case;

[0101] Determining the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension;

[0102] The test case is analyzed according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension and the granularity dimension to obtain the design process of the test case.

[0103] Of course, the computer-readable storage medium provided by the embodiment of the present invention, and the computer program stored thereon are not limited to the above method operations, and can also execute the related operations of the test case design method provided by any embodiment of the present invention.

[0104] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable storage medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0105] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0106] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0107] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0108] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A test case design method, It is characterized in that The method comprises: Obtain the usage scenarios and business objectives of the test cases; Determining the factor dimensions of the test case according to the non-technical factors corresponding to the business objectives; Determining a weight dimension of the test case according to the weight of the test case; Determining the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension; Analyze the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension, and the granularity dimension to obtain a design process of the test case; The step of determining the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension includes: According to the weight dimension, the weight levels of different non-technical factors in the test case are divided; Determining the granularity levels of different non-technical factors in the test case according to the non-technical factors, wherein the granularity of the non-technical factors with a high level of detail is greater than the granularity of the non-technical factors with a low level of detail; According to the weight levels of different non-technical factors in the test case and the granularity levels of different non-technical factors in the test case, the granularity dimension of the test case occupied by the non-technical factors is determined.

2. The test case design method according to claim 1, It is characterized in that The sum of the granularity dimensions of the test case occupied by the non-technical factors is 1.

3. The method according to claim 1 or 2, It is characterized in that The weight level and the non-technical factor have a one-to-many relationship; the non-technical factor and the weight level have a one-to-one relationship.

4. The method according to claim 1, It is characterized in that The factor dimensions, weight dimensions, and granularity dimensions corresponding to different test cases are divided differently.

5. A test case design device, It is characterized in that The device comprises: Acquisition module, used to obtain the usage scenarios and business objectives of test cases; A factor module, used to determine the factor dimension of the test case according to the non-technical factors corresponding to the business objectives; A weight module, used to determine the weight dimension of the test case according to the weight of the test case; A granularity module, used to determine the granularity dimension of the non-technical factor in the test case according to the factor dimension and the weight dimension; A coordinate module, used to analyze the test case according to the three-dimensional rectangular coordinate system of the factor dimension, the weight dimension, and the granularity dimension to obtain the design process of the test case; The granularity module includes: A level unit, used to classify the weight levels of different non-technical factors in the test case according to the weight dimension; A hierarchical unit, used to determine the granularity levels of different non-technical factors in the test case according to the non-technical factors, wherein the granularity of the non-technical factors with a high level of detail is greater than the granularity of the non-technical factors with a low level of detail; The determination unit is used to determine the granularity dimension of the test case occupied by the non-technical factors according to the weight levels of different non-technical factors in the test case and the granularity levels of different non-technical factors in the test case.

6. The test case design device according to claim 5, It is characterized in that The sum of the granularity dimensions of the test case occupied by the non-technical factors is 1.

7. A test case management system, It is characterized in that include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the test case design method as described in any one of claims 1-4.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the test case design method as described in any one of claims 1 to 4 is implemented.