CN109240908B - Method and device for creating abnormal test case template - Google Patents
Method and device for creating abnormal test case template Download PDFInfo
- Publication number
- CN109240908B CN109240908B CN201810864249.5A CN201810864249A CN109240908B CN 109240908 B CN109240908 B CN 109240908B CN 201810864249 A CN201810864249 A CN 201810864249A CN 109240908 B CN109240908 B CN 109240908B
- Authority
- CN
- China
- Prior art keywords
- stage
- abnormal
- processing
- service
- business
- 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.)
- Expired - Fee Related
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 158
- 238000012360 testing method Methods 0.000 title claims abstract description 106
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000012545 processing Methods 0.000 claims abstract description 184
- 238000007670 refining Methods 0.000 claims abstract description 23
- 238000004891 communication Methods 0.000 claims description 13
- 230000003993 interaction Effects 0.000 claims description 11
- 238000010276 construction Methods 0.000 claims description 3
- 238000013461 design Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000012795 verification Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000011990 functional testing Methods 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 230000001364 causal effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 238000012430 stability testing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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 discloses a method and a device for creating an abnormal test case template, wherein the method comprises the following steps: setting a plurality of service processing stages according to a service processing time sequence; refining the abnormal scene of the business processing corresponding to each business processing stage; and creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage. The method comprises the steps of dividing a service processing stage by a service processing time sequence, extracting an abnormal scene according to the service processing stage, directly providing an obtained abnormal test case template for a tester to use, refining the abnormal test case template based on the abnormal test case template according to different software actual conditions to obtain a specific abnormal scene test case, reducing the working difficulty of the tester and reducing a technical requirement threshold.
Description
Technical Field
The invention relates to the field of software, in particular to a method and a device for creating an abnormal test case template.
Background
After the software development is completed, a series of tests need to be carried out on the software to finally release the software on line. The test work is performed around a quality model, generally divided into: functional testing, performance testing, stability testing, ease of use testing, and the like. The functional test is the most basic part, if the function is out of order, the whole software system is probably out of use, and in the functional test, the most complex part is the test for abnormal conditions. The tester often needs to consider "unexpected abnormal situations" that may exist in order to perform targeted testing. However, there is no existing method for this part of the work to date. For example, the traditional white box and black box test case design method mainly focuses on the requirements and code development of a software system, takes a functional point as a test core, and verifies whether the developed software system meets expectations or not through different means. Wherein the black box mainly comprises: the method comprises the following test means of equivalence class division, causal graph method, orthogonal test design and the like, wherein a white box mainly comprises the following steps: logic coverage, path coverage, and the like. The two methods can well guide the basic function test of software, but under a complex multi-system interaction scene, aiming at the software test case design under an abnormal condition, the two methods can not well guide the test design, and the main reasons are as follows: firstly, the two methods do not carry out effective abstraction aiming at abnormal conditions, so that the abnormal conditions cannot be accurately positioned, and further the design of a test case cannot be effectively guided; secondly, both methods analyze from the perspective of positive test (around normal conditions), some abnormal conditions are compatible, and the abnormal condition test analysis needs a negative angle, so that the design of the abnormal use case is not comprehensive. Therefore, in the actual operation process, each tester is also required to design an "unpredictable abnormal scene" according to the respective experience, which is easy to cause test omission. Meanwhile, the requirements on experience/technology and the like of the testers are high.
Disclosure of Invention
In view of the above, the present invention is proposed to provide an abnormal test case template creation method and apparatus that overcomes or at least partially solves the above-mentioned problems.
According to one aspect of the present invention, there is provided an exception test case template creating method, including:
setting a plurality of service processing stages according to a service processing time sequence;
refining the abnormal scene of the business processing corresponding to each business processing stage;
and creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage.
Optionally, the plurality of traffic processing stages comprise: a service processing pre-stage, a service processing middle stage and a service processing post-stage.
Optionally, refining the exception scenario of the business process corresponding to each business process stage further includes:
and reversely refining the internal logic of the business processing aiming at each business processing stage to obtain the abnormal scene of the business processing corresponding to the business processing stage.
Optionally, for the pre-business processing stage, the refined exception scenario includes: parameter exception scenes and/or idempotent exception scenes;
aiming at the middle stage of business processing, the extracted abnormal scene comprises the following steps: a service execution abnormal scene, a downstream operation abnormal scene and/or a database interaction abnormal scene;
aiming at the post-service processing stage, the extracted abnormal scene comprises the following steps: and returning the service execution result to the abnormal scene.
Optionally, the method further comprises:
and filling corresponding test parameters by using the abnormal test case template to construct and obtain an actual abnormal test case.
According to another aspect of the present invention, there is provided an exception test case template creating apparatus, including:
the setting module is suitable for setting a plurality of service processing stages according to the service processing time sequence;
the refining module is suitable for refining the abnormal scenes of the business processing corresponding to each business processing stage;
and the creating module is suitable for creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage.
Optionally, the plurality of traffic processing stages comprise: a service processing pre-stage, a service processing middle stage and a service processing post-stage.
Optionally, the refinement module is further adapted to:
and reversely refining the internal logic of the business processing aiming at each business processing stage to obtain the abnormal scene of the business processing corresponding to the business processing stage.
Optionally, the refinement module is further adapted to:
aiming at the business processing early stage, the extracted abnormal scene comprises the following steps: parameter exception scenes and/or idempotent exception scenes;
aiming at the middle stage of business processing, the extracted abnormal scene comprises the following steps: a service execution abnormal scene, a downstream operation abnormal scene and/or a database interaction abnormal scene;
aiming at the post-service processing stage, the extracted abnormal scene comprises the following steps: and returning the service execution result to the abnormal scene.
Optionally, the apparatus further comprises:
and the construction module is suitable for filling corresponding test parameters by utilizing the abnormal test case template to construct and obtain the actual abnormal test case.
According to still another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the abnormal test case template creating method.
According to another aspect of the present invention, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction causes a processor to execute an operation corresponding to the above-mentioned abnormal test case template creation method.
According to the method and the device for creating the abnormal test case template, a plurality of service processing stages are set according to a service processing time sequence; refining the abnormal scene of the business processing corresponding to each business processing stage; and creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage. The method comprises the steps of dividing a service processing stage by a service processing time sequence, extracting an abnormal scene according to the service processing stage, directly providing an obtained abnormal test case template for a tester to use, refining the abnormal test case template based on the abnormal test case template according to different software actual conditions to obtain a specific abnormal scene test case, reducing the working difficulty of the tester and reducing a technical requirement threshold.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a flow diagram of an exception test case template creation method according to one embodiment of the invention;
FIG. 2 illustrates an exception test case template diagram;
FIG. 3 is a diagram illustrating the construction of an actual exception test case based on an exception test case template;
FIG. 4 is a functional block diagram of an exception test case template creation apparatus according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a flowchart of an exception test case template creation method according to one embodiment of the present invention. As shown in fig. 1, the method for creating an abnormal test case template specifically includes the following steps:
step S101, a plurality of service processing stages are set according to a service processing time sequence.
The final purpose of software design and development is to solve specific problems involved in the business processing process based on processing a specific business or service. Therefore, when testing software, problems possibly encountered in the business process need to be considered from the actual problems solved by the software. However, the range is too large from the whole business, and problems are easy to be missed. For more detailed problem combing, the service can be divided according to the service processing time sequence, and the service is integrally set into a plurality of service processing stages. The service processing sequence is a service processing sequence, and the obtained multiple service processing stages comprise: a service processing pre-stage, a service processing middle stage and a service processing post-stage.
Specifically, the pre-service processing stage is a stage for preparing service processing, and includes contents such as parameter preparation, calling preparation and the like; the service processing middle stage is a specific service problem processing execution stage, which comprises, for example, the verification of specific services, execution processing, calling processing between different downstream systems, data interaction processing between the database and the like; the post-service processing stage is a stage of returning or displaying a processing result after the service processing is completed, and the stage includes, for example, service data integration, return processing, and the like.
And S102, refining the abnormal scene of the business processing corresponding to each business processing stage.
The abnormal scene is opposite to the normal scene, the normal scene is the scene corresponding to the normal processing completion of the service, and the forward thinking is adopted to test whether the functions completed by the software in the design and development stages meet the normal processing of the service. The abnormal scene needs to reversely refine the internal logic of the business processing aiming at each business processing stage, for example, reverse thinking is carried out according to the conditions of error results or abnormal branches and the like relative to the processing results of the normal scene, and each logic point which is possibly abnormal can be reversely pushed out, so that the abnormal scene of the business processing corresponding to the business processing stage is obtained.
Specifically, for the pre-service processing stage, the extracted exception scenario includes: such as parametric exception scenarios, idempotent exception scenarios, etc. The parameter exception scene comprises parameter related verification such as the parameter is null value, lack of necessary parameter, the parameter type is inconsistent, the parameter is 0 value, whether the transmitted parameter is consistent with the required parameter or not and the like; the abnormal scenarios include, for example, verifying whether a request is legal (in the case that a caller only sends a call request once due to a request retransmission caused by network jitter, etc., receiving two identical call requests, and verifying whether both the two call requests are legal requests), verifying whether multiple requests are executed consistently, verifying whether multiple business processes are consistent, verifying whether an idempotent request is successful, verifying whether a business idempotent process is successful, and invoking related verification. In the pre-service processing stage, the abnormal scene is related to a call request, parameters involved in the call, success or failure of the call, and the like.
For the middle stage of business processing, the extracted abnormal scenes comprise: such as a service execution exception scenario, a downstream operation exception scenario, a database interaction exception scenario, and the like. The service execution abnormal scene comprises, for example, judging whether the service is authorized to be executed, service verification based on a specific service level (for example, when the service is paid, whether the balance of a payment account of a user is sufficient is verified, and the verification needs to be performed according to the specific service), whether the service is repeatedly processed, and the like; the downstream operation abnormal scene comprises the problems of whether calling between the downstream system is overtime processed or not, whether system abnormality exists or not and whether business processing abnormality exists or not in interactive operation between the downstream system; the abnormal scene of database interaction comprises whether the connection with the database is overtime, the connection is not available when the database connection pool is full, the database generation sequence number fails, the database service processing (adding/modifying/deleting) fails and the like. The abnormal scene in the service processing stage needs to be extracted based on the service level of the service processing itself, and the interaction abnormality possibly existing when the abnormal scene interacts with a downstream system, a database and the like is considered.
For the post-service processing stage, the extracted abnormal scenes comprise: and if the service execution result returns an abnormal scene. The abnormal scene of returning the service execution result includes, for example, overtime of returning the service result data, failure of returning the service result data, and the like. The abnormal scene of the post-service processing stage mainly considers whether the service execution result can be normally returned to the calling party for the calling party to use or display and the like.
When the abnormal scenes of the business processing corresponding to each business processing stage are obtained through extraction, the abnormal scenes possibly existing in the business processing flow are abstracted based on the analysis of the universality of the abnormal scenes in the business processing, and the obtained abnormal scenes have universality and are convenient to be applied to the abnormal scenes of various software tests.
Step S103, according to the abnormal scene of the business processing corresponding to each business processing stage, an abnormal test case template corresponding to each business processing stage is created.
According to the extracted exception scenario of the business process corresponding to each business process stage, an exception test case template as shown in fig. 2 can be created. The abnormal test case template comprises an abnormal scene corresponding to each service processing stage, and how to divide a service and how to set the abnormal scene for each service processing stage can be clearly understood through the abnormal test case template. The abnormal test case template can be manufactured in a thinking guide graph mode as shown in fig. 2, so that the abnormal test case template can be further refined conveniently in the follow-up process, and a specific abnormal test case is obtained.
Optionally, the method further includes step S104.
And step S104, filling corresponding test parameters by using the abnormal test case template, and constructing to obtain an actual abnormal test case.
When the abnormal test case template is specifically used, the abnormal test case template can be refined according to the requirement of actual software test, and corresponding test parameters are filled in an abnormal scene corresponding to each service processing stage. The test parameters are populated according to the contents of the software itself. As shown in fig. 3, the exception test case is based on that after ordering payment, the merchant refuses to test the service of the user refund. Refining the parameter abnormal scenes and the idempotent abnormal scenes in the early stage of service processing according to the parameter requirements specifically used by the service and the requirements of the calling request, wherein the filled parameters comprise filling parameter verification, abnormal code verification, calling end request reentry, rejection request reentry and the like; for the service abnormal scene in the service processing middle stage, based on the specific service level, the filling parameters include various states of orders, various state checks of logistics and the like, and the abnormal scene interacted with the downstream system is filled based on the function points executed by the downstream system, such as the overtime of the refund execution function called by the downstream system, the failure of executing the pre-refund and the like; and returning an abnormal scene to a service execution result at the post-service processing stage, and verifying whether the joint debugging service is successfully executed or not according to a result returned after the interaction with a downstream system during parameter filling. Through the test parameters filled according to the actual business, an actual abnormal test case can be constructed and obtained.
Based on the refinement and filling of the abnormal test case template, the obtained actual abnormal test case contains an abnormal scene which needs to be covered by the test, the problem of abnormal test case omission which is possibly caused by the manual setting of the abnormal test case by a tester is reduced, the time spent by the tester for setting the abnormal test case is reduced, and the efficiency is improved.
According to the method for creating the abnormal test case template, a plurality of service processing stages are set according to a service processing time sequence; refining the abnormal scene of the business processing corresponding to each business processing stage; and creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage. The method comprises the steps of dividing a service processing stage by a service processing time sequence, extracting an abnormal scene according to the service processing stage, directly providing an obtained abnormal test case template for a tester to use, refining the abnormal test case template based on the abnormal test case template according to different software actual conditions to obtain a specific abnormal scene test case, reducing the working difficulty of the tester and reducing a technical requirement threshold.
FIG. 4 shows a functional block diagram of an exception test case template creation apparatus according to an embodiment of the present invention. As shown in fig. 4, the exception test case template creating apparatus includes the following modules:
the setting module 410 is adapted to set a plurality of service processing phases according to a service processing timing sequence.
And the refining module 420 is suitable for refining the abnormal scenes of the business processing corresponding to each business processing stage.
The creating module 430 is adapted to create an abnormal test case template corresponding to each service processing stage according to the abnormal scenario of service processing corresponding to each service processing stage.
Optionally, the refinement module 420 is further adapted to:
and reversely refining the internal logic of the business processing aiming at each business processing stage to obtain the abnormal scene of the business processing corresponding to the business processing stage.
Optionally, the refinement module 420 is further adapted to:
aiming at the business processing early stage, the extracted abnormal scene comprises the following steps: parameter exception scenes and/or idempotent exception scenes; aiming at the middle stage of business processing, the extracted abnormal scene comprises the following steps: a service execution abnormal scene, a downstream operation abnormal scene and/or a database interaction abnormal scene; aiming at the post-service processing stage, the extracted abnormal scene comprises the following steps: and returning the service execution result to the abnormal scene.
Optionally, the apparatus further comprises: a module 440 is constructed.
The constructing module 440 is adapted to fill the corresponding test parameters by using the abnormal test case template, and construct and obtain the actual abnormal test case.
The descriptions of the modules refer to the corresponding descriptions in the method embodiments, and are not repeated herein.
The application also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the abnormal test case template creating method in any method embodiment.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 5, the electronic device may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein:
the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute relevant steps in the above-described exception test case template creation method embodiment.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may be specifically configured to enable the processor 502 to execute the exception test case template creation method in any method embodiment described above. For specific implementation of each step in the program 510, reference may be made to corresponding steps and corresponding descriptions in units in the above-described exception test case template creation embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an exception test case template creation apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Claims (10)
1. An exception test case template creation method, comprising:
setting the whole service into a plurality of service processing stages according to a service processing time sequence; the plurality of traffic processing stages comprises: a service processing pre-stage, a service processing middle stage and a service processing post-stage; the business processing pre-stage is a stage for preparing business processing; the business processing middle stage is a business problem processing execution stage; the post-service processing stage is a stage of returning or displaying a processing result after the service processing is finished;
refining the abnormal scene of the business processing corresponding to each business processing stage;
and creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage.
2. The method of claim 1, wherein said refining the exception scenario of the business process corresponding to each business process stage further comprises:
and reversely refining the internal logic of the business processing aiming at each business processing stage to obtain the abnormal scene of the business processing corresponding to the business processing stage.
3. The method of claim 1, wherein for the pre-business process phase, the refined exception scenario comprises: parameter exception scenes and/or idempotent exception scenes;
aiming at the business processing middle stage, the extracted abnormal scene comprises the following steps: a service execution abnormal scene, a downstream operation abnormal scene and/or a database interaction abnormal scene;
aiming at the post-service processing stage, the extracted abnormal scene comprises the following steps: and returning the service execution result to the abnormal scene.
4. The method according to any one of claims 1-3, wherein the method further comprises:
and filling corresponding test parameters by using the abnormal test case template to construct and obtain an actual abnormal test case.
5. An exception test case template creation apparatus, comprising:
the setting module is suitable for setting the whole business into a plurality of business processing stages according to the business processing time sequence; the plurality of traffic processing stages comprises: a service processing pre-stage, a service processing middle stage and a service processing post-stage; the business processing pre-stage is a stage for preparing business processing; the business processing middle stage is a business problem processing execution stage; the post-service processing stage is a stage of returning or displaying a processing result after the service processing is finished;
the refining module is suitable for refining the abnormal scenes of the business processing corresponding to each business processing stage;
and the creating module is suitable for creating an abnormal test case template corresponding to each service processing stage according to the abnormal scene of the service processing corresponding to each service processing stage.
6. The apparatus of claim 5, wherein the refinement module is further adapted to:
and reversely refining the internal logic of the business processing aiming at each business processing stage to obtain the abnormal scene of the business processing corresponding to the business processing stage.
7. The apparatus of claim 5, wherein the refinement module is further adapted to:
aiming at the business processing pre-stage, the extracted abnormal scene comprises the following steps: parameter exception scenes and/or idempotent exception scenes;
aiming at the business processing middle stage, the extracted abnormal scene comprises the following steps: a service execution abnormal scene, a downstream operation abnormal scene and/or a database interaction abnormal scene;
aiming at the post-service processing stage, the extracted abnormal scene comprises the following steps: and returning the service execution result to the abnormal scene.
8. The apparatus of any of claims 5-7, wherein the apparatus further comprises:
and the construction module is suitable for filling corresponding test parameters by using the abnormal test case template to construct and obtain an actual abnormal test case.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the abnormal test case template creating method as claimed in any one of claims 1 to 4.
10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the exception test case template creation method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810864249.5A CN109240908B (en) | 2018-08-01 | 2018-08-01 | Method and device for creating abnormal test case template |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810864249.5A CN109240908B (en) | 2018-08-01 | 2018-08-01 | Method and device for creating abnormal test case template |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109240908A CN109240908A (en) | 2019-01-18 |
CN109240908B true CN109240908B (en) | 2020-04-03 |
Family
ID=65073394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810864249.5A Expired - Fee Related CN109240908B (en) | 2018-08-01 | 2018-08-01 | Method and device for creating abnormal test case template |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109240908B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110162455A (en) * | 2019-04-09 | 2019-08-23 | 口碑(上海)信息技术有限公司 | Joint debugging method and device, storage medium, the electronic device of software |
CN112131093A (en) * | 2019-06-24 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Chaos test-based test case automatic generation method and device |
CN110457207A (en) * | 2019-07-12 | 2019-11-15 | 平安普惠企业管理有限公司 | Test method and relevant device based on machine learning model |
CN113704077B (en) * | 2020-05-20 | 2023-09-19 | 中国移动通信集团浙江有限公司 | Test case generation method and device |
CN112346987A (en) * | 2020-11-25 | 2021-02-09 | 武汉光庭信息技术股份有限公司 | Test case generation and conversion method and system based on Xmind |
CN112527587B (en) * | 2020-12-03 | 2023-04-18 | 深圳大普微电子科技有限公司 | Verification progress determining method, device, equipment and readable storage medium |
CN115134101A (en) * | 2021-03-24 | 2022-09-30 | 奇安信科技集团股份有限公司 | Industrial control firewall performance test evaluation method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101165658A (en) * | 2006-10-18 | 2008-04-23 | 国际商业机器公司 | Method and system for automatically generating unit test case of reproduced operation problem |
CN101183335A (en) * | 2007-12-25 | 2008-05-21 | 中兴通讯股份有限公司 | Method and system for realizing embedded software unconventionality testing |
CN102014016A (en) * | 2010-08-31 | 2011-04-13 | 北京邮电大学 | System and method for testing defects of network protocol |
CN104731698A (en) * | 2013-12-20 | 2015-06-24 | 深圳中兴力维技术有限公司 | Abnormal test case automatic generation processing method and device based on automatic tests |
CN106502893A (en) * | 2016-10-20 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of method and device tested by software function |
-
2018
- 2018-08-01 CN CN201810864249.5A patent/CN109240908B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101165658A (en) * | 2006-10-18 | 2008-04-23 | 国际商业机器公司 | Method and system for automatically generating unit test case of reproduced operation problem |
CN101183335A (en) * | 2007-12-25 | 2008-05-21 | 中兴通讯股份有限公司 | Method and system for realizing embedded software unconventionality testing |
CN102014016A (en) * | 2010-08-31 | 2011-04-13 | 北京邮电大学 | System and method for testing defects of network protocol |
CN104731698A (en) * | 2013-12-20 | 2015-06-24 | 深圳中兴力维技术有限公司 | Abnormal test case automatic generation processing method and device based on automatic tests |
CN106502893A (en) * | 2016-10-20 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of method and device tested by software function |
Also Published As
Publication number | Publication date |
---|---|
CN109240908A (en) | 2019-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109240908B (en) | Method and device for creating abnormal test case template | |
CN109951547B (en) | Transaction request parallel processing method, device, equipment and medium | |
CN107145437B (en) | Java annotation test method and device | |
CN111143087A (en) | Interface calling method and device, storage medium and server | |
CN110599341A (en) | Transaction calling method and system | |
CN109558313B (en) | Method and device for constructing abnormal test scene | |
CN109739700B (en) | Interface testing method and device | |
CN110959165A (en) | Techniques for automatically verifying functionality of offers in a cloud service broker system | |
CN110351161B (en) | Business end-to-end test method, device, storage medium and computer equipment | |
CN110888800A (en) | Service interaction function test method, device, storage medium and test system | |
CN117743145A (en) | Test script generation method and device based on coding template and processing equipment | |
CN112651716A (en) | Data processing method, device and storage medium | |
CN111949510B (en) | Test processing method, device, electronic equipment and readable storage medium | |
CN112036576B (en) | Data processing method and device based on data form and electronic equipment | |
US20160180262A1 (en) | System and method for testing enterprise transactions | |
US10296449B2 (en) | Recording an application test | |
CN113706146A (en) | Processing method, device and system for executing batch transaction based on block chain | |
CN113810379A (en) | Exception handling method and multi-service system | |
CN110597736A (en) | Test data generation method and device | |
US10169181B2 (en) | Efficient validation of transactional memory in a computer processor | |
CN114416585A (en) | Automatic testing method and device | |
CN112766768B (en) | Contract flow management method and device, electronic equipment and readable storage medium | |
CN110007904B (en) | Data processing method, device and equipment | |
CN109324966B (en) | Test script generation and execution method and device | |
CN111639085B (en) | Data asynchronous checking method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200403 |
|
CF01 | Termination of patent right due to non-payment of annual fee |