CN101593145B - Designing method of high-efficiency high-coverage-rate function test case - Google Patents

Designing method of high-efficiency high-coverage-rate function test case Download PDF

Info

Publication number
CN101593145B
CN101593145B CN200810071153XA CN200810071153A CN101593145B CN 101593145 B CN101593145 B CN 101593145B CN 200810071153X A CN200810071153X A CN 200810071153XA CN 200810071153 A CN200810071153 A CN 200810071153A CN 101593145 B CN101593145 B CN 101593145B
Authority
CN
China
Prior art keywords
case
designing
coverage
test
design
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
Application number
CN200810071153XA
Other languages
Chinese (zh)
Other versions
CN101593145A (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.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information 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 Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN200810071153XA priority Critical patent/CN101593145B/en
Publication of CN101593145A publication Critical patent/CN101593145A/en
Application granted granted Critical
Publication of CN101593145B publication Critical patent/CN101593145B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a designing method of a high-efficiency high-coverage-rate function test case, which sequentially comprises the following steps: analyzing a test object and a test requirement; starting the case; analyzing an expected result of the case; designing a forward function teat case according to the teat object and the requirement analysis when a program receives and processes an input variable; realizing functions for testing software requirements; then, completing the case by using various case designing methods; designing a reverse abnormal condition case according to the teat object and the requirement analysis when the program does not receive the input variable; and completing the case by using various case designing methods and estimating a test result in advance. The designing method of a high-efficiency high-coverage-rate function test case has the advantages that the teat case is designed through positive thinking and reverse thinking, the positive thinking based on a software function requirement is realized so as to ensure the correct realization of the software function, the reverse thinking based on the abnormal input, the abnormal operation, and the like is realized so as to test the robustness of the software and ensure the high coverage rate of the test, and the execution effect is quicker and more accurate.

Description

Designing method of high-efficiency high-coverage-rate function test case
[technical field]
The invention relates to a kind of method of software Black-box Testing, be meant a kind of designing method of high-efficiency high-coverage-rate function test case especially.
[background technology]
The test case design is an important skill of software test, and the quality of use-case design is directly connected to the height of testing level.
Use-case design theory method is a lot of at present, like equivalence class division, boundary value analysis, cause-and-effect diagram, judgement table driven parsing, scene design etc.These methods have bigger help in the use-case design of certain function point or module.These methods do not have versatility, and concrete a certain function point or module will be selected one or more concrete methods for use.The use-case that designs like this can better be verified the software quality of each module, and the guidance of individual bulking property can not be arranged software system test.
A judgment criteria of software test level is exactly coverage and accuracy, testing efficiency.So the use-case design also will be considered from this two sides.
Two broad theory viewpoints of current software test circle------program be work with program be idle.Before a kind of be the correct realization of judging software function according to demand, the back is a kind of to be that prover is that BUG (mistake) is arranged as far as possible, mainly on the reliability of program, robustness " finding fault ".
Because manual test is more loaded down with trivial details, if software systems are divided into a plurality of little modules, carry out forward and reverse use-case design then, staggered forward and the reverse use-case carried out of test man is easy to wrong report and fails to report BUG like this.
[summary of the invention]
Technical matters to be solved by this invention is to provide a kind of method for designing of high efficiency high coverage rate functional test use-case.
The present invention solves the problems of the technologies described above through following technical scheme: a kind of designing method of high-efficiency high-coverage-rate function test case comprises the following step of carrying out successively:
Step 10: at first carry out tested object and testing requirement analysis;
Step 20: beginning use-case;
Step 30: analyze the expected result of use-case, and whether program receive input variable and handle the corresponding result of feedback, with positive function and reverse unusual two kinds of situation classification, then get into step 40 and step 70 based on the use-case numbering simultaneously this moment;
Step 40: program receives input variable and handles, and gets into step 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according to step 10; The function that is used for the verifying software requirement can both realize; Get into step 60 then; What this use-case design was mainly considered is coverage, the realizing route of software function, the different input values in same path etc.;
Step 60: various use-case methods for designing are used, and get into step 100 then;
Step 70: program does not receive input variable, then gets into step 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according to step 10, gets into step 90 then;
The various use-case methods for designing of step 90 are used, and with the viewpoint or the position of opposition, utilization error guessing, judgement/condition combined method are analyzed in reverse abnormal conditions use-case design; Cause unusual input, the off path of software irregular operating; Whether verifying software can well recover under above-mentioned abnormal conditions, then carries out test result and estimates, at this moment; Program has prompting or abnormal conditions to recover, and gets into step 100 then;
Step 100: accomplish use-case.
In the said step 60, in the process of positive function test case design, the method for designing of employing comprises following at least a: boundary value analysis method, Path Coverage Analysis, orthogonal experimental design method.
In the said step 90, the method for designing of usefulness comprises following at least a: boundary value analysis method, scene design method.
The advantage of designing method of high-efficiency high-coverage-rate function test case of the present invention is:
1, according to two broad theory viewpoints of current software test circle------program be work with program be idle; Come design test case from forward thinking and opposition thinking two aspects; The forward thinking realizes based on the software function demand, guarantees that software function can both correctly realize; Opposition thinking is based on unusual input, realizations such as abnormal operation, the robustness of verifying software.Two kinds of methods of forward thinking and opposition thinking combine, and guarantee the high coverage rate of testing.Forward thinking and opposition thinking are separated, so more help in the measuring executing process result's judgement is more helped the efficient execution of use-case.
2, based on the use-case of this strategy design, be used for automatic test, also more help result's judgement.
[description of drawings]
Combine embodiment that the present invention is done further description with reference to the accompanying drawings.
Fig. 1 is the process flow diagram of designing method of high-efficiency high-coverage-rate function test case embodiment of the present invention.
[embodiment]
See also Fig. 1, designing method of high-efficiency high-coverage-rate function test case of the present invention comprises the following step of carrying out successively:
Step 10: at first carry out tested object and testing requirement analysis;
Step 20: beginning use-case;
Step 30: analyze the expected result of use-case, and whether program receive input variable and handle the corresponding result of feedback,, with positive function and reverse unusual two kind situation classification like positive function use-case be numbered according to the use-case numbering this moment *A, promptly last position is a, reverse unusual use-case is numbered *B, promptly last position is b, then gets into step 40 and step 70 simultaneously;
Step 40: program receives input variable and handles, and gets into step 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according to step 10; The function that is used for the verifying software requirement can both realize; Get into step 60 then; What this use-case design was mainly considered is coverage, the realizing route of software function, the different input values in same path etc.;
Step 60: various use-case methods for designing are used, and in the process of positive function test case design, the method for designing that can adopt mainly contains: boundary value analysis method, Path Coverage Analysis, orthogonal experimental design method etc. get into step 100 then;
Step 70: program does not receive input variable, then gets into step 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according to step 10, gets into step 90 then;
Step 90: various use-case methods for designing are used; Viewpoint or position to oppose in reverse abnormal conditions use-case design; Utilization error guessing, judgement/methods analysts such as condition combination; Cause unusual input (not meeting input, illegal input that design specification requires), the off path of software irregular operating, whether verifying software can well recover under above-mentioned abnormal conditions.Test result is estimated, and at this moment, program has prompting or abnormal conditions to recover.The method for designing that can adopt mainly contains: boundary value analysis method, scene design method etc. get into step 100 then;
Step 100: accomplish use-case.
Though more than described embodiment of the present invention; But the technician who is familiar with the present technique field is to be understood that; We described concrete embodiment is illustrative; Rather than being used for qualification to scope of the present invention, those of ordinary skill in the art are in the modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.

Claims (3)

1. designing method of high-efficiency high-coverage-rate function test case is characterized in that: comprise the following step of carrying out successively:
Step 10: at first carry out tested object and testing requirement analysis;
Step 20: beginning use-case;
Step 30: analyze the expected result of use-case, and whether program receive input variable and handle the corresponding result of feedback, with positive function and reverse unusual two kinds of situation classification, then get into step 40 and step 70 based on the use-case numbering simultaneously this moment;
Step 40: program receives input variable and handles, and gets into step 50 then;
Step 50: the design of positive function test case is carried out in tested object and demand analysis according to step 10; The function that is used for the verifying software requirement can both realize; Get into step 60 then; What this use-case design was mainly considered is coverage, the realizing route of software function, the different input values in same path etc.;
Step 60: various use-case methods for designing are used, and get into step 100 then;
Step 70: program does not receive input variable, then gets into step 80;
Step 80: reverse abnormal conditions use-case design is carried out in tested object and demand analysis according to step 10, gets into step 90 then;
Step 90: various use-case methods for designing are used, and with the viewpoint or the position of opposition, utilization error guessing, judgement/condition combined method are analyzed in reverse abnormal conditions use-case design; Cause unusual input, the off path of software irregular operating; Whether verifying software can well recover under above-mentioned abnormal conditions, then carries out test result and estimates, at this moment; Program has prompting or abnormal conditions to recover, and gets into step 100 then;
Step 100: accomplish use-case.
2. designing method of high-efficiency high-coverage-rate function test case as claimed in claim 1; It is characterized in that: in the said step 60; In the process of positive function test case design, the method for designing of employing comprises following at least a: boundary value analysis method, Path Coverage Analysis, orthogonal experimental design method.
3. designing method of high-efficiency high-coverage-rate function test case as claimed in claim 1 is characterized in that: in the said step 90, the method for designing of usefulness comprises following at least a: boundary value analysis method, scene design method.
CN200810071153XA 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case Expired - Fee Related CN101593145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810071153XA CN101593145B (en) 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810071153XA CN101593145B (en) 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case

Publications (2)

Publication Number Publication Date
CN101593145A CN101593145A (en) 2009-12-02
CN101593145B true CN101593145B (en) 2012-08-08

Family

ID=41407812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810071153XA Expired - Fee Related CN101593145B (en) 2008-05-29 2008-05-29 Designing method of high-efficiency high-coverage-rate function test case

Country Status (1)

Country Link
CN (1) CN101593145B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063376B (en) * 2011-02-16 2013-01-16 哈尔滨工程大学 Test case selection method
CN103530223B (en) * 2012-07-06 2018-05-04 百度在线网络技术(北京)有限公司 A kind of method and device of automatically generating unit test use-case
CN103942147B (en) * 2014-05-06 2017-04-05 南京大学 A kind of automatic generation of test data of linear fit function drive
CN104021083B (en) * 2014-06-17 2017-11-28 珠海格力电器股份有限公司 Method of testing and device
CN106021113A (en) * 2016-05-31 2016-10-12 浪潮电子信息产业股份有限公司 Precise test implementation method
CN108627716B (en) * 2017-03-22 2021-08-31 株洲中车时代电气股份有限公司 Method for analyzing detection coverage rate of whole process of converter
CN107329895B (en) * 2017-06-21 2020-08-21 福建中金在线信息科技有限公司 Test method and device for modular test case
CN109144668B (en) * 2018-08-06 2022-08-05 华大恒芯科技有限公司 RFID simulation case implementation method and device
CN109815121B (en) * 2018-12-15 2023-07-18 中国平安人寿保险股份有限公司 Interface automation test case generation method and related equipment
CN111124928B (en) * 2019-12-27 2023-03-14 成都康赛信息技术有限公司 Test case design method based on data
CN112328500A (en) * 2020-11-27 2021-02-05 成都精灵云科技有限公司 Method for automatically generating black box test case

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489306A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Measuring device
CN1776643A (en) * 2004-11-15 2006-05-24 华为技术有限公司 Method and device for testing software product robustness

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489306A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Measuring device
CN1776643A (en) * 2004-11-15 2006-05-24 华为技术有限公司 Method and device for testing software product robustness

Also Published As

Publication number Publication date
CN101593145A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
CN101593145B (en) Designing method of high-efficiency high-coverage-rate function test case
CN106354645A (en) Test method and test platform based on background system service or interface
CN109101680B (en) FPGA prototype automatic verification method and system based on GitLab-CI
CN102222035A (en) Software behavior detection system based on symbolic execution technology and detection method thereof
CN102662828A (en) A method and device for achieving software automatic testing
DE602005000383D1 (en) Error detection and diagnostics
CN102999417B (en) Automatic test management system and method
CN101727390A (en) Method and device for debugging performance test scripts
CN102750301A (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN112367223A (en) Ethernet test method, device, equipment and medium for gateway controller
WO2012034366A1 (en) Method and apparatus for detecting interface of communcation device
CN102306119A (en) System for capturing global exception and method
CN101201787A (en) System and method for debugging software program
KR101266565B1 (en) Test case creating mehtod and running method of robot software component using specifications of required interface
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN109002397B (en) Controller smoking test system and test method
CN102393732A (en) Vehicle fault diagnosis method
CN108763005B (en) Memory ECC fault error reporting method and system
CN101706752B (en) Method and device for in-situ software error positioning
CN105824749B (en) The analysis method of User space process exception under a kind of Linux system
CN112118159A (en) Network testing method, device, equipment and computer readable storage medium
CN106326089B (en) Automatic testing method, device and system
CN104572466A (en) Automatic testing method and device
CN103019862B (en) A kind of symbolic excution methodology, Apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120808

Termination date: 20140529