CN109240908A - Abnormality test use-case template establishment method and device - Google Patents

Abnormality test use-case template establishment method and device Download PDF

Info

Publication number
CN109240908A
CN109240908A CN201810864249.5A CN201810864249A CN109240908A CN 109240908 A CN109240908 A CN 109240908A CN 201810864249 A CN201810864249 A CN 201810864249A CN 109240908 A CN109240908 A CN 109240908A
Authority
CN
China
Prior art keywords
business processing
stage
abnormal scene
scene
test use
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.)
Granted
Application number
CN201810864249.5A
Other languages
Chinese (zh)
Other versions
CN109240908B (en
Inventor
何青松
李联邦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201810864249.5A priority Critical patent/CN109240908B/en
Publication of CN109240908A publication Critical patent/CN109240908A/en
Application granted granted Critical
Publication of CN109240908B publication Critical patent/CN109240908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test 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 kind of abnormality test use-case template establishment method and device, method includes: that multiple business processing stages are arranged according to business processing timing;Refine the abnormal scene of corresponding business processing of each business processing stage;According to the abnormal scene of corresponding business processing of each business processing stage, corresponding abnormality test use-case template of each business processing stage is created.The business processing stage is marked off by business processing timing, abnormal scene is extracted according to the business processing stage, obtained abnormality test use-case template can be supplied directly to tester's use, tester is based on abnormality test use-case template can refine according to different software actual conditions, obtain specific abnormal scene test case, tester's work difficulty is reduced, technical requirements threshold is also reduced.

Description

Abnormality test use-case template establishment method and device
Technical field
The present invention relates to software fields, and in particular to a kind of abnormality test use-case template establishment method and device.
Background technique
It after completing software development, needs to carry out a series of test to it, could finally issue online.Test job is enclosed It carries out, is generally divided into around quality model: functional test, performance test, stability test, ease for use test etc..Wherein function Can test is most basic part, and entire software systems are likely to just not be available if function goes wrong, and is surveyed in function Examination the inside, most complicated part is exactly the test to abnormal conditions.Tester generally require to consider it is that may be present " can not be pre- The abnormal conditions of material ", pointedly to be tested.But so far, there is no a ready-made methods for the work of this part. Such as traditional whitepack, Black-box testing Cases design method, demand and code expansion mainly around software systems are with function point Test core, verifies whether the software systems that exploitation finishes meet expection by different means.Wherein black box mainly includes: Dividing means of testing, the whitepacks such as equivalence class, cause effect graph, Orthogonal Experiment and Design mainly includes: Logic coverage, path covering etc. are surveyed Trial work section.The two methods can be very good guiding software Basic function testing, but under complicated multisystem interaction scenarios, For the software test case design of abnormal conditions, both the above method can not instruct test to design well, main cause Have: first, both methods all without being effectively abstracted for abnormal conditions, leads to not accurately navigate to abnormal feelings Condition, and then can not effectively instruct Test Sample Design;Second, both methods is all from positive test (around normal condition) Angle analyzed, compatible some abnormal conditions, and abnormal conditions test analysis needs negative sense angle, and abnormal use-case is caused to set It counts not comprehensive.Therefore, in the actual operation process, it is also necessary to which each tester designs according to respective experience " can not be pre- The abnormal scene of material " be easy to cause test to omit in this way.Meanwhile it is more demanding to experience/technology of tester itself etc..
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the abnormality test use-case template establishment method and device of problem.
According to an aspect of the invention, there is provided a kind of abnormality test use-case template establishment method comprising:
According to business processing timing, multiple business processing stages are set;
Refine the abnormal scene of corresponding business processing of each business processing stage;
According to the abnormal scene of corresponding business processing of each business processing stage, it is corresponding to create each business processing stage Abnormality test use-case template.
Optionally, multiple business processing stages include: the business processing last stage, in business processing after stage and business processing Stage.
Optionally, the abnormal scene for refining corresponding business processing of each business processing stage further comprises:
It is reverse to refine business processing internal logic for each business processing stage, it is corresponding to obtain the business processing stage Business processing abnormal scene.
Optionally, for the business processing last stage, the abnormal scene of refinement includes: abnormal parameters scene and/or idempotent are different Normal scene;
For the stage in business processing, the abnormal scene of refinement includes: business executes abnormal scene, downstream process anomalous field Scape and/or the abnormal scene of database interaction;
For the stage after business processing, the abnormal scene of refinement includes: service executing result returns to abnormal scene.
Optionally, method further include:
Using abnormality test use-case template, corresponding test parameter is filled, building obtains practical abnormality test use-case.
According to another aspect of the present invention, a kind of abnormality test use-case template creating device is provided comprising:
Setup module is suitable for that multiple business processing stages are arranged according to business processing timing;
Module is refined, suitable for refining the abnormal scene of corresponding business processing of each business processing stage;
Creation module creates each industry suitable for the abnormal scene according to corresponding business processing of each business processing stage Business processing stage corresponding abnormality test use-case template.
Optionally, multiple business processing stages include: the business processing last stage, in business processing after stage and business processing Stage.
Optionally, module is refined to be further adapted for:
It is reverse to refine business processing internal logic for each business processing stage, it is corresponding to obtain the business processing stage Business processing abnormal scene.
Optionally, module is refined to be further adapted for:
For the business processing last stage, the abnormal scene of refinement includes: abnormal parameters scene and/or idempotent exception scene;
For the stage in business processing, the abnormal scene of refinement includes: business executes abnormal scene, downstream process anomalous field Scape and/or the abnormal scene of database interaction;
For the stage after business processing, the abnormal scene of refinement includes: service executing result returns to abnormal scene.
Optionally, device further include:
Module is constructed, is suitable for utilizing abnormality test use-case template, fills corresponding test parameter, building obtains practical exception Test case.
According to another aspect of the invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute above-mentioned abnormality test use-case for storing an at least executable instruction, executable instruction The corresponding operation of template establishment method.
In accordance with a further aspect of the present invention, a kind of computer storage medium is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute such as the corresponding operation of above-mentioned abnormality test use-case template establishment method.
The abnormality test use-case template establishment method and device provided according to the present invention is arranged more according to business processing timing A business processing stage;Refine the abnormal scene of corresponding business processing of each business processing stage;According to each business processing The abnormal scene of stage corresponding business processing creates corresponding abnormality test use-case template of each business processing stage.Pass through Business processing timing marks off the business processing stage, extracts abnormal scene according to the business processing stage, obtained abnormality test Use-case template can be supplied directly to tester's use, and tester is based on abnormality test use-case template can be according to different soft The refinement of part actual conditions obtains specific abnormal scene test case, reduces tester's work difficulty, also reduce technical requirements Threshold.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of abnormality test use-case template establishment method according to an embodiment of the invention;
Fig. 2 shows an abnormality test use-case template schematic diagrames;
Fig. 3 shows one and constructs practical abnormality test use-case schematic diagram based on abnormality test use-case template;
Fig. 4 shows the functional block diagram of abnormality test use-case template creating device according to an embodiment of the invention;
Fig. 5 shows the structural schematic diagram of a kind of electronic equipment according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow chart of abnormality test use-case template establishment method according to an embodiment of the invention.Such as Fig. 1 Shown, abnormality test use-case template establishment method specifically comprises the following steps:
Multiple business processing stages are arranged according to business processing timing in step S101.
Software design, the final purpose of exploitation are to solve industry based on handling specific a business or service etc. Specific problem involved in treatment process of being engaged in.Therefore, when testing software, need to be solved from it is actually asked Topic is set out, and considers the problems of to be likely encountered in business procession.But from business entirety, it is excessive to will lead to range, holds Problem is easily caused to omit.It for finer combing problem, can be divided according to business processing timing, by business whole installation For multiple business processing stages.Business processing timing, that is, business processing sequence, obtained multiple business processing stages include: business Handle the last stage, stage after stage and business processing in business processing.
Specifically, the business processing last stage is the stage prepared for business processing comprising as parameter prepares, calling is quasi- The contents such as standby;The stage is that specific traffic issues handle the execution stage in business processing comprising such as verification of specific business is held Row processing, data interaction processing etc. between calling processing and database between different down-stream systems;The stage is business after business processing After the completion of processing, by stages such as processing result return or displayings comprising such as business datum integration, return processing.
Step S102 refines the abnormal scene of corresponding business processing of each business processing stage.
Abnormal scene is opposite with normal scene, and normal scene, that is, business, which is normally handled, completes corresponding scene, using just Whether meet the normal processing of business in the function that design, development phase are completed to thinking test software.Abnormal scene needs It is reverse to refine business processing internal logic for each business processing stage, such as according to opposite with the processing result of normal scene Error result or hooks situations such as carry out reverse thinking, can inversely release each logical point that may be abnormal, To obtain the abnormal scene of business processing stage corresponding business processing.
Specifically, be directed to the business processing last stage, the abnormal scene that can be refined includes: as abnormal parameters scene, Idempotent exception scene etc..Abnormal parameters scene include as parameter be null value, null value, lack call parameter, parameter type is not inconsistent, The parameters associated verifications such as parameter is 0 value, whether incoming parameter is consistent with desired parameter;Idempotent exception scene includes as verified Request whether legal (request repeat that the reasons such as network jitter cause, the case where causing called side only to send a call request Under, receive identical call request twice, need to verify whether to be legitimate request), verifying repeatedly request whether execute one It causes, verify whether multiple business processing is consistent, whether the request of verifying idempotent is successful, whether the processing of verifying business idempotent successfully etc. adjusts Use associated verification.In the business processing last stage, abnormal scene and call request, call success or not at the parameter being related to when calling Etc. correlations.
For the stage in business processing, the abnormal scene that can be refined includes: as business executes abnormal scene, downstream Operation exception scene, the abnormal scene of database interaction etc..It includes such as judging whether there is permission to execute industry that business, which executes abnormal scene, Business, based on specific service layer business verifying (when such as payment business, verifying user-pay account balance whether abundance etc., need Verified according to specific business), whether business be repeatedly processed through vaporization, condensation and absorption;Downstream process exception scene includes adjusting between down-stream system With whether between timeout treatment and down-stream system interactive operation with the presence or absence of system exception, business processing is abnormal the problems such as;Database Interaction exception scene includes connecting whether overtime, database connection pool can not completely connect, database generates serial number with database Failure, data bank service processing (newly-increased/modification/deletion) are unsuccessfully etc..The abnormal scene in stage is needed based on industry in business processing Service layer of business processing itself is refined, and when considering to interact with down-stream system, database etc. friendship that may be present It is mutually abnormal.
For the stage after business processing, the abnormal scene that can be refined includes: as service executing result returns to exception Scene.It includes that such as business result data return time-out, business result data return to failure that service executing result, which returns to abnormal scene, Deng.The abnormal scene in stage mainly considers whether service executing result can normally return to called side after business processing, with Use or show for called side etc..
This is in refinement when obtaining the abnormal scene of corresponding business processing of each business processing stage, to business The analysis of the versatility of abnormal scene in reason takes out exception scene that may be present, obtained exception in business processing flow Scene has versatility, the convenient abnormal scene for being suitable for various software tests.
Step S103 is created at each business according to the abnormal scene of corresponding business processing of each business processing stage Reason stage corresponding abnormality test use-case template.
According to the abnormal scene of the corresponding business processing of each business processing stage of refinement, can be created that such as Fig. 2 institute The abnormality test use-case template shown.Abnormality test use-case template includes corresponding abnormal scene of each business processing stage, is led to That crosses that abnormality test use-case template can be apparent recognizes how to divide to a business, and to each business processing rank How section is arranged abnormal scene.Abnormality test use-case template can be made of mind map mode as shown in Figure 2, after convenient It is continuous that abnormality test use-case template is further refined, obtain specific abnormality test use-case.
Optionally, this method further comprises step S104.
Step S104 fills corresponding test parameter using abnormality test use-case template, and building obtains practical abnormality test Use-case.
In specifically used abnormality test use-case template, the needs that can be tested according to actual software use abnormality test Example template is refined, and fills corresponding test parameter in corresponding abnormal scene of each business processing stage.Test parameter It is filled according to the content of software itself.As shown in figure 3, abnormality test use-case is based on after payment of ordering, trade company refuses single pair The business of user's reimbursement is tested.Abnormal parameters scene and idempotent exception scene for the business processing last stage is according to business Parameter request used in specific and the requirement to call request refine, and the parameter of filling includes that must such as fill out parameter school It tests, abnormal code check, end request called to reentry, refusing single to request to reentry etc.;For the service exception scene in stage in business processing Based on specific service layer, the parameter of filling includes the various states of order, the various status checks of logistics etc., is handed over down-stream system The function point that mutual abnormal scene is executed based on down-stream system is filled, such as calling down-stream system execution reimbursement function time-out, Execute pre- reimbursement unsuccessfully etc.;Abnormal scene returned for the service executing result in stage after business processing, when pad parameter according to It is being returned after being interacted with down-stream system as a result, successfully etc. whether verifying joint debugging business execute.By above according to practical business institute The test parameter of filling can construct to obtain practical abnormality test use-case.
Based on refinement, the filling to abnormality test use-case template, obtained practical abnormality test use-case contains test institute The abnormal scene that need to cover reduces tester and the abnormality test use-case omission that abnormality test use-case may cause manually is arranged Problem reduces tester and the time that abnormality test use-case is spent is arranged, improves efficiency.
Multiple business are arranged according to business processing timing in the abnormality test use-case template establishment method provided according to the present invention Processing stage;Refine the abnormal scene of corresponding business processing of each business processing stage;According to each business processing stage pair The abnormal scene for the business processing answered creates corresponding abnormality test use-case template of each business processing stage.At business Reason timing marks off the business processing stage, extracts abnormal scene according to the business processing stage, obtained abnormality test use-case mould Plate can be supplied directly to tester's use, and tester is based on abnormality test use-case template can be according to different software reality Situation refinement obtains specific abnormal scene test case, reduces tester's work difficulty, also reduce technical requirements threshold.
Fig. 4 shows the functional block diagram of abnormality test use-case template creating device according to an embodiment of the invention.Such as Shown in Fig. 4, abnormality test use-case template creating device includes following module:
Setup module 410 is suitable for that multiple business processing stages are arranged according to business processing timing.
Module 420 is refined, suitable for refining the abnormal scene of corresponding business processing of each business processing stage.
Creation module 430 creates each suitable for the abnormal scene according to corresponding business processing of each business processing stage Business processing stage corresponding abnormality test use-case template.
Optionally, module 420 is refined to be further adapted for:
It is reverse to refine business processing internal logic for each business processing stage, it is corresponding to obtain the business processing stage Business processing abnormal scene.
Optionally, module 420 is refined to be further adapted for:
For the business processing last stage, the abnormal scene of refinement includes: abnormal parameters scene and/or idempotent exception scene; For the stage in business processing, the abnormal scene of refinement includes: business execute abnormal scene, downstream process exception scene and/or The abnormal scene of database interaction;For the stage after business processing, the abnormal scene of refinement includes: service executing result returns abnormal Scene.
Optionally, device further include: building module 440.
Module 440 is constructed, is suitable for utilizing abnormality test use-case template, fills corresponding test parameter, building obtains reality Abnormality test use-case.
The description of above each module is referring to corresponding description in each method embodiment, and details are not described herein.
Present invention also provides a kind of nonvolatile computer storage media, the computer storage medium is stored at least The wound of the abnormality test use-case template in above-mentioned any means embodiment can be performed in one executable instruction, the computer executable instructions Construction method.
Fig. 5 shows the structural schematic diagram of a kind of electronic equipment according to an embodiment of the invention, and the present invention is specifically real Example is applied not limit the specific implementation of electronic equipment.
As shown in figure 5, the electronic equipment may include: processor (processor) 502, communication interface (Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein:
Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.
Communication interface 504, for being communicated with the network element of other equipment such as client or other servers etc..
It is real can specifically to execute above-mentioned abnormality test use-case template establishment method for executing program 510 for processor 502 Apply the correlation step in example.
Specifically, program 510 may include program code, which includes computer operation instruction.
Processor 502 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for storing program 510.Memory 506 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that the abnormality test that processor 502 executes in above-mentioned any means embodiment is used Example template establishment method.The specific implementation of each step may refer to above-mentioned abnormality test use-case template creation implementation in program 510 Corresponding description in corresponding steps and unit in example, this will not be repeated here.Those skilled in the art can be understood that It arrives, for convenience and simplicity of description, the equipment of foregoing description and the specific work process of module, can implement with reference to preceding method Corresponding process description in example, details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) fill to realize that abnormality test use-case template according to an embodiment of the present invention creates The some or all functions of some or all components in setting.The present invention is also implemented as described here for executing Method some or all device or device programs (for example, computer program and computer program product).This The program that the realization of sample is of the invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other Form provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of abnormality test use-case template establishment method comprising:
According to business processing timing, multiple business processing stages are set;
Refine the abnormal scene of corresponding business processing of each business processing stage;
According to the abnormal scene of the corresponding business processing of each business processing stage, it is corresponding to create each business processing stage Abnormality test use-case template.
2. according to the method described in claim 1, wherein, the multiple business processing stage includes: business processing last stage, industry Stage after stage and business processing in business processing.
3. method according to claim 1 or 2, wherein described to refine corresponding business processing of each business processing stage Abnormal scene further comprise:
It is reverse to refine business processing internal logic for each business processing stage, obtain business processing stage corresponding industry The abnormal scene of business processing.
4. according to the method described in claim 2, wherein, for the business processing last stage, the abnormal scene of refinement includes: Abnormal parameters scene and/or idempotent exception scene;
For the stage in the business processing, the abnormal scene of refinement includes: business executes abnormal scene, downstream process anomalous field Scape and/or the abnormal scene of database interaction;
For the stage after the business processing, the abnormal scene of refinement includes: service executing result returns to abnormal scene.
5. method according to any of claims 1-4, wherein the method also includes:
Using the abnormality test use-case template, corresponding test parameter is filled, building obtains practical abnormality test use-case.
6. a kind of abnormality test use-case template creating device comprising:
Setup module is suitable for that multiple business processing stages are arranged according to business processing timing;
Module is refined, suitable for refining the abnormal scene of corresponding business processing of each business processing stage;
Creation module creates each industry suitable for the abnormal scene according to the corresponding business processing of each business processing stage Business processing stage corresponding abnormality test use-case template.
7. device according to claim 6, wherein the multiple business processing stage includes: business processing last stage, industry Stage after stage and business processing in business processing.
8. device according to claim 6 or 7, wherein the refinement module is further adapted for:
It is reverse to refine business processing internal logic for each business processing stage, obtain business processing stage corresponding industry The abnormal scene of business processing.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of abnormality test use-case template establishment method described in any one of 1-5.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute the corresponding operation of abnormality test use-case template establishment method according to any one of claims 1 to 5.
CN201810864249.5A 2018-08-01 2018-08-01 Method and device for creating abnormal test case template Active CN109240908B (en)

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 true CN109240908A (en) 2019-01-18
CN109240908B CN109240908B (en) 2020-04-03

Family

ID=65073394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810864249.5A Active 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)

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN110457207A (en) * 2019-07-12 2019-11-15 平安普惠企业管理有限公司 Test method and relevant device based on machine learning model
CN112131093A (en) * 2019-06-24 2020-12-25 腾讯科技(深圳)有限公司 Chaos test-based test case automatic generation method and device
CN112346987A (en) * 2020-11-25 2021-02-09 武汉光庭信息技术股份有限公司 Test case generation and conversion method and system based on Xmind
CN112527587A (en) * 2020-12-03 2021-03-19 深圳大普微电子科技有限公司 Verification progress determining method, device, equipment and readable storage medium
CN113704077A (en) * 2020-05-20 2021-11-26 ***通信集团浙江有限公司 Test case generation method and device

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN113704077A (en) * 2020-05-20 2021-11-26 ***通信集团浙江有限公司 Test case generation method and device
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
CN112527587A (en) * 2020-12-03 2021-03-19 深圳大普微电子科技有限公司 Verification progress determining method, device, equipment and readable storage medium
CN112527587B (en) * 2020-12-03 2023-04-18 深圳大普微电子科技有限公司 Verification progress determining method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN109240908B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN109240908A (en) Abnormality test use-case template establishment method and device
US8515876B2 (en) Dry-run design time environment
CN107145437B (en) Java annotation test method and device
US9317405B2 (en) Test double generation
CN102968371B (en) The method of test JAVA API unit component and device
CN109739700B (en) Interface testing method and device
CN109213681A (en) Test macro, method, equipment and readable storage medium storing program for executing
US10592703B1 (en) Method and system for processing verification tests for testing a design under test
Santiago et al. A practical approach for automated test case generation using statecharts
EP3851955A1 (en) Systems and methods for software documentation and code generation management
US20110016454A1 (en) Method and system for testing an order management system
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN105825401A (en) Distributed multichannel group-buying coupon checking system
CN106326102A (en) Test method and apparatus
US20170220449A1 (en) Infrastructure rule generation
Zhang et al. Verifying OSEK/VDX automotive applications: A Spin‐based model checking approach
CN115034165A (en) Chip simulation verification method, system, equipment and storage medium
CN115934559A (en) Testing method of intelligent form testing system
CN110069395B (en) Method and device for simulating asynchronous interface, storage medium and computer equipment
CN113609014A (en) Interface field checking method and device, storage medium and electronic equipment
CN112214201A (en) Method, device, equipment and storage medium for authenticating bottom interface of vehicle machine system
CN113037582A (en) Network Function Virtualization (NFV) test method, device and system
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
EP3063650A1 (en) Recording an application test
CN116909928A (en) Test case generation method, interface test method, system, equipment and medium

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